From 6ec0ee021561d6d9f925ae804140996033b0f438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 27 Jun 2026 18:28:38 +0200 Subject: [PATCH] chore(v1.22.1): tidy labs subtitle scale and drop dead sleep keys Standardise the labs marker subtitle to text-xs across both the compact list and the card grid, and build the localized name->slug lookup map once per locale instead of re-scanning the catalog seeds per group on every render. Add relative to the mobile section strips in the settings and admin shells so the active chip's offsetLeft is measured from the strip, giving an exact horizontal scroll target. Drop the orphaned insights.sleep.headlineCaption and headlineCaptionSuffix keys from all six locales; nothing references them after the sleep headline removal. --- messages/de.json | 2 -- messages/en.json | 2 -- messages/es.json | 2 -- messages/fr.json | 2 -- messages/it.json | 2 -- messages/pl.json | 2 -- src/components/admin/admin-shell.tsx | 2 +- src/components/labs/lab-list.tsx | 18 +++++++++++++++--- src/components/settings/settings-shell.tsx | 2 +- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/messages/de.json b/messages/de.json index 3ee22f0ba..523158b31 100644 --- a/messages/de.json +++ b/messages/de.json @@ -2617,8 +2617,6 @@ "title": "Schlaf", "description": "Phasen-Aufschlüsselung und nächtliche Dauer – gezogen aus Apple Health.", "headlineTitle": "Durchschnitt pro Nacht", - "headlineCaption": "Gemittelt über {count} Nächte – {suffix}", - "headlineCaptionSuffix": "pro Nacht", "compositionTitle": "Phasen-Verteilung", "compositionSubtitle": "Letzte {nights} Nächte", "compositionAriaLabel": "Schlafphasen-Verteilung über {nights} Nächte", diff --git a/messages/en.json b/messages/en.json index d85e9af33..16ec52b02 100644 --- a/messages/en.json +++ b/messages/en.json @@ -2617,8 +2617,6 @@ "title": "Sleep", "description": "Stage breakdown and nightly duration, drawn from Apple Health.", "headlineTitle": "Average per night", - "headlineCaption": "Averaged across {count} nights — {suffix}", - "headlineCaptionSuffix": "per night", "compositionTitle": "Stage composition", "compositionSubtitle": "Last {nights} nights", "compositionAriaLabel": "Sleep stage composition over {nights} nights", diff --git a/messages/es.json b/messages/es.json index 9cade6be4..8bea74277 100644 --- a/messages/es.json +++ b/messages/es.json @@ -2617,8 +2617,6 @@ "title": "Sueño", "description": "Desglose por fases y duración nocturna, tomados de Apple Health.", "headlineTitle": "Media por noche", - "headlineCaption": "Promediado sobre {count} noches — {suffix}", - "headlineCaptionSuffix": "por noche", "compositionTitle": "Distribución de fases", "compositionSubtitle": "Últimas {nights} noches", "compositionAriaLabel": "Distribución de fases del sueño en {nights} noches", diff --git a/messages/fr.json b/messages/fr.json index 44d4e9162..d943773ff 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -2617,8 +2617,6 @@ "title": "Sommeil", "description": "Répartition des phases et durée nocturne, issues d’Apple Health.", "headlineTitle": "Moyenne par nuit", - "headlineCaption": "Moyenne sur {count} nuits — {suffix}", - "headlineCaptionSuffix": "par nuit", "compositionTitle": "Répartition des phases", "compositionSubtitle": "{nights} dernières nuits", "compositionAriaLabel": "Répartition des phases de sommeil sur {nights} nuits", diff --git a/messages/it.json b/messages/it.json index 31f4e6bee..38c204fbb 100644 --- a/messages/it.json +++ b/messages/it.json @@ -2617,8 +2617,6 @@ "title": "Sonno", "description": "Suddivisione per fasi e durata notturna, da Apple Health.", "headlineTitle": "Media per notte", - "headlineCaption": "Mediato su {count} notti — {suffix}", - "headlineCaptionSuffix": "per notte", "compositionTitle": "Distribuzione delle fasi", "compositionSubtitle": "Ultime {nights} notti", "compositionAriaLabel": "Distribuzione delle fasi del sonno su {nights} notti", diff --git a/messages/pl.json b/messages/pl.json index ba21658ab..566625aa1 100644 --- a/messages/pl.json +++ b/messages/pl.json @@ -2617,8 +2617,6 @@ "title": "Sen", "description": "Podział na fazy i nocna długość snu, dane z Apple Health.", "headlineTitle": "Średnia na noc", - "headlineCaption": "Uśrednione z {count} nocy — {suffix}", - "headlineCaptionSuffix": "na noc", "compositionTitle": "Rozkład faz", "compositionSubtitle": "Ostatnie {nights} nocy", "compositionAriaLabel": "Rozkład faz snu w {nights} nocach", diff --git a/src/components/admin/admin-shell.tsx b/src/components/admin/admin-shell.tsx index 1a5ce6196..46e52c8d6 100644 --- a/src/components/admin/admin-shell.tsx +++ b/src/components/admin/admin-shell.tsx @@ -251,7 +251,7 @@ export function AdminShell({ active, children }: AdminShellProps) {