Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Document platform-table sort fabric in subsystem contracts

rcourtman4572f83bc030
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 6fb480159b..232bc5e7d5 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -1727,6 +1727,25 @@ default` instead of fusing provider and badge text such as
rejected no-execution terminal decisions, approved-action verification, and
external-agent parity.
+17. Keep user column sorting on platform tables on the shared sort fabric.
+ Tables composed from
+ `frontend-modern/src/features/platformPage/sharedPlatformPage.tsx` that
+ offer user-facing column sorting must own it through
+ `createPlatformTableSortState` plus `PlatformSortableTableHead` rather
+ than page-local sort signals, ad hoc header buttons, or v5-style
+ sort-drives-grouping designs. The shared fabric owns the interaction
+ contract: click cycles a column's natural first direction, then the
+ flipped direction, then back to the table's built-in order; sort state
+ persists per table through `usePersistentSignal` storage keys; rows with
+ missing values sink to the bottom regardless of direction; headers expose
+ `aria-sort` and the arrow indicator consistent with the workloads table
+ header; and header alignment stays on the canonical
+ `getPlatformTableHeadClassForKind` helpers from `columnAlignment.ts`. A
+ table's default order remains its page-model status-first compare until
+ the user selects a column, and grouped modes (for example Docker's
+ grouped-by-host containers view) sort within groups while grouping itself
+ stays orthogonal to sort state.
+
## Forbidden Paths
1. Reinventing table/filter/toggle primitives when a shared version exists
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index dc5482cbc3..ff1d83213e 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -1025,6 +1025,21 @@ AI-only summary payloads, or page-local heuristics.
platform's top-level system as a unified resource so the builder
default still resolves to a populated table.
+17. Platform table ordering is a two-layer contract. Each platform table's
+ default order is owned by its page model's status-first compare
+ (`compareDockerContainers`, `compareKubernetesPods`, and peers), which
+ keeps unhealthy rows surfaced without user configuration. User-selected
+ column sorting layered on top must come from the shared platform-table
+ sort fabric in
+ `frontend-modern/src/features/platformPage/sharedPlatformPage.tsx`
+ (`createPlatformTableSortState` plus `PlatformSortableTableHead`) as
+ governed by the frontend-primitives contract, must never replace the
+ built-in compare as the default order, and must keep missing metric
+ values at the bottom in both directions so sparse agent data cannot
+ float to the top of an ascending sort. This restores the v5
+ sortable-table capability (v5.1.36 Docker and Kubernetes tables) that
+ the v6 platform rebuild had dropped.
+
## Forbidden Paths
1. New ad hoc resource-type aliases outside unified resource normalization