getStatusConfig() — supabase Function Reference
Architecture documentation for the getStatusConfig() function in ReplicationPipelineStatus.utils.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 35392bf7_535e_dcb0_56ee_9ec66e698b86["getStatusConfig()"] 3b82b542_e027_33d2_7500_1e4cb33bedc2["TableReplicationRow()"] 3b82b542_e027_33d2_7500_1e4cb33bedc2 -->|calls| 35392bf7_535e_dcb0_56ee_9ec66e698b86 style 35392bf7_535e_dcb0_56ee_9ec66e698b86 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/ReplicationPipelineStatus.utils.tsx lines 13–58
export const getStatusConfig = (state: TableState['state']) => {
switch (state.name) {
case 'queued':
return {
badge: <Badge variant="warning">Queued</Badge>,
description: 'Table is waiting for ETL to pick it up for replication.',
tooltip: 'Table is waiting for ETL to pick it up for replication.',
color: 'text-warning',
}
case 'copying_table':
return {
badge: <Badge variant="success">Copying</Badge>,
description: "Table's existing rows are being copied before live streaming begins.",
tooltip: "Table's existing rows are being copied before live streaming begins.",
color: 'text-brand-600',
}
case 'copied_table':
return {
badge: <Badge variant="success">Copied</Badge>,
description: "Table copy is complete and it's preparing to follow WAL changes.",
tooltip: "Table copy is complete and it's preparing to follow WAL changes.",
color: 'text-success-600',
}
case 'following_wal':
return {
badge: <Badge variant="success">Live</Badge>,
description: 'Table is streaming new changes in real time from the WAL.',
tooltip: 'Table is streaming new changes in real time from the WAL.',
color: 'text-success-600',
}
case 'error':
return {
badge: <Badge variant="destructive">Error</Badge>,
description: 'Replication is paused because the table encountered an error.',
tooltip: 'Replication is paused because the table encountered an error.',
color: 'text-destructive-600',
}
default:
return {
badge: <Badge variant="warning">Unknown</Badge>,
description: 'Table status is unavailable.',
tooltip: 'Table status is unavailable.',
color: 'text-warning',
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getStatusConfig() do?
getStatusConfig() is a function in the supabase codebase.
What calls getStatusConfig()?
getStatusConfig() is called by 1 function(s): TableReplicationRow.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free