mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-03 17:07:38 +01:00
Measured on orangecat.ch (2026-11-12, 390px, signed out, light and dark): /products/00000000-0000-0000-0000-000000000000 answered 200 with the title "Product Not Found", and so did the same id under /services, /causes, /loans, /events and /investments. The same id under /assets, /wishlists, /research, /companions and /projects answered 404. Link checkers, uptime monitors, CDN caches and share-link validators read the status, not the HTML. Each of the six had a loading.tsx on its [id] segment, and /events, /loans and /investments one more on the list segment above. The skeleton streams first, so Next.js commits 200 before PublicEntityDetailPage reaches notFound(). Removed all nine, as #629 did for projects and profiles. /loans and /investments are redirect-only pages and /events is a client page, so their skeletons showed nothing a visitor needed. audit:routes missed it because it read only the page's own source, and these pages hand the existence check to PublicEntityDetailPage. The rule now follows the page's direct imports (type-only imports and comments ignored), lives in scripts/lib/soft-status.mjs so it can be tested on a fixture tree, and allowlists the eleven signed-in dashboard owner views that render the same component, which redirect to /auth when signed out. Checked against a local dev server: the six URLs answered 200 with the loading files and 404 without them, with the same title and h1. Claude-Session: https://claude.ai/code/session_019MDtmw3MnN44QwEv4M52CS Co-authored-by: Claude <noreply@anthropic.com>