diff --git a/src/components/measurements/measurement-list.tsx b/src/components/measurements/measurement-list.tsx index 0e59f5bde..848b266f3 100644 --- a/src/components/measurements/measurement-list.tsx +++ b/src/components/measurements/measurement-list.tsx @@ -475,6 +475,16 @@ export function MeasurementList({ onEdit, onAddFirst }: MeasurementListProps) { )}
+ {(m.type === "BP_SYS" || m.type === "BP_DIA") && ( + + {m.type === "BP_SYS" + ? t("measurements.typeBpSys") + : t("measurements.typeBpDia")} + + )} {m.value} {m.unit} diff --git a/src/components/settings/__tests__/sections.test.tsx b/src/components/settings/__tests__/sections.test.tsx index 1b870b574..7740c528b 100644 --- a/src/components/settings/__tests__/sections.test.tsx +++ b/src/components/settings/__tests__/sections.test.tsx @@ -202,7 +202,9 @@ describe("settings sections — SSR smoke", () => { // - the editor mount-point is present // - no raw i18n key leaks const html = render(); - expect(html).toContain("Personal targets"); + // F-07 (v1.4.19): page title aligned with the URL slug — was + // "Personal targets", now "Personal thresholds". + expect(html).toContain("Personal thresholds"); expect(html).toContain('data-testid="thresholds-editor"'); expect(html).not.toContain("settings.sections.thresholds."); }); diff --git a/src/components/settings/telegram-card.tsx b/src/components/settings/telegram-card.tsx index 1f7eb5bbd..78eeef80c 100644 --- a/src/components/settings/telegram-card.tsx +++ b/src/components/settings/telegram-card.tsx @@ -112,14 +112,19 @@ export function TelegramCard({

{t("settings.telegram")}

- {settings?.hasBotToken && settings?.chatId && ( + {/* F-16 (v1.4.19): show one unified status pill instead of + the previous "Configured" + "Enabled" pair, which had no + visual hierarchy and made it unclear how the two states + differed. The new pill collapses both bits of info: + green when active, neutral when configured-but-paused. */} + {settings?.hasBotToken && settings?.chatId && settings?.enabled && ( - {t("settings.configured")} + {t("common.active")} )} - {settings?.enabled && ( + {settings?.hasBotToken && settings?.chatId && !settings?.enabled && ( - {t("common.enabled")} + {t("settings.configured")} · {t("common.disabled")} )}