From a636a3b4c5814a60f205acbc527a5a5b71b73b92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 6 Aug 2026 14:35:02 +0200 Subject: [PATCH] fix(02-12): gate shared record navigation - Wait for the shared-record banner before generated reads - Keep the profile doorway in the navigation translation namespace --- e2e/v137-sharing-managed-profiles.spec.ts | 1 + messages/de.json | 1 + messages/en.json | 1 + src/components/layout/nav-model.ts | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/v137-sharing-managed-profiles.spec.ts b/e2e/v137-sharing-managed-profiles.spec.ts index 8850556f1..f21d6137c 100644 --- a/e2e/v137-sharing-managed-profiles.spec.ts +++ b/e2e/v137-sharing-managed-profiles.spec.ts @@ -356,6 +356,7 @@ test.describe.serial("scoped sharing browser journeys", () => { await expect(banner).toHaveAttribute("data-record-kind", "shared"); await page.goto("/"); + await expect(banner).toHaveAttribute("data-access-level", "manage"); const generatedRead = await page.evaluate(async () => { const response = await fetch("/api/dashboard/summary"); return response.status; diff --git a/messages/de.json b/messages/de.json index 6d8c53f1e..2e876a92b 100644 --- a/messages/de.json +++ b/messages/de.json @@ -341,6 +341,7 @@ }, "cycle": "Zyklus", "labs": "Laborwerte", + "profile": "Profil", "vorsorge": "Vorsorge", "illness": "Krankheit", "documents": "Dokumente", diff --git a/messages/en.json b/messages/en.json index a0e7bc356..704da23e3 100644 --- a/messages/en.json +++ b/messages/en.json @@ -341,6 +341,7 @@ }, "cycle": "Cycle", "labs": "Labs", + "profile": "Profile", "vorsorge": "Checkups", "illness": "Illness", "documents": "Documents", diff --git a/src/components/layout/nav-model.ts b/src/components/layout/nav-model.ts index e286ae2a3..4ab0b709a 100644 --- a/src/components/layout/nav-model.ts +++ b/src/components/layout/nav-model.ts @@ -177,7 +177,7 @@ export const NAV_DESTINATIONS: ReadonlyArray = [ href: "/profile", sharedRecord: true, sharedRecordOnly: true, - tKey: "settings.sections.anamnesis.title", + tKey: "nav.profile", icon: ClipboardList, tourId: "nav-profile", },