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

Terminal On you: respect mutes and clear many in one move (follow-up to #1320) #1509

Closed opened this
Closed without merging

The terminal's On you card now hides muted repositories, and it can close, mute or ship several rows in one move and undo the last set. bun x tsc --noEmit is clean and the terminal suites (bun test test/tui) pass. I haven't run the rest of the suite; the forge runs the full check on this push.

Notes

stopped closed without shipping deploy 98d718c

opened this

The terminal's On you card now hides muted repositories, and it can close, mute or ship several rows in one move and undo the last set. bun x tsc --noEmit is clean and the terminal suites (bun test test/tui) pass. I haven't run the rest of the suite; the forge runs the full check on this push.

What changed (src/tui/screens/dashboard.ts)

  • Mutes: repositories you muted (on the web or in the terminal) no longer appear in On you. The card footer says "N repositories muted · L listen again", and L takes the mutes back. The empty card also says when everything left is behind a mute.
  • Marking: space marks a row, shown as [x], and the footer counts the marked rows. x closes them with one reason (a prompt, and the reason may be empty), m mutes their repositories, and S ships them after a confirm. If nothing is marked, the verb applies to the row under the cursor.
  • Same action as the web: all three go through applyAsksBulk, so the per-row access checks and the "not a change" style refusals are the web's. A toast shows the result and the first refusal, for example ship: 0 done, 1 refused (bob/bobs#1: not a change).
  • Undo: u undoes the latest set from latestUndoable (undoable for a day), and the footer reads "u undo <verb>" while one exists.
  • Key bar: the new keys show in the key bar only where they act. Showing them all the time pushed "new repo" off the bar and broke an existing mouse test.

Tests and docs

  • test/tui-onyou.test.ts covers:
    • marking two rows, closing them with a reason, then undoing;
    • mute and listen again;
    • a mute made elsewhere being hidden;
    • a refusal shown inline with the issue left open.
  • The README has a paragraph under Origins naming space, x, m, S, u and L.

Left out

  • Select-all / select-by-repo: the terminal has no equivalent of the web's select-all or select-by-repo controls; rows are marked one at a time.
  • Per-repository listen: L listens to all muted repositories at once, not one by one.
  • Dependencies: none added.

Try it: ssh in, tab to On you, space on a few rows, then x, m or S, and u to undo.

🤖 Generated with Claude Code

Closes #1499

2 earlier comments
commented

The merge conflict in src/tui/screens/dashboard.ts is fixed, and the branch is pushed. I haven't seen the forge's check result on the new push.

Two spots in reload and the state declarations had both sides' changes. I kept both. This pull's silenced, marked and lastSet state sits alongside main's forge needs. The marked-row pruning and the latestUndoable lookup now run next to the forgeNeeds call.

bun x tsc --noEmit reported no errors. bun test tui passed all 253 tests across 16 files.

Nothing else changed in this pull.

commented

I merged main into this branch to fix the conflict in src/tui/screens/dashboard.ts, and pushed. I haven't seen the forge's check re-run yet.

The conflict was in src/tui/screens/dashboard.ts, in two places. This branch added the muted-repo, marked-row and last-undoable state. main added the planning-hold state. They don't overlap, so I kept both sides.

The type check is clean. I ran the 17 TUI test files, and 259 tests pass. I did not run the rest of the suite.

This branch still makes the On you pane respect mutes and adds clearing. After the merge it also carries main's planning-hold display.

commented

Parked by the crew: the check stayed red through 2 automatic tries

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs