UI text: replace 'refuted' with 'suspect' in user-facing strings.

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 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 10:58:48 +02:00
parent 300e871aed
commit ae36026768
2 changed files with 7 additions and 7 deletions

View File

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

View File

@@ -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);
}