A failed feature has a mark of its own in the timeline and the Feature History (#972) (#1180)

A failed feature gets its own mark in the timeline and Feature History, distinct from warnings, with tests.
This commit is contained in:
CamWight authored and GitHub committed 2026-10-14 17:36:02 -04:00
1 parent f6a47a49d7
commit 731629a422
5 files changed
+125

No files matched your search

+4
View File
@@ -242,6 +242,10 @@ pub fn timeline(app: &mut SolveApp, ui: &mut egui::Ui) {
if *suppressed {
p.line_segment([br.left_bottom() + vec2(4.0, -4.0), br.right_top() + vec2(-4.0, 4.0)], Stroke::new(1.5, t.text_dim));
}
// A failed feature has a mark of its own, not only its colour (#972).
if err.is_some() {
icons::paint(&p, Rect::from_min_size(br.right_top() - vec2(10.0, 0.0), vec2(10.0, 10.0)), "error", t.panel, t.error, t.error);
}
if warn.is_some() && err.is_none() {
icons::paint(
&p,