Skip to content

Commit 2eb7575

Browse files
committed
feat(dashboard): show encrypted-at-rest indicator on user identity
1 parent 47914ef commit 2eb7575

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

  • apps/dashboard/app/(main)/websites/[id]/users/[userId]

apps/dashboard/app/(main)/websites/[id]/users/[userId]/page.tsx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
DevicesIcon,
2121
GaugeIcon,
2222
GlobeIcon,
23+
LockSimpleIcon,
2324
TagIcon,
2425
UserIcon,
2526
} from "@databuddy/ui/icons";
@@ -28,6 +29,7 @@ import {
2829
EmptyState,
2930
Spinner,
3031
StatusDot,
32+
Tooltip,
3133
formatDateOnly,
3234
formatLocalTime,
3335
} from "@databuddy/ui";
@@ -456,11 +458,21 @@ function Header({
456458
<div className="flex items-center gap-2.5">
457459
<CountryFlag country={countryCode} size="sm" />
458460
<div>
459-
<h1 className="font-medium text-foreground text-sm">
460-
{identity?.displayName ||
461-
identity?.email ||
462-
generateProfileName(userProfile.visitor_id)}
463-
</h1>
461+
<div className="flex items-center gap-1.5">
462+
<h1 className="font-medium text-foreground text-sm">
463+
{identity?.displayName ||
464+
identity?.email ||
465+
generateProfileName(userProfile.visitor_id)}
466+
</h1>
467+
{identity?.displayName || identity?.email ? (
468+
<Tooltip content="Name and email are encrypted at rest">
469+
<LockSimpleIcon
470+
className="size-3 text-muted-foreground"
471+
weight="duotone"
472+
/>
473+
</Tooltip>
474+
) : null}
475+
</div>
464476
<p className="text-muted-foreground text-xs">
465477
{identity?.displayName && identity?.email
466478
? `${identity.email} · `

0 commit comments

Comments
 (0)