Skip to content

Commit ea611f2

Browse files
committed
[dashboard] Add blue infobox to Plans and Teams page when usage-based is enabled
1 parent b7c2506 commit ea611f2

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

components/dashboard/src/settings/Plans.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,18 @@ export default function () {
634634
return (
635635
<div>
636636
<PageWithSettingsSubMenu title="Plans" subtitle="Manage account usage and billing.">
637+
{isUsageBasedBillingEnabled && (
638+
<Alert type="message" className="mb-4">
639+
Your account has been enabled for usage-based billing. Discover faster workspace classes and
640+
only pay for what you actually use.{" "}
641+
<a className="gp-link" href="https://www.gitpod.io/docs/configure/billing/usage-based-billing">
642+
Learn more
643+
</a>
644+
<br />
645+
<br />
646+
The old monthly plans are deprecated and will be cancelled by End of March 2023.
647+
</Alert>
648+
)}
637649
<div className="w-full text-center">
638650
<p className="text-xl text-gray-500">
639651
You are currently using the{" "}

components/dashboard/src/settings/Teams.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,18 @@ function AllTeams() {
454454

455455
return (
456456
<div>
457+
{isUsageBasedBillingEnabled && (
458+
<Alert type="message" className="mb-4">
459+
Your account has been enabled for usage-based billing. Discover faster workspace classes and only
460+
pay for what you actually use.{" "}
461+
<a className="gp-link" href="https://www.gitpod.io/docs/configure/billing/usage-based-billing">
462+
Learn more
463+
</a>
464+
<br />
465+
<br />
466+
The old monthly plans are deprecated and will be cancelled by End of March 2023.
467+
</Alert>
468+
)}
457469
<div className="flex flex-row">
458470
<div className="flex-grow ">
459471
<h3 className="self-center">All Team Plans</h3>

0 commit comments

Comments
 (0)