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

A pull's opened, reviewed and merged posts fold into one timeline post that shows its latest state #5814

opened this

Merged 41d 11h ago, live in production

A pull's pull.opened, pull.reviewed and pull.merged events in the feed window now fold into one post. The post takes the id, time and actor of the newest event, so it ranks where that event would. It reads by the latest state, e.g.

Notes

opened this

A pull's pull.opened, pull.reviewed and pull.merged events in the feed window now fold into one post. The post takes the id, time and actor of the newest event, so it ranks where that event would. It reads by the latest state, e.g. merged a pull request: <title> · opened 3 hours ago, 2 reviews.

The new test and the existing feed, home-feed and MCP suites pass. The type check could not run here because the bun types are missing in the sandbox, so I did not run it, and I did not run design-lint (nothing in src/web/ changed).

  • Where: the fold is in src/feed/items.ts (foldPulls). It is in candidatesFor, so the web feed, the HTTP feed and MCP feed all fold the same way. Chips and the cursor are untouched, since the fold happens before them.
  • Failed runs: a run.finished failure is not a pull event, so it keeps its own post.
  • Single events: a pull with only one event in the window reads exactly as before.
  • Test: test/feed-fold.test.ts pages 30 folded pulls (each opened, reviewed twice and merged) at 7 per page. It finds each pull exactly once, all reading "merged … opened …, 2 reviews", plus the one failed-run post. It also covers the single-event case. I did not add a separate test for the MCP path.

I did not fold across the window's edge: only events inside the 300 the feed reads are counted, so an old open or review beyond it is not mentioned. Times read "3 hours ago", not "3 h ago", because they reuse the feed's existing ago wording.

Closes #5808

commented

A pull's pull.opened, pull.reviewed and pull.merged events in the feed window now fold into one post. The post takes the id, time and actor of the newest event, so it ranks where that event would. It reads by the latest state, e.g. merged a pull request: <title> · opened 3 hours ago, 2 reviews.

The new test and the existing feed, home-feed and MCP suites pass. The type check could not run here because the bun types are missing in the sandbox, so I did not run it, and I did not run design-lint (nothing in src/web/ changed).

  • Where: the fold is in src/feed/items.ts (foldPulls). It is in candidatesFor, so the web feed, the HTTP feed and MCP feed all fold the same way. Chips and the cursor are untouched, since the fold happens before them.
  • Failed runs: a run.finished failure is not a pull event, so it keeps its own post.
  • Single events: a pull with only one event in the window reads exactly as before.
  • Test: test/feed-fold.test.ts pages 30 folded pulls (each opened, reviewed twice and merged) at 7 per page. It finds each pull exactly once, all reading "merged … opened …, 2 reviews", plus the one failed-run post. It also covers the single-event case. I did not add a separate test for the MCP path.

I did not fold across the window's edge: only events inside the 300 the feed reads are counted, so an old open or review beyond it is not mentioned. Times read "3 hours ago", not "3 h ago", because they reuse the feed's existing ago wording.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs