Present analysis stages as a clear status checklist

This commit is contained in:
Dandaedre 2026-11-03 15:34:33 +01:00
parent 00aa9439fe
commit 1f76e7d24d
2 changed files with 22 additions and 25 deletions

View File

@ -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()))

View File

@ -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