Repository navigation
feat(ui): a stack has a page; every lane, main included, the same view (ADR-0081) - #393
Merged
Merged
Conversation
…w (ADR-0081) `#/s/<stack>` is the stack's page: its daemon, Start/Stop/Restart stack, who serves the main ports (and giving them to a lane), its lanes with place, state, offset and memory, and its singleton services. A lane's views move to `#/s/<stack>/l/<lane>/...`, `main` for the main working tree; older links redirect. The main tree is a lane entry in the dashboard: one header, one start card, one branch picker for every tree; what has no meaning for it is shown disabled with the reason. The daemon's ServiceView carries `singleton`. CLI, tray and notification links use the new form. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The global `.row` (display: flex) made each <tr> a flex box, so the cells no longer lined up under their columns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… no main ports The "Give them to" select listed `main` (which has its own Back to main) and started empty; it now lists started lanes only, the first chosen, and Back to main stands alone when no lane could take the ports. A stack that does not run shows no "main ports" mark on its main tree in the sidebar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Card B of the dashboard work (ADR-0081), on top of ADR-0080 (the main tree answers as the lane
main).What changes
Routes.
#/s/<stack>is the stack's page.#/s/<stack>/l/<lane>/...holds a lane's views, with the same tabs as before; the main working tree ismain.?lane=x,/services/...,/infra...,/commands,/usage,/eventsopen the same tab of the lane named, else the lane shown last, elsemain.devstack://openlinks use the new form.One lane view. The main tree is a lane entry named
main, so the header, start card, branch picker and command palette treat it like any lane. Its actions map to these calls:POST /v1/upPOST /v1/down?infra=true; the daemon and the other lanes keep runninglaneMain('main'): the same button in every lane that does not hold the portsCold, Discard data, Remove worktree, Move, Share, starting in the pool and choosing another profile are shown disabled for
main, each with a reason.The stack page shows:
Daemon:
ServiceView.singleton, which older daemons omit. Mock hub: a lane serves the main ports, each lane reports its own usage, and one service is a singleton.Docs: ADR-0081,
dashboard-api.md, the changelog, skilldevstack.Review card (ADR-0070)
Approved by the owner in the conversation on 2026-10-30, all three points:
mainincluded, has the same view and the same switches. The UI distinguishes only whether a lane holds the main slot, not where it comes from.Decided by the agent alone:
mainhas its own Stop. The sidebar's "…" Stop does the same.main's Stop, as for a lane's Stop.mainshows the start card.mainis always listed under a stack./v1/usage, polled every 10 s while the page is shown.Tests
npm run typecheck,npm test(19 files, 113 tests: new ones for the redirects of old links, main's actions with their reasons and calls, and the sidebar's links and highlight),npm run build.cargo fmt,cargo clippy --all-targets -D warnings, the daemon's 168 library tests, the CLI's, the hub'snotifytests and the skills tests.🤖 Generated with Claude Code