feat(insights): give ECG a routed home and index-surface presence

ECG recordings had no pill in the tab strip, no entry in the sub-page
manager, and no routed page — the only inbound pointer was a cross-link
card on the spot-pulse page. Hiding the overview ECG teaser left no route
back to a user's recordings.

- Add a routed `/insights/ecg` sub-page that reuses the existing ECG
  section (heading suppressed so the page shell owns the title); the
  overview teaser stays.
- Add an ECG entry to the Heart group of the tab strip, gated on a
  dedicated `hasEcgRecordings` signal since ECG carries no measurement
  type. The Heart group surfaces for an ECG-only device too. No ECG pill
  appears without recordings.
- Mount the ECG cross-link on the resting-pulse and HRV pages, matching
  its placement on the pulse page.
- List ECG in the sub-page manager under Heart, its eye toggling the ECG
  overview section so hiding it is reversible.
- Point the metric catalog's ECG row at the new page.
- Add `navEcg`, the sub-page description, and the empty-state copy across
  all locales.
This commit is contained in:
Marc-André Bombeck committed 2026-07-18 09:24:28 +02:00
1 parent e8f4bb3dba
commit adf80da989
19 files changed
+713 -32

No files matched your search

+3 -1
View File
@@ -202,7 +202,9 @@ const ECG_ENTRY: CatalogEntry = {
nameKey: "insights.ecg.sectionTitle",
sourceKey: "metricCatalog.ecg.source",
kind: "metric",
href: INSIGHTS_OVERVIEW_PATH,
// v1.30 (H1) — ECG now has its own routed page; the catalog "View" button
// points there instead of the overview teaser anchor.
href: `${INSIGHTS_OVERVIEW_PATH}/ecg`,
connectable: true,
};