Align dashboard Updates stalled header warning across shipped Help docs

PR #5439 added authenticated GET /api/health polling in useAppRuntimeState.ts
and surfaced an always-visible amber "Updates stalled" header warning badge
when websocketStateStalled: true holds (alongside "Waiting for data" before the
first snapshot arrives), while none of the shipped Help guides yet explained
those header states or distinguished them from proxy upgrade failures and a
green Connected badge.

Update docs/API.md, docs/REVERSE_PROXY.md, docs/FAQ.md, docs/UPGRADE_v6.md,
and docs/ALERTING.md (plus their byte-identical frontend-modern/public/docs/
mirrors) to document the exact runtime polling cadence, badge labels and detail
copy, automatic clearance, standalone-only scope, and truthfulness boundaries.
Extend dashboardReadinessGuide.test.ts and test_stale_reading_help_docs.py to
verify rendered Help HTML, mirror parity, and live runtime source bindings.

Contract-Neutral: Shipped Help documentation and its unit/consistency tests only; no runtime UI, backend API, schema, auth, or subsystem contract delta.
Change-source: pulse-maintainer
This commit is contained in:
pulse-triage[bot]
2026-11-28 21:18:28 +00:00
parent 69a7b12a8e
commit 41e65fbbc2
12 changed files with 216 additions and 7 deletions

View File

@@ -302,6 +302,18 @@ the shared WebSocket slot for at least 30 seconds. It clears when the slot is
released. Hosted and multi-workspace modes omit it. An absent flag does not
prove readiness. Preserve evidence; do not repeat state requests or auto-restart.
Signed-in browser sessions poll `GET /api/health` (`cache: 'no-store'`) every
30 seconds while connected with initial data (15 seconds while waiting for the
first snapshot or disconnected, 5 seconds while reconnecting). While
`websocketStateStalled: true` holds and the backend is reachable or the
WebSocket is connected, the dashboard header replaces **Connected** (or
**Waiting for data**, **Sync reconnecting**, or **Backend healthy**) with an
amber **Updates stalled** badge (`Backend is reachable, but live dashboard
state updates are stalled.`), clearing automatically once the flag clears. An
absent flag or green **Connected** badge (`Live updates are connected. Source
readings may be older.`) still does not prove fresh polling, applied agent
reports, or alert evaluation.
### System State
`GET /api/state`
Returns the complete state of your infrastructure (Nodes, VMs, Containers, Storage, Alerts). This is the main endpoint used by the dashboard.