mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
Whenever customers run into their 2 Free Plan project limit, we were previously just listed the affected members: <img width="1044" height="566" alt="image" src="https://github.com/user-attachments/assets/d1c1327d-2532-4d8e-8af2-425da9ce1ee5" /> While this lists the affected members, it is pretty unclear which organizations are affected or which projects contribute to this and what the best course of action is. This PR revamps all components that are displayed in this situation (new project launch, downgrade to Free, project unpause) to show the affected organizations + projects primarily and give more actionable tips: <img width="1014" height="638" alt="Screenshot 2026-11-11 at 3 57 45 PM (1)" src="https://github.com/user-attachments/assets/ae38f71d-bbde-4181-a623-24bef778afee" /> <img width="768" height="152" alt="image" src="https://github.com/user-attachments/assets/b3b0efd7-678b-4ac0-9602-4cc5d735a9aa" /> --- Additionally, this contains small improvements to the downgrade flow: - Rename button to "Downgrade Now" as opposed to "Confirm" to make it more clear that this is immediate - Explicitly mention downgrades are immediate and there is still another invoice for unbilled usage - Larger modal width for improved readability
41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
import { InlineLink } from '@/components/ui/InlineLink'
|
|
import { DOCS_URL } from '@/lib/constants'
|
|
|
|
interface FreeProjectLimitActionsProps {
|
|
/** Completes "To …, you can:", e.g. "downgrade to the Free Plan" */
|
|
goal: string
|
|
hasMultipleMembers: boolean
|
|
}
|
|
|
|
export const FreeProjectLimitActions = ({
|
|
goal,
|
|
hasMultipleMembers,
|
|
}: FreeProjectLimitActionsProps) => {
|
|
return (
|
|
<>
|
|
<p className="text-sm text-foreground-light">{`To ${goal}, you can:`}</p>
|
|
<ol className="pl-5 text-sm list-decimal text-foreground-light space-y-1">
|
|
<li>Upgrade any of the affected organizations listed above to a paid plan.</li>
|
|
<li>Delete or pause any of the active Free Plan projects listed above.</li>
|
|
<li>
|
|
<InlineLink href={`${DOCS_URL}/guides/platform/project-transfer`}>
|
|
Transfer a project
|
|
</InlineLink>{' '}
|
|
under this organization to a Free Plan organization and{' '}
|
|
<InlineLink href={`${DOCS_URL}/guides/platform/free-project-pausing`}>
|
|
pause it
|
|
</InlineLink>
|
|
.
|
|
</li>
|
|
{hasMultipleMembers && (
|
|
<li>
|
|
Demote the member to the Developer role through your{' '}
|
|
<InlineLink href="/org/_/team">organization's Team settings</InlineLink> so their
|
|
projects no longer count toward the Free Plan limit.
|
|
</li>
|
|
)}
|
|
</ol>
|
|
</>
|
|
)
|
|
}
|