Skip to content

feat(web): agrupamento, filtro e ordenação da sidebar - #1

Merged
BarretoDiego merged 2 commits into
mainfrom
feat/sidebar-project-grouping
Aug 21, 2026
Merged

BarretoDiego merged 2 commits into
mainfrom
feat/sidebar-project-grouping

Conversation

@BarretoDiego

Copy link
Copy Markdown
Owner

Traz as modificações próprias do fork para a main, estabelecendo o modelo main = upstream/main + minhas alterações.

O que entra

  • feat(web): group, filter and sort the sidebar inbox — agrupamento, filtro e ordenação da inbox na sidebar
  • feat(web): start a thread from a project section header — iniciar thread direto pelo header da seção do projeto

Arquivos

Arquivo
apps/web/src/components/Sidebar.tsx +925
apps/web/src/components/sidebar/SidebarGroupingBar.tsx novo, +330
apps/web/src/components/sidebarThreadGrouping.ts novo, +308
apps/web/src/components/sidebarThreadGrouping.test.ts novo, +358
packages/contracts/src/settings.ts +39
docs/user/thread-sidebar.md +33

Total: 7 arquivos, +1791 / -204.

Notas

  • Merge com a main atual (592c5983c) verificado localmente: sem conflitos.
  • A partir daqui o t3code-sync passa a mergear upstream/main por cima destas alterações a cada 3 horas.

The sidebar inbox is one flat list. With several environments, projects
and providers in play there is no way to see "just this machine" or
"just Codex" without scoping to a single project at a time, and every
card repeats the project name whether or not that is the useful bit.

Adds a compact bar under the project selector with three menus:

- Group by: environment, project or provider, plus an optional second
  axis nested inside the first. "Nothing" keeps today's flat list and
  stays the default.
- Provider filter: narrows every shelf, not just the inbox, so the
  filter never lies about what "only Claude" means.
- Sort: last activity or date created. The existing project grouping
  mode (repository / folder / project) is surfaced here too, instead of
  living only in Settings.

Each trigger reads out its current choice, so the bar doubles as the
readout of how the list is arranged.

Grouped rows say each thing once: a card drops whatever a section header
above it already states, so the same row is three lines in the flat list
and one line under a project header. Collapsed sections carry an
attention rollup — approvals, input requests, failures, unread
completions and running work — using the same status rules the rows
themselves follow, so a header can never claim something its rows would
not show. Unread finished threads get a dot next to their title.

The grouping itself is pure and unit-tested: sections come out in
first-appearance order and threads keep their incoming order, so sorting
and grouping stay orthogonal. Collapse state persists per section key
and resets when the axes change, so stale keys cannot pre-collapse
unrelated sections. Pinned keeps its manual order and the snoozed and
settled shelves stay whole.

Written by Claude Opus 5 in Claude Code.
Grouping the inbox by project surfaces every project as a header, but
starting work in one still meant going back up to the project selector
and changing scope.

Adds a New thread button beside the collapse arrow on project section
headers. Environment and provider sections span several projects, so
they have no unambiguous target and get no button rather than a guess.

The button is a sibling of the toggle rather than a child (a button
inside a button is invalid), and it reads its target off the section's
first thread instead of parsing the group key, so ids stay branded and
the key format stays an implementation detail.

Written by Claude Opus 5 in Claude Code.
@BarretoDiego
BarretoDiego merged commit 9ab41bf into main Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant