Skip to content

Commit 3b59e63

Browse files
committed
feat(web): make sidebar sections the place you act on projects
The project selector was doing three unrelated jobs at once: it scoped the whole sidebar to one project, it was the only route to project settings, and it took a row of sidebar width to say the name of a project the list below already showed. Meanwhile the list itself could only show projects that happened to have threads, so a quiet project was unreachable and a finished one disappeared into a single Settled shelf shared by everything. The selector is gone. A project is a section, and the section header carries what you can do with it: - Project sections get New thread and Project settings. - Environment sections get New project, pointed at that environment. - Provider sections span projects and environments, so they get nothing rather than a guess. Actions read off the section's target rather than off its first thread, because sections now exist before they have threads: every known project seeds one. The collapse arrow is always the last item, so it stays a fixed landmark while hover-only actions come and go around it. It is a sibling button (a button inside a button is invalid) and stays out of the a11y tree, since the labelled header button already exposes the same action. Settled threads follow the same idea. Grouped by project, each section ends with its own Settled shelf, closed by default with a count and a Show more tail; the global shelf only renders when no section owns history, so nothing is ever listed twice. Expansion is component state on purpose: an archive is opened to answer one question, and restoring six unrolled histories on startup would bury the work. The default grouping becomes environment then project. The actions above live on section headers, so shipping with a flat list would ship a sidebar with nowhere to put them. Scoping goes away with the selector. It had no other entry point, so the state, the thread filter and the draft filter go with it. Mobile keeps its own project filter in its own navigation; this is the web and desktop sidebar only. Written by Claude Opus 5 in Claude Code.
1 parent 1eb9b4d commit 3b59e63

5 files changed

Lines changed: 800 additions & 271 deletions

File tree

0 commit comments

Comments
 (0)