Skip to content

web: rebuild the ⌘K search palette to match the Swift search view #154

Closed

Description

@yansfil

Why

⌘K opens a working palette in the web shell (web/src/Palette.tsx, web/src/search.ts), but it reads as a raw list next to the Swift search view (macos/Sources/HerdrMacOS/HideSearchView.swift): one-line rows whose subtitle is the entry kind, no groups, no icons.
Screen / Palette in design/hide-screens.pen is a transplant of that list, not a design.
This issue does the UI first; what ⌘K searches and how it ranks stay as search.ts has them.

Target, from the Swift search view

  • Sidebar: a Search field with a ⌘K hint at the top of the sidebar opens the palette.
  • Dialog: the query field Search agents and workspaces with an Esc chip.
  • Results grouped under headers in the Swift form (herdr-ide > AGENTS), with commands, projects and checkouts in their own groups.
  • Agent rows: the agent mark, the title, and the detail line (status or current task) under it; the selected row shows ↵.
  • Empty and no-match states in their smallest form.

Scope

  • Redraw Screen / Palette in light and dark and add any new part to design/hide-ui.lib.pen; the user reviews the board before code (docs/DESIGN_WORKFLOW.md).
  • Give SearchEntry its group and the agent's mark source; the grouping and group order are pure functions in search.ts with unit tests.
  • Reuse the sidebar's agent mark and row pieces (web/src/AgentMark.tsx, web/src/components/agent-row.tsx) rather than drawing a parallel row.
  • The ⌘P file palette shares PaletteShell and must not regress.

Done when

  • The board is approved and the web palette matches it in both themes.
  • Arrows, Enter, Escape and the sidebar field all reach the same overlay.
  • Existing palette e2e passes, and new e2e asserts the groups and the two-line agent row.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions