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

The terminal's About card opens the repository's events with `v`: newest first, paged, as MCP `events` reads them #7469

opened this

Merged 38d 1h ago, live in production

v on the About card now opens the repository's events in the terminal, newest first, and n loads the next page. The 3 new tests, the 32 test files scripts/fast.ts named (314 tests), bun test test/mcp-size.test.ts and design-lint all pass, and tsc --noEmit is clean. The branch is pushed.

Notes

opened this

v on the About card now opens the repository's events in the terminal, newest first, and n loads the next page.

The 3 new tests, the 32 test files scripts/fast.ts named (314 tests), bun test test/mcp-size.test.ts and design-lint all pass, and tsc --noEmit is clean. The branch is pushed.

  • Screen: src/tui/screens/events.ts is new. It reads through eventsPage, the same read behind MCP events and the API, 50 at a time, with n continuing from the returned cursor.
  • Lines: each line is the age, then who, then what, e.g. alice pushed: b59 or alice opened an issue: #1. The wording comes from eventActor and eventVerb in design/activity.ts, the vocabulary the Atom feed uses.
  • Visibility: it is the read's own. A reader sees no webhook event and no URL; an admin sees "added a webhook", and the line never prints the URL either.
  • Key hint: v events sits right after y in the About card's hints, so the footer doesn't cut it off for admins, who have the most keys.
  • Tests: test/tui-events.test.ts records 62 events, opens the card, checks the order, pages past 50 to the oldest event, and checks a reader sees no webhook.
  • MCP: nothing changed there.
  • Left out: subjects are only #N or a push's branch, so an issue's title isn't shown. There's no filter by kind, and no live refresh while the screen is open.
  • To try: open any local repository, press I, then v. j/k move, n loads the next page, esc goes back.

Closes #7442

2 earlier comments
commented

v on the About card now opens the repository's events in the terminal, newest first, and n loads the next page.

The 3 new tests, the 32 test files scripts/fast.ts named (314 tests), bun test test/mcp-size.test.ts and design-lint all pass, and tsc --noEmit is clean. The branch is pushed.

  • Screen: src/tui/screens/events.ts is new. It reads through eventsPage, the same read behind MCP events and the API, 50 at a time, with n continuing from the returned cursor.
  • Lines: each line is the age, then who, then what, e.g. alice pushed: b59 or alice opened an issue: #1. The wording comes from eventActor and eventVerb in design/activity.ts, the vocabulary the Atom feed uses.
  • Visibility: it is the read's own. A reader sees no webhook event and no URL; an admin sees "added a webhook", and the line never prints the URL either.
  • Key hint: v events sits right after y in the About card's hints, so the footer doesn't cut it off for admins, who have the most keys.
  • Tests: test/tui-events.test.ts records 62 events, opens the card, checks the order, pages past 50 to the oldest event, and checks a reader sees no webhook.
  • MCP: nothing changed there.
  • Left out: subjects are only #N or a push's branch, so an issue's title isn't shown. There's no filter by kind, and no live refresh while the screen is open.
  • To try: open any local repository, press I, then v. j/k move, n loads the next page, esc goes back.
commented

Pressing v on the About card (I) now lists the repository's events newest first, 50 at a time. n loads the next page and esc goes back. The three changes @sentinel asked for are in and pushed. tsc --noEmit is clean and test/tui-events.test.ts passes; I did not re-run the wider test set or the MCP size test for these small edits.

  • README: one line beside the other About-card keys says what v shows, that n pages, and that the audience matches GET …/events and MCP events.
  • Rows: read() in src/tui/screens/events.ts now builds the rows once per page. There is one user lookup per page and none per frame.
  • Test: the About check now matches the v … events hint, so it fails if the binding is removed.

Roadmap: I can't name a roadmap item this serves. It comes from issue #7442, which wants a repository's history readable in the terminal without a browser, and it isn't one of the pipeline items. It adds one screen, makes no writes, and touches nothing in the pipeline. If that direction rules it out for now, a person can hold the pull.

commented

I added the stale-screen note to the README line, but I couldn't do what was blocking the pull, which is naming a roadmap item. The change is pushed on the same branch.

  • Roadmap item: none of the issues listed in the review, nor docs/VISION.md, names a terminal events screen, so I won't claim one. The nearest fit is the first pillar in docs/VISION.md, which says every developer depth is "one step deeper from any post". Issue #7442 asked for this screen directly. I didn't link it to any listed item.
  • Option (b): a person should decide whether to hold the pull until the pipeline items land. I agree it shouldn't be closed, and a rebase afterwards will be trivial.
  • Staleness: the README now says the screen reads once on opening and doesn't refresh while open. A refresh can come later.
  • Titles: lines still show only #N or a branch, not the issue title. Adding the title is the next step.
Sign in to join this conversation.

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

Keyboard shortcuts

Docs