Slice 13: repo search + filtering (+ no-cache dev assets)
<repo-list> gains a search box (name/path) and Dirty/Ahead-behind filter chips with an N-of-M count; filtering is client-side and the state persists in localStorage (gitmanager.repolist.filters, §4). Refresh/selection re-apply filters. cmd/server sends Cache-Control: no-cache for /components and /static so hot-reloaded asset edits show on reload. Server-verified (curl); live click-through pending an unresponsive browser pane. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,11 @@ component pattern the rest of the UI follows.
|
||||
|
||||
## Public surface
|
||||
- **Tag:** `<repo-list>`
|
||||
- **Attributes/properties:** none yet.
|
||||
- **Attributes/properties:** none.
|
||||
- **Search + filter:** a search box (matches name/path, case-insensitive) plus
|
||||
"Dirty" and "Ahead/behind" toggle chips, with a "N of M" count. Filtering is
|
||||
client-side over the fetched list; the state persists per-viewer in
|
||||
`localStorage["gitmanager.repolist.filters"]` (§4).
|
||||
- **Fetches:** `GET /api/repos` on connect and every 15s (in-flight request is
|
||||
aborted on refresh and on disconnect).
|
||||
- **Emits:** `repo:select` — a `CustomEvent` (bubbles + composed) whose `detail`
|
||||
@@ -26,6 +30,8 @@ component pattern the rest of the UI follows.
|
||||
readable by Claude via `get_active_project`. Fire-and-forget.
|
||||
- 2026-09-20: right-clicking a repo emits `repo:contextmenu` `{repo, x, y}` for
|
||||
`<repo-menu>` (§6). Right-click does not change the selection/active project.
|
||||
- 2026-09-20: added search + "Dirty"/"Ahead-behind" filter chips with a count,
|
||||
persisted in localStorage; filtering is client-side (slice 13).
|
||||
|
||||
## Notes / gotchas
|
||||
- Uses shared design tokens (`--git-*`, `--surface-*`, `--radius*`) for all
|
||||
|
||||
Reference in New Issue
Block a user