feat(conversations): harness / model / worker / project filter chips #44

Closed
gabrielvidal wants to merge 0 commits from filter-chips into main
pull from: filter-chips
Owner

Summary

The conversation drawer's filter block gets one row of dashed chips — Harness, Model, Worker, Project — each opening a popover to tick one or several values. Harness and model are new filters; worker and project replace the old rows of grey pills (one pill per value), which took several lines and capped projects at 8. Design picked in form conversation-filter-chips_b5665e.

Key changes

  • frontend/src/business/conversations/components/FilterChip.tsx (new): the chip + its multi-select popover (portaled, fixed — the drawer clips), and recentValues, which lists a dimension's values most recent conversation first, keeping a picked value that is no longer loaded.
  • filterStore.ts: selectedHarnesses, selectedModels, toggleHarness, toggleModel, clearPicks; both count on the funnel badge and are put back by Reset filters. Per profile and persisted like the other filters (no migration: absent = empty).
  • ConversationsPanel.tsx: the chip row, the two new list predicates, and the folded count row names an active harness / model filter like it does workers and projects.
  • CLAUDE.md: the drawer-filters paragraph.

Key decisions

  • A chip is a dimension, not a value (Gabriel's note on the form: "clicking a chip should open a popover to select from the list"). Dashed + muted while it filters nothing, solid primary once picked ("Haiku +1"); the popover stays open so several values can be ticked, with Clear in its header.
  • Model = family, matched on the main model only (conversation.model), as picked — a conversation that merely delegated to Haiku doesn't show under Haiku. A model outside every family is offered under its own id.
  • Harness: meta.harness, an unstamped conversation counting as the default harness.
  • Only values the profile's loaded conversations have, most recent first; a harness / model / worker chip is hidden while there is a single value to offer. Projects are no longer capped at 8 — the popover scrolls.
  • The owner (Mine / Guests) pills and the Guests profile's guest chips are untouched: not in the request.

Changelog

  • Added: filter the conversation list by harness and by model family, from chips in the drawer's filter block
  • Changed: the worker and project filters are chips that open a list to pick from, instead of one pill per value

Test notes

  • npx tsc --noEmit clean; npx vitest run src/business/conversations — new FilterChip.test.tsx and the updated filterStore.test.ts pass. The one failure there, FreshContext.test.tsx, fails on main too.
  • Mock build (npm run build:mock) driven in Chromium: opened each chip, ticked two model families (list went 46 → 6 of 53), cleared, folded the block. Screenshots below.
  • Preview (mock data): https://fedora.tail5edf31.ts.net:5302/?mock=1 — open the funnel beside the search box.
  • Not deployed: the hub is deployed from the Homelab after merge.

Screenshots

filter-chips-1-row.png
filter-chips-3-picked.png
filter-chips-4-folded.png

## Summary The conversation drawer's filter block gets one row of dashed chips — **Harness**, **Model**, **Worker**, **Project** — each opening a popover to tick one or several values. Harness and model are new filters; worker and project replace the old rows of grey pills (one pill per value), which took several lines and capped projects at 8. Design picked in form `conversation-filter-chips_b5665e`. ## Key changes - `frontend/src/business/conversations/components/FilterChip.tsx` (new): the chip + its multi-select popover (portaled, fixed — the drawer clips), and `recentValues`, which lists a dimension's values most recent conversation first, keeping a picked value that is no longer loaded. - `filterStore.ts`: `selectedHarnesses`, `selectedModels`, `toggleHarness`, `toggleModel`, `clearPicks`; both count on the funnel badge and are put back by *Reset filters*. Per profile and persisted like the other filters (no migration: absent = empty). - `ConversationsPanel.tsx`: the chip row, the two new list predicates, and the folded count row names an active harness / model filter like it does workers and projects. - `CLAUDE.md`: the drawer-filters paragraph. ## Key decisions - **A chip is a dimension, not a value** (Gabriel's note on the form: "clicking a chip should open a popover to select from the list"). Dashed + muted while it filters nothing, solid primary once picked ("Haiku +1"); the popover stays open so several values can be ticked, with *Clear* in its header. - **Model = family, matched on the main model only** (`conversation.model`), as picked — a conversation that merely delegated to Haiku doesn't show under Haiku. A model outside every family is offered under its own id. - **Harness**: `meta.harness`, an unstamped conversation counting as the default harness. - **Only values the profile's loaded conversations have**, most recent first; a harness / model / worker chip is hidden while there is a single value to offer. Projects are no longer capped at 8 — the popover scrolls. - The owner (Mine / Guests) pills and the Guests profile's guest chips are untouched: not in the request. ## Changelog - Added: filter the conversation list by harness and by model family, from chips in the drawer's filter block - Changed: the worker and project filters are chips that open a list to pick from, instead of one pill per value ## Test notes - `npx tsc --noEmit` clean; `npx vitest run src/business/conversations` — new `FilterChip.test.tsx` and the updated `filterStore.test.ts` pass. The one failure there, `FreshContext.test.tsx`, fails on `main` too. - Mock build (`npm run build:mock`) driven in Chromium: opened each chip, ticked two model families (list went 46 → 6 of 53), cleared, folded the block. Screenshots below. - Preview (mock data): https://fedora.tail5edf31.ts.net:5302/?mock=1 — open the funnel beside the search box. - Not deployed: the hub is deployed from the Homelab after merge. ## Screenshots ![filter-chips-1-row.png](https://git.gabvdl.xyz/attachments/f43b8304-fca2-47fa-9de1-d139a281883d) ![filter-chips-3-picked.png](https://git.gabvdl.xyz/attachments/48f8ae46-8fa8-4b7e-8018-60e9462413a4) ![filter-chips-4-folded.png](https://git.gabvdl.xyz/attachments/bb081a54-bc11-476b-9cdb-48ac480a41fb)
gabrielvidal self-assigned this 2026-11-28 20:17:11 +01:00
gabrielvidal added 1 commit 2026-11-28 20:17:11 +01:00
One row of dashed chips, each opening a multi-select popover of the values
the profile's loaded conversations have. Harness and model family are new
filters; worker and project replace the per-value pill rows.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Author
Owner
Merged into `main` as 1578760c by the auto-ship batch https://ai-agent.lab.gabvdl.xyz/conversation/cadefe6f-0940-4688-bc56-1306d9265430.
gabrielvidal closed this pull request 2026-11-28 21:10:26 +01:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gabrielvidal/ai-agent#44