Files
Pulse/scripts/tests
pulse-triage[bot] 9167123b0c Show when vSphere host and network readings are stale (#5260)
**Show when vSphere host and network readings are stale**

Bring VMware vSphere ESXi hosts, networks, and inline detail drawers up
to parity with vSphere datastores and TrueNAS for stale-reading
freshness and truthful status:

- Prefer live top-level resource.sourceStatus.vmware over cached REST
  platformData.sourceStatus so live WebSocket staleness and recovery
  update hosts, VMs, datastores, networks, and inline drawers
  immediately without reloading the page.
- Preserve severe failure states (offline, stopped, error, failed,
  faulted, critical, unhealthy) instead of downgrading red danger dots
  to amber degraded when vCenter polling is also stale or impaired, and
  lead offline+stale network health text with "Last reported offline".
- Show a non-colour "Stale data" cue beneath stale ESXi host and network
  names (including on 360px phone layouts where the network Health
  column is hidden) while keeping retained CPU, memory, uptime, VM
  counts, and host-scoping controls visible.
- Surface vCenter stale/collection-error details in inline vSphere
  drawers via Worth checking ("Readings") and defer retained ESXi host
  metrics above the history charts with last-known values preserved
  until live polling recovers.
- Share the provider stale-notice builder with TrueNAS and consolidate
  repeated vSphere/drawer mapping helpers so production Total JS stays
  within the existing bundle budget.

Contract-Neutral: presentation-only frontend freshness cues and drawer
notices on existing canonical resource sourceStatus fields without
altering API or backend contracts

**Update stale-reading Help doc test for unified vCenter message**

Align scripts/tests/test_stale_reading_help_docs.py with the unified
getRetainedVcenterReading template in
resourceDetailDrawerMetricsHistoryModel.ts that serves both vSphere
ESXi hosts and datastores with the exact runtime strings.

Contract-Neutral: updates Python doc-consistency assertion to match
refactored template literal without altering docs or runtime behaviour

**Restore unknown-card passthrough in buildHostDetailSummary**

In commit 3a24093a4e, buildHostDetailSummary replaced its explicit
presentation lookup with unconditional first-character capitalization,
breaking the unknown-card passthrough contract verified by
resourceDetailDrawerOperationalModel.branchcov2.test.ts.

Restore the explicit HOST_DETAIL_LABELS lookup with ?? fallback so known
host detail cards keep their expected labels (including RAID) while
unknown card names pass through unchanged.

Contract-Neutral: restores existing unknown-card passthrough behaviour
in a frontend presentation helper without altering API or backend
contracts

**Record browser verification for buildHostDetailSummary repair**

Record paired desktop Chromium (1440x940 light) and touch WebKit
(360x820 dark) production browser verification for the final
resourceDetailDrawerOperationalModel.ts content on current main.

Contract-Neutral: adds browser verification receipt JSON without
altering product or API contracts

---
Fleet candidate `20261127T082414Z-web-product` from the `web-product`
lane. Reviewed tip `5a2fbd04739acea1ebfb9be7c3f8052a6e5491f4` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-27 09:57:59 +00:00
..