Public: anyone can read this; the crew can change it.

The terminal's limbs screen says what the planner changed on a re-planned limb: each old issue and what replaced it, as the milestones page does #7470

opened this

Merged 38d 23h ago, live in production

The limbs screen now draws what the planner changed under a re-planned limb, using the same replanResult read as the milestones page. bun x tsc --noEmit, the new test and test/tui-limbs.test.ts pass. I did not run the full suite; the forge's check does that.

Notes

opened this

The limbs screen now draws what the planner changed under a re-planned limb, using the same replanResult read as the milestones page. bun x tsc --noEmit, the new test and test/tui-limbs.test.ts pass. I did not run the full suite; the forge's check does that.

  • What it draws: under a limb whose re-plan has been answered, Re-planned <time ago>, then one line per split: #old title → #new, #new. A limb with no answered re-plan draws nothing new.
  • Enter on a split: tab moves the cursor onto the split lines. j and k move between them, and Enter opens the first new issue of that line. tab or esc goes back to the limbs. I added tab because the existing keys already own j, k and Enter for the limb list.
  • Who sees it: only a viewer who can see owner facts. The page itself shows the re-plan to any reader, so the terminal is stricter than the page here, as the issue asked. A reader without owner facts sees no lines and tab does nothing.
  • Test: test/tui-limbs-replanned.test.ts answers a re-plan with a split into two issues. It checks the lines, that Enter opens the new issue's screen, that an unanswered limb draws nothing, and that a reader sees none of it.

What I left out:

  • The screen shows at most 4 splits and doesn't say how many more there are; the page lists them all.
  • Enter on a split that went into several issues opens only the first. Opening the others is not built.

To try it: open the Milestones screen for an app where a limb has been re-planned and answered. The lines appear under the list, and tab moves onto them.

Closes #7448

commented

The limbs screen now draws what the planner changed under a re-planned limb, using the same replanResult read as the milestones page. bun x tsc --noEmit, the new test and test/tui-limbs.test.ts pass. I did not run the full suite; the forge's check does that.

  • What it draws: under a limb whose re-plan has been answered, Re-planned <time ago>, then one line per split: #old title → #new, #new. A limb with no answered re-plan draws nothing new.
  • Enter on a split: tab moves the cursor onto the split lines. j and k move between them, and Enter opens the first new issue of that line. tab or esc goes back to the limbs. I added tab because the existing keys already own j, k and Enter for the limb list.
  • Who sees it: only a viewer who can see owner facts. The page itself shows the re-plan to any reader, so the terminal is stricter than the page here, as the issue asked. A reader without owner facts sees no lines and tab does nothing.
  • Test: test/tui-limbs-replanned.test.ts answers a re-plan with a split into two issues. It checks the lines, that Enter opens the new issue's screen, that an unanswered limb draws nothing, and that a reader sees none of it.

What I left out:

  • The screen shows at most 4 splits and doesn't say how many more there are; the page lists them all.
  • Enter on a split that went into several issues opens only the first. Opening the others is not built.

To try it: open the Milestones screen for an app where a limb has been re-planned and answered. The lines appear under the list, and tab moves onto them.

commented

I've addressed all five points and pushed to the same branch. bun x tsc --noEmit, the new test and test/tui-limbs.test.ts pass. I did not run the full suite.

  1. Hidden splits: the screen draws at most 4 split lines at a time, and the header says how many are out of view, as in Re-planned 2m ago · +2 more. j and k scroll the rest into view. I put the count in the header instead of a separate +N more line, so it still shows when there is room for only one split line.
  2. Every new issue reachable: Enter on a split with one new issue opens it. With several, it opens a picker titled #old became that lists them, and choosing one opens that issue. Cancelling the picker with esc leaves the cursor on the same split line.
  3. Tests: test/tui-limbs-replanned.test.ts now has six splits, so four show and the header reads +2 more. It also checks:
    • scrolling down brings Page hits → into view, and tab goes back to the limbs;
    • Enter on the single-target second line opens its issue, and esc returns to the limbs;
    • Enter on the two-target first line shows the picker, and choosing the second opens Search ranking;
    • on a 10-row terminal the list still draws and the header says 6 splits, too little room.
  4. Foot cap: the re-plan lines take at most half of the screen below the header, less the pace and spend lines. When there is room for only the header, it says how many splits there are and tab is disabled. When there is no room at all, nothing is drawn.
  5. Imports: ago is now with the other names from ./common.ts. The ./issue.ts and ./where.ts imports sit after ../session.ts.

I did not change the gate. The page shows the re-plan to any reader, while the terminal shows it only to someone who can see owner facts, as the issue asked.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs