feat(ui): browse another branch in the Repo box #107
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #98 (parts #104, #105, #106).
Problem
The Files tab in
[6]Repo browses the default branch only (#106). There's no way to look at the code on another branch.Acceptance criteria
Out of scope
Ahead/behind counts on the Branches tab. The PM doesn't want them.
🤖 Parked on two product choices; everything else reuses the Files tab as-is.
Decision needed: how a branch is chosen, and where the current branch shows.
main:src/ui). Cost: one extra key press to browse another branch; nothing new to learn.Either way: the choice lasts until the repo changes or the PM picks another branch; the default branch is what you get on first open;
okeeps opening the selected entry on the chosen branch.Recommendation: 1, because it uses the Branches tab you already have and adds no new key.
Reply with 1, 2 or a change and I'll build it.
🤖 PM answered in session: option 1 (Enter on a branch in the Branches tab).
Acceptance criteria
<branch>:<path>(for exampledevelop:src/ui), including on the default branch.oopens the selected Files entry on the chosen branch.🤖 Correction to the earlier note that everything else reuses the Files tab as-is: the forge tree reader (
TreeReader.ListTree/ReadFile, internal/forge/forge.go:134) reads the default branch only, with no ref parameter. Browsing another branch needs a ref threaded through the interface, both adapters (internal/forge/gitea/files.go, internal/forge/github/files.go), the test fake, internal/core/files.go and internal/ui. Re-routed from inline to labs:composer. No change to the user-visible behavior agreed above.🤖 merged: #114