Skip to content

The review session page leads with the decision and what blocks the merge - #539

Merged
coderhelm[bot] merged 1 commit into
mainfrom
reviewer-session-page
Dec 3, 2026
Merged

coderhelm[bot] merged 1 commit into
mainfrom
reviewer-session-page

Conversation

@nambok

@nambok nambok commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

The review session page (/reviewer/session?id=) now leads with what CoderHelm decided and why, then what holds the merge, then the checks it ran, then the notes. The steps, time and cost move to a side panel and a folded timeline. Before, the page opened on a verdict pill and a count, never showed a finding (they were one click away on another page), and put the step log, the file table and the facts in equal cards one after another.

Pairs with the platform change: CoderHelm/coderhelm-platform#961 (the checks, the cost and goes_on on the session API). Older sessions without them still read correctly.

Changes

  • Opening card: one tone, a headline ("Changes requested", "Approved", "Reviewing now", "The review didn't finish", "Part 1 of 3 read") and one sentence on why: the review's own reason without the verdict it repeats, else the counts, else what it is on now. Under it, what the change does, "1 blocks the merge · 2 notes", "Checks: 3 of 4 passed · 1 couldn't run", and the review on GitHub. Every state has one, so no state ends in a blank or a second box saying the same thing.
  • Blocks the merge: open, one card per finding: severity, title, file:line linked to the file at the reviewed commit, and the reasoning with the fix.
  • Checks CoderHelm ran: each command with Passed, Failed, Couldn't run or Didn't run, the folder, and a plain reason; what was left to the pull request's CI; "checks are off" with a link to the Reviewer's settings. Reviews kept before the checks were data show the review's own Verification section.
  • Notes: folded, one line each, most serious first, each opening to its reasoning.
  • Details panel: status, what asked for it, commit, start, time taken, model cost, and links to the pull request, the review on GitHub, rating the review, and every review of the pull request. Beside the content on a wide screen, after it on a phone.
  • Timeline: open while the review runs, after it stopped, or for one part of a review read in parts; folded once there is a verdict, and never snapped shut while someone reads it. A part reads "Read part 1 of 3", never "Done".
  • What the pull request changes: the overview, folded to one line.
  • "Review again" is offered on any finished review, never while one runs. The findings load from the review the session posted; if that fails, the counts stay and a line offers Try again and the review on GitHub.
  • The finding card moved to app/reviewer/finding-card.tsx, shared with the review page.
  • Types and contracts for verification, cost_usd and goes_on; openapi-fields.ts regenerated from the platform branch.

Verification

  • npm run lint, npm run typecheck, npm run build
  • e2e/reviewer-session-states.spec.ts (new): approved, changes requested, in progress, failed (and a viewer), a review read in parts (and an older part from its reason alone), findings that fail to load, checks from an older review's text, and checks turned off. Each state checks the page text for template plurals, internal keys, raw codes and hand-off words, and that a phone never scrolls sideways.
  • e2e/reviewer-session.spec.ts and e2e/audit-reviewer.spec.ts updated and passing.
  • e2e/reviewer-session-shots.spec.ts writes the page in each state at 1440 and 390 wide when E2E_SHOTS_DIR is set.

…erge

The page opened on a verdict pill and a count, never showed a finding,
and stacked the step log, the file table and the facts as equal cards.
A part of a review read in parts showed "Done" beside "didn't finish",
and a failed review said it didn't finish twice.

- An opening card for every state: a headline, one sentence on why (the
  review's own reason, else the counts, else what it is on now), what the
  change does, what blocks the merge and how the checks went.
- What blocks the merge, open, each with file:line at the reviewed commit,
  why it matters and the fix; the notes folded below, most serious first.
- The checks CoderHelm ran: each command with its result and a plain
  reason; what was left to the pull request's CI; checks turned off.
- Status, trigger, commit, time, model cost and links in a side panel;
  the timeline folded once there is a verdict; the overview folded.
- The finding card is shared with the review page.
- e2e for approved, changes requested, in progress, failed, a review read
  in parts, findings that fail to load, and older sessions.

@coderhelm coderhelm Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Approved with notes 04de440 (merged)

{c.dir && c.dir !== "." && <span className="text-xs text-zinc-400">in {c.dir}</span>}
</div>
{c.why && <p className="mt-0.5 text-zinc-400 [overflow-wrap:anywhere]">{sentence(c.why)}.</p>}
</div>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💬 FYI: A check's reason is run through sentence, which lowercases and rewrites it (correctness, not verified)

sentence in finding-card.tsx is built for one-word severity values: it uppercases the first letter, lowercases everything after it, and replaces _ with spaces. SessionCheck.why is free text written by the platform, such as why a command failed or couldn't run. It can name tools, files and acronyms. For example, "no Playwright browsers installed" becomes "No playwright browsers installed", "CI" becomes "ci", and node_modules becomes "node modules". A reason that already ends in a period also renders as "..", because a "." is appended. The e2e case only asserts "The admin package has no typecheck script.", which is already lowercase after the first letter, so it passes on the broken behaviour. Capitalise only the first letter and strip one trailing period, then add a test case with a mixed-case reason. For example, a why of "Playwright browsers aren't installed." should render unchanged.

FYI, not a block: on the whole picture this is not a named correctness, security or data-loss problem to hold the merge on.

Suggested change
</div>
{c.why && <p className="mt-0.5 text-zinc-400 [overflow-wrap:anywhere]">{c.why.charAt(0).toUpperCase() + c.why.slice(1).replace(/\.$/, "")}.</p>}

@coderhelm

coderhelm Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

💚 Post-merge health check passed: the deploy of d5158c3 completed and stayed green for the full 15-minute watch window (no new failures vs. the pre-merge baseline).
Auto-merge

  • ✅ CoderHelm approved
  • ✅ CI green
    The rest is in the pull request description.

@coderhelm
coderhelm Bot merged commit d5158c3 into main Dec 3, 2026
18 checks passed
coderhelm Bot pushed a commit to CoderHelm/coderhelm-platform that referenced this pull request Dec 4, 2026
selfhost/versions.json dashboardRef moves from 1002bc77 to d5158c3d, the
dashboard main's newest commit (CI green). It carries CoderHelm/coderhelm#539.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant