Files
K-Dog (Kevin) 653f914ca1 feat: post plan upgrade screen (#54003)
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.
2026-11-25 11:30:19 +00:00

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 }
}