Repository navigation
feat(web): global search in the command palette (closes #271) - #410
Conversation
When the palette opens it reads, from the lists this account may already read, the organization's environments, applications, servers and members. Each result says where it lives, and the search covers that too; a list the account may not read adds nothing. Signed-off-by: samuel mbabhazi <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Closes #271.
What changed
⌘K found only pages and projects. When it opens, it now also reads the organization's environments, applications, servers and members (
PaletteIndex, dashboard/palette-index.ts).Visibility. Everything comes from the lists the API already gives this account:
A list the account may not read (403 or 404), or one that fails, adds nothing. The palette therefore never offers a resource the account cannot read, and no new endpoint or permission is involved.
Results. Each one shows where it lives (
Demo · qafor an application, the project for an environment). The search matches the name or that place, so typing an environment's name also finds its applications.Links.
Loading. Resources are read on each opening and dropped on close, so nothing stale is kept. Pages and projects show at once, with a "Searching…" line until the rest arrives.
Bounds. At most 60 environments and 5 pages of members per opening.
The placeholder now says what can be found. French texts are added.
How it was tested
palette-index.spec.ts:command-palette.spec.ts: matching on the place, and the "Searching…" state.Security considerations
Read-only. It makes no request beyond the list endpoints the account can already call, each enforced by the API, and refusals are dropped silently.
Summary by CodeRabbit