Skip to main content

Module report_view

Module report_view 

Source
Expand description

A structured view of the run report, for the web UI.

crate::report::run renders a run as ANSI text, and that stays the one text implementation (the TUI and magi show read it). This module is the second reader of the same RunState: it decides which sections exist and in what order the way report::run does, and leaves every judgement to the accessors the text report already uses (e2e_status, gate_status, Severity::blocks, ReviewRound::incomplete, final_votes, handed_off_with_open_findings). Nothing here re-derives a verdict; when a section is added to the text report, add it here too.

The one rule a reader of this file must keep: a tally below quorum is never decided. Tally::decided is met_quorum, and the winner it names is provisional otherwise, so a stalled run cannot render as a settled one.

Structs§

BaseSyncView
The base-sync state.
CandidateRow
One implementation.
CommandView
A shell command’s outcome.
E2eView
The e2e leg of a round.
FindingView
One finding.
FixView
What the fixer reported.
FollowupRow
A filed follow-up.
Head
Fields every section shares.
Header
The top block.
JobGroup
Jobs of one seat.
JobRow
One reported command.
JudgeRow
One judge’s ranking.
MergeView
What happened to the branch.
OperatorFindingRow
One operator-fix finding.
OperatorFixView
An operator-requested fix.
ReleaseBumpView
The release bump.
ReviewerRow
A reviewer’s own line.
RevoteRow
A revote.
RoundView
One review round.
RunReportView
The whole report.
TallyView
The count.
VerdictView
A verdict vote.
VoteRow
One judge’s final vote.

Enums§

Section
One card.
Tone
How a section should read at a glance.

Constants§

SCHEMA
Bumped when a field changes meaning; the client falls back to the raw text for a schema it does not know rather than render a guess.

Functions§

build
Build the view. live is RunState::liveness, exactly what the text route passes to report::active_seats.