Bug Report: Command Palette 'All Pages' Button Only Shows Tools
Bug Report: Command Palette 'All Pages' Button Only Shows Tools
Version: v0.1.342
Severity: Medium — misleading UI behaviour
Component: Command Palette (src/components/command-palette.tsx)
Summary
The 'All pages' button in the command palette footer does not show all pages. It triggers a hidden search for the keyword 'tools', which returns only the Tools navigation group. Users clicking the button expecting a full site map will instead see a partial list of five items from a single section.
Behaviour
What users expect
Clicking 'All pages' should display every navigable page in the application, ideally grouped by section, so users can browse the full site structure without typing a query.
What actually happens
- The button fires a search with the hardcoded query string
'tools'. - The command palette returns results matching that query — the Tools nav group only.
- Pages shown: CSV Import, Jobs, Archives, Activity, System Admin (5 of 27 total).
- All other nav groups (Portfolio, Admin, etc.) are hidden.
Root cause
Navigation groups are not rendered when the search query is empty. To work around this, the button was wired to inject 'tools' as a query, which happens to surface one group. This is a brittle hack that does not scale and produces a false affordance for users.
Recommended Fix
Option A — True page browser (preferred)
Introduce a dedicated browse mode in the command palette state:
- A
browseAllflag (or equivalent state value) bypasses the search pipeline entirely. - When active, the palette renders all
navCommandsgrouped by their section label. - All 27 navigation items across every group are displayed.
- The trigger button is renamed 'Browse all pages' to accurately describe the action.
- Clearing the input or pressing
Escapeexits browse mode and returns to the default empty state.
Option B — Accurate section buttons (interim)
If a full browse mode is not immediately feasible:
- Rename the existing button to 'Browse Tools' so it honestly reflects its behaviour.
- Add equivalent buttons for each nav group: 'Browse Portfolio', 'Browse Admin', etc.
- Each button triggers a group-scoped search so users can explicitly select which section to explore.
This option requires no architectural changes but adds UI surface area proportional to the number of nav groups.
Affected Navigation Items
The following items are not reachable via the current 'All pages' button:
| Section | Items hidden |
|---|---|
| Portfolio | All items |
| Admin | All items |
| Any non-Tools group | All items |
Only the Tools group (CSV Import, Jobs, Archives, Activity, System Admin) is currently surfaced.
Testing Checklist (post-fix)
- Clicking the browse trigger displays all 27 navigation items.
- Items are grouped by their correct section label.
- No search query is injected or visible in the input field.
- Typing in the input after entering browse mode transitions to a live search.
- The button label matches its actual behaviour.
- Keyboard navigation works across all displayed items.