Description
lib/search/domains.ts contains a maintenance instruction right at the top
of the file:
- Keep this list in sync with
app/**/page.tsx routes — when a new domain
- (feature page) is added to the app, add an entry here too.
But comparing the actual routes under app/ against SEARCH_DOMAINS:
Actual page.tsx routes: In SEARCH_DOMAINS?
/ ✅ (id: 'home')
/generator ✅
/compare ✅
/burnout-analyzer ✅
/customize ✅
/contributors ✅
/achievements ✅
/documentation ✅
/faq ❌ MISSING
/guidelines ❌ MISSING
/support ❌ MISSING
app/faq/page.tsx, app/guidelines/page.tsx, and app/support/page.tsx are
all fully built, real pages (FAQ accordion, contributor guidelines,
support/contact page) — not stubs. hooks/useSiteSearch.ts (the navbar
search) resolves results purely from the static SEARCH_DOMAINS array, with
no fallback route-crawling. So these 3 pages are simply unreachable from
the site's search — a user typing "faq", "guidelines", "support", "help",
or "contact" into the navbar search gets zero results for pages that
actually exist.
Steps to Reproduce
- Open the app, click the navbar search.
- Type "faq" — no result appears, even though /faq exists and is linked
elsewhere in the site (e.g. footer).
- Type "guidelines" or "support" — same result: nothing found.
- Compare with typing "compare" or "achievements" — these do resolve,
because those pages have entries in SEARCH_DOMAINS.
Expected Behavior
Every real page under app/ should have a corresponding entry in
SEARCH_DOMAINS, per the file's own documented contract, so the navbar
search can find it.
Screenshots / Logs
No response
GitHub Username (If applicable)
No response
Environment
Chrome
Description
lib/search/domains.ts contains a maintenance instruction right at the top
of the file:
app/**/page.tsxroutes — when a new domainBut comparing the actual routes under app/ against SEARCH_DOMAINS:
Actual page.tsx routes: In SEARCH_DOMAINS?
/ ✅ (id: 'home')
/generator ✅
/compare ✅
/burnout-analyzer ✅
/customize ✅
/contributors ✅
/achievements ✅
/documentation ✅
/faq ❌ MISSING
/guidelines ❌ MISSING
/support ❌ MISSING
app/faq/page.tsx, app/guidelines/page.tsx, and app/support/page.tsx are
all fully built, real pages (FAQ accordion, contributor guidelines,
support/contact page) — not stubs. hooks/useSiteSearch.ts (the navbar
search) resolves results purely from the static SEARCH_DOMAINS array, with
no fallback route-crawling. So these 3 pages are simply unreachable from
the site's search — a user typing "faq", "guidelines", "support", "help",
or "contact" into the navbar search gets zero results for pages that
actually exist.
Steps to Reproduce
elsewhere in the site (e.g. footer).
because those pages have entries in SEARCH_DOMAINS.
Expected Behavior
Every real page under app/ should have a corresponding entry in
SEARCH_DOMAINS, per the file's own documented contract, so the navbar
search can find it.
Screenshots / Logs
No response
GitHub Username (If applicable)
No response
Environment
Chrome