Skip to content

feat(search): global search / ⌘K command palette#33

Merged
nicholasalanbrown merged 1 commit intomainfrom
feat/global-search
Mar 1, 2026
Merged

feat(search): global search / ⌘K command palette#33
nicholasalanbrown merged 1 commit intomainfrom
feat/global-search

Conversation

@nicholasalanbrown
Copy link
Contributor

Global Search / ⌘K command palette

Adds a full global search modal (command palette style) accessible via:

  • Clicking the search bar on the landing page
  • ⌘K keyboard shortcut from any page

Features

  • Fuse.js fuzzy search across utilities, ISOs, RTOs, balancing authorities, programs, pricing nodes, power plants, EV stations
  • Tier-1 data (utilities, operators, programs) loads synchronously; tier-2 (power plants, EV stations, pricing nodes) fetches async on first open
  • Keyboard nav (↑↓ / Enter), Escape to close, backdrop tap/click to close
  • Mobile: full-screen sheet below fixed nav
  • Desktop: centered floating panel with backdrop blur

Fixes

  • fix(search): iPad Safari off-screen dialog — replaced Tailwind responsive class overrides (inset-x-0 sm:inset-x-auto sm:left-1/2) with explicit CSS media query. The inset-x-0 + sm:inset-x-auto + sm:left-1/2 combo was broken on iPad Pro Safari where right: 0 from inset-x-0 was not fully cleared, causing the dialog to render at the left edge instead of centered.

…ia query — fixes off-screen dialog on iPad Safari
@vercel
Copy link

vercel bot commented Mar 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
opengrid Building Building Preview, Comment Mar 1, 2026 3:09am

Request Review

@nicholasalanbrown nicholasalanbrown merged commit e651b6d into main Mar 1, 2026
3 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.

1 participant