See code, README and branches #98
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?
Problem
lazyforge shows PRs, issues and runs, but not the repo itself. The next logical features are to see code, read the README, and see branches.
🤖 Parking this on a product question.
docs/design.mdhas five boxes per repo and no place for the repo's own content, and the ticket has no acceptance criteria. Three decisions change what gets built:1. Where do code, README and branches live?
[6]Code,[7]Branches; README as the first tab of Code. Matches the box model, but the jump keys grow to seven and the box column gets taller. Cost: largest change.[6]Branches only. Reading the README costs no keystrokes. Code browsing waits for a later ticket.[6]Repo with tabs README · Files · Branches. Least layout change, one jump key.2. How deep is "see code"?
oopens in browser). Cost: about two MRs.oopens the file in the browser. Smallest, but you can't read a file in the terminal.3. What does a branch row show? Proposed: name, default-branch marker, last commit message and age, ahead/behind the default branch, and whether it has an open PR. Details tab: the commit list. Read-only in v1 (no create/delete).
Recommendation: option 3 for layout, option 1 for depth, branches as proposed. One box keeps the keymap stable while adding all three features. Delivery would be one MR per feature (README, branches, files).
Reply with your picks, or "go with the recommendation", and the next session will split and deliver.
🤖 PM answered: go with the recommendation (one box [6] Repo with README · Files · Branches tabs, read-only). Files uses Yazi-style navigation: h/l go up/into directories, j/k move, the right column previews the selected file or folder. Splitting into one MR per tab; the sub-tickets are linked below.
🤖 Split into #104 (box [6] + README), #105 (Branches), #106 (Files, Yazi-style). Delivering in that order; #98 closes when all three merge.
🤖 PM decisions since the split, for whoever delivers #104, #105 and #106:
Gaps an independent plan check found in a draft plan for #104 (unimplemented plan, not code). Worth checking against the branch:
internal/ui/renovate.goalso callssyncText(syncStarDetails), so changing its tab clamp has to cover that file; on ★ Renovate set the tab to 0.ErrUnsupportedas "No README"; other errors (unauthorized, rate limited) show as for other kinds.docs/architecture.mdneeds the new optional interface and a README row in the API mapping table.boxes.go, switches usingdefault:for runs would index runs for a repo box. Make them explicit cases.1-5hint strings change (model_test.go and helpers_test.go).🤖 all three parts merged: #104 (PR #109), #105 (PR #110), #106 (PR #111)