Repository navigation
feat(web): make a thread's path in the header navigable - #6
Merged
Merged
Conversation
The header above a thread showed a project name and a title. The project was not a link — clicking it started a new thread, an action a breadcrumb has no business performing — and the environment was missing entirely, so with two servers connected the header never said which machine the work was running on. There was also nowhere to go: no view of one environment's projects, and no view of one project's threads outside the sidebar's narrow column. The header now reads environment / project / thread, widest scope first, and every crumb above the thread is a link to that scope's own page. The environment leads whenever the server actually names itself; a blank name renders no crumb rather than an icon with nothing beside it. Two pages back those links. The environment page lists every project on that server, busiest first, with each one's live thread count and last activity — including projects with no threads yet, the same promise the sidebar's seeded sections make. The project page lists that project's threads under Active, Snoozed and Settled. Those shelves are the sidebar's rule, reused rather than re-derived, so the two surfaces cannot disagree about what is finished. One deliberate omission: the sidebar's pull-request snapshot stays behind. It is a sidebar-local cache of open PRs, and a page that needed one would be fetching PR state to decide where a row goes. With Auto-settle merged threads on, a thread whose PR just merged reads as active here until the server stamps it. The project page is scoped to the project on *this* environment rather than to the sidebar's logical grouping. The crumb comes from a thread, a thread has exactly one environment, and a page reached by following a path should not quietly widen it. Clicking the project name no longer starts a thread. Both pages carry a New thread / New project button, the sidebar's project headers still have theirs, and the keybinding is untouched — so the action loses a hiding place, not a home. Docs: the new section in the thread sidebar guide. Desktop inherits this from web; mobile has its own navigation and no header of this shape, so it is unaffected. Written by Claude Opus 5 in Claude Code. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
Problem
The header above a thread showed a project name and a title. The project was not a link — clicking it started a new thread, which a breadcrumb has no business doing — and the environment was missing entirely, so with two servers connected the header never said which machine the work was running on. There was also nowhere to go from it: no view of one environment's projects, and no view of one project's threads outside the sidebar's narrow column.
What changed
The header now reads environment / project / thread, widest scope first, and every crumb above the thread is a link to that scope's own page. The environment leads whenever the server actually names itself; a blank name renders no crumb rather than an icon with nothing next to it.
Two new pages back those links:
/environments/$environmentId— every project on that server, busiest first, with each one's live thread count and last activity. Projects with no threads yet still get a row, the same promise the sidebar's seeded sections make. New project in the corner./environments/$environmentId/projects/$projectId— that project's threads under Active, Snoozed and Settled. New thread in the corner.Both pages carry the path too, so the project page walks back up to its environment and every thread walks back to its project.
Notes on the design
Surfaces
Desktop inherits this from web (links are already excluded from the Electron drag region). Mobile has its own navigation and no header of this shape, so it is unaffected. Nothing crosses the wire, so contracts are untouched.
Verification
vp test run apps/web/src/workspaceScope.test.ts— 12 passed, covering the shelving rule (snooze outranking settlement, per-environment capability gating, blocked work never hidden, shelf ordering), the environment summary (quiet projects kept, cross-environment threads excluded, active vs. total, sort), and the blank-label rule.vp test runonChatHeader,ChatView.logic,Sidebar.logic,chatIndexTitlebar,UsagePage— all passing.tsgo --noEmitclean forapps/web;vp lintclean acrossapps/web/src.Written by Claude Opus 5 in Claude Code.
🤖 Generated with Claude Code