diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/README.md b/docs/ui-consistency/evidence/ot14-stale-contrast/README.md new file mode 100644 index 000000000..df4dca32d --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-stale-contrast/README.md @@ -0,0 +1,13 @@ +# OT-14 stale driver-status contrast + +The actual composed Hosts controls fixture reproduced9of9 sampled stale text pairs below4.5:1 (minimum2.0945). Before measurement includes the three opacity groups: header status, per-node health body and per-target resilience row. Approved semantic inks became pale after their parent’s50% opacity blended them with the white panel. + +Removed only these three opacity styles and updated one explanatory comment. Explicit health/resilience stale chips remain, as do the existing30-second local-receive health and15-second published resilience age boundaries. No health/resilience mapping, event subscription, command, authorization, timer, helper or public parameter changed. source-boundaries.json confirms the entire @code section is identical except that comment. + +The actual after measurement passes9of9 pairs, minimum5.554998. contrast.py measures computed text/background colors and composes observed ancestor opacity groups over their opaque underlay; before.json/after.json retain every pair and group. Both screenshots use the actual Chromium surface through CDP (fromSurface=true,captureBeyondViewport=false), avoiding the known Playwright real-zoom framing artifact. This bounded measurement concerns this actual supported light composition, not every possible host/theme. + +Both fixture Release builds have zero warnings/errors. Existing focused state/store/operation/diagnostic/Hosts parent suites pass58/58 with0skips (tests.log and ot14-stale-panel.trx). No new CSS-string test was introduced. The earlier full parent keyboard/phone/real200 matrix remains in ../../ot13-host-controls; this narrow style-only batch does not claim to rerun that entire matrix. + +The checked-in Hosts synthetic fixture now seeds an additional old resilience sample, so breaker/failure/in-flight/stale combinations are observable. Its local health receive clock naturally passes30seconds before measurements; no production clock or source age boundary was altered. Commands are synthetic and this run uses Reader. Test execution used the owned private SQL environment runner; the browser fixture uses local in-memory services and no real device, broker or SQL. + +Owned loopback18142 was stopped after both runs; cleanup.json confirms no listener. VoiceOver tests are excluded by user instruction. diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/after-build.log b/docs/ui-consistency/evidence/ot14-stale-contrast/after-build.log new file mode 100644 index 000000000..2ef4116fd --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-stale-contrast/after-build.log @@ -0,0 +1,47 @@ + + Determining projects to restore... + All projects are up-to-date for restore. + ZB.MOM.WW.OtOpcUa.Analyzers -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Commons -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Core -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Security -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /tmp/ot14-root-stale-after/ZB.MOM.WW.OtOpcUa.AdminUI.dll + HostControlsCanary -> /tmp/ot14-root-stale-after/HostControlsCanary.dll + +Build succeeded. + 0 Warning(s) + 0 Error(s) + +Time Elapsed 00:00:11.47 diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/after.json b/docs/ui-consistency/evidence/ot14-stale-contrast/after.json new file mode 100644 index 000000000..b490561a4 --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-stale-contrast/after.json @@ -0,0 +1,145 @@ +{ + "phase": "after", + "pairs": [ + { + "text": "HEALTHY", + "foreground": [ + 35, + 111, + 52 + ], + "background": [ + 233, + 246, + 236 + ], + "groups": [], + "contrast": 5.554998206317173 + }, + { + "text": "HEALTHY", + "foreground": [ + 35, + 111, + 52 + ], + "background": [ + 233, + 246, + 236 + ], + "groups": [], + "contrast": 5.554998206317173 + }, + { + "text": "Last success: 32s ago", + "foreground": [ + 90, + 96, + 102 + ], + "background": [ + 255, + 255, + 255 + ], + "groups": [], + "contrast": 6.3641336589071695 + }, + { + "text": "STALE", + "foreground": [ + 83, + 93, + 102 + ], + "background": [ + 238, + 240, + 242 + ], + "groups": [], + "contrast": 5.881363117248676 + }, + { + "text": "synthetic-stale-target", + "foreground": [ + 90, + 96, + 102 + ], + "background": [ + 255, + 255, + 255 + ], + "groups": [], + "contrast": 6.3641336589071695 + }, + { + "text": "BREAKER OPEN \u00b7 OPENED 2M 32S AGO", + "foreground": [ + 180, + 33, + 33 + ], + "background": [ + 252, + 234, + 234 + ], + "groups": [], + "contrast": 5.6903741760936315 + }, + { + "text": "2 CONSECUTIVE FAILURES", + "foreground": [ + 133, + 80, + 0 + ], + "background": [ + 253, + 241, + 221 + ], + "groups": [], + "contrast": 5.979044404341219 + }, + { + "text": "IN-FLIGHT 1", + "foreground": [ + 83, + 93, + 102 + ], + "background": [ + 238, + 240, + 242 + ], + "groups": [], + "contrast": 5.881363117248676 + }, + { + "text": "STALE", + "foreground": [ + 83, + 93, + 102 + ], + "background": [ + 238, + 240, + 242 + ], + "groups": [], + "contrast": 5.881363117248676 + } + ], + "minimumContrast": 5.554998206317173, + "failingPairs": 0, + "pageErrors": [], + "threshold": 4.5, + "healthStaleLabelAndResilienceStaleLabelPresent": true +} diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/after.log b/docs/ui-consistency/evidence/ot14-stale-contrast/after.log new file mode 100644 index 000000000..db0aeff7f --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-stale-contrast/after.log @@ -0,0 +1 @@ +after pairs 9 failures 0 minimum 5.554998206317173 diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/after.png b/docs/ui-consistency/evidence/ot14-stale-contrast/after.png new file mode 100644 index 000000000..11213aeba Binary files /dev/null and b/docs/ui-consistency/evidence/ot14-stale-contrast/after.png differ diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/before-build.log b/docs/ui-consistency/evidence/ot14-stale-contrast/before-build.log new file mode 100644 index 000000000..d7f5ce7e2 --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-stale-contrast/before-build.log @@ -0,0 +1,84 @@ + + Determining projects to restore... + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.csproj (in 58 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.csproj (in 58 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.csproj (in 49 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.csproj (in 318 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.csproj (in 318 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.csproj (in 0.8 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Commons/ZB.MOM.WW.OtOpcUa.Commons.csproj (in 23 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.csproj (in 351 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Tooling/ZB.MOM.WW.OtOpcUa.Analyzers/ZB.MOM.WW.OtOpcUa.Analyzers.csproj (in 277 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.csproj (in 0.7 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.csproj (in 0.7 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting/ZB.MOM.WW.OtOpcUa.Core.Scripting.csproj (in 7 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.csproj (in 2 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.csproj (in 357 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Cluster/ZB.MOM.WW.OtOpcUa.Cluster.csproj (in 359 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.csproj (in 33 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.csproj (in 1 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.csproj (in 1 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.csproj (in 4 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.csproj (in 2 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.csproj (in 0.9 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.csproj (in 1 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.csproj (in 12 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.csproj (in 2 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.csproj (in 0.6 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.csproj (in 4 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Abstractions/ZB.MOM.WW.OtOpcUa.Core.Abstractions.csproj (in 0.5 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.csproj (in 17 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.csproj (in 35 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.csproj (in 28 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Security/ZB.MOM.WW.OtOpcUa.Security.csproj (in 324 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core/ZB.MOM.WW.OtOpcUa.Core.csproj (in 402 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer/ZB.MOM.WW.OtOpcUa.OpcUaServer.csproj (in 402 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/ZB.MOM.WW.OtOpcUa.Runtime.csproj (in 404 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.ControlPlane/ZB.MOM.WW.OtOpcUa.ControlPlane.csproj (in 402 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Configuration/ZB.MOM.WW.OtOpcUa.Configuration.csproj (in 341 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/ZB.MOM.WW.OtOpcUa.AdminUI.csproj (in 406 ms). + Restored /Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot13-host-controls/canary/HostControlsCanary.csproj (in 405 ms). + ZB.MOM.WW.OtOpcUa.Analyzers -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Commons -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Core -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Security -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /tmp/ot14-root-stale-before/ZB.MOM.WW.OtOpcUa.AdminUI.dll + HostControlsCanary -> /tmp/ot14-root-stale-before/HostControlsCanary.dll + +Build succeeded. + 0 Warning(s) + 0 Error(s) + +Time Elapsed 00:00:13.63 diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/before.json b/docs/ui-consistency/evidence/ot14-stale-contrast/before.json new file mode 100644 index 000000000..f74117fdf --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-stale-contrast/before.json @@ -0,0 +1,244 @@ +{ + "phase": "before", + "pairs": [ + { + "text": "HEALTHY", + "foreground": [ + 145, + 183, + 153.5 + ], + "background": [ + 244, + 250.5, + 245.5 + ], + "groups": [ + { + "tag": "SPAN", + "class": "chip chip-ok", + "opacity": 0.5, + "under": [ + 255, + 255, + 255 + ] + } + ], + "contrast": 2.1087270995612273 + }, + { + "text": "HEALTHY", + "foreground": [ + 145, + 183, + 153.5 + ], + "background": [ + 244, + 250.5, + 245.5 + ], + "groups": [ + { + "tag": "DIV", + "class": "", + "opacity": 0.5, + "under": [ + 255, + 255, + 255 + ] + } + ], + "contrast": 2.1087270995612273 + }, + { + "text": "Last success: 32s ago", + "foreground": [ + 172.5, + 175.5, + 178.5 + ], + "background": [ + 255, + 255, + 255 + ], + "groups": [ + { + "tag": "DIV", + "class": "", + "opacity": 0.5, + "under": [ + 255, + 255, + 255 + ] + } + ], + "contrast": 2.1913000123583455 + }, + { + "text": "STALE", + "foreground": [ + 169, + 174, + 178.5 + ], + "background": [ + 246.5, + 247.5, + 248.5 + ], + "groups": [ + { + "tag": "DIV", + "class": "", + "opacity": 0.5, + "under": [ + 255, + 255, + 255 + ] + } + ], + "contrast": 2.094507338107068 + }, + { + "text": "synthetic-stale-target", + "foreground": [ + 172.5, + 175.5, + 178.5 + ], + "background": [ + 255, + 255, + 255 + ], + "groups": [ + { + "tag": "DIV", + "class": "d-flex flex-wrap gap-2 align-items-baseline mt-1", + "opacity": 0.5, + "under": [ + 255, + 255, + 255 + ] + } + ], + "contrast": 2.1913000123583455 + }, + { + "text": "BREAKER OPEN \u00b7 OPENED 2M 32S AGO", + "foreground": [ + 217.5, + 144, + 144 + ], + "background": [ + 253.5, + 244.5, + 244.5 + ], + "groups": [ + { + "tag": "DIV", + "class": "d-flex flex-wrap gap-2 align-items-baseline mt-1", + "opacity": 0.5, + "under": [ + 255, + 255, + 255 + ] + } + ], + "contrast": 2.334162859246416 + }, + { + "text": "2 CONSECUTIVE FAILURES", + "foreground": [ + 194, + 167.5, + 127.5 + ], + "background": [ + 254, + 248, + 238 + ], + "groups": [ + { + "tag": "DIV", + "class": "d-flex flex-wrap gap-2 align-items-baseline mt-1", + "opacity": 0.5, + "under": [ + 255, + 255, + 255 + ] + } + ], + "contrast": 2.168149941713175 + }, + { + "text": "IN-FLIGHT 1", + "foreground": [ + 169, + 174, + 178.5 + ], + "background": [ + 246.5, + 247.5, + 248.5 + ], + "groups": [ + { + "tag": "DIV", + "class": "d-flex flex-wrap gap-2 align-items-baseline mt-1", + "opacity": 0.5, + "under": [ + 255, + 255, + 255 + ] + } + ], + "contrast": 2.094507338107068 + }, + { + "text": "STALE", + "foreground": [ + 169, + 174, + 178.5 + ], + "background": [ + 246.5, + 247.5, + 248.5 + ], + "groups": [ + { + "tag": "DIV", + "class": "d-flex flex-wrap gap-2 align-items-baseline mt-1", + "opacity": 0.5, + "under": [ + 255, + 255, + 255 + ] + } + ], + "contrast": 2.094507338107068 + } + ], + "minimumContrast": 2.094507338107068, + "failingPairs": 9, + "pageErrors": [], + "threshold": 4.5, + "healthStaleLabelAndResilienceStaleLabelPresent": true +} diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/before.log b/docs/ui-consistency/evidence/ot14-stale-contrast/before.log new file mode 100644 index 000000000..5e8de0916 --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-stale-contrast/before.log @@ -0,0 +1 @@ +before pairs 9 failures 9 minimum 2.094507338107068 diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/before.png b/docs/ui-consistency/evidence/ot14-stale-contrast/before.png new file mode 100644 index 000000000..16ac75201 Binary files /dev/null and b/docs/ui-consistency/evidence/ot14-stale-contrast/before.png differ diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/cleanup.json b/docs/ui-consistency/evidence/ot14-stale-contrast/cleanup.json new file mode 100644 index 000000000..6a9cd8d3c --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-stale-contrast/cleanup.json @@ -0,0 +1,5 @@ +{ + "ownedPort": 18142, + "listenerStopped": true, + "privateFixtureOnly": true +} diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/contrast.py b/docs/ui-consistency/evidence/ot14-stale-contrast/contrast.py new file mode 100644 index 000000000..888dfa095 --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-stale-contrast/contrast.py @@ -0,0 +1,31 @@ +"""Measure final composed stale DriverStatusPanel text, including opacity groups.""" +import json,sys,base64 +from pathlib import Path +from playwright.sync_api import sync_playwright,expect +out=Path(__file__).resolve().parent +phase=sys.argv[1] +def luminance(rgb): + c=[v/255 for v in rgb];return sum(w*(v/12.92 if v<=.04045 else ((v+.055)/1.055)**2.4) for w,v in zip([.2126,.7152,.0722],c)) +def ratio(a,b): + x,y=sorted([luminance(a),luminance(b)]);return (y+.05)/(x+.05) +with sync_playwright() as p: + b=p.chromium.launch();page=b.new_page(viewport={'width':1440,'height':900});errors=[];page.on('pageerror',lambda e:errors.append(str(e))) + page.goto('http://127.0.0.1:18142/?role=Reader');expect(page.locator('#ready')).to_have_text('True') + page.get_by_role('button',name='Controls for Synthetic driver 1 (synthetic-driver-with-a-deliberately-long-identifier-for-local-reflow-a)',exact=True).click();d=page.get_by_role('dialog');expect(d.locator('.chip-idle',has_text='stale')).to_have_count(2,timeout=40000);page.wait_for_timeout(700) + pairs=d.locator('section.panel').evaluate('''panel=>{ + const rgba=s=>{let n=s.match(/[\\d.]+/g).map(Number);return [...n.slice(0,3),n.length>3?n[3]:1]}; + const background=e=>{for(let n=e;n;n=n.parentElement){let c=rgba(getComputedStyle(n).backgroundColor);if(c[3]===1)return c.slice(0,3);if(c[3]!==0)throw new Error('Unexpected translucent background');}return [255,255,255]}; + return [...panel.querySelectorAll('.chip,span[style*="color:var(--ink-soft)"]')].map(e=>{ + let fg=rgba(getComputedStyle(e).color).slice(0,3),bg=background(e),groups=[]; + for(let n=e;n;n=n.parentElement){let o=Number(getComputedStyle(n).opacity);if(o!==1){let under=background(n.parentElement);fg=fg.map((v,i)=>v*o+under[i]*(1-o));bg=bg.map((v,i)=>v*o+under[i]*(1-o));groups.push({tag:n.tagName,class:n.className,opacity:o,under});}} + return {text:e.innerText,foreground:fg,background:bg,groups};});}''') + for pair in pairs:pair['contrast']=ratio(pair['foreground'],pair['background']) + assert len(pairs)>=9,len(pairs) + failing=[x for x in pairs if x['contrast']<4.5] + if phase=='before':assert len(failing)>=3,failing + else:assert not failing,failing + raw=page.context.new_cdp_session(page).send('Page.captureScreenshot',{'format':'png','fromSurface':True,'captureBeyondViewport':False});(out/(phase+'.png')).write_bytes(base64.b64decode(raw['data'])) + assert not errors,errors + (out/(phase+'.json')).write_text(json.dumps({'phase':phase,'pairs':pairs,'minimumContrast':min(x['contrast'] for x in pairs),'failingPairs':len(failing),'pageErrors':errors,'threshold':4.5,'healthStaleLabelAndResilienceStaleLabelPresent':True},indent=2)+'\n') + page.keyboard.press('Escape');expect(d).to_have_count(0);b.close() +print(phase,'pairs',len(pairs),'failures',len(failing),'minimum',min(x['contrast'] for x in pairs)) diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/ot14-stale-panel.trx b/docs/ui-consistency/evidence/ot14-stale-contrast/ot14-stale-panel.trx new file mode 100644 index 000000000..12441905b --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-stale-contrast/ot14-stale-panel.trx @@ -0,0 +1,376 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.0.2+dd36e86129 (64-bit .NET 10.0.14) +[xUnit.net 00:00:00.36] Discovering: ZB.MOM.WW.OtOpcUa.AdminUI.Tests +[xUnit.net 00:00:01.16] Discovered: ZB.MOM.WW.OtOpcUa.AdminUI.Tests +[xUnit.net 00:00:01.30] Starting: ZB.MOM.WW.OtOpcUa.AdminUI.Tests +[xUnit.net 00:00:02.09] Finished: ZB.MOM.WW.OtOpcUa.AdminUI.Tests + + + + \ No newline at end of file diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/source-boundaries.json b/docs/ui-consistency/evidence/ot14-stale-contrast/source-boundaries.json new file mode 100644 index 000000000..5ea29f655 --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-stale-contrast/source-boundaries.json @@ -0,0 +1,8 @@ +{ + "source": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/DriverStatusPanel.razor", + "sourceSha256": "cba1e9f64f78ad692dcef918e8f3df260d8a778940d5712e9aa6716046627208", + "onlyThreeOpacityStylesAndCommentChanged": true, + "codeIdenticalExceptComment": true, + "healthStaleSeconds": 30, + "resilienceStaleSeconds": 15 +} diff --git a/docs/ui-consistency/evidence/ot14-stale-contrast/tests.log b/docs/ui-consistency/evidence/ot14-stale-contrast/tests.log new file mode 100644 index 000000000..b059670ba --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-stale-contrast/tests.log @@ -0,0 +1,53 @@ + + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll + ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll +Test run for /Users/dohertj2/Desktop/OtOpcUa/artifacts/ot11-root/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +Results File: /Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot14-stale-contrast/ot14-stale-panel.trx + +Passed! - Failed: 0, Passed: 58, Skipped: 0, Total: 58, Duration: 741 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0) diff --git a/docs/ui-consistency/ot13-host-controls/canary/Program.cs b/docs/ui-consistency/ot13-host-controls/canary/Program.cs index a08c3e678..3babe056a 100644 --- a/docs/ui-consistency/ot13-host-controls/canary/Program.cs +++ b/docs/ui-consistency/ot13-host-controls/canary/Program.cs @@ -18,7 +18,10 @@ builder.Services.AddAuthorizationCore(o=>o.AddPolicy(ZB.MOM.WW.OtOpcUa.Security. builder.Services.AddScoped();builder.Services.AddScoped(); builder.Services.AddScoped(sp=>FixtureOperations.Create(sp.GetRequiredService())); builder.Services.AddDbContextFactory(o=>o.UseInMemoryDatabase("host-controls-local")); -builder.Services.AddScoped();builder.Services.AddSingleton(); +builder.Services.AddScoped(); +var resilience=new InMemoryDriverResilienceStatusStore(); +foreach(var id in FixtureState.DriverIds)resilience.Upsert(new(id,"synthetic-stale-target",true,2,1,DateTime.UtcNow.AddMinutes(-2),DateTime.UtcNow.AddMinutes(-2),DateTime.UtcNow.AddMinutes(-2))); +builder.Services.AddSingleton(resilience); var status=new InMemoryDriverStatusSnapshotStore(); foreach(var id in FixtureState.DriverIds)status.Upsert(new("synthetic-cluster",id,"Healthy",DateTime.UtcNow,null,0,DateTime.UtcNow)); builder.Services.AddSingleton(status); diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/DriverStatusPanel.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/DriverStatusPanel.razor index 71df3141c..69d3450d3 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/DriverStatusPanel.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/DriverStatusPanel.razor @@ -25,7 +25,6 @@ @foreach (var n in nodes) { @(nodes.Count > 1 || n.NodeId is not null ? $"{n.Label}: " : "")@n.Snapshot.State } } @@ -57,8 +56,7 @@ @foreach (var n in nodes) { var snap = n.Snapshot; -
+
@n.Label @@ -118,7 +116,7 @@ @foreach (var host in active) { var stale = IsStale(host); -
+
@host.HostName @if (host.BreakerOpen) { @@ -218,7 +216,7 @@ [Parameter] public EventCallback BusyChanged { get; set; } // One entry per reporting node (lmxopcua#851), recreated only when the bound driver context changes. - // Staleness is per node: a node that stops publishing dims on its own while its peer stays live. + // Staleness is per node: a node that stops publishing receives its own explicit stale label. private DriverStatusByNode? _byNode; private static readonly TimeSpan StaleAfter = TimeSpan.FromSeconds(30);