feat(dashboard): reach shared records from the account switcher, not a card

The "looking after" block sat directly under the greeting and above this
account's own day, permanently, for anyone with a single shared record. The
dashboard is this account's day; other people's records are a destination,
and the account switcher in the top bar and the sidebar already is that
door — with the same access level and record kind on each entry.

Drop the card, its test, and the five strings only it used, across all six
locales.

The access-payload consumer guard named that one component as the reader of
`level` / `sections` / `recordKind`, so it went red on the deletion, which is
what it is for. It now names the surfaces that actually adopt those fields —
the presentation resolver and the switcher — and matches the property access
rather than one variable name, so a rename of the binding cannot make it
match nothing and pass. Verified by removing every reader: it fails.

Adds `scripts/i18n-key-tool.mjs` for dropping or rewriting a key across all
six bundles in one go.
This commit is contained in:
Marc-André Bombeck committed 2026-08-07 19:24:46 +02:00
1 parent 5445bfc1f1
commit ce9b2814e6
11 files changed
+116 -434

No files matched your search

+4 -7
View File
@@ -1,6 +1,5 @@
"use client";
import { LookingAfterCard } from "@/components/dashboard/looking-after-card";
import { useRecordCapabilities } from "@/hooks/use-record-capabilities";
import React, { Suspense, useCallback, useMemo, useState } from "react";
import { useQuery, useQueryClient } from "@tanstack/react-query";
@@ -931,12 +930,10 @@ export default function DashboardPageClient({
<PullToRefreshIndicator {...pull} />
<DashboardHeader onQuickEntry={setQuickEntryDialog} />
{/* v1.36.x — the caregiver's front door, directly under the greeting
and above this account's own day. Somebody who opens the app to
check on a parent should not have to go through settings to get
there. Renders nothing for an account nobody has shared with, and
nothing while a switch is already on. */}
<LookingAfterCard />
{/* Records other people share with you are reached from the account
switcher in the top bar and the sidebar, not from a card here. The
dashboard is this account's own day; a permanent block about other
people's records sat above it and pushed it down. */}
{/* S2 — the Today hero, promoted above the tile strip (MARC sign-off
decision 1). Renders the S1 daily digest: the day's read, the