From 6c4dd2d96b8522ee557778dd58b74a0fa051aa87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 6 Aug 2026 05:02:37 +0200 Subject: [PATCH] feat(02-12): route scoped records to granted domains - keep shared navigation independent of actor module preferences\n- open scoped records at their first allowed destination\n- announce record access and kind in doorway names --- .../__tests__/looking-after-card.test.tsx | 2 +- .../dashboard/looking-after-card.tsx | 28 +++++++++++++----- .../layout/account-switcher-menu.tsx | 8 ++++- src/components/layout/nav-model.ts | 16 ++++++++++ src/hooks/use-account-switch.ts | 29 +++++++++++++++---- src/lib/navigation/shared-record.ts | 9 +++++- 6 files changed, 77 insertions(+), 15 deletions(-) diff --git a/src/components/dashboard/__tests__/looking-after-card.test.tsx b/src/components/dashboard/__tests__/looking-after-card.test.tsx index 42da0d447..d67408a89 100644 --- a/src/components/dashboard/__tests__/looking-after-card.test.tsx +++ b/src/components/dashboard/__tests__/looking-after-card.test.tsx @@ -161,7 +161,7 @@ describe("", () => { }); expect(html).toMatch( - /aria-label="Open Managed profile's record; Can read the record, add to it, and change or remove what is in it; Managed profile"/, + /aria-label="Open Managed profile's record; Can read the record, add to it, and change or remove what is in it; Managed profile;/, ); }); diff --git a/src/components/dashboard/looking-after-card.tsx b/src/components/dashboard/looking-after-card.tsx index 96e003658..cccb7f4d4 100644 --- a/src/components/dashboard/looking-after-card.tsx +++ b/src/components/dashboard/looking-after-card.tsx @@ -11,6 +11,7 @@ import { resolveRecordPresentation, type RecordPresentation, } from "@/lib/navigation/record-presentation"; +import { sharedRecordLandingHref } from "@/lib/navigation/shared-record"; import { accountLabel, type AccountAccessEntry, @@ -83,6 +84,9 @@ export function LookingAfterCard() {