Global search
Problem
A product like the Pantheon dashboard holds many kinds of things (sites, environments, workspaces, business accounts, and an assistant), and the people using it jump between them all day. PDS has SiteSearch, which finds sites in one list, and Combobox, which picks one option from one list. Neither can show results in groups, say what each row will do, or open as one expanding box under the field. Each screen that needs this builds it by hand.
Proposal
A net-new component, GlobalSearch: one input that shows results in groups.
- Closed: an input with a send button.
- Open (focus): the page dims and the field and the results become one box with a single outline and a divider under the field. With nothing typed it shows what the screen passes as suggestions (recent searches, then a few of each kind, then the assistant).
- Typed: the screen passes the matches. Rows can carry an icon, a label with the match highlighted, tags, quiet text beside the label, a second line, and an action label that shows on the active row ("Jump to").
- States: default, suggestions, results, active row, loading (first results, and while the next ones load), no results, error, narrow.
- Keyboard: focus stays in the input; arrow keys move through the rows, Enter chooses, Esc closes.
- It holds no data and no content. The screen passes the groups, the labels and what each row does.
Challenge
- Closest PDS component:
SiteSearch(a combobox over a list of sites). It lacks groups, per-row actions, rows beyond a site, and the expanding-box look.ComboboxandComboboxMultiselectchoose from one list.TextInputprovides the frame this is styled after. - Closest proposal:
Composer(a prompt field with its Send button inside the same box, and acompactsingle-line variant). It is a textarea for writing prompts and shows no results. It does share the idea that the wrapper, not the input, owns the border and focus ring, and GlobalSearch is built the same way. - Alternatives weighed: extend
SiteSearch(it would stop being a site search); wrapCombobox(it cannot do groups, rich rows or the one-box look); a recipe ofTextInput+Panel(the keyboard and screen reader behavior is the hard part and belongs in a component). - Verdict: net-new component.
Source
Erika's screen recording of the Vision (~/Desktop/search.cleanshotvideo, 15 s: focus, scroll through suggestions, type "canopy", pick a result) and her screenshot of the open state (one expanding box). From the "Global Dashboard (Vision)" Claude Design file. No Figma or Jira links.
Constraints
- Tokens only; check light and dark.
- Keyboard operable with a visible focus ring; screen reader support (combobox and listbox pattern, a live region for the result count).
- No content inside the component; translatable strings come in as props.
- Router-agnostic: the screen decides what choosing a row does.
Open questions
- Should rows be real links so people can open one in a new tab (Cmd-click)? The current model is a listbox with a callback, which cannot.
- What does a send (button or Enter with no row active) do in the product: a results page, or hand the text to the assistant?
- Does a recent search save after you run one, and can you remove one?
- Send icon: the design draws an up arrow, PDS has none, and
ComposerusespaperPlane. AddarrowUp, or usepaperPlane? - Should the field and expanding-box look be a shared primitive with
ComposerandTextInput? - Screen reader behavior has not been tested with a real screen reader.