From ae36026768da8e22cec50010349c201e87cac5e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Fri, 15 May 2026 10:58:48 +0200 Subject: [PATCH] UI text: replace 'refuted' with 'suspect' in user-facing strings. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The analyze screen already used `[Suspect Power]`; the dashboard and the `load` summary still said 'refuted', which felt harsher and was out of sync. Now consistent everywhere. - Dashboard module row: `power: X confirmed, Y suspect gnd: K`. - Load summary: `types: N power, M gnd, K suspect Power (name only — kept as Other)`. Internal variable renamed `n_pwr_refuted` → `n_pwr_suspect`. Co-Authored-By: Claude Opus 4.7 --- src/tui/commands.cpp | 2 +- src/tui/screen_dashboard.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/tui/commands.cpp b/src/tui/commands.cpp index ab2bd6e..1d47862 100644 --- a/src/tui/commands.cpp +++ b/src/tui/commands.cpp @@ -137,7 +137,7 @@ void Tui::RegisterCommands() { Print(" types: " + std::to_string(inf.power) + " power, " + std::to_string(inf.gnd) + " gnd, " + std::to_string(inf.kept_other) - + " name-power refuted by analysis"); + + " suspect Power (name only — kept as Other)"); } catch (const std::exception &e) { Print(std::string("load failed: ") + e.what()); } diff --git a/src/tui/screen_dashboard.cpp b/src/tui/screen_dashboard.cpp index e6e4e9c..88f0db8 100644 --- a/src/tui/screen_dashboard.cpp +++ b/src/tui/screen_dashboard.cpp @@ -185,20 +185,20 @@ Component Tui::BuildDashboardScreen() { // Power-signal breakdown for this module — same classification as // the analyze screen so the dashboard summary stays consistent. - int n_pwr_ok = 0, n_pwr_refuted = 0, n_gnd = 0; + int n_pwr_ok = 0, n_pwr_suspect = 0, n_gnd = 0; for (auto &skv : *m->signals) { Signal *s = skv.second; SignalType named = infer_signal_type(s->name); if (named == SignalType::GndShield && s->type == SignalType::GndShield) ++n_gnd; else if (named == SignalType::Power && s->type == SignalType::Power) ++n_pwr_ok; - else if (named == SignalType::Power && s->type == SignalType::Other) ++n_pwr_refuted; + else if (named == SignalType::Power && s->type == SignalType::Other) ++n_pwr_suspect; } - if (n_pwr_ok + n_pwr_refuted + n_gnd > 0) { + if (n_pwr_ok + n_pwr_suspect + n_gnd > 0) { std::string label = "power: " + std::to_string(n_pwr_ok) - + " confirmed, " + std::to_string(n_pwr_refuted) - + " refuted gnd: " + std::to_string(n_gnd); + + " confirmed, " + std::to_string(n_pwr_suspect) + + " suspect gnd: " + std::to_string(n_gnd); auto el = text(" " + label); - if (n_pwr_refuted > 0) el = el | color(Color::Yellow); + if (n_pwr_suspect > 0) el = el | color(Color::Yellow); mod_rows.push_back(el); }