Repository navigation
The review session page leads with the decision and what blocks the merge - #539
Conversation
…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.
| {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> |
There was a problem hiding this comment.
💬 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.
| </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>} |
|
💚 Post-merge health check passed: the deploy of
|
selfhost/versions.json dashboardRef moves from 1002bc77 to d5158c3d, the dashboard main's newest commit (CI green). It carries CoderHelm/coderhelm#539.
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_onon the session API). Older sessions without them still read correctly.Changes
file:linelinked to the file at the reviewed commit, and the reasoning with the fix.app/reviewer/finding-card.tsx, shared with the review page.verification,cost_usdandgoes_on;openapi-fields.tsregenerated from the platform branch.Verification
npm run lint,npm run typecheck,npm run builde2e/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.tsande2e/audit-reviewer.spec.tsupdated and passing.e2e/reviewer-session-shots.spec.tswrites the page in each state at 1440 and 390 wide whenE2E_SHOTS_DIRis set.