generateUpgradeReasons() — supabase Function Reference
Architecture documentation for the generateUpgradeReasons() function in helpers.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 92e2e994_1a7b_cbd4_cdab_b89b1f1e2c59["generateUpgradeReasons()"] 9c0e2796_2b3a_b6da_fc36_24c901d4e2e2["UpgradeSurveyModal()"] 9c0e2796_2b3a_b6da_fc36_24c901d4e2e2 -->|calls| 92e2e994_1a7b_cbd4_cdab_b89b1f1e2c59 style 92e2e994_1a7b_cbd4_cdab_b89b1f1e2c59 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Organization/BillingSettings/helpers.ts lines 72–96
export const generateUpgradeReasons = (originalPlan?: string, upgradedPlan?: string) => {
const reasons = [
'Current plan limits are not enough for me',
'I want better customer support from Supabase',
'I am migrating from a previous project',
]
if (originalPlan === undefined || upgradedPlan === undefined) {
reasons.push('None of the above')
return reasons
}
if (originalPlan === 'free' && upgradedPlan === 'pro') {
reasons.push('Need more compute')
reasons.push(
'I want access to additional features like branching, daily backups, custom domain and PITR'
)
} else if (upgradedPlan === 'team') {
reasons.push('I want access to SOC2 and HIPAA compliance')
}
reasons.push('None of the above')
return reasons
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does generateUpgradeReasons() do?
generateUpgradeReasons() is a function in the supabase codebase.
What calls generateUpgradeReasons()?
generateUpgradeReasons() is called by 1 function(s): UpgradeSurveyModal.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free