Skip to content

Make admin global search work and use one page-title style - #98

Merged
man4ish merged 1 commit into
mainfrom
claude/admin-copy-and-nav
Sep 26, 2026
Merged

man4ish merged 1 commit into
mainfrom
claude/admin-copy-and-nav

Conversation

@man4ish

@man4ish man4ish commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

Why

  • Search: global search was a disabled "Search (coming soon)" box. It took 220px of the top bar and squeezed the breadcrumb.
  • Titles: page titles came in three sizes: 18px (Users, Organizations), 20px (SectionHeader) and 22px (the Operations pages, some of which also had a divider line under the header).

What

Working page search (GlobalSearch)

  • Trigger: a compact "Search Ctrl K / ⌘K" button opens a panel listing every page the current session can open. It uses the same NAVIGATION tree and visibility gates as the sidebar.
  • Ranking: page names match first (prefix, then word, then substring), then sections, so "security" lists every Security page.
  • Keyboard: Ctrl+K / Cmd+K opens it from anywhere. Arrow keys move, Enter opens, and Esc or a click outside closes it.
  • Breadcrumb: the 1700px rule that hid the old box is removed. With the compact button, the breadcrumb stays readable at 1600px.

One title style: every admin page title is now 22px with the same spacing and no divider.

Unchanged: page descriptions and permission messages are kept as written; they're meant for platform and owner admins. The public dashboard pages are not touched.

Tests

  • New GlobalSearch tests:
    • ranking;
    • visibility gating: platform-admin pages are hidden from other sessions;
    • Ctrl+K, type, then Enter navigates;
    • arrow keys, the "no match" message, and Esc.
  • Local admin build: Ctrl+K from Teams, type "hipaa", then Enter opens /hipaa-compliance.
  • Results: vitest 752 passed; tsc -b and build:admin are clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_014t7uDmnjGZAyMrCYpN2RZy


Generated by Claude Code

Global search was a disabled "Search (coming soon)" box that took 220px
of the top bar and squeezed the breadcrumb. It is now a working page
search:

- A compact "Search Ctrl K / ⌘K" button opens a panel with a live
  filtered list of every page the current session can open (same
  NAVIGATION tree and visibility gates the sidebar uses).
- Matches on page name first (prefix, then word, then substring), then
  on section, so "security" lists every Security page.
- Ctrl+K / Cmd+K opens it from anywhere; arrow keys move, Enter opens,
  Esc or a click outside closes.
- The 1700px rule that hid the old box is removed; the compact trigger
  leaves the breadcrumb readable at 1600px.

Page titles were 18px (Users, Organizations), 20px (SectionHeader) or
22px (Operations pages, some with a divider line under the header).
They are now all 22px with the same spacing and no divider. Page
descriptions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014t7uDmnjGZAyMrCYpN2RZy
@man4ish
man4ish merged commit 538cf4f into main Sep 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants