Command palette
Press ⌘K on a Mac, or Ctrl+K on Windows and Linux, to search WerkOS from any screen. It lists the modules before you type, and from the second letter it finds projects, jobs, candidates and files.
Before and after you type
Before you type, the palette lists the modules you can open, so it already works as a jump list. Once you type two letters, results arrive grouped by where they live: projects, jobs, candidates, files.
When to use it
Use the palette to reach a module or a record you can name, such as a candidate or a project, from wherever you are.
To narrow the list you are looking at, use the search field of that page, since the palette takes you away from it. The palette is a shortcut beside the rail and the modules panel: people who do not know a name still find things by looking.
Anatomy
A raised panel near the top of the screen holds the search field and, under it, a list that scrolls on its own. A row shows the name people know, with one line of context when two results could be confused. Group titles name the place. A module keeps its proper name, such as Global Projects, and any other title is in sentence case, such as Files.
- Panel width
- Up to 512 px
- Distance from the top
- 12 percent of the window
- Radius
- 16 px
- --radius-2xl
- Surface
- Raised glass, no border
- --glass-fill-raised
- Backdrop
- Dimmed, blurred 8 px
- --overlay
- Field row
- 52 px, 16 px glyph, 14 px text
- Result row
- 40 px, 54 px with a second line
- Row glyph
- 18 px, muted ink
- --text-muted
- Active row
- Soft fill, 8 px radius
- --glass-fill-hover
- Group title
- 13 px, weight 500
- --text-label
- List height
- Up to 60 percent of the window
States
One letter keeps the module list. From the second letter the palette searches after a short pause, and a newer query replaces an older answer.
While the first results load, gray rows hold their place. If nothing matches, the palette says so and repeats your words. If the search fails, it says so and offers to try again.
- Search starts
- At 2 characters
- Pause before searching
- 120 ms
- Loading
- Four placeholder rows, a spinner at the end of the field
- No results
- No results for “crane operator”
- --text-muted
- Failed
- Search did not finish. Try again
Search did not finish.
Keyboard and screen readers
The palette is a modal dialog. Its field owns the result list and announces the active row as you move, so a screen reader follows the highlight. A quiet status line reports how many results arrived.
- ⌘K or Ctrl+K
- Opens or closes the palette from anywhere
- Up and Down
- Move the active row and keep it in view
- Enter
- Opens the active row
- Escape
- Closes the palette and returns focus to where it was
Permitted and not permitted
Permitted
The module list before the first letter
The palette is useful the moment it opens.
Results grouped by where they live
Global Projects, Job Board, Candidates Leads, Files.
Not permitted
A highlight only the eye can follow
Announce the active row to screen readers as well.
An older answer after a newer query
Discard any response that is no longer the latest.
A failed search shown as no results
Say it did not finish, so people try again.