Skip to content

fix(web): show section actions and indent settled rows - #3

Merged
BarretoDiego merged 1 commit into
mainfrom
feat/sidebar-project-grouping
Aug 22, 2026
Merged

BarretoDiego merged 1 commit into
mainfrom
feat/sidebar-project-grouping

Conversation

@BarretoDiego

Copy link
Copy Markdown
Owner

Dois erros da primeira passada, os dois visíveis no instante em que a sidebar rodou de verdade.

Ações só no hover

Os botões do header eram opacity-0 até o hover — herança de quando New thread era um agrado ao lado de um seletor de projetos que já fazia o trabalho. O seletor não existe mais: esses botões são o caminho para dentro de um projeto, e uma ação que precisa ser caçada com o mouse é uma ação que a maioria nunca encontra.

Passam a ficar visíveis, apagados, e acendem no hover.

Linhas settled sem indentação

A variante slim — a forma que as linhas settled e snoozed usam — tem um <li> próprio que nunca aplicou indentDepth. Resultado: uma thread arquivada dentro da seção de um projeto ficava colada na borda da sidebar, como se não pertencesse a ninguém, enquanto o header Settled dela estava indentado sob o projeto.

Agora indenta e desenha as mesmas guias que qualquer outra linha — o que de quebra conserta as linhas snoozed para quando elas acabarem aninhadas.

Verificação

tsc --noEmit e lint limpos em apps/web; 134 testes passando entre sidebarThreadGrouping e Sidebar.logic.

Written by Claude Opus 5 in Claude Code.

Two things the first pass got wrong, both visible the moment the sidebar
actually ran.

The header actions were hover-only, carried over from when New thread was a
nicety next to a project selector that already did the job. The selector is
gone: these buttons are now the way into a project, and an action you have
to hunt for by hovering is an action most people never find. They stay
visible, muted, and brighten on hover.

Settled rows ignored their indentation. The slim variant — the shape settled
and snoozed rows use — has its own `<li>` that never applied `indentDepth`,
so a settled thread inside a project section sat flush against the sidebar
edge as if it belonged to no one, while its own Settled header was indented
under the project. It now indents and draws the same guides as every other
row, which also fixes snoozed rows for whenever they end up nested.

Written by Claude Opus 5 in Claude Code.
@BarretoDiego
BarretoDiego merged commit 0fbfd9c into main Aug 22, 2026
@BarretoDiego
BarretoDiego deleted the feat/sidebar-project-grouping branch August 25, 2026 01:28
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