Repository navigation
feat: a lane from a branch, in the dashboard (ADR-0047) - #189
Merged
Merged
Conversation
The branch in the stack header opens the repository's branches, local and
remote-tracking, each with its worktree's lane. A click shows a branch's
lane or makes one; `+` makes a new branch from one and a lane on it; a
stopped lane's worktree can be removed; Fetch runs `git fetch --all
--prune`. The main working tree's checkout is never changed.
The hub runs git (`crates/devstack-hub/src/branches.rs`): the page names a
branch the hub lists, new names pass `git check-ref-format`, refs go after
`--`, the folder is the hub's (beside the repository's newest worktree,
else `<repo>.worktrees/`), git runs without a prompt or window and within
a time limit. Routes: GET /hub/stacks/{id}/branches, POST .../worktrees,
.../worktrees/remove, .../fetch.
The daemon's StackView says `no_main_ports` for a stack of Compose
containers only, and the header offers no "Serve main ports" there (#184).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md # docs/dashboard-api.md
…t compares folders, not spellings Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
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.
Implements ADR-0047 (accepted in #187). Relates to #184.
What
The branch in the stack header now opens a branch picker in place of the lane picker; the sidebar still switches lanes.
lane · running,lane · not started,main ports, ornew lane. A filter field and a Fetch button sit on top.git worktree add, the daemon finds the worktree, and the page shows the new lane, not started.git worktree removewithout--force, after a confirmation; git refuses a worktree with changes.Serve main ports is no longer offered for a stack of Compose containers only: the daemon's
StackViewsaysno_main_ports(#184, follow-up to #188).Hub
New module
crates/devstack-hub/src/branches.rs, with these routes:GET /hub/stacks/{id}/branchesPOST .../worktrees {branch, new?}POST .../worktrees/remove {path}POST .../fetchSafeguards:
git check-ref-format --branch, and a leading-is refused. Refs go after--.<repo>.worktrees/beside the repository. It is named as the lane will be (lane_name), with-2,-3if the name is taken.GIT_TERMINAL_PROMPT=0andGCM_INTERACTIVE=never, without a window, and with a time limit (30 s, 120 s for fetch). Both pipes are drained while it runs.400for what the page got wrong,409with git's message.Docs
docs/dashboard-api.md,docs/plan.md§3.5, an "as built" note in ADR-0047 ({branch, new?}instead ofbase; fetch is a fourth route), and the CHANGELOG.Tests
branches.rs, run against real git repositories:cargo clippy --workspace --all-targets -- -D warningsandcargo fmt --checkpass; daemon (114) and hub (52) unit tests pass.\and/; removal asks first and then shows the main tree; a shared lane sends no branch requests.typecheckpasses and all 49 tests pass.🤖 Generated with Claude Code