BaseImpersonatingRow() — supabase Function Reference
Architecture documentation for the BaseImpersonatingRow() function in UserImpersonationSelector.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx lines 437–469
const BaseImpersonatingRow = ({
onClick,
aal,
displayName,
avatarUrl,
isImpersonating = false,
isLoading = false,
}: BaseImpersonatingRowProps) => {
return (
<div className="flex items-center gap-3 py-2 text-foreground">
<div className="flex items-center gap-4 bg-surface-200 pr-4 pl-0.5 py-0.5 border rounded-full max-w-l">
{avatarUrl ? (
<img className="rounded-full w-5 h-5" src={avatarUrl} alt={displayName} />
) : (
<div className="rounded-full w-[21px] h-[21px] bg-surface-300 border border-strong flex items-center justify-center">
<IconUser size={12} strokeWidth={2} />
</div>
)}
<span className="text-sm truncate">
{displayName}{' '}
<span className="ml-2 text-foreground-lighter text-xs font-light">
{aal === 'aal2' ? 'AAL2' : 'AAL1'}
</span>
</span>
</div>
<Button type="default" onClick={onClick} disabled={isLoading} loading={isLoading}>
{isImpersonating ? 'Stop Impersonating' : 'Impersonate'}
</Button>
</div>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free