Audit of every page in CentralUI against the Sites.razor card-grid pattern, the no-third-party-UI-libs constraint, and accessibility basics. Findings + per-page severity + suggested implementation order live in docs/plans/. Implementation follows in subsequent commits.
32 KiB
ScadaLink Central UI — Design & UX Audit
Date: 2026-05-12
Branch at audit time: feature/templates-folder-hierarchy (after Sites.razor redesign, commit 0805e18)
Scope: All Razor pages, layout, and shared components in src/ScadaLink.CentralUI.
Reference pattern: src/ScadaLink.CentralUI/Components/Pages/Admin/Sites.razor — 2-column responsive card grid, header flex row, kebab menus, search filter, Bootstrap collapse for noisy details, @key= on iterated cards, "No X match the filter." and empty-state CTAs.
Constraints (recap)
- Blazor Server + Bootstrap 5 only. No third-party component frameworks (no MudBlazor / Radzen / Blazorise / Syncfusion).
- Clean, corporate, internal-use aesthetic. Not flashy.
- Form pages: vertical stacking; read-only fields first; subsections stacked; buttons at bottom.
- Accessibility: aria-labels on icon buttons; labels paired with inputs; semantic headings; never use color as the only state cue.
Severity summary
| Severity | Count | Pages |
|---|---|---|
| High | 7 | LdapMappingForm · DataConnections (header/a11y) · SharedScripts · ExternalSystems · TemplateEdit · DebugView · EventLogs |
| Medium | 11 | LdapMappings · ApiKeys · DataConnections · DataConnectionForm · ApiKeyForm (partial) · Templates · Topology · Deployments · Dashboard · Health · ParkedMessages · AuditLog · MainLayout / NavMenu · ConfirmDialog · Toast · global CSS |
| Low | 7+ | Most form pages (TemplateCreate, ExternalSystemForm, SharedScriptForm, DbConnectionForm, ApiMethodForm, NotificationListForm) · Login error feedback · NotAuthorizedView · LoadingSpinner contrast · DataTable clear-button |
Suggested implementation order (high impact / low risk first):
- Shared shell fixes (ConfirmDialog scroll-lock + Escape + default button color, Toast
aria-live+ custom delay, NavMenu scroll container, login vertical centering) — these unblock everything else and are mostly small. - List-page pattern roll-out: apply the Sites.razor card grid + search + kebab template to LdapMappings, ApiKeys, SharedScripts. These are mechanical.
- DebugView guardrails: scroll-lock, max-row cap,
aria-live, filter — this is high-severity and isolated. - EventLogs: message expand, pagination clarity, filter accessibility.
- ExternalSystems + TemplateEdit refactors — biggest scope, leave for last because they need design discussion before implementation.
Cross-cutting findings (apply to many pages)
These show up everywhere. Fix at the pattern level first, then tour every page once to apply:
<h4>page title in a flex header. Sites.razor sets the standard at line 16. Currently Templates (<h6>), Topology (<h6>), Dashboard (<h3>), and most form pages mix levels. Adopt<h4 class="mb-0">insided-flex justify-content-between align-items-center mb-3.- Search input above the list.
max-width: 320px, bound to_searchwith@bind:event="oninput", plus the "No X match the filter." inline message. Missing on: LdapMappings, ApiKeys, SharedScripts, EventLogs, ParkedMessages (per-site only), AuditLog. - Kebab (⋮) menu for less-frequent actions. Edit stays as a primary button; Delete/Disable/Deploy move into the dropdown. Missing on: LdapMappings, ApiKeys, SharedScripts, TemplateEdit member rows, ParkedMessages.
@key="entity.Id"on iterated rows / cards. Prevents Bootstrap collapse state leaks (the bug caught in smoke on Sites). Apply anywhere@foreachrenders elements with Bootstrap stateful classes (show,collapsed,active).- State badges must not rely on color alone. Add either icon + text or
aria-label="State: …". Affected: Health node Online/Offline, Topology Stale, Deployments row colors, DebugView Quality / Alarm State, AuditLog action badges. TimestampDisplaycomponent consistency. EventLogs / ParkedMessages / AuditLog use it; Health and DebugView format inline. Pick the component, give it a single rendering of "HH:mm:ss UTC" or relative+absolute, retrofit everywhere.- Empty-state CTA when count is 0. Sites.razor lines 53-60 are the template. Missing on: SharedScripts, Templates (tree), ExternalSystems tabs, ParkedMessages, AuditLog.
aria-labelon icon-only buttons (⋮,📋, copy, expand/collapse). Almost universally missing today.- Truncate-and-expand pattern. AuditLog has the cleanest pattern (
Viewtoggle for state JSON). Apply to long message strings (EventLogs, ParkedMessages, Deployments errors) instead of mid-string CSS truncation.
Admin section
LdapMappings.razor — /admin/ldap-mappings — Medium
File: src/ScadaLink.CentralUI/Components/Pages/Admin/LdapMappings.razor
What it does: Lists LDAP group → role mappings with inline Edit/Delete and Site Scope hints.
Issues
- Consistency: Header (line 12) lacks the Sites flex layout + Bulk actions dropdown next to the primary Add button.
- Density: 5-column table; "Site Scope Rules" cell jams multiple badges into a narrow column.
- Consistency: No search filter. Sites uses one at lines 67-69.
- Consistency: Edit + Delete rendered as twin buttons in the row; Sites uses kebab.
- Other: "Site Scope Rules" preview in the row + the "(manage on edit page)" hint creates a confusing duality — the list page promises something it can't deliver.
Recommendations
- Add header flex layout + search input.
- Replace Edit/Delete pair with
Editbutton +⋮dropdown containing Delete. - Either drop the Site Scope column from the list entirely (show a
n rule(s)badge instead) or expand it into a collapse panel on the row. - If keeping table layout, add
@key="m.Id".
LdapMappingForm.razor — /admin/ldap-mappings/create and /{Id}/edit — High
File: src/ScadaLink.CentralUI/Components/Pages/Admin/LdapMappingForm.razor
What it does: Create/edit a single mapping, plus a secondary panel for Site Scope Rules in edit mode.
Issues
- Form-layout: Two distinct sub-forms on one page (mapping basics + scope rules) with no visual separation. Scope rules only become editable after Save, but the UI doesn't communicate that workflow.
- Hierarchy: Both sections use
<h6>insidecard-title; no primary/secondary hierarchy. - Form-layout: Scope-rule entry uses a nested table inside the card; visually heavy.
- Accessibility: Role
<select>has noaria-describedby/ help text explaining why "Deployment" surfaces the scope rules section.
Recommendations
- Restructure: top card "Mapping" stacked vertically (Name, LDAP Group, Role, [Save]); below it, a card "Site Scope Rules" that's disabled-with-explanation in create mode and editable in edit mode.
- Replace the nested scope-rule table with a tag-style chip list: each scope rule renders as a removable chip; an inline "Add scope rule" form sits below.
- Add
form-textunder Role: "Deployment role: configure site scope below after saving."
DataConnections.razor — /admin/connections — High for header / a11y, Medium overall
File: src/ScadaLink.CentralUI/Components/Pages/Admin/DataConnections.razor
What it does: Treeview of sites and their data connections with context menu CRUD.
Issues
- Hierarchy: Page title is
<h6>(line 24). Promote to<h4>with flex header to match Sites. - Consistency: Inline
btn-groupwith Refresh / Expand / Collapse buttons next to search; visually busy. Sites uses Bulk actions dropdown + Add button only. - Accessibility: Tree node kebab toggles lack
aria-label="More actions for {name}". - Other: Right-click context menu has no visible hover affordance — easy to miss.
- Other: When search returns no matches, the tree silently collapses; no empty-state message.
Recommendations
- Promote heading, adopt flex header. Move Expand/Collapse into a Bulk actions dropdown; drop Refresh (navigation reload covers it).
- Add visible kebab on tree-node hover so the context menu is discoverable.
- Add
aria-labelto every kebab toggle (interpolate the node name). - Add "No connections match the filter." inline when search clears the tree.
DataConnectionForm.razor — /admin/connections/create and /{Id}/edit — Medium
File: src/ScadaLink.CentralUI/Components/Pages/Admin/DataConnectionForm.razor
What it does: Create/edit a connection with primary + optional backup endpoint editors (OPC UA only today).
Issues
- Form-layout: Site field is disabled in edit mode but rendered as a disabled
<select>with no read-only styling cue beyond gray. - Hierarchy: "Backup endpoint"
<h6>usesborder-bottom; primary endpoint has no parallel heading. Hierarchy is one-sided. - Density: "Add Backup Endpoint" button buried inside the card with no signposting that backup is optional.
- Accessibility: No
form-texton Primary Endpoint / Site / failover knobs.
Recommendations
- Use
<input class="form-control-plaintext" readonly>for the Site field in edit mode and add a small explanatory line ("Site is locked after creation"). - Mirror the heading pattern: both Primary and Backup get
<h6>headers; Backup also gets a clear "Optional" badge. - Add
form-texthelp under each tuning knob (PublishingIntervalMs, SamplingIntervalMs, FailoverRetryCount, etc.).
ApiKeys.razor — /admin/api-keys — Medium
File: src/ScadaLink.CentralUI/Components/Pages/Admin/ApiKeys.razor
What it does: Lists API keys with Edit / Disable-Enable / Delete actions; masked key value.
Issues
- Consistency: No search filter.
- Density: 5-column table; Status column is redundant with the Disable/Enable button.
- Consistency: Three buttons in the Actions cell (Edit / Disable / Delete) — should be Edit + kebab.
- Other: No
@key="k.Id"on rows.
Recommendations
- Add search filter and
@key. - Drop the Status column; let the kebab item read "Disable" or "Enable" depending on state.
- Either keep the table and adopt the kebab pattern, or move to the Sites card grid — for ~5 keys per environment the table is fine; for 50+ the card grid would scan better.
ApiKeyForm.razor — /admin/api-keys/create and /{Id}/edit — Low
File: src/ScadaLink.CentralUI/Components/Pages/Admin/ApiKeyForm.razor
What it does: Create an API key (showing the secret once) or rename an existing one.
Issues
- Form-layout: Header has conditional "Back to API Keys" vs "Back" text.
- Other: Copy button on the one-shot secret reveal is wired to a comment / no-op.
- Density: Form is one field but wrapped in card-inside-card.
Recommendations
- Fixed header:
← Back · Add / Edit API Key. - Implement the copy via
IJSRuntime+navigator.clipboard.writeText(mirror Sites.razor'sCopyAsync). - Remove redundant card nesting; render the input + buttons directly in
<div class="container-fluid mt-3">.
Design section
Files discovered:
Components/Pages/Design/Templates.razor @page /design/templates
Components/Pages/Design/TemplateCreate.razor @page /design/templates/create
Components/Pages/Design/TemplateEdit.razor @page /design/templates/{Id:int}
Components/Pages/Design/SharedScripts.razor @page /design/shared-scripts
Components/Pages/Design/SharedScriptForm.razor @page /design/shared-scripts/{create|edit}
Components/Pages/Design/ExternalSystems.razor @page /design/external-systems
Components/Pages/Design/ExternalSystemForm.razor @page /design/external-systems/{create|edit}
Components/Pages/Design/DbConnectionForm.razor @page /design/db-connections/{create|edit}
Components/Pages/Design/ApiMethodForm.razor @page /design/api-methods/{create|edit}
Components/Pages/Design/NotificationListForm.razor @page /design/notification-lists/{create|edit}
Templates.razor — Medium
What it does: Folder-tree view of templates with context-menu CRUD.
Issues
- Hierarchy: Page title is
<h6>(line 53) — should be<h4>in flex header. - Consistency:
btn-group-smof outline buttons for Expand/Collapse — push these into a Bulk actions dropdown. - Accessibility: Context-menu buttons (lines 271-288) lack
aria-label. - Density: Treeview height is hardcoded
calc(100vh - 160px)with no scroll affordance. - Other: No breadcrumb when an edit page navigates away from the tree context.
Recommendations
- Promote heading, adopt flex header pattern.
- Move Expand/Collapse into the Bulk actions dropdown.
- Add aria-labels on every context-menu button (interpolate node name).
- Add a top breadcrumb on TemplateEdit so users know which folder they're editing inside.
SharedScripts.razor — High
What it does: Table of shared scripts with name, code preview, parameters, returns.
Issues
- Consistency: Table instead of card grid — and code preview is rendered as truncated monospace inline, which is unreadable beyond ~40 chars.
- Density: 6 columns (ID, Name, Code preview, Parameters, Returns, Actions). ID is internal-only.
- Consistency: No search, no empty-state CTA.
- Accessibility: Truncated code preview has no
title=tooltip.
Recommendations
- Migrate to a card grid (col-lg-6) mirroring Sites: title = Name, body = small code snippet (first 80 chars) + parameter/return counts as chips, footer = Edit + ⋮ Delete.
- Drop ID column entirely.
- Add search by name + code substring.
- Add "No shared scripts configured. Create your first script." CTA.
ExternalSystems.razor — High
What it does: Tabbed hub for External Systems, DB Connections, Notification Lists, Inbound API Methods, SMTP Config, API Keys.
Issues
- Density: Six subsections on one page with no search per tab; SMTP form crams 6+ inputs in one
row g-2 align-items-endflex row. - Consistency: Tabs use mixed renderings — External Systems / DB / API Methods use tables; Notification Lists and SMTP use cards. Same-level data, inconsistent shape.
- Form-layout: SMTP form violates the vertical-stacking rule.
- Hierarchy: Subsection headings are
<h6>with badge counts — heading level is too small. - Accessibility: Tab buttons lack
role="tab"/aria-selected. - Other: No per-tab empty state.
Recommendations
- Split SMTP off as a standalone
/admin/smtp(it's a single-row global config, not list data). - Unify all tabs on the same card-grid pattern.
- Reformat the remaining SMTP page to vertical-stacked fields per
feedback_form_layout. - Add
role="tablist"/role="tab"/aria-selectedandaria-controlson the tab nav. - Add per-tab search + empty-state CTAs.
TemplateEdit.razor — High
What it does: Edit a template's properties plus Attributes / Alarms / Scripts / Compositions in tabs.
Issues
- Density: Template Properties card uses a 4-column row; Parent Template renders as
form-control-plaintextnext to live inputs, then a Save button at col-md-2. Save ends up mid-row instead of at the bottom. - Form-layout: "Add Attribute / Alarm / Script" inline forms use
row g-2 align-items-end— the Scripts row stuffs 4 inputs + a textarea horizontally. - Consistency: Card headers inconsistent — some "card-title" h6 inside
card-body, some bare h6 above a section. - Hierarchy: Validation result alerts mix strong-heading + bare
<li>items. - Accessibility: Lock-state badges render as cryptic single letters "L"/"U" with no
aria-label. Tabs lackrole="tab"/aria-selected. - Other: Per-row Delete buttons scattered; many tables.
Recommendations
- Reflow Template Properties to vertical-stack (col-12 each), put Save at the bottom following the form-layout rule.
- Reformat add-forms into a card with stacked col-12 inputs; Scripts gets a full-width Monaco-ish textarea (rows≥10) below the metadata fields.
- Replace L/U badges with full text +
aria-label:<span class="badge bg-light text-dark" aria-label="Unlocked">Unlocked</span>. - Per-row kebab menu replacing Delete (with future Duplicate / Move options).
- Add
role/aria-selectedto all tab buttons.
TemplateCreate.razor — Low
- Use
form-controlnotform-control-smfor the primary Name field. - Replace the
←arrow on the Back button with text← Backand addaria-label="Back to Templates".
ExternalSystemForm.razor — Low
- Auth Config field: add a JSON example placeholder matching the chosen AuthType.
SharedScriptForm.razor — Low
- Add a small
bi-question-circleicon next to Parameters / Return Definition linking to a tooltip with schema reference. - When syntax check fails, surface line/column position in the error message.
DbConnectionForm.razor — Low
- Add reassurance text under Connection String: "Stored encrypted; not displayed after save." (only if the back end actually does this; otherwise drop the claim.)
ApiMethodForm.razor — Low
- Script textarea bumped from rows=5 to rows≥10.
- Add JSON example placeholders for Params and Returns.
NotificationListForm.razor — Low
- Resize the Name input to
form-control(notform-control-sm). - Recipients
<thead class="table-dark">→table-lightfor consistency.
Deployment section
Files discovered:
Components/Pages/Deployment/Topology.razor @page /deployment/topology (and /deployment/instances)
Components/Pages/Deployment/Deployments.razor @page /deployment/deployments
Components/Pages/Deployment/DebugView.razor @page /deployment/debug-view
(+ InstanceCreate, InstanceConfigure, CreateAreaDialog, MoveAreaDialog, MoveInstanceDialog)
Topology.razor — Medium
- Hierarchy:
<h6>page title (line 63) — promote to<h4>in flex header. - Accessibility: Expand / Collapse / Refresh / Search / tree-kebab buttons all lack
aria-label. Inline rename input has no label. - Live-data UX: No "pause live updates" toggle; tree can repaint while user is renaming or moving a node.
- Density: Instance counts footer text — could be a summary card above the tree.
- State cues: Stale badge is yellow-only; pair with text or icon.
- Consistency: Diff modal is hand-rolled Bootstrap modal markup — should be a reusable
<DiffDialog>mirroring<ConfirmDialog>.
Recommendations
- Promote heading, adopt flex header.
- Add aria-labels everywhere (treat the kebab and rename input as the priority).
- Add a "Live updates: on/off" toggle button next to Refresh; pause auto-refresh during edits.
- Move counts to a small summary card above the tree.
- Pair Stale badge with
aria-label="State: Stale"and a 🟡 dot or "STALE" text. - Extract
<DiffDialog>intoComponents/Shared/.
Deployments.razor — Medium
- Density: 8 columns (Deployment ID, Instance, Status, Deployed By, Started, Completed, Revision, Error). Both Deployment ID and Revision are truncated hashes; Error can be a stack trace.
- Live-data UX: Auto-refresh runs every 10s with no pause control — if a user is reading an error message, the row can swap underneath them.
- Consistency: Summary cards use
col-md-3only (nocol-sm-6fallback for tablet); cards are styled differently from Sites. - Accessibility: Spinner inside the status badge has no
role="status"/aria-label. "Auto-refresh: 10s" text is decorative, not a control. - State cues: Row colors (
table-danger,table-info) without an icon or stripe. - Other: Empty state is a single line of text.
Recommendations
- Collapse Error column into a
View errorbutton that pops a<DiffDialog>-style modal (or inline collapse row). - Add
Live updates: 10s [pause]toggle. - Make summary cards
col-lg-3 col-md-6 col-12. - Add aria-labels on the spinner and the toggle.
- Add
border-start border-3 border-dangeror icon to failed rows. - Either fold Deployment ID + Revision into one cell or hide one behind the detail modal.
DebugView.razor — High
- Live-data UX: No scroll-lock on the streaming tables. Auto-scroll behavior is implicit. No max-row cap → tab can balloon in memory.
- Live-data UX: Timestamps shown to milliseconds; noisy at sustained update rates.
- Live-data UX: No stream filter (e.g., "only alarms with state=Active") — once subscribed, you watch everything.
- Accessibility: Quality / Alarm State badges are color-only. No
aria-live="polite"on the streaming table bodies. - Consistency: "Snapshot received at …" is a tiny muted footer; should be a header-level status strip.
- UX risk: Page persists session in
localStorageand auto-reconnects on refresh, with no user-visible notice.
Recommendations
- Add per-table
🔒 Lock scrolltoggle. - Cap rows at e.g. 200; add a
Clearbutton. - Add per-table filter input.
- Display timestamps as
HH:mm:ssby default;.fffonly inside an "Expanded row" view. - Add
aria-live="polite" aria-atomic="false"on the streaming table bodies. - Pair every Quality and Alarm State badge with
aria-label. - Replace the snapshot footer with a status strip: instance · connection state · last snapshot time.
- On auto-reconnect, toast "Auto-reconnected to {instance}" with a
Start freshbutton.
Monitoring section + Dashboard
Files discovered:
Components/Pages/Dashboard.razor @page /
Components/Pages/Monitoring/Health.razor @page /monitoring/health
Components/Pages/Monitoring/EventLogs.razor @page /monitoring/event-logs
Components/Pages/Monitoring/ParkedMessages.razor @page /monitoring/parked-messages
Components/Pages/Monitoring/AuditLog.razor @page /monitoring/audit-log
Dashboard.razor — Medium
- Dashboard UX: It is currently just a user-info card. For a central SCADA console the landing page should show system KPIs first (sites online/offline, errors, queue depths, parked-message count) — the things you'd want to see in <5 seconds.
- Hierarchy:
<h3>heading; rest of the site is<h4>. - Consistency: Inline
style="max-width:500px"instead of Bootstrap utilities.
Recommendations
- Repurpose as a "Glance" page: KPI cards across the top (Sites, Errors, Parked Messages, Latest deployments status), a sites-by-health small list, recent audit events.
- Move the user-info card to a secondary panel or drop it (it's already in the top-right of the layout).
<h3>→<h4>for site-wide consistency, replace inline styles with utility classes.
Health.razor — Medium
- KPI choices: Sites Online + Sites Offline + Total Sites is redundant; Total Script Errors is global and not actionable. Promote "Sites with active errors" / "Cluster degraded" instead.
- Hierarchy: Header is
<h4>left-aligned with no flex header; doesn't match Sites. - Density: Per-site cards use a 4-column inner grid that breaks on narrow viewports.
- Time format:
HH:mm:ssonly, no timezone, no relative. - State cues: Online/Offline / Primary/Standby badges are color-only.
Recommendations
- Replace "Total Sites" KPI with "Sites with active errors" or "Cluster health %".
- Adopt flex header layout.
- Reduce per-site card to 2 columns (col-md-6) or wrap each subsection in a collapse à la Sites.razor "Cluster nodes".
- Use
TimestampDisplaywith UTC suffix; consider adding a relative time hint ("3 minutes ago"). - Add
aria-labeland an icon to every Online/Offline/Primary/Standby badge.
EventLogs.razor — High
- Density: "Message" column truncates long error strings mid-string with no expand.
- Pagination: "Load more" + continuation token, no total count shown.
- Filter affordance: 7 filter inputs in one row; "Keyword" label is vague.
- Accessibility: Labels are not linked to inputs via
for/id; row colors are the primary severity cue. - Time: Uses
<TimestampDisplay>— confirm it standardises with the other log pages.
Recommendations
- Apply AuditLog's
View/Hidetoggle pattern for the Message cell. - Switch to numeric pagination ("Page X of Y, N total") or surface a total count next to the Load More button.
- Move the filter row into a Bootstrap collapse with label
Filter options (n active). - Add
id/forpairings,aria-labels, and pair the row color with an icon stripe. - Standardise on
TimestampDisplayacross all log pages.
ParkedMessages.razor — Medium
- Density: Message ID is truncated to 12 chars with no copy or expand affordance.
- Density: Error message field can be long; no expand.
- Accessibility: Retry / Discard buttons have
title=only, noaria-label. - State: No spinner / disabled affordance while a Retry is in flight.
Recommendations
- Render Message ID as a
<code>with a📋 Copybutton or expand row showing the full ID + error. - Apply AuditLog's expand toggle for error messages.
- Add
aria-label="Retry message {id}"andaria-label="Discard message {id}". - Replace each action button's normal/disabled state with a small spinner during the action.
AuditLog.razor — Medium
- Pagination bug:
Nextis disabled when_entries.Count < _pageSize; this misfires when the last page has exactly_pageSizerows (will show enabled Next that returns empty). - Filter affordance: 5 filter inputs in one row; no
Clear filtersbutton. - Density: Entity ID is a full GUID with no copy / expand.
- State expansion: JSON detail has
max-height: 200pxwith no "expand to full size" affordance. - Accessibility:
View/Hidebutton has noaria-label.
Recommendations
- Fix the pagination logic: rely on a "has more" flag from the API, not a length compare.
- Add a
Clear filtersbutton next to the filter row. - Add a copy button or expand-on-click for Entity ID.
- Make the JSON detail panel resizable, or open in a
<DiffDialog>-style modal when content exceeds 1 KB. - Add
aria-labelto the toggle (interpolate entry id).
Layout, shared components, global CSS
MainLayout.razor / NavMenu.razor / App.razor
Issues
- Responsive: Sidebar is fixed
min-width: 220px / max-width: 220pxinApp.razorlines 13-14. Nod-none d-lg-flexor hamburger toggle for narrow viewports. High. - Scrolling:
<ul class="nav flex-column flex-grow-1">has no overflow boundary. If role-driven nav becomes long enough, the footer (username + Sign Out) will scroll off-screen. Medium. - Semantics: Section headers (Admin, Design, …) render as bare
<li class="nav-section-header">— not focusable / not semantic. Medium. - Active state: Active blue (#0d6efd) and hover gray (#343a40) are similar enough to confuse — pair active with a left border or underline. Low.
Recommendations
- Wrap the sidebar in
d-none d-lg-flex+ add a hamburger button in the top bar for<lgviewports. Replace fixed widths withflex-basis: 220pxand let it collapse off-canvas on mobile. - Wrap
<ul>in<div style="overflow-y:auto; flex:1 1 auto;">so the footer is always anchored. - Convert section headers to
<li role="presentation"><span class="nav-section-header">Admin</span></li>or just<div role="separator" aria-label="Admin section">. - Add
border-left: 3px solid var(--bs-primary)to.nav-link.active.
Login.razor — Medium / Low
Issues
- Centering:
margin-top: 10vh;on the container — on short viewports the card pushes below the fold. Medium. - Validation: No client-side validation feedback for empty fields; only server-side via
?error=query param. Low.
Recommendations
- Wrap in
<div class="d-flex align-items-center justify-content-center min-vh-100">for true vertical centering. - Add HTML5
requiredand:invalidstyling; keep the server-side error banner for actual auth failures.
NotAuthorizedView.razor — Low
- Wrap in the same centered layout as Login, with the "ScadaLink" brand heading on top — currently feels orphaned.
ToastNotification.razor — Medium
Issues
- z-index: Toasts are at
z-index: 1090; Bootstrap modal backdrop defaults to 1040 and the modal element itself to 1055. Currently OK, but ConfirmDialog markup doesn't set explicit z-index on the modal element — document the hierarchy or set explicit values. - Auto-dismiss: Hardcoded 5 s. No way to extend for important messages.
- Accessibility:
role="alert"is set butaria-live="polite"/aria-atomic="true"are missing.
Recommendations
- Document the z-index ladder in a comment at the top of the component; set explicit z-index in
ConfirmDialogtoo. - Add
[Parameter] public int AutoDismissMs { get; set; } = 6000;. - Add
aria-live="polite" aria-atomic="true"to the container.
ConfirmDialog.razor — High / Medium
Issues
- Scroll: Backdrop doesn't add
overflow: hiddento<body>— the page behind scrolls under the dialog. High. - Keyboard: No
Escape-to-close handler. No focus trap. Medium. - Defaults:
ConfirmButtonClassdefaults tobtn-danger— wrong for non-destructive confirms. Medium.
Recommendations
- On
ShowAsync, JS-interop addoverflow:hiddentobody; remove on close. - Add
@onkeydown="..."for Escape → Cancel; on show, focus the cancel button (or the safer button) and on close return focus to the trigger. - Default
ConfirmButtonClasstobtn-primary; explicitbtn-dangeron destructive call sites only.
LoadingSpinner.razor — Low
text-mutedon a light background may not meet 4.5:1. Switch totext-secondary.
DataTable.razor — Low
- Search input has no clear (✕) button.
- Pagination disabled state is on the parent
<li>not the button — applydisableddirectly +aria-disabled="true".
NewFolderDialog.razor — Low
- Uses combined modal + inline background style instead of a separate
<div class="modal-backdrop fade show">like ConfirmDialog. Refactor to match.
TreeView.razor / TreeView.razor.css
- Reliance on
var(--bs-*)is good; no change. - Same a11y caveats as Topology — hover/focus visuals must reach kebab toggles.
Global CSS — Medium
Issues
- Inline: ~60 lines of
<style>are inline inApp.razorinstead of in awwwroot/css/site.cssfile. - Theming: Sidebar uses hardcoded hex colors (#212529, #343a40, #adb5bd, #fff); blocks any future light-mode / brand variation work.
- Reconnect modal: Uses ad-hoc flex centering; could just be
.modal-dialog-centered.
Recommendations
- Move inline styles to
wwwroot/css/site.cssand link inApp.razor. - Replace hex with
var(--bs-dark)/var(--bs-light)etc. - Use Bootstrap's
.modal-dialog-centeredfor the reconnect overlay.
Cross-cutting strategic recommendations
These are bigger investments that pay back across many pages:
- Dialog/Modal service. A single
IDialogServicethat owns z-index stacking, body scroll lock, focus trap, Escape-to-close. Replace per-component ad-hoc backdrops. Fixes ConfirmDialog scroll-lock, focus-trap, and z-index collisions in one stroke; also unblocks the planned<DiffDialog>for Topology and the error-detail modal for Deployments. - Accessibility pass. Adopt a single rule: every icon-only button has
aria-label; every state badge is colour + text + icon; every form input has linked label and optionalaria-describedby. Most pages need ~5 minutes of edits to comply. - Design tokens via CSS variables. Pull the sidebar palette + the few custom colors into
:rootcustom properties. Adopt Bootstrap's CSS variables (--bs-*) for everything else. Unblocks light/dark mode and any future rebrand. - Pagination + filter component. EventLogs / ParkedMessages / AuditLog / Deployments all roll their own. Extract one
<PagedTable TItem>or at least a<Paginator>that takes (page, pageSize, total) and emits standard events. TimestampDisplayaudit. Make sure every consumer goes through it; standardise on UTC display + tooltip with relative time. Eliminate inline.ToString("HH:mm:ss")calls.- One reference page for list patterns. Use
Sites.razoras the reference; add a comment at the top of it pointing future implementers at it (or extract its skeleton into a snippet underdocs/).
Out of scope / decisions to defer
- Whether to migrate any list page from table-only to card grid (most should, but each is a separate ticket).
- Dark-mode / theming work.
- A real dashboard (KPI page) replacement.
- Replacing the SignalR debug-view streaming model.