mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 17:21:13 +01:00
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:
12
docs/API.md
12
docs/API.md
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user