Add generated sitemap audit

Merged
BI
4mo ago
+619-2

Summary

  • Add docs/site-map.md as the tracked Clinical KB sitemap.
  • Add scripts/generate-site-map.ts with sitemap:update and sitemap:check commands.
  • Add static sitemap coverage tests for pages, API routes, seeded dynamic slugs, navigation links, redirects, and known caveats.
  • Redirect /mockups/favourites-hub to /favourites and document route/navigation sitemap checks in docs/process-hardening.md.

Verification

  • npm run sitemap:update
  • npm run sitemap:check
  • npm run test -- tests/site-map.test.ts tests/app-modes.test.ts tests/services.test.ts tests/forms.test.ts tests/differentials.test.ts
  • npm run typecheck
  • npm run lint
  • npm run verify:cheap
  • npm run test:e2e:chromium -- tests/ui-tools.spec.ts (32 passed)

Notes

  • PR branch was isolated from origin/main so this PR contains only the sitemap audit commit.
  • No runtime dependencies or database migrations are included.