From f872ec9553da402b2cca0840a1f82881a544c085 Mon Sep 17 00:00:00 2001 From: rcourtman <8825017+rcourtman@users.noreply.github.com> Date: Wed, 14 Oct 2026 13:04:24 +0100 Subject: [PATCH] Name where History readings came from instead of always "stored" A History reply carries its source: the history store, readings Pulse holds in memory because the store has none for the range, or a lone current reading when no history exists yet. The drawer readout ignored it and always said "Latest stored", so memory and live readings were presented as stored history. The canvas charts did badge the source, but as "Buffer" and "Live", words a reader has no reason to know. One shared vocabulary now covers both. Stored history (and demo data) keeps "Latest stored" / "Stored". Memory readings read "Latest recorded" / "Recorded", with one line above the drawer charts saying the store has none for this range yet, and a "Recent only" badge on canvas charts. A lone current reading reads "Current", badged "Current only". --- .../subsystems/frontend-primitives.md | 9 +++++ .../subsystems/performance-and-scalability.md | 3 +- frontend-modern/browser-tests/history-org.cjs | 6 +-- .../browser-tests/pbs-history-refresh.cjs | 13 ++++++- .../2ad69f708012aa01.json | 39 +++++++++++++++++++ .../Workloads/GuestDrawerHistory.tsx | 19 ++++++++- .../GuestDrawerHistory.window.test.tsx | 24 ++++++++++++ .../components/shared/HistoryChartHeader.tsx | 30 +++++++------- .../shared/__tests__/HistoryChart.test.tsx | 22 ++++++++++- .../components/shared/historyChartModel.ts | 36 +++++++++++++++++ 10 files changed, 177 insertions(+), 24 deletions(-) create mode 100644 frontend-modern/browser-verification/2ad69f708012aa01.json diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md index 348cfb0b54..b085f61f29 100644 --- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md +++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md @@ -9215,6 +9215,15 @@ is dropped (`withoutRepeatedHistoryTimeTicks`). Phone chart folds share one button, `PhoneChartsToggle` ("Show " / "Show fewer charts", `aria-controls` naming the folded group, hidden from `sm` up); the drawer History and the disk detail both use it. +History names where its readings came from, from the reply's `source`, in +one shared vocabulary (`getHistoryReadoutLabel`, `getHistorySourceNotice`): +stored history (and demo data) reads "Latest stored ·