mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
Right now, when customers upgrade from free → paid or even pro → team, we simply redirect to the org billing page with a quick banner that vanishes after 3 seconds confirming the plan was changed. it’s quite unsatisfying and feels like a missed opportunity to display what the customer now unlocked and next steps. I want to especially highlight projects that are now upgradeable from nano → micro, but we can later expand and make the “next steps” smarter and do it context-based.
10 lines
408 B
TypeScript
10 lines
408 B
TypeScript
import { parseAsStringLiteral, useQueryState } from 'nuqs'
|
|
|
|
export const ORG_SETTINGS_PANEL_KEYS = ['subscriptionPlan', 'planUpgraded', 'costControl'] as const
|
|
export type OrgSettingsPanelKey = (typeof ORG_SETTINGS_PANEL_KEYS)[number]
|
|
|
|
export const useOrgSettingsPanel = () => {
|
|
const [panel, setPanel] = useQueryState('panel', parseAsStringLiteral(ORG_SETTINGS_PANEL_KEYS))
|
|
return { panel, setPanel }
|
|
}
|