fix(handover): show the link holder display names only

The claim preview is anonymous: whoever holds the link has proved
nothing yet. It listed each guardian's grant id and fell back to their
login name. It now carries the display name alone, null when there is
none, and the page says "a guardian" for that.

The notifications to the guardians fell back to the new owner's login
name when the record had no display name. They now use sentences about
the person the guardian looked after instead.
This commit is contained in:
Marc-André Bombeck committed 2026-10-08 22:37:57 +02:00
1 parent f71becef29
commit 055c48a3fe
16 files changed
+221 -47

No files matched your search

+3 -3
View File
@@ -219,15 +219,15 @@ export function ClaimProfile({ token }: { token: string | null }) {
</h2>
{data.guardians.length > 0 ? (
<ul className="divide-y rounded-lg border">
{data.guardians.map((guardian) => (
{data.guardians.map((guardian, index) => (
<li
key={guardian.grantId}
key={index}
data-slot="claim-guardian"
data-proposal={guardian.proposal}
className="flex items-center justify-between gap-3 px-3 py-2"
>
<span className="min-w-0 truncate text-sm">
{guardian.displayName}
{guardian.displayName ?? t("auth.claim.guardianUnnamed")}
</span>
<span className="text-muted-foreground shrink-0 text-xs">
{accessLabel(t, guardian.proposal)}