Skip to content

feat(web): make a thread's path in the header navigable - #6

Merged
BarretoDiego merged 1 commit into
mainfrom
feat/breadcrumb-env-navigation
Aug 24, 2026
Merged

BarretoDiego merged 1 commit into
mainfrom
feat/breadcrumb-env-navigation

Conversation

@BarretoDiego

Copy link
Copy Markdown
Owner

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

  • The shelves reuse the sidebar's classification rather than re-deriving it, 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 just 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 have a New thread / New project button, the sidebar's project headers still have theirs, and the keybinding is untouched — the action loses a hiding place, not a home.
  • Unknown environment and unknown project both get an explicit state, since these URLs are shareable and a pasted link can outlive what it points at.

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 run on ChatHeader, ChatView.logic, Sidebar.logic, chatIndexTitlebar, UsagePage — all passing.
  • tsgo --noEmit clean for apps/web; vp lint clean across apps/web/src.
  • Route tree regenerated with the TanStack generator rather than hand-edited.
  • No browser pass — say the word and I will drive the real app for before/after shots of the header and both pages.

Written by Claude Opus 5 in Claude Code.

🤖 Generated with Claude Code

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]>
@BarretoDiego
BarretoDiego merged commit 1f880cb into main Aug 24, 2026
@BarretoDiego
BarretoDiego deleted the feat/breadcrumb-env-navigation 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