getLinearTeam() — supabase Function Reference
Architecture documentation for the getLinearTeam() function in Feedback.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 06021ec0_94f4_72a6_9fd8_c3841210a444["getLinearTeam()"] db81693d_9a17_bf20_5e49_ea669c5037e3["Feedback()"] db81693d_9a17_bf20_5e49_ea669c5037e3 -->|calls| 06021ec0_94f4_72a6_9fd8_c3841210a444 style 06021ec0_94f4_72a6_9fd8_c3841210a444 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/components/Feedback/Feedback.utils.ts lines 6–41
const getLinearTeam = (pathname: string) => {
const DEFAULT_TEAM = 'Docs'
// Pathname has format `/guides/(team)/**`
const pathParts = pathname.split('/')
if (pathParts[1] !== 'guides' || !pathParts[2]) return DEFAULT_TEAM
switch (pathParts[2]) {
case 'database':
return 'Postgres'
case 'auth':
return 'Auth'
case 'storage':
return 'Storage'
case 'functions':
return 'Functions'
case 'realtime':
return 'Realtime'
case 'ai':
return 'AI'
case 'local-development':
case 'self-hosting':
case 'deployment':
return 'Dev Workflows'
case 'integrations':
return 'API'
case 'security':
return 'Security'
case 'platform':
case 'monitoring-troubleshooting':
return 'Infra'
default:
return DEFAULT_TEAM
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getLinearTeam() do?
getLinearTeam() is a function in the supabase codebase.
What calls getLinearTeam()?
getLinearTeam() is called by 1 function(s): Feedback.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free