diff --git a/docs/ui-consistency/evidence/ot12-preflight.json b/docs/ui-consistency/evidence/ot12-preflight.json new file mode 100644 index 000000000..5030eb07c --- /dev/null +++ b/docs/ui-consistency/evidence/ot12-preflight.json @@ -0,0 +1,319 @@ +{ + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Routes.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/MonacoEditor.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-warning" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/ScriptLog.razor": { + "aliases": [ + "chip-alert", + "chip-caution" + ], + "bootstrapSemanticUtilities": [] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/AlarmsHistorian.razor": { + "aliases": [ + "chip-caution" + ], + "bootstrapSemanticUtilities": [] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Alerts.razor": { + "aliases": [ + "chip-alert", + "chip-caution" + ], + "bootstrapSemanticUtilities": [] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Fleet.razor": { + "aliases": [ + "chip-caution", + "chip-caution", + "chip-alert" + ], + "bootstrapSemanticUtilities": [] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/FleetDiagnostics.razor": { + "aliases": [ + "chip-caution", + "chip-alert" + ], + "bootstrapSemanticUtilities": [] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor": { + "aliases": [ + "chip-alert" + ], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Hosts.razor": { + "aliases": [ + "chip-alert", + "chip-caution", + "chip-alert" + ], + "bootstrapSemanticUtilities": [] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/ClusterRedundancy.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger", + "text-success" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/ClusterAcls.razor": { + "aliases": [ + "chip-alert", + "chip-alert" + ], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/AclEdit.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-success", + "text-success", + "text-warning", + "text-success", + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Uns/GlobalUns.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger", + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Uns/EquipmentPage.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger", + "text-danger", + "text-danger", + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/RefusalChip.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/DriverBrowseTree.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger", + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/CollectionEditor.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/DriverTestConnectButton.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-warning" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Acls/AclScopeTree.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/ScriptedAlarmModal.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/ImportEquipmentModal.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/UnsTree.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/LineModal.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/AreaModal.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/VirtualTagModal.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger", + "text-danger", + "text-success", + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/AddReferenceModal.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawNameDialog.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawDriverTypeDialog.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawTree.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawBrowseModal.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger", + "text-success" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawCsvImportModal.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-success", + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawManualTagEntryModal.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawTagModal.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/TagEditors/CalculationTagConfigEditor.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger", + "text-danger", + "text-success" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/TagEditors/FocasTagConfigEditor.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/TagEditors/MTConnectTagConfigEditor.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger", + "text-warning" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/TagEditors/ModbusTagConfigEditor.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger", + "text-warning", + "text-warning" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/TagEditors/HeidenhainTagConfigEditor.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/TagEditors/NativeAlarmEditor.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-warning", + "text-warning" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/TagEditors/MqttTagConfigEditor.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/Forms/SqlDriverForm.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger", + "text-danger", + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/Forms/S7DriverForm.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/Forms/HeidenhainDriverForm.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/Forms/AbCipDriverForm.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/DeviceForms/HeidenhainDeviceForm.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/Pickers/GalaxyAddressPickerBody.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + }, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Drivers/Pickers/SqlAddressPickerBody.razor": { + "aliases": [], + "bootstrapSemanticUtilities": [ + "text-danger" + ] + } +} diff --git a/docs/ui-consistency/evidence/ot12-visual/README.md b/docs/ui-consistency/evidence/ot12-visual/README.md new file mode 100644 index 000000000..5b9d480ea --- /dev/null +++ b/docs/ui-consistency/evidence/ot12-visual/README.md @@ -0,0 +1,17 @@ +# OT12 canonical status text and technical icons + +Exact freeze is source-freeze.json:8 page alias-only edits, RawTree/UnsTree/AclScopeTree presentation,2 decorative vector components and local site.css. status-mapping-byte-check.json proves all8 page files are byte-identical to their previous version after only chip-alert→chip-bad/chip-caution→chip-warn substitutions. Existing enum cases/meaning, degraded/healthy/disabled/connection distinction, policy and action callbacks are preserved. No producer/model/service/package change. + +All app consumers of the obsolete chip aliases were migrated before removing those2 CSS declarations. Actual scan adds FleetDiagnostics and ClusterAcls to the original plan’s named consumer list; ImportEquipment currently has no obsolete alias. Raw uses7 authored fixed-stroke SVG kind icons and decorative geometric chevrons, with contextual names retained on buttons. Context menus use their existing full text labels without platform emoji. UNS Settings is plain text; ACL rows retain their contextual text/scope with decorative emoji omitted and the same chevron. Legacy ACL model Icon metadata/API remains untouched and is no longer rendered by AclScopeTree. No icon CDN, alternate palette, animation or new domain abstraction. + +## Actual contrast defect and repair + +semantic-utilities-before.json records computed host Bootstrap utility text on actual paper/card: danger4.11/4.53, warning1.48/1.63, success4.11/4.53; local error notice4.10/4.51 when sampled against those surfaces.41 actual component files use these semantic utilities. site.css now bridges only text-danger/warning/success to approved bad/warn/ok-ink and the local error notice to bad-ink. Decorative signal variables are unchanged. The before harness saved its complete computed JSON, then threw during browser cleanup due a Python local variable shadowing the browser handle; measurements remain genuine and the raw limitation is explicit. Final checks use a corrected harness. + +## Verification + +- tests.log:22 passed,0 failed/skipped using explicit private SQL runner and filter `FullyQualifiedName~TreeAccessibilityTests|FullyQualifiedName~RawTreeRowsTests|FullyQualifiedName~TreeRecoveryTests|FullyQualifiedName~CommonTreeAccessibilityTests|FullyQualifiedName~ContextMenuGeometryTests|FullyQualifiedName~LiveTailPageTests`. Selected identities/count are the actual terminal output; filter fragments with no matching class do not imply added coverage. Existing row/callback/selection/name/recovery/tail assertions remain unchanged. No test asserts SVG paths/count/colors as implementation contracts. +- fixture-build.log:zero warnings/errors. Actual source components and approved Theme1.0.1. +- matrix.json/native.log:first native6/6 pass, Chromium1440/390 and real200%720/195 DPR2, plus actual coarse pointer1440/390. Every7kind row retains exact30/44px height matching virtualization, no body overflow, all real host semantic text samples ≥4.5:1, decorative vectors hidden/nonfocusable, plain text menu opens by keyboard, Escape returns focus, no page errors. Byte checks cover actual8 domain callsite mapping; the status sample fixture validates their adopted class recipes rather than pretending to execute every route’s business flow. + +Current host minimum measured contrast across samples is above4.5:1. macOS-hosted browser is the available platform; no Linux/Windows runtime rendering certification. Whole-route, combined full suite and target-aware composed callers remain OT14/OT13. No deployment or production connection. Roll back this scoped source commit for a presentation regression; immutable packages and data are unaffected. diff --git a/docs/ui-consistency/evidence/ot12-visual/fixture-build.log b/docs/ui-consistency/evidence/ot12-visual/fixture-build.log new file mode 100644 index 000000000..626c67f46 --- /dev/null +++ b/docs/ui-consistency/evidence/ot12-visual/fixture-build.log @@ -0,0 +1,44 @@ + ZB.MOM.WW.OtOpcUa.Analyzers -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Commons -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Security -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Core -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /tmp/ot-ui-canary-artifacts/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll + OtUiCanary -> /tmp/ot-ui-canary-artifacts/bin/OtUiCanary/debug/OtUiCanary.dll + +Build succeeded. + 0 Warning(s) + 0 Error(s) + +Time Elapsed 00:00:04.31 diff --git a/docs/ui-consistency/evidence/ot12-visual/matrix.json b/docs/ui-consistency/evidence/ot12-visual/matrix.json new file mode 100644 index 000000000..7852f726f --- /dev/null +++ b/docs/ui-consistency/evidence/ot12-visual/matrix.json @@ -0,0 +1,626 @@ +[ + { + "width": 1440, + "zoom": 1, + "touch": false, + "measurements": { + "width": 1440, + "document": 1440, + "dpr": 1, + "coarse": false, + "heights": [ + 30 + ] + }, + "contrast": [ + { + "class": "text-danger", + "text": "Error text", + "color": "rgb(180, 33, 33)", + "background": "rgb(244, 244, 241)", + "contrast": 5.992480687817612 + }, + { + "class": "text-warning", + "text": "Warning text", + "color": "rgb(133, 80, 0)", + "background": "rgb(244, 244, 241)", + "contrast": 6.059917570925421 + }, + { + "class": "text-success", + "text": "Success text", + "color": "rgb(35, 111, 52)", + "background": "rgb(244, 244, 241)", + "contrast": 5.613560011637269 + }, + { + "class": "text-danger", + "text": "Error text", + "color": "rgb(180, 33, 33)", + "background": "rgb(255, 255, 255)", + "contrast": 6.603434368361208 + }, + { + "class": "text-warning", + "text": "Warning text", + "color": "rgb(133, 80, 0)", + "background": "rgb(255, 255, 255)", + "contrast": 6.6777466698617465 + }, + { + "class": "text-success", + "text": "Success text", + "color": "rgb(35, 111, 52)", + "background": "rgb(255, 255, 255)", + "contrast": 6.185881447238118 + }, + { + "class": "notice notice-alert", + "text": "Application error notice", + "color": "rgb(180, 33, 33)", + "background": "rgb(252, 234, 234)", + "contrast": 5.6903741760936315 + }, + { + "class": "chip chip-bad", + "text": "Failed", + "color": "rgb(180, 33, 33)", + "background": "rgb(252, 234, 234)", + "contrast": 5.6903741760936315 + }, + { + "class": "chip chip-warn", + "text": "Degraded", + "color": "rgb(133, 80, 0)", + "background": "rgb(253, 241, 221)", + "contrast": 5.979044404341219 + }, + { + "class": "chip chip-ok", + "text": "Healthy", + "color": "rgb(35, 111, 52)", + "background": "rgb(233, 246, 236)", + "contrast": 5.554998206317173 + }, + { + "class": "chip chip-idle", + "text": "Disabled", + "color": "rgb(83, 93, 102)", + "background": "rgb(238, 240, 242)", + "contrast": 5.881363117248676 + } + ], + "checks": { + "allSemanticTextAA": true, + "noBodyOverflow": true, + "allSevenRowsExactHeight": true, + "decorativeVectorsOnly": true, + "textOnlyMenu": true, + "menuFocusReturn": true, + "noPageErrors": true + }, + "errors": [], + "passed": true + }, + { + "width": 390, + "zoom": 1, + "touch": false, + "measurements": { + "width": 390, + "document": 390, + "dpr": 1, + "coarse": false, + "heights": [ + 30 + ] + }, + "contrast": [ + { + "class": "text-danger", + "text": "Error text", + "color": "rgb(180, 33, 33)", + "background": "rgb(244, 244, 241)", + "contrast": 5.992480687817612 + }, + { + "class": "text-warning", + "text": "Warning text", + "color": "rgb(133, 80, 0)", + "background": "rgb(244, 244, 241)", + "contrast": 6.059917570925421 + }, + { + "class": "text-success", + "text": "Success text", + "color": "rgb(35, 111, 52)", + "background": "rgb(244, 244, 241)", + "contrast": 5.613560011637269 + }, + { + "class": "text-danger", + "text": "Error text", + "color": "rgb(180, 33, 33)", + "background": "rgb(255, 255, 255)", + "contrast": 6.603434368361208 + }, + { + "class": "text-warning", + "text": "Warning text", + "color": "rgb(133, 80, 0)", + "background": "rgb(255, 255, 255)", + "contrast": 6.6777466698617465 + }, + { + "class": "text-success", + "text": "Success text", + "color": "rgb(35, 111, 52)", + "background": "rgb(255, 255, 255)", + "contrast": 6.185881447238118 + }, + { + "class": "notice notice-alert", + "text": "Application error notice", + "color": "rgb(180, 33, 33)", + "background": "rgb(252, 234, 234)", + "contrast": 5.6903741760936315 + }, + { + "class": "chip chip-bad", + "text": "Failed", + "color": "rgb(180, 33, 33)", + "background": "rgb(252, 234, 234)", + "contrast": 5.6903741760936315 + }, + { + "class": "chip chip-warn", + "text": "Degraded", + "color": "rgb(133, 80, 0)", + "background": "rgb(253, 241, 221)", + "contrast": 5.979044404341219 + }, + { + "class": "chip chip-ok", + "text": "Healthy", + "color": "rgb(35, 111, 52)", + "background": "rgb(233, 246, 236)", + "contrast": 5.554998206317173 + }, + { + "class": "chip chip-idle", + "text": "Disabled", + "color": "rgb(83, 93, 102)", + "background": "rgb(238, 240, 242)", + "contrast": 5.881363117248676 + } + ], + "checks": { + "allSemanticTextAA": true, + "noBodyOverflow": true, + "allSevenRowsExactHeight": true, + "decorativeVectorsOnly": true, + "textOnlyMenu": true, + "menuFocusReturn": true, + "noPageErrors": true + }, + "errors": [], + "passed": true + }, + { + "width": 1440, + "zoom": 2, + "touch": false, + "measurements": { + "width": 720, + "document": 720, + "dpr": 2, + "coarse": false, + "heights": [ + 30 + ] + }, + "contrast": [ + { + "class": "text-danger", + "text": "Error text", + "color": "rgb(180, 33, 33)", + "background": "rgb(244, 244, 241)", + "contrast": 5.992480687817612 + }, + { + "class": "text-warning", + "text": "Warning text", + "color": "rgb(133, 80, 0)", + "background": "rgb(244, 244, 241)", + "contrast": 6.059917570925421 + }, + { + "class": "text-success", + "text": "Success text", + "color": "rgb(35, 111, 52)", + "background": "rgb(244, 244, 241)", + "contrast": 5.613560011637269 + }, + { + "class": "text-danger", + "text": "Error text", + "color": "rgb(180, 33, 33)", + "background": "rgb(255, 255, 255)", + "contrast": 6.603434368361208 + }, + { + "class": "text-warning", + "text": "Warning text", + "color": "rgb(133, 80, 0)", + "background": "rgb(255, 255, 255)", + "contrast": 6.6777466698617465 + }, + { + "class": "text-success", + "text": "Success text", + "color": "rgb(35, 111, 52)", + "background": "rgb(255, 255, 255)", + "contrast": 6.185881447238118 + }, + { + "class": "notice notice-alert", + "text": "Application error notice", + "color": "rgb(180, 33, 33)", + "background": "rgb(252, 234, 234)", + "contrast": 5.6903741760936315 + }, + { + "class": "chip chip-bad", + "text": "Failed", + "color": "rgb(180, 33, 33)", + "background": "rgb(252, 234, 234)", + "contrast": 5.6903741760936315 + }, + { + "class": "chip chip-warn", + "text": "Degraded", + "color": "rgb(133, 80, 0)", + "background": "rgb(253, 241, 221)", + "contrast": 5.979044404341219 + }, + { + "class": "chip chip-ok", + "text": "Healthy", + "color": "rgb(35, 111, 52)", + "background": "rgb(233, 246, 236)", + "contrast": 5.554998206317173 + }, + { + "class": "chip chip-idle", + "text": "Disabled", + "color": "rgb(83, 93, 102)", + "background": "rgb(238, 240, 242)", + "contrast": 5.881363117248676 + } + ], + "checks": { + "allSemanticTextAA": true, + "noBodyOverflow": true, + "allSevenRowsExactHeight": true, + "decorativeVectorsOnly": true, + "textOnlyMenu": true, + "menuFocusReturn": true, + "noPageErrors": true + }, + "errors": [], + "passed": true + }, + { + "width": 390, + "zoom": 2, + "touch": false, + "measurements": { + "width": 195, + "document": 195, + "dpr": 2, + "coarse": false, + "heights": [ + 30 + ] + }, + "contrast": [ + { + "class": "text-danger", + "text": "Error text", + "color": "rgb(180, 33, 33)", + "background": "rgb(244, 244, 241)", + "contrast": 5.992480687817612 + }, + { + "class": "text-warning", + "text": "Warning text", + "color": "rgb(133, 80, 0)", + "background": "rgb(244, 244, 241)", + "contrast": 6.059917570925421 + }, + { + "class": "text-success", + "text": "Success text", + "color": "rgb(35, 111, 52)", + "background": "rgb(244, 244, 241)", + "contrast": 5.613560011637269 + }, + { + "class": "text-danger", + "text": "Error text", + "color": "rgb(180, 33, 33)", + "background": "rgb(255, 255, 255)", + "contrast": 6.603434368361208 + }, + { + "class": "text-warning", + "text": "Warning text", + "color": "rgb(133, 80, 0)", + "background": "rgb(255, 255, 255)", + "contrast": 6.6777466698617465 + }, + { + "class": "text-success", + "text": "Success text", + "color": "rgb(35, 111, 52)", + "background": "rgb(255, 255, 255)", + "contrast": 6.185881447238118 + }, + { + "class": "notice notice-alert", + "text": "Application error notice", + "color": "rgb(180, 33, 33)", + "background": "rgb(252, 234, 234)", + "contrast": 5.6903741760936315 + }, + { + "class": "chip chip-bad", + "text": "Failed", + "color": "rgb(180, 33, 33)", + "background": "rgb(252, 234, 234)", + "contrast": 5.6903741760936315 + }, + { + "class": "chip chip-warn", + "text": "Degraded", + "color": "rgb(133, 80, 0)", + "background": "rgb(253, 241, 221)", + "contrast": 5.979044404341219 + }, + { + "class": "chip chip-ok", + "text": "Healthy", + "color": "rgb(35, 111, 52)", + "background": "rgb(233, 246, 236)", + "contrast": 5.554998206317173 + }, + { + "class": "chip chip-idle", + "text": "Disabled", + "color": "rgb(83, 93, 102)", + "background": "rgb(238, 240, 242)", + "contrast": 5.881363117248676 + } + ], + "checks": { + "allSemanticTextAA": true, + "noBodyOverflow": true, + "allSevenRowsExactHeight": true, + "decorativeVectorsOnly": true, + "textOnlyMenu": true, + "menuFocusReturn": true, + "noPageErrors": true + }, + "errors": [], + "passed": true + }, + { + "width": 1440, + "zoom": 1, + "touch": true, + "measurements": { + "width": 1440, + "document": 1440, + "dpr": 1, + "coarse": true, + "heights": [ + 44 + ] + }, + "contrast": [ + { + "class": "text-danger", + "text": "Error text", + "color": "rgb(180, 33, 33)", + "background": "rgb(244, 244, 241)", + "contrast": 5.992480687817612 + }, + { + "class": "text-warning", + "text": "Warning text", + "color": "rgb(133, 80, 0)", + "background": "rgb(244, 244, 241)", + "contrast": 6.059917570925421 + }, + { + "class": "text-success", + "text": "Success text", + "color": "rgb(35, 111, 52)", + "background": "rgb(244, 244, 241)", + "contrast": 5.613560011637269 + }, + { + "class": "text-danger", + "text": "Error text", + "color": "rgb(180, 33, 33)", + "background": "rgb(255, 255, 255)", + "contrast": 6.603434368361208 + }, + { + "class": "text-warning", + "text": "Warning text", + "color": "rgb(133, 80, 0)", + "background": "rgb(255, 255, 255)", + "contrast": 6.6777466698617465 + }, + { + "class": "text-success", + "text": "Success text", + "color": "rgb(35, 111, 52)", + "background": "rgb(255, 255, 255)", + "contrast": 6.185881447238118 + }, + { + "class": "notice notice-alert", + "text": "Application error notice", + "color": "rgb(180, 33, 33)", + "background": "rgb(252, 234, 234)", + "contrast": 5.6903741760936315 + }, + { + "class": "chip chip-bad", + "text": "Failed", + "color": "rgb(180, 33, 33)", + "background": "rgb(252, 234, 234)", + "contrast": 5.6903741760936315 + }, + { + "class": "chip chip-warn", + "text": "Degraded", + "color": "rgb(133, 80, 0)", + "background": "rgb(253, 241, 221)", + "contrast": 5.979044404341219 + }, + { + "class": "chip chip-ok", + "text": "Healthy", + "color": "rgb(35, 111, 52)", + "background": "rgb(233, 246, 236)", + "contrast": 5.554998206317173 + }, + { + "class": "chip chip-idle", + "text": "Disabled", + "color": "rgb(83, 93, 102)", + "background": "rgb(238, 240, 242)", + "contrast": 5.881363117248676 + } + ], + "checks": { + "allSemanticTextAA": true, + "noBodyOverflow": true, + "allSevenRowsExactHeight": true, + "decorativeVectorsOnly": true, + "textOnlyMenu": true, + "menuFocusReturn": true, + "noPageErrors": true + }, + "errors": [], + "passed": true + }, + { + "width": 390, + "zoom": 1, + "touch": true, + "measurements": { + "width": 390, + "document": 390, + "dpr": 1, + "coarse": true, + "heights": [ + 44 + ] + }, + "contrast": [ + { + "class": "text-danger", + "text": "Error text", + "color": "rgb(180, 33, 33)", + "background": "rgb(244, 244, 241)", + "contrast": 5.992480687817612 + }, + { + "class": "text-warning", + "text": "Warning text", + "color": "rgb(133, 80, 0)", + "background": "rgb(244, 244, 241)", + "contrast": 6.059917570925421 + }, + { + "class": "text-success", + "text": "Success text", + "color": "rgb(35, 111, 52)", + "background": "rgb(244, 244, 241)", + "contrast": 5.613560011637269 + }, + { + "class": "text-danger", + "text": "Error text", + "color": "rgb(180, 33, 33)", + "background": "rgb(255, 255, 255)", + "contrast": 6.603434368361208 + }, + { + "class": "text-warning", + "text": "Warning text", + "color": "rgb(133, 80, 0)", + "background": "rgb(255, 255, 255)", + "contrast": 6.6777466698617465 + }, + { + "class": "text-success", + "text": "Success text", + "color": "rgb(35, 111, 52)", + "background": "rgb(255, 255, 255)", + "contrast": 6.185881447238118 + }, + { + "class": "notice notice-alert", + "text": "Application error notice", + "color": "rgb(180, 33, 33)", + "background": "rgb(252, 234, 234)", + "contrast": 5.6903741760936315 + }, + { + "class": "chip chip-bad", + "text": "Failed", + "color": "rgb(180, 33, 33)", + "background": "rgb(252, 234, 234)", + "contrast": 5.6903741760936315 + }, + { + "class": "chip chip-warn", + "text": "Degraded", + "color": "rgb(133, 80, 0)", + "background": "rgb(253, 241, 221)", + "contrast": 5.979044404341219 + }, + { + "class": "chip chip-ok", + "text": "Healthy", + "color": "rgb(35, 111, 52)", + "background": "rgb(233, 246, 236)", + "contrast": 5.554998206317173 + }, + { + "class": "chip chip-idle", + "text": "Disabled", + "color": "rgb(83, 93, 102)", + "background": "rgb(238, 240, 242)", + "contrast": 5.881363117248676 + } + ], + "checks": { + "allSemanticTextAA": true, + "noBodyOverflow": true, + "allSevenRowsExactHeight": true, + "decorativeVectorsOnly": true, + "textOnlyMenu": true, + "menuFocusReturn": true, + "noPageErrors": true + }, + "errors": [], + "passed": true + } +] diff --git a/docs/ui-consistency/evidence/ot12-visual/native.log b/docs/ui-consistency/evidence/ot12-visual/native.log new file mode 100644 index 000000000..43e5bc1d3 --- /dev/null +++ b/docs/ui-consistency/evidence/ot12-visual/native.log @@ -0,0 +1,6 @@ +{ + "origin": "http://127.0.0.1:52886", + "cases": 6, + "passed": 6, + "failed": [] +} diff --git a/docs/ui-consistency/evidence/ot12-visual/semantic-utilities-before.json b/docs/ui-consistency/evidence/ot12-visual/semantic-utilities-before.json new file mode 100644 index 000000000..0caffd8bc --- /dev/null +++ b/docs/ui-consistency/evidence/ot12-visual/semantic-utilities-before.json @@ -0,0 +1,58 @@ +[ + { + "surface": "var(--paper)", + "cls": "text-danger", + "color": "rgb(220, 53, 69)", + "background": "rgb(244, 244, 241)", + "contrast": 4.108628212218558 + }, + { + "surface": "var(--paper)", + "cls": "text-warning", + "color": "rgb(255, 193, 7)", + "background": "rgb(244, 244, 241)", + "contrast": 1.4792352719320216 + }, + { + "surface": "var(--paper)", + "cls": "text-success", + "color": "rgb(25, 135, 84)", + "background": "rgb(244, 244, 241)", + "contrast": 4.111608216109229 + }, + { + "surface": "var(--paper)", + "cls": "notice-alert", + "color": "rgb(224, 49, 49)", + "background": "rgb(244, 244, 241)", + "contrast": 4.095533773275781 + }, + { + "surface": "var(--card)", + "cls": "text-danger", + "color": "rgb(220, 53, 69)", + "background": "rgb(255, 255, 255)", + "contrast": 4.527516759217673 + }, + { + "surface": "var(--card)", + "cls": "text-warning", + "color": "rgb(255, 193, 7)", + "background": "rgb(255, 255, 255)", + "contrast": 1.6300483126171652 + }, + { + "surface": "var(--card)", + "cls": "text-success", + "color": "rgb(25, 135, 84)", + "background": "rgb(255, 255, 255)", + "contrast": 4.530800584587276 + }, + { + "surface": "var(--card)", + "cls": "notice-alert", + "color": "rgb(224, 49, 49)", + "background": "rgb(255, 255, 255)", + "contrast": 4.513087297922132 + } +] diff --git a/docs/ui-consistency/evidence/ot12-visual/source-freeze.json b/docs/ui-consistency/evidence/ot12-visual/source-freeze.json new file mode 100644 index 000000000..c7db498d5 --- /dev/null +++ b/docs/ui-consistency/evidence/ot12-visual/source-freeze.json @@ -0,0 +1,16 @@ +{ + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/AlarmsHistorian.razor": "19f4ad5637600d1318114f6ffecf48e6fd6d627b04c74001f1f2fd208d64fea8", + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Alerts.razor": "0ac9ebca3ff508a8b9e1cd15ba4b69870601adc938ba9ab2495c4a8ed3983696", + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Fleet.razor": "bc4004adee5f028e2ede3b9a183539b84a582951ea9c525b8723bf9f59280bfb", + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/FleetDiagnostics.razor": "2f1480924f349ee5781fa08fc94ba91dc6631844187f67ee2011745748898461", + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Hosts.razor": "8d09ba54825760074100ea3b9017187ab454195e8f54ce63cdbbcaf20eaf0b6b", + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor": "3e76fcfbfcceafa13e4cee424113f14d14928c6c547568ac30f7b65ee13b1605", + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/ScriptLog.razor": "83ec953417dc252f2a9116d82ac77c4e325eaa6aa215de221e793d0da4963e3b", + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/ClusterAcls.razor": "a35494068ae178cdef5a259c45cda1c8055d42180d8eb2f1bda9763fcb369adc", + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Acls/AclScopeTree.razor": "c5ce66f2d1fb1dca60d8cdeaf86c64388f7d9765ee35b64f75086958da3825ed", + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawTree.razor": "6867a8282e1ce9dd551d848b0c86d931e330353caea3e8f98dd73f35bf01e90a", + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/UnsTree.razor": "440f9a616e5c14c6bfca99902bf186becb64a5d350a7d71ed31554e69909c5b0", + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawKindIcon.razor": "82dfe8679eafda42df9a027ed237ab79f681f5b45511ddb67d6765b783fc9cf9", + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/TreeChevron.razor": "bef593cb546a978c3dae001f7768f1a5376703172c076adf4c021008ba6b23ed", + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/wwwroot/css/site.css": "32e9dc7ffd87499d86616c314e393787b9d37770aca178482cbe2c57b80859d9" +} diff --git a/docs/ui-consistency/evidence/ot12-visual/status-icons-1440-zoom1-touchFalse.png b/docs/ui-consistency/evidence/ot12-visual/status-icons-1440-zoom1-touchFalse.png new file mode 100644 index 000000000..9660083f7 Binary files /dev/null and b/docs/ui-consistency/evidence/ot12-visual/status-icons-1440-zoom1-touchFalse.png differ diff --git a/docs/ui-consistency/evidence/ot12-visual/status-icons-1440-zoom1-touchTrue.png b/docs/ui-consistency/evidence/ot12-visual/status-icons-1440-zoom1-touchTrue.png new file mode 100644 index 000000000..5578f83ce Binary files /dev/null and b/docs/ui-consistency/evidence/ot12-visual/status-icons-1440-zoom1-touchTrue.png differ diff --git a/docs/ui-consistency/evidence/ot12-visual/status-icons-1440-zoom2-touchFalse.png b/docs/ui-consistency/evidence/ot12-visual/status-icons-1440-zoom2-touchFalse.png new file mode 100644 index 000000000..a14024335 Binary files /dev/null and b/docs/ui-consistency/evidence/ot12-visual/status-icons-1440-zoom2-touchFalse.png differ diff --git a/docs/ui-consistency/evidence/ot12-visual/status-icons-390-zoom1-touchFalse.png b/docs/ui-consistency/evidence/ot12-visual/status-icons-390-zoom1-touchFalse.png new file mode 100644 index 000000000..7a765ec3e Binary files /dev/null and b/docs/ui-consistency/evidence/ot12-visual/status-icons-390-zoom1-touchFalse.png differ diff --git a/docs/ui-consistency/evidence/ot12-visual/status-icons-390-zoom1-touchTrue.png b/docs/ui-consistency/evidence/ot12-visual/status-icons-390-zoom1-touchTrue.png new file mode 100644 index 000000000..10bf76048 Binary files /dev/null and b/docs/ui-consistency/evidence/ot12-visual/status-icons-390-zoom1-touchTrue.png differ diff --git a/docs/ui-consistency/evidence/ot12-visual/status-icons-390-zoom2-touchFalse.png b/docs/ui-consistency/evidence/ot12-visual/status-icons-390-zoom2-touchFalse.png new file mode 100644 index 000000000..96c979e2d Binary files /dev/null and b/docs/ui-consistency/evidence/ot12-visual/status-icons-390-zoom2-touchFalse.png differ diff --git a/docs/ui-consistency/evidence/ot12-visual/status-mapping-byte-check.json b/docs/ui-consistency/evidence/ot12-visual/status-mapping-byte-check.json new file mode 100644 index 000000000..f70d2c284 --- /dev/null +++ b/docs/ui-consistency/evidence/ot12-visual/status-mapping-byte-check.json @@ -0,0 +1,10 @@ +{ + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/AlarmsHistorian.razor": true, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Alerts.razor": true, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Fleet.razor": true, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/FleetDiagnostics.razor": true, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Hosts.razor": true, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor": true, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/ScriptLog.razor": true, + "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/ClusterAcls.razor": true +} diff --git a/docs/ui-consistency/evidence/ot12-visual/tests.log b/docs/ui-consistency/evidence/ot12-visual/tests.log new file mode 100644 index 000000000..45a6e0e72 --- /dev/null +++ b/docs/ui-consistency/evidence/ot12-visual/tests.log @@ -0,0 +1,52 @@ + + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/src/Tooling/ZB.MOM.WW.OtOpcUa.Analyzers/bin/Release/netstandard2.0/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Abstractions/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Commons/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Cluster/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Configuration/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Security/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.ControlPlane/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.AdminUI.dll + ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll +Test run for /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/bin/Release/net10.0/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. + +Passed! - Failed: 0, Passed: 22, Skipped: 0, Total: 22, Duration: 1 s - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0) diff --git a/infra/tools/ui-consistency/check_status_icons.py b/infra/tools/ui-consistency/check_status_icons.py new file mode 100644 index 000000000..54c08b6df --- /dev/null +++ b/infra/tools/ui-consistency/check_status_icons.py @@ -0,0 +1,23 @@ +"""Actual canonical host inks and decorative vectors, no domain operations.""" +import json,re,sys +from pathlib import Path +from playwright.sync_api import sync_playwright,expect +sys.path.insert(0,'/Users/dohertj2/.codex/worktrees/scada-ui-consistency/scadaproj/components/ui-theme/validation/theme-1.0.0/canary') +from browser_zoom import zoom_browser,set_browser_zoom +origin=re.search(r'Now listening on: (http://127.0.0.1:\d+)',Path('/tmp/ot12-visual-host.log').read_text()).group(1) +out=Path('docs/ui-consistency/evidence/ot12-visual');out.mkdir(parents=True,exist_ok=True);results=[] +def lum(value): + rgb=[int(x)/255 for x in re.findall(r'\d+',value)[:3]];rgb=[v/12.92 if v<=.04045 else ((v+.055)/1.055)**2.4 for v in rgb];return sum(x*y for x,y in zip(rgb,[.2126,.7152,.0722])) +with sync_playwright() as p: + with zoom_browser(p) as (context,worker): + for width,zoom,touch in [(1440,1,False),(390,1,False),(1440,2,False),(390,2,False),(1440,1,True),(390,1,True)]: + page=context.new_page();page.set_viewport_size({'width':width,'height':3200 if zoom==2 else 1100});errors=[];page.on('pageerror',lambda e:errors.append(str(e)));page.goto(origin+'/status-icon-pilot',wait_until='networkidle');set_browser_zoom(worker,page,zoom) + context.new_cdp_session(page).send('Emulation.setTouchEmulationEnabled',{'enabled':touch,'maxTouchPoints':1});tree=page.locator('.raw-tree-rows');expect(tree).to_have_attribute('data-density','touch' if touch else 'compact');expect(page.locator('.raw-tree-row')).to_have_count(7) + values=page.locator('#semantic-paper > span,#semantic-card > span,#semantic-card > .notice-alert').evaluate_all('els=>els.map(e=>{const s=getComputedStyle(e);let p=e,b=s.backgroundColor;while((b==="rgba(0, 0, 0, 0)"||b==="transparent")&&p.parentElement){p=p.parentElement;b=getComputedStyle(p).backgroundColor;}return {class:e.className,text:e.textContent,color:s.color,background:b};})') + for value in values: + a,b=lum(value['color']),lum(value['background']);value['contrast']=(max(a,b)+.05)/(min(a,b)+.05) + measures=page.evaluate('({width:innerWidth,document:document.documentElement.scrollWidth,dpr:devicePixelRatio,coarse:matchMedia("(pointer:coarse)").matches,heights:[...new Set([...document.querySelectorAll(".raw-tree-row")].map(e=>e.getBoundingClientRect().height))]})');checks={'allSemanticTextAA':all(v['contrast']>=4.5 for v in values),'noBodyOverflow':measures['width']==measures['document'],'allSevenRowsExactHeight':measures['heights']==[44 if touch else 30],'decorativeVectorsOnly':page.locator('.raw-tree-row svg[width="16"][aria-hidden="true"][focusable="false"]').count()==7} + trigger=page.locator('.ctx-ellipsis').first;trigger.focus();trigger.press('Enter');menu=page.get_by_role('menu');expect(menu).to_be_visible();checks['textOnlyMenu']=menu.locator('.ctx-icon').count()==0 and 'New folder' in menu.inner_text() and 'New driver' in menu.inner_text();page.keyboard.press('Escape');expect(trigger).to_be_focused();checks['menuFocusReturn']=True + checks['noPageErrors']=not errors;record={'width':width,'zoom':zoom,'touch':touch,'measurements':measures,'contrast':values,'checks':checks,'errors':errors,'passed':all(checks.values())};results.append(record);page.screenshot(path=str(out/f'status-icons-{width}-zoom{zoom}-touch{touch}.png'),full_page=False);page.close();(out/'matrix.json').write_text(json.dumps(results,indent=2)+'\n') +print(json.dumps({'origin':origin,'cases':len(results),'passed':sum(x['passed'] for x in results),'failed':[x for x in results if not x['passed']]},indent=2)) +raise SystemExit(0 if all(x['passed'] for x in results) else 1) diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/AlarmsHistorian.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/AlarmsHistorian.razor index b0c4dcbca..bf71836d1 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/AlarmsHistorian.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/AlarmsHistorian.razor @@ -125,7 +125,7 @@ else HistorianDrainState.Disabled => "chip chip-idle", HistorianDrainState.Idle => "chip chip-idle", HistorianDrainState.Draining => "chip chip-ok", - HistorianDrainState.BackingOff => "chip chip-caution", + HistorianDrainState.BackingOff => "chip chip-warn", _ => "chip chip-idle", }; diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Alerts.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Alerts.razor index ed74a3a67..3aec24b37 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Alerts.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Alerts.razor @@ -334,9 +334,9 @@ else private static string KindChipClass(string kind) => kind switch { - "Activated" => "chip-alert", + "Activated" => "chip-bad", "Cleared" => "chip-ok", - "Acknowledged" or "Confirmed" => "chip-caution", + "Acknowledged" or "Confirmed" => "chip-warn", "Shelved" or "Disabled" => "chip-idle", _ => "chip-idle", }; diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/ClusterAcls.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/ClusterAcls.razor index b97ef904a..11d7c2b61 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/ClusterAcls.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/ClusterAcls.razor @@ -28,7 +28,7 @@ else {
The Scope target column resolves each row against the current configuration. A - row marked unresolved points at nothing — it is shipped in + row marked unresolved points at nothing — it is shipped in every deployment artifact but authorizes nobody, and the deploy gate rejects it. Open it and re-pick the scope.
@@ -79,7 +79,7 @@ else } else { -
unresolved
+
unresolved
@check.Message
} } diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Fleet.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Fleet.razor index 6cdea0fb7..0acf3b32c 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Fleet.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Fleet.razor @@ -230,11 +230,11 @@ else status is { } s && ZB.MOM.WW.OtOpcUa.ControlPlane.Coordinators.ConfigPublishCoordinator.IsDegraded(s, failureReason); private static string StatusChipClass(NodeDeploymentStatus? status, string? failureReason) => - IsDegraded(status, failureReason) ? "chip-caution" : status switch + IsDegraded(status, failureReason) ? "chip-warn" : status switch { NodeDeploymentStatus.Applied => "chip-ok", - NodeDeploymentStatus.Applying => "chip-caution", - NodeDeploymentStatus.Failed => "chip-alert", + NodeDeploymentStatus.Applying => "chip-warn", + NodeDeploymentStatus.Failed => "chip-bad", _ => "chip-idle", }; diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/FleetDiagnostics.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/FleetDiagnostics.razor index 3c4748fb1..6f1a7ec14 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/FleetDiagnostics.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/FleetDiagnostics.razor @@ -322,8 +322,8 @@ else private static string StateChipClass(string state) => state switch { "Healthy" => "chip-ok", - "Degraded" or "Connecting" or "Reconnecting" => "chip-caution", - "Faulted" => "chip-alert", + "Degraded" or "Connecting" or "Reconnecting" => "chip-warn", + "Faulted" => "chip-bad", _ => "chip-idle", }; diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Hosts.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Hosts.razor index eb03c6c46..ec364c7b2 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Hosts.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Hosts.razor @@ -608,10 +608,10 @@ else private static string StatusChipClass(string status, bool unreachable) => (status, unreachable) switch { - (_, true) => "chip-alert", + (_, true) => "chip-bad", ("Up", _) => "chip-ok", - ("Joining", _) or ("Leaving", _) or ("Exiting", _) or ("WeaklyUp", _) => "chip-caution", - ("Down", _) or ("Removed", _) => "chip-alert", + ("Joining", _) or ("Leaving", _) or ("Exiting", _) or ("WeaklyUp", _) => "chip-warn", + ("Down", _) or ("Removed", _) => "chip-bad", _ => "chip-idle", }; diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor index 0ec07442a..e31ebf3a3 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor @@ -28,7 +28,7 @@
SearchBase@DisplayText.Abbreviate(_options.SearchBase, 48)
@if (_options.Transport == ZB.MOM.WW.Auth.Abstractions.Ldap.LdapTransport.None && _options.AllowInsecure) { -
WarningPlaintext credentials over LDAP — dev mode only
+
WarningPlaintext credentials over LDAP — dev mode only
} diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/ScriptLog.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/ScriptLog.razor index b274bf377..c998c0a26 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/ScriptLog.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/ScriptLog.razor @@ -179,8 +179,8 @@ else private static string LevelChipClass(string level) => level switch { - "Critical" or "Error" => "chip-alert", - "Warning" => "chip-caution", + "Critical" or "Error" => "chip-bad", + "Warning" => "chip-warn", "Information" => "chip-idle", _ => "chip-idle", }; diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Acls/AclScopeTree.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Acls/AclScopeTree.razor index 35dfea80a..0c56e50f7 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Acls/AclScopeTree.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Acls/AclScopeTree.razor @@ -38,7 +38,7 @@ { } else @@ -51,7 +51,6 @@ @@ -60,7 +59,6 @@ { @* Label only — an enterprise heading, or a level with no ACL scope kind behind it. *@ - @node.DisplayName } diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawKindIcon.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawKindIcon.razor new file mode 100644 index 000000000..96b9a93f8 --- /dev/null +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawKindIcon.razor @@ -0,0 +1,35 @@ +@using ZB.MOM.WW.OtOpcUa.AdminUI.Uns +@* Raw labels carry meaning; these fixed-stroke vectors are decorative and OS independent. *@ + +@code { + /// The existing raw hierarchy kind; no operation or domain state is inferred. + [Parameter] public RawNodeKind Kind { get; set; } +} diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawTree.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawTree.razor index 41a840fc1..72e122c3a 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawTree.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Raw/RawTree.razor @@ -287,7 +287,7 @@ } else @@ -320,7 +320,7 @@ @onchange="@(e => ToggleTagSelection(node, e.Value is true))" /> } - + @node.DisplayName @if (muted) { @@ -333,18 +333,6 @@ }; - private static string KindIcon(RawNodeKind kind) => kind switch - { - RawNodeKind.Enterprise => "🏢", - RawNodeKind.Cluster => "🖥️", - RawNodeKind.Folder => "📁", - RawNodeKind.Driver => "🔌", - RawNodeKind.Device => "📟", - RawNodeKind.TagGroup => "🗂️", - RawNodeKind.Tag => "🏷️", - _ => "•", - }; - // --------------------------------------------------------------------------- // Lazy expansion — the whole point of WP2 (UNS never did this). // --------------------------------------------------------------------------- @@ -419,8 +407,8 @@ private List PickerContainerMenu(RawNode node) => new() { - new() { Label = "Select all tags below", Icon = "☑", OnClick = () => SelectAllUnderAsync(node) }, - new() { Label = "Clear all tags below", Icon = "☐", OnClick = () => ClearAllUnderAsync(node) }, + new() { Label = "Select all tags below", OnClick = () => SelectAllUnderAsync(node) }, + new() { Label = "Clear all tags below", OnClick = () => ClearAllUnderAsync(node) }, }; private bool IsTagSelected(RawNode node) => @@ -455,63 +443,63 @@ private List ClusterMenu(RawNode node) => new() { - new() { Label = "New folder", Icon = "📁", OnClick = () => OnNewFolder(node) }, - new() { Label = "New driver", Icon = "🔌", OnClick = () => OnNewDriver(node) }, + new() { Label = "New folder", OnClick = () => OnNewFolder(node) }, + new() { Label = "New driver", OnClick = () => OnNewDriver(node) }, }; private List FolderMenu(RawNode node) => new() { - new() { Label = "New folder", Icon = "📁", OnClick = () => OnNewFolder(node) }, - new() { Label = "New driver", Icon = "🔌", OnClick = () => OnNewDriver(node) }, + new() { Label = "New folder", OnClick = () => OnNewFolder(node) }, + new() { Label = "New driver", OnClick = () => OnNewDriver(node) }, ContextMenuItem.Separator(), - new() { Label = "Rename", Icon = "✏️", OnClick = () => OnRenameFolder(node) }, - new() { Label = "Delete", Icon = "🗑️", OnClick = () => OnDeleteFolder(node) }, + new() { Label = "Rename", OnClick = () => OnRenameFolder(node) }, + new() { Label = "Delete", OnClick = () => OnDeleteFolder(node) }, }; private List DriverMenu(RawNode node) => new() { - new() { Label = "Configure", Icon = "⚙", OnClick = () => OnConfigureDriver(node) }, - new() { Label = "New device", Icon = "📟", OnClick = () => OnNewDevice(node) }, + new() { Label = "Configure", OnClick = () => OnConfigureDriver(node) }, + new() { Label = "New device", OnClick = () => OnNewDevice(node) }, ContextMenuItem.Separator(), - new() { Label = node.Enabled ? "Disable" : "Enable", Icon = node.Enabled ? "⏸" : "▶", + new() { Label = node.Enabled ? "Disable" : "Enable", OnClick = () => OnToggleDriverEnabled(node) }, - new() { Label = "Rename", Icon = "✏️", OnClick = () => OnRenameDriver(node) }, - new() { Label = "Delete", Icon = "🗑️", OnClick = () => OnDeleteDriver(node) }, + new() { Label = "Rename", OnClick = () => OnRenameDriver(node) }, + new() { Label = "Delete", OnClick = () => OnDeleteDriver(node) }, }; private List DeviceMenu(RawNode node) => new() { - new() { Label = "Configure", Icon = "⚙", OnClick = () => OnConfigureDevice(node) }, - new() { Label = "New tag-group", Icon = "🗂️", OnClick = () => OnNewTagGroup(node) }, + new() { Label = "Configure", OnClick = () => OnConfigureDevice(node) }, + new() { Label = "New tag-group", OnClick = () => OnNewTagGroup(node) }, ContextMenuItem.Separator(), // "Add tags ▸" flattened — ContextMenu is single-level, so the submenu is a labelled group. new() { Label = "Add tags", Disabled = true }, - new() { Label = "Manual entry", Icon = "✍️", OnClick = () => OnAddManualTags(node) }, - new() { Label = "Import CSV", Icon = "📥", OnClick = () => OnImportCsv(node) }, - new() { Label = "Export CSV", Icon = "📤", OnClick = () => OnExportCsv(node) }, - new() { Label = "Browse device…", Icon = "🔭", OnClick = () => OnBrowseDevice(node) }, + new() { Label = "Manual entry", OnClick = () => OnAddManualTags(node) }, + new() { Label = "Import CSV", OnClick = () => OnImportCsv(node) }, + new() { Label = "Export CSV", OnClick = () => OnExportCsv(node) }, + new() { Label = "Browse device…", OnClick = () => OnBrowseDevice(node) }, ContextMenuItem.Separator(), - new() { Label = "Delete", Icon = "🗑️", OnClick = () => OnDeleteDevice(node) }, + new() { Label = "Delete", OnClick = () => OnDeleteDevice(node) }, }; private List TagGroupMenu(RawNode node) => new() { - new() { Label = "New group", Icon = "🗂️", OnClick = () => OnNewGroup(node) }, + new() { Label = "New group", OnClick = () => OnNewGroup(node) }, ContextMenuItem.Separator(), new() { Label = "Add tags", Disabled = true }, - new() { Label = "Manual entry", Icon = "✍️", OnClick = () => OnAddManualTags(node) }, - new() { Label = "Import CSV", Icon = "📥", OnClick = () => OnImportCsv(node) }, - new() { Label = "Export CSV", Icon = "📤", OnClick = () => OnExportCsv(node) }, - new() { Label = "Browse device…", Icon = "🔭", OnClick = () => OnBrowseDevice(node) }, + new() { Label = "Manual entry", OnClick = () => OnAddManualTags(node) }, + new() { Label = "Import CSV", OnClick = () => OnImportCsv(node) }, + new() { Label = "Export CSV", OnClick = () => OnExportCsv(node) }, + new() { Label = "Browse device…", OnClick = () => OnBrowseDevice(node) }, ContextMenuItem.Separator(), - new() { Label = "Rename", Icon = "✏️", OnClick = () => OnRenameTagGroup(node) }, - new() { Label = "Delete", Icon = "🗑️", OnClick = () => OnDeleteTagGroup(node) }, + new() { Label = "Rename", OnClick = () => OnRenameTagGroup(node) }, + new() { Label = "Delete", OnClick = () => OnDeleteTagGroup(node) }, }; private List TagMenu(RawNode node) => new() { - new() { Label = "Edit", Icon = "✏️", OnClick = () => OnEditTag(node) }, - new() { Label = "Delete", Icon = "🗑️", OnClick = () => OnDeleteTag(node) }, + new() { Label = "Edit", OnClick = () => OnEditTag(node) }, + new() { Label = "Delete", OnClick = () => OnDeleteTag(node) }, }; // --------------------------------------------------------------------------- diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/TreeChevron.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/TreeChevron.razor new file mode 100644 index 000000000..54f622799 --- /dev/null +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/TreeChevron.razor @@ -0,0 +1,8 @@ +@* Decorative geometry only; the owning button supplies its contextual accessible name. *@ + +@code { + /// Whether the owning tree button currently shows its expanded state. + [Parameter] public bool Expanded { get; set; } +} diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/UnsTree.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/UnsTree.razor index 01d29d5b1..0800187be 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/UnsTree.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/Uns/UnsTree.razor @@ -51,7 +51,7 @@ } else @@ -101,7 +101,7 @@ // either side of it are not adjacent and each carries its own margin. - ⚙ settings + Settings break; diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/wwwroot/css/site.css b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/wwwroot/css/site.css index 8c1dcb452..7e984d045 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/wwwroot/css/site.css +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/wwwroot/css/site.css @@ -15,27 +15,18 @@ padding: 0.3rem 0.6rem; } -/* OtOpcUa domain pages (Alerts, ScriptLog, Fleet, Hosts, AlarmsHistorian, - RoleGrants, ImportEquipment) use two extra status-chip variants on top of the - kit's .chip base + .chip-ok/.chip-warn/.chip-bad/.chip-idle/.chip-info set. - .chip-alert is the red/danger variant (mirrors the kit's .chip-bad); - .chip-caution is the amber variant (mirrors the kit's .chip-warn). Both reuse - the kit's status tokens so they stay on-palette. */ -.chip-alert { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-border); } -.chip-caution { color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-border); } +/* Bootstrap utility text is host presentation, separate from decorative signal tokens. + Keep error/success/warning labels readable on both Technical-Light paper and card. */ +.text-danger { color: var(--bad-ink) !important; } +.text-warning { color: var(--warn-ink) !important; } +.text-success { color: var(--ok-ink) !important; } /* Button sizing lives in the kit since ZB.MOM.WW.Theme 0.4.0 (layout.css ships the .btn / .btn-sm CSS-variable overrides this sheet carried locally under 0.3.1). */ -/* Red variant of the kit's .notice inline banner (theme.css styles .notice amber, - off the --warn-* tokens). Error banners across the AdminUI want the red tint, and - were reaching for it with an inline style="border-color:var(--alert)" — but no - --alert token exists in Theme 0.3.1, site.css or anywhere else, so that inline - rule resolved to nothing and the banner stayed amber. The kit's red family is the - --bad-* set (--bad / --bad-bg / --bad-border), the same tokens .chip-alert above - uses; combine as `class="panel notice notice-alert"`. */ +/* Application error notices use the shared semantic family and readable text ink. */ .notice-alert { - color: var(--bad); + color: var(--bad-ink); background: var(--bad-bg); border-color: var(--bad-border); }