Skip to content

Use premium semantic badges for IEC 61850 process values - #195

Merged
masarray merged 7 commits into
mainfrom
ui/premium-process-value-badges
Aug 16, 2026
Merged

Use premium semantic badges for IEC 61850 process values#195
masarray merged 7 commits into
mainfrom
ui/premium-process-value-badges

Conversation

@masarray

Copy link
Copy Markdown
Owner

Problem

Generic Boolean/process state was visually mapped as True/Closed/ON = red and False/Open/OFF = green. That makes a normal state look like alarm severity and trains users to read red as an error even when the point is simply asserted.

Visual strategy

Process state is now intentionally independent from quality/severity:

  • Active / True / Closed / ON → subtle ARSAS blue/cyan badge with a filled dot.
  • Inactive / False / Open / OFF → subtle slate badge with a hollow ring.
  • Intermediate / Bad DPC states → amber attention badge.
  • Numeric/text values → neutral soft-gray badge.
  • Red/green remain available for real fault/bad-quality vs success/availability semantics; they are no longer generic Boolean state colors.

The badge deliberately uses text + glyph shape + color, so color is not the only state cue. No per-cell drop shadows are used, preserving DataGrid virtualization performance.

Semantic hardening

A new presentation-only Iec61850ValueStatePresentation classifier is shared by live points and SOE entries. Bare numeric 0/1 is classified as inactive/active only when IEC discovery metadata proves the point is Boolean/SPS; analog values, counters and numeric set points such as 0 A or numeric 1 remain neutral. Explicit True/False and DPC Open [01] / Closed [10] / Intermediate [00] / Bad [11] remain unambiguous.

SOE entries now preserve the point IEC data type from the runtime so Event Log presentation has the same type evidence as Live Monitor.

Scope

The reusable ProcessValueBadgeTemplate is applied to:

  • IEC 61850 Explorer live Value column
  • Global Live Monitor Value column
  • Event Log Value column

The Command Panel current-value badge also adopts blue/slate state colors. Control action button colors, Quality presentation, Diagnostics WARN/ERROR colors, and availability/success colors are intentionally unchanged.

Regression coverage

Tests lock:

  • discrete state classification;
  • 0/1 type-awareness;
  • identical Event/Live classification;
  • shared premium badge template across all three process-value surfaces;
  • blue/slate palette and new non-severity explanatory copy;
  • removal of the old true is red / false is green SOE language.

Final branch contains only production source/model/runtime changes and regression tests; temporary patch tooling was removed before PR creation.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@masarray
masarray merged commit e11503b into main Aug 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant