From 2ea201140bf8c5e150ebf16671f30b4da9bb5651 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Fri, 16 Oct 2026 11:21:33 -0400 Subject: [PATCH] fix(desktop): drop the orange banner during part-order search The saturated orange Busy tone broke the panel's single alert style and read as a warning while planning was simply running. The part-order search now shows the same neutral banner as the other planning phases. Co-Authored-By: Claude Opus 5.5 --- OpenNest/Forms/CuttingInspectionPanel.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/OpenNest/Forms/CuttingInspectionPanel.cs b/OpenNest/Forms/CuttingInspectionPanel.cs index b14fd367..a2e034a6 100644 --- a/OpenNest/Forms/CuttingInspectionPanel.cs +++ b/OpenNest/Forms/CuttingInspectionPanel.cs @@ -200,8 +200,7 @@ internal sealed class CuttingInspectionPanel : UserControl ShowSettings(); } - // Busy marks the slow part-order search, so it stands out while the operator waits. - private enum Tone { Neutral, Good, Warning, Bad, Busy } + private enum Tone { Neutral, Good, Warning, Bad } /// Sets the headline banner and replaces the detail line (empty hides either). private void SetStatus(Tone tone, string text, string detail = null) @@ -556,7 +555,7 @@ internal sealed class CuttingInspectionPanel : UserControl var progress = new PostingProgress(context, value => { if (!closed && !inspection.CloseRequested && inspection.IsRunning && generation == run) - SetStatus(value.Phase == CuttingPlanPhase.Reordering ? Tone.Busy : Tone.Neutral, (plates.Length > 1 ? $"Planning plate {value.PlateNumber}: " : "Planning: ") + SetStatus(Tone.Neutral, (plates.Length > 1 ? $"Planning plate {value.PlateNumber}: " : "Planning: ") + PhaseText(value.Phase) + "…"); }); var work = inspection.BeginPlanning(batch, BeforePlan, progress); @@ -1111,7 +1110,6 @@ internal sealed class CuttingInspectionPanel : UserControl /// /// One alert style for the panel: a pale tint with dark text and border in the same hue. - /// Busy alone is a saturated orange so the slow part-order search stands out. /// private sealed class StatusBanner : FlowLayoutPanel { @@ -1136,7 +1134,6 @@ internal sealed class CuttingInspectionPanel : UserControl Tone.Good => (Color.FromArgb(221, 240, 214), Color.FromArgb(28, 88, 28)), Tone.Warning => (Color.FromArgb(252, 241, 200), Color.FromArgb(118, 78, 0)), Tone.Bad => (Color.FromArgb(248, 215, 215), Color.FromArgb(132, 20, 20)), - Tone.Busy => (Color.FromArgb(255, 136, 0), Color.FromArgb(70, 30, 0)), _ => (Color.FromArgb(236, 236, 236), Color.FromArgb(60, 60, 60)), }; foreach (var label in Controls.OfType