Home

boring / v2

publicBoring-Software-Inc/v2
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

feat(web): rebuild the repo switcher as a cmdk command palette (§4)

4 months ago

54ebee0
Authored
grim7/14/2026, 6:29:55 AM
Replace the hand-rolled switcher guts with cmdk — one keyboard surface (⌘K / "/")
that switches repos, runs actions, and navigates, with fuzzy multi-name search.

- REPOS: every synced repo, signal-carrying (armed · pending · blocked-24h),
  sorted by recent activity, grouped by owner. Armed → scope; unarmed → arm inline
  (never silently scope a dead repo). Shows all repos; search narrows.
- ACTIONS: arm/disarm active, open latest run, sign out. NAVIGATION: the routes.
- searchTags per item + debounced (200ms) multi-word AND matching; result count.
- New reads: runServices.latestRunIdForRepo → getLatestRunId/latestRunQueryOptions;
  disarmActiveRepo. Palette queries fetch on open. Kept ⌘K, active-repo scoping.

DECISIONS + spec §4 updated. cmdk ^1.1.1 added to apps/web (ledgered).

Parentf19731f

9 files changed
  • DECISIONS.md+39−0
  • apps/web/package.json+3−2
  • apps/web/src/components/layouts/repo-switcher.tsx+343−127
  • apps/web/src/lib/arm.functions.ts+19−0
  • apps/web/src/lib/runs.functions.ts+17−0
  • apps/web/src/lib/runs.query.ts+10−1
  • bun.lock+5−0
  • packages/db/src/services/runs.ts+17−0
  • spec.md+8−4