Repository navigation
Review session page: follow one review step by step - #301
Merged
Merged
Conversation
Adds /reviewer/session?id=<job id>, the page a PR's Coderhelm review check links to. It shows the PR, what asked for the review, its status, start and finish times, every step as a timeline (details on demand), and once done the verdict, finding count and a link to the posted review. It refreshes every 4s while the review runs and the tab is visible. The PR page links to its latest session. Docs explain the check.
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.
Summary
The dashboard half of review sessions (backend: coderhelm-platform #445). A PR's "Coderhelm review" check links to
/reviewer/session?id=<job id>, a page that follows one review step by step.Changes
/reviewer/session?id=(static export, query param likereviewer/detailandreviewer/pr). CallsGET /api/reviewer/session, refreshes every 4s whilein_flightand the tab is visible, and refreshes at once when the tab comes back.reviewer/session/sections.tsx: a notice (reason, or whatretrying,stalledandfailedmean), the outcome when done (verdict, finding count, link to the posted review), facts (trigger, kind and try, commit, started, finished, duration), and the step timeline (offset from the start, exact time on hover,detailbehind a "More" toggle).reviewer/session/session.ts: status look per status (reviewing, done, skipped, retrying, failed, stalled), trigger and kind words, duration and step offsets, finding count words.reviewer/pr: a "View session" link when the gate response hassession_id.ReviewSessionandSessionSteptypes inlib/api, held to the platform's OpenAPI document (openapi-fields.tsregenerated at Changelog: November 17 replies release notes #445's merge commit, new lines inapi-contract.ts).Verification
npm run lint,npm run typecheck,npm run check:openapi,npm run buildin dashboard/.e2e/reviewer-session.spec.ts(4 helper tests, 5 page tests: live refresh then verdict, polling stops when done and while the tab is hidden, skipped and retried notices, missing, malformed, forbidden and error states, the PR page link).