From cb3c2c78848025e314e41daf78a9ae380575746d Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Tue, 17 Nov 2026 08:17:38 -0500 Subject: [PATCH] fix(ui): say replan in common-line findings and show & in the copy-tabs label Common-line review findings said "plan cutting again" while the rest of the feature says replan, and one read as a statement instead of an action. The Copy Tabs & Pierce label rendered its ampersand as a mnemonic underline. Co-Authored-By: Claude Opus 5.5 --- OpenNest.Core/Diagnostics/CommonLineReview.cs | 12 ++++++------ OpenNest/Forms/MachineConfigForm.cs | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/OpenNest.Core/Diagnostics/CommonLineReview.cs b/OpenNest.Core/Diagnostics/CommonLineReview.cs index f9ca69b3..90b928a7 100644 --- a/OpenNest.Core/Diagnostics/CommonLineReview.cs +++ b/OpenNest.Core/Diagnostics/CommonLineReview.cs @@ -73,7 +73,7 @@ internal static class CommonLineReview if (singlePass != null) findings.Add(new(PostVerificationKind.CommonLine, plateNumber, Number(plate, singlePass), null, "The plate is set to cut its common lines twice, but this part's program cuts a shared line " - + "once. Plan cutting again before posting.") + + "once. Replan before posting.") { Location = singlePass.BoundingBox?.Center }); return; } @@ -87,7 +87,7 @@ internal static class CommonLineReview if (covering.Count == 0) { findings.Add(new(PostVerificationKind.CommonLine, plateNumber, first, second, - "This common line is not cut. Plan cutting cuts each shared line once; " + "This common line is not cut. Replan to cut each shared line once, " + "or set the plate to cut its common lines twice.") { Location = middle }); continue; @@ -96,7 +96,7 @@ internal static class CommonLineReview { findings.Add(new(PostVerificationKind.CommonLine, plateNumber, first, second, "This common line is cut more than once (a plate not planned since the parts were joined cuts " - + "it twice). Plan cutting again before posting, or set the plate to cut its common lines twice.") + + "it twice). Replan before posting, or set the plate to cut its common lines twice.") { Location = middle }); continue; } @@ -105,8 +105,8 @@ internal static class CommonLineReview var partner = ReferenceEquals(owner, span.First) ? span.Second : span.First; if (Number(plate, owner) is int o && Number(plate, partner) is int p && o > p) findings.Add(new(PostVerificationKind.CommonLine, plateNumber, o, p, - "The shared line is cut after the partner whose remainder ends in its kerf. Plan cutting " - + "again, or move the part that cuts it ahead of its partner.") + "The shared line is cut after the partner whose remainder ends in its kerf. Replan, " + + "or move the part that cuts it ahead of its partner.") { Location = middle }); } } @@ -184,7 +184,7 @@ internal static class CommonLineReview findings.Add(new(PostVerificationKind.CommonLine, plateNumber, Number(plate, members[i]), Number(plate, partner), move.Layer == LayerType.CommonLine ? $"A shared cut of '{members[i].BaseDrawing.Name}' runs into '{partner.BaseDrawing.Name}', its " - + "common-line partner. Rejoin the parts one kerf apart and plan cutting again." + + "common-line partner. Rejoin the parts one kerf apart and replan." : $"A lead of '{members[i].BaseDrawing.Name}' runs into '{partner.BaseDrawing.Name}', its " + "common-line partner one kerf away. Move the lead off the shared edge (Plan Cutting does).") { Location = move.Curve?.Midpoint ?? move.End }); diff --git a/OpenNest/Forms/MachineConfigForm.cs b/OpenNest/Forms/MachineConfigForm.cs index f22609bb..b909dbd9 100644 --- a/OpenNest/Forms/MachineConfigForm.cs +++ b/OpenNest/Forms/MachineConfigForm.cs @@ -956,6 +956,7 @@ namespace OpenNest.Forms { Text = $"{(source.Cutting == null ? "No tabs & pierce of its own" : "Its tabs & pierce")} to:", AutoSize = true, + UseMnemonic = false, Margin = new Padding(3, 8, 6, 0), }); foreach (var (text, pick) in new (string, Func)[]