From 1f76e7d24d5ec4647b0338a731c70b0ad435964f Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Tue, 3 Nov 2026 15:34:33 +0100 Subject: [PATCH] Present analysis stages as a clear status checklist --- crates/rundown-converter/src/gui/review.rs | 41 ++++++++++------------ docs/rundown-converter.md | 6 ++-- 2 files changed, 22 insertions(+), 25 deletions(-) diff --git a/crates/rundown-converter/src/gui/review.rs b/crates/rundown-converter/src/gui/review.rs index e755da7..2b18525 100644 --- a/crates/rundown-converter/src/gui/review.rs +++ b/crates/rundown-converter/src/gui/review.rs @@ -326,28 +326,25 @@ impl App { let Some(a) = &self.analysis else { return; }; - ui.horizontal_wrapped(|ui| { - for (stage, label, explanation) in [ - ( - 1, - "Columns", - "Column roles inferred and all relevant timing cells checked", - ), - (2, "Gaps", "Untimed breaks and schedule gaps identified"), - ( - 3, - "Schedule", - "Complete intermediate schedule constructed from timings", - ), - ( - 4, - "Checks", - "Schedule checked for invalid durations, backward times and overlaps", - ), - ] { - let (symbol, color, status) = stage_state(a, stage, self.dirty); - ui.colored_label(color, format!("{symbol} {label}")) - .on_hover_text(format!("{status}\n{explanation}")); + ui.scope(|ui| { + ui.spacing_mut().item_spacing.y = 2.0; + for (stage, label) in [(1, "Column detection"), (2, "Gap detection"), (3, "Schedule construction"), (4, "Consistency checks")] { + let (symbol, color, _) = stage_state(a, stage, self.dirty); + let status = match symbol { + "OK" => "Passed", "!" => "Needs attention", "~" => "Recheck required", _ => "Not checked", + }; + ui.horizontal(|ui| { + let (rect, _) = ui.allocate_exact_size(egui::vec2(13.0, 13.0), egui::Sense::hover()); + ui.painter().rect_stroke(rect, 2.0, egui::Stroke::new(1.0_f32, color), egui::StrokeKind::Inside); + if symbol == "OK" { + ui.painter().add(egui::Shape::line(vec![ + rect.left_center() + egui::vec2(3.0, 0.0), + rect.center_bottom() + egui::vec2(-1.0, -3.0), + rect.right_top() + egui::vec2(-2.0, 3.0), + ], egui::Stroke::new(1.5_f32, color))); + } + ui.colored_label(color, format!("{label} ยท {status}")); + }); } if !a.automatically_ignored_rows.is_empty() { ui.small(format!("{} rows ignored automatically", a.automatically_ignored_rows.len())) diff --git a/docs/rundown-converter.md b/docs/rundown-converter.md index 6ef86c1..c18e9a7 100644 --- a/docs/rundown-converter.md +++ b/docs/rundown-converter.md @@ -46,9 +46,9 @@ resolution profiles and usable from the CLI: preceding event. When both options are enabled, this runs before warning exclusions so notes are kept wherever possible. -Changes take effect on analysis / recheck. A compact summary shows **Columns**, **Gaps**, -**Schedule**, and **Checks**: green OK labels mark success, amber marks attention or -pending recheck, and gray marks steps not yet checked. Hover for explanations. +Changes take effect on analysis / recheck. A checklist shows **Column detection**, **Gap detection**, **Schedule construction**, +and **Consistency checks**. Checked green boxes mean Passed; other steps explicitly +say Needs attention, Recheck required, or Not checked. Blocking column errors open **Columns** automatically. Row corrections become available after the timing mapping is unambiguous and rechecked. Spreadsheet cells marked as times display as `HH:MM:SS` in samples and the inspector; the