Repository navigation
feat(inbox): keep Updated and Decisions columns, show decision progress - #3
Merged
Merged
Conversation
…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
commented
Dec 5, 2026
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
marked this pull request as ready for review
December 5, 2026 06:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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.
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
reviewStateand the sort rank. The prototype would show "All decided" there.lines,findingsandcreatedsort keys are gone fromInboxSortalong with their headers, since nothing could select them. The server still sends those row fields.Octicongains agit-commiticon.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 demodriven 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.After:
Tests:
decisionSignaltests insrc/lib/inboxStatus.test.tsfailed until the function existed, then passed. The sort test ininboxFilters.test.tsnow usesupdated.tests/browser/inbox-decisions.spec.tsrenders 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 thesrc/changes stashed, 2 of its 3 tests fail. The Updated-sorting test passes on both because that behavior is unchanged.inbox-list.spec.tsnow checks for the pending label instead of the old16/20ring, 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 checkpassed on the runner at 97b6338.pnpm test): 257 passed, 0 failed.pnpm test:browser): 99 passed.Review fixes:
decisionSignalnow shows "All decided" with the accepted and omitted counts for an unread run that has nothing pending.reviewStateis unchanged, so the run still sorts with unread runs and Hide done keeps it. A unit test and a browser row ininbox-decisions.spec.tscover this case; both failed before the change.test.use({ locale: "en-US", timezoneId: "UTC" }). Before the change it failed underTZ=America/Los_Angelesbecause the page showedDec 3. It now passes there and in UTC.