Home / Function/ getStatusVariant() — supabase Function Reference

getStatusVariant() — supabase Function Reference

Architecture documentation for the getStatusVariant() function in ServiceHealthTable.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  2ad8e0d7_ad3e_cf04_b483_56e0680f20ca["getStatusVariant()"]
  df81e8a0_5f6e_1c37_6098_621a2b4628c6["ServiceRow()"]
  df81e8a0_5f6e_1c37_6098_621a2b4628c6 -->|calls| 2ad8e0d7_ad3e_cf04_b483_56e0680f20ca
  style 2ad8e0d7_ad3e_cf04_b483_56e0680f20ca fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Observability/ServiceHealthTable.tsx lines 70–81

const getStatusVariant = (
  status: 'healthy' | 'error' | 'unknown'
): 'success' | 'warning' | 'destructive' | 'default' => {
  switch (status) {
    case 'healthy':
      return 'success'
    case 'error':
      return 'destructive'
    case 'unknown':
      return 'default'
  }
}

Subdomains

Called By

Frequently Asked Questions

What does getStatusVariant() do?
getStatusVariant() is a function in the supabase codebase.
What calls getStatusVariant()?
getStatusVariant() is called by 1 function(s): ServiceRow.

Analyze Your Own Codebase

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

Try Supermodel Free