Home / Function/ UserImpersonatingRow() — supabase Function Reference

UserImpersonatingRow() — supabase Function Reference

Architecture documentation for the UserImpersonatingRow() function in UserImpersonationSelector.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  0108b321_bf04_8eea_b20a_c0acdce2a1bd["UserImpersonatingRow()"]
  d44a1c3b_079d_7fa6_71ab_78eb4daff73a["getAvatarUrl()"]
  0108b321_bf04_8eea_b20a_c0acdce2a1bd -->|calls| d44a1c3b_079d_7fa6_71ab_78eb4daff73a
  3c05a680_a8e3_7a53_e059_ae8513da59ad["getDisplayName()"]
  0108b321_bf04_8eea_b20a_c0acdce2a1bd -->|calls| 3c05a680_a8e3_7a53_e059_ae8513da59ad
  style 0108b321_bf04_8eea_b20a_c0acdce2a1bd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx lines 471–493

const UserImpersonatingRow = ({
  user,
  onClick,
  isImpersonating = false,
  isLoading = false,
  aal,
}: UserRowProps & { aal: AuthenticatorAssuranceLevels }) => {
  const avatarUrl = getAvatarUrl(user)
  const displayName =
    getDisplayName(user, user.email ?? user.phone ?? user.id ?? 'Unknown') +
    (user.is_anonymous ? ' (anonymous)' : '')

  return (
    <BaseImpersonatingRow
      onClick={() => onClick(user)}
      aal={aal}
      displayName={displayName}
      avatarUrl={avatarUrl}
      isImpersonating={isImpersonating}
      isLoading={isLoading}
    />
  )
}

Subdomains

Frequently Asked Questions

What does UserImpersonatingRow() do?
UserImpersonatingRow() is a function in the supabase codebase.
What does UserImpersonatingRow() call?
UserImpersonatingRow() calls 2 function(s): getAvatarUrl, getDisplayName.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free