Repository navigation
fix(web): show section actions and indent settled rows - #3
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-0até 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 aplicouindentDepth. 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 --noEmite lint limpos emapps/web; 134 testes passando entresidebarThreadGroupingeSidebar.logic.Written by Claude Opus 5 in Claude Code.