mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-23 12:15:42 +00:00
Register shared status dot governance
This commit is contained in:
@@ -2416,6 +2416,13 @@ small leading status-dot glyph used by filter options. Page and feature
|
||||
surfaces must not copy the chip-dot `<span>` factory or import the legacy
|
||||
`PageControls` deck for resource-list filtering; those drift checks live in
|
||||
`shared-template-registry.json` and run through `shared-template-audit.mjs`.
|
||||
Status indicator dots are registry-backed too. `StatusDot` owns the shared
|
||||
size, color-token, pulse, title, aria, and decorative-status behavior for
|
||||
resource and health dots, while feature owners supply only the status
|
||||
semantics. Storage linked-disk health rows must derive a `StatusDot` variant
|
||||
through `getLinkedDiskHealthDotVariant` and must not recreate local rounded
|
||||
green/yellow span classes in storage components or storage-backup presentation
|
||||
helpers.
|
||||
Search controls are registry-backed too. `SearchField` owns simple search
|
||||
input chrome, clear affordance, keyboard forwarding, focus handling, aria
|
||||
labels, and trailing-control padding, while `SearchInput` owns resource-list
|
||||
|
||||
@@ -1678,6 +1678,12 @@ payload as its disk-health truth. When API-backed platforms such as TrueNAS
|
||||
raise SMART-backed disk incidents, those reasons must surface through
|
||||
`physicalDisk.risk.reasons` so storage rows and disk detail use the same shared
|
||||
disk-health contract instead of depending on incident-only side channels.
|
||||
Linked-disk health indicators on storage pool detail rows keep the same owner
|
||||
split: storage derives the health semantics through
|
||||
`getLinkedDiskHealthDotVariant`, while the shared frontend primitive
|
||||
`StatusDot` owns the visible dot chrome, size, color-token, and aria behavior.
|
||||
Storage components and `features/storageBackups` presentation helpers must not
|
||||
recreate raw green/yellow rounded-dot classes locally.
|
||||
That same storage page ownership now also includes contextual focus behavior
|
||||
for pools and disks. Expanding a storage row may set a focused metrics-target
|
||||
ID for shared summary emphasis, but `frontend-modern/src/components/Storage/StorageSummary.tsx`
|
||||
|
||||
Reference in New Issue
Block a user