Skip to content

feat(inbox): keep Updated and Decisions columns, show decision progress - #3

Merged
0xDirmes merged 3 commits into
mainfrom
factory/linear-be-2569
Dec 5, 2026
Merged

0xDirmes merged 3 commits into
mainfrom
factory/linear-be-2569

Conversation

@0xDirmes

@0xDirmes 0xDirmes commented Dec 5, 2026 •

Copy link
Copy Markdown
Owner

Linear ticket: https://linear.app/agorafinance/issue/BE-2569/simplify-the-inbox-columns-and-show-decision-progress-on-each-pr

Summary

BE-2569 asked for two things: give the PR title more room by keeping only Updated and Decisions beside the PR details, and make the Decisions column show how far each run has been decided. The change rebuilds the winning prototype variant, Decision detail with commit count, without its variant switcher.

 <ListRow>
   <PR details> title · repo · #n by @author · GitHub · <PrChangeStats> (inline, unchanged)
-  Lines (+/−)  Findings  Opened
   Updated
-  <Decisions> → <StatusRing> + label
+  <Decisions> → decisionSignal(r)  (src/lib/inboxStatus.ts)

Each run state gets its own label, decided by a pure function so unit tests can call it directly. A stale run overrides every other state.

decisionSignal(run)
  stale       → amber commit icon  "N new commit(s)"  / "Since this run · M pending"
  no run      → "not reviewed"
  no findings → "No findings"
  unread      → filled blue dot    "Unread"
  in progress → outlined blue dot  "M pending"          (findings − accepted − omitted)
  all decided → green check        "All decided"        / "A accepted · O omitted"

Every label sits beside a fixed 16px icon slot, so the two lines of the stale state line up with the two lines of the completed state. The colors are existing app tokens (accent, decision-accept, attention), and the text always says the same thing the color does. Search, author filter, Hide done, stack expansion, row navigation, needs-action order, and sorting by Updated and PR number all work as before.

Decisions

  • Unread always shows "Unread": a run nobody has opened shows "Unread" even if an agent has already decided all its findings. This follows reviewState and the sort rank. The prototype would show "All decided" there.
  • Stale overrides no-findings too: a run with no findings that has gained commits shows the new-commit treatment, because the ticket says stale wins over every run state.
  • Removed sort keys: the lines, findings and created sort keys are gone from InboxSort along with their headers, since nothing could select them. The server still sends those row fields.
  • Pending count: it never goes below zero.
  • New icon: Octicon gains a git-commit icon.

Left out

The prototype's variant switcher and the variants that lost, factory configuration, deployment, admission, GitHub submission behavior, and any author-filter changes.

Evidence

These screenshots come from pnpm demo driven with Playwright. The demo's own inbox is empty, so the script loaded one inbox of synthetic PRs covering unread, partly decided, all omitted, mixed completion, no findings, no run, and stale runs with one and with four commits, including a stale run whose findings are all decided.

  • Before: Before: Lines, Findings, Opened columns and progress rings
    After: After: only Updated and Decisions, with each run state labeled

After: Decisions column at 2x, showing the stale and completed lines aligned

Tests:

  • Unit tests: five new decisionSignal tests in src/lib/inboxStatus.test.ts failed until the function existed, then passed. The sort test in inboxFilters.test.ts now uses updated.
  • Browser tests: the new tests/browser/inbox-decisions.spec.ts renders every state in one inbox. It checks the headers (only Updated and Decisions), the inline change counts with their icons, each state's label and counts, the stale and completed colors, the line alignment, Updated sorting with an expanded stack, and that clicking a label opens the PR. With the src/ changes stashed, 2 of its 3 tests fail. The Updated-sorting test passes on both because that behavior is unchanged.
  • Updated spec: inbox-list.spec.ts now checks for the pending label instead of the old 16/20 ring, and only the two remaining sort headers.

Commands:

  • pnpm format:check: no fixes needed.
  • pnpm lint: clean.
  • pnpm typecheck: passes.
  • pnpm test: 256 passed, 0 failed.
  • pnpm build: built.
  • pnpm test:browser: 99 passed.

Merge Danger

Door: two-way

The change is presentation only, with no data, store or API changes. Reverting the commit restores the old columns.

Blast Radius: inbox

This only changes the inbox list layout. Reviewers lose the Lines, Findings and Opened sort options, and the Decisions labels change wording.

🤖 Generated with Claude Code

Factory record

pnpm check passed on the runner at 97b6338.

  • Unit tests (pnpm test): 257 passed, 0 failed.
  • Browser tests (pnpm test:browser): 99 passed.

Review fixes:

  • 97b6338 src/lib/inboxStatus.ts:58: decisionSignal now shows "All decided" with the accepted and omitted counts for an unread run that has nothing pending. reviewState is unchanged, so the run still sorts with unread runs and Hide done keeps it. A unit test and a browser row in inbox-decisions.spec.ts cover this case; both failed before the change.
  • 3cf05bc tests/browser/inbox-decisions.spec.ts:74: The spec now runs with test.use({ locale: "en-US", timezoneId: "UTC" }). Before the change it failed under TZ=America/Los_Angeles because the page showed Dec 3. It now passes there and in UTC.

…ecision progress

Drop the Lines, Findings and Opened columns (and their sort keys) so the PR
title has room; categorized change counts stay inline under the title.

Decisions now reads each run's state from decisionSignal() in inboxStatus:
filled dot for Unread, outlined dot with the pending count, a green check
with "All decided" and accepted/omitted counts, "No findings", "not
reviewed", and an amber commit icon with "N new commits" / "Since this run ·
M pending" that takes precedence over every other run state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@0xDirmes 0xDirmes left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed with revUI — 2 inline comments.

Comment thread src/lib/inboxStatus.ts Resolved
Comment thread tests/browser/inbox-decisions.spec.ts Resolved
revUI Factory and others added 2 commits December 5, 2026 06:37
The spec asserts "Dec 4" for the Updated date and the absence of "Nov 1" for
the removed Opened date. Both come from date-only fixtures formatted in the
browser's locale and time zone, so a browser west of UTC read "Dec 3" and
failed, and could pass the Opened check with the column still present.
Pin en-US and UTC for this spec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cided

When every finding had a saved decision before anyone opened a non-stale
run, the Decisions column showed only "Unread" and hid "All decided" with
its accepted and omitted counts. decisionSignal now shows the completion
summary for an unread run with nothing pending. reviewState is unchanged,
so the run still sorts with unread runs and Hide done keeps it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@0xDirmes
0xDirmes marked this pull request as ready for review December 5, 2026 06:42
@0xDirmes
0xDirmes merged commit 5f7e513 into main Dec 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant