30 lines
3.8 KiB
Markdown
30 lines
3.8 KiB
Markdown
# OT14 security fields and narrow-layout correction
|
|
|
|
Scope: `RoleGrants.razor`, `Certificates.razor`, new `RoleGrantFieldAssociationTests.cs`, and this evidence directory. The first final-grammar matrix found two unnamed role-grant controls and page overflow from LDAP summaries/configuration keys at effective 195 CSS pixels, plus long PKI paths in empty/missing-directory states at 390/195 pixels. Original observations remain in `../ot14-final/first-grammar-matrix.json` and `first-overflow-elements.json`.
|
|
|
|
## Minimal repair
|
|
|
|
Role grants now has visible LDAP group/Role labels, per-instance scoped `id`/`for` links, and a persistent associated error target. Existing blank-group validation appears in that alert without dispatching a mutation. Local Bootstrap wrapping/break utilities and shrinkable value markup keep LDAP summary values/configuration keys within their cards. The existing Add binding, roles, deletion confirmation, authorization, service calls and all existing code remain unchanged. Certificates adds `text-break` to exactly the two existing PKI-path spans in missing/empty states. No shared theme/CSS, service, model, route, authorization, package or domain changes.
|
|
|
|
## Behavioral verification
|
|
|
|
- `red.trx`/`red.log`: two new tests compile and fail against the original markup for missing IDs and error associations.
|
|
- `green.trx`/`green.log`: 18 passed, zero failed/skipped: two new naming/association/validation tests, existing role-grant deletion-confirmation regression, and existing certificate-store manager regressions. The field-only mapping fixture permits the synthetic list read and refuses every mutation.
|
|
- `source-parity.json`: both existing `@code` bodies exactly match the recorded pre-edit baseline, after removing only the additive RoleGrants scoped-ID helper. `verify-source.py` regenerates this proof. No field binding/event expression changed.
|
|
- Primary browser confirmation: the eight RoleGrants/Certificates cases in `../ot14-final/confirmation-grammar-matrix.json` pass all checks at actual widths 1440/390/720/195 CSS pixels (the latter two are real 200% zoom). Document width equals viewport width in all eight; fields have names, unique IDs and resolving references, with no page errors. `security-confirmation-extract.json` retains only these owned cases. The RoleGrants real-200% viewport screenshot was visually inspected. This is synthetic local read-adapter evidence; it does not certify real LDAP, certificate-store or mutation behavior or claim overall OT14 completion.
|
|
|
|
Command, from the OtOpcUa repository root (the state file is private and its contents must not be printed):
|
|
|
|
```sh
|
|
python3 infra/tools/ui-consistency/with_private_sql.py \
|
|
--state /var/folders/1q/cqgzjt_n4c741dqw9r896v4r0000gn/T/ot-ui-private-sql-8sd0_pqn/state.json \
|
|
-- dotnet test tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.csproj \
|
|
--artifacts-path "$PWD/artifacts/ui-equipment-caller-tests" \
|
|
--filter 'FullyQualifiedName~RoleGrantFieldAssociationTests|FullyQualifiedName~DeleteConfirmRenderTests.RoleGrants_Delete_confirms_first|FullyQualifiedName~CertificateStoreManagerTests' \
|
|
--logger 'trx;LogFileName=green.trx' \
|
|
--results-directory docs/ui-consistency/evidence/ot14-security-wrap
|
|
python3 docs/ui-consistency/evidence/ot14-security-wrap/verify-source.py
|
|
```
|
|
|
|
Tests use the existing private-SQL discovery runner; no shared LAN SQL discovery, live certificate store or LDAP mutations are needed. No VoiceOver test was performed, per user exclusion. No deployment or operational mutation occurred. This batch owns no running fixture; the primary agent retains its read-only final-grammar fixture and final chapter/full-suite acceptance. Independent gateway source review found no blocking defect; existing business bodies and exact frozen hashes were independently verified.
|