Skip to content

Commit a351fe1

Browse files
Update subscription message and enhance upgrade plan details for Gitpod's transition to Ona (#21053)
* fix: update subscription error message and enhance upgrade plan details for Gitpod's transition to Ona * add req. line breaks * Fix typo in UsageBasedBillingConfig message
1 parent fd4018d commit a351fe1

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

components/dashboard/src/components/UsageBasedBillingConfig.tsx

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,6 @@ export default function UsageBasedBillingConfig({ hideSubheading = false }: Prop
9494
refreshSubscriptionDetails(attributionId);
9595
}, [attributionId, refreshSubscriptionDetails]);
9696

97-
const handleAddPaymentMethod = useCallback(async () => {
98-
if (!attributionId) {
99-
return;
100-
}
101-
102-
try {
103-
createPaymentIntent.mutateAsync(attributionId);
104-
setShowAddPaymentMethodModal(true);
105-
} catch (e) {
106-
console.error(e);
107-
toast(e.message || "Oh no, there was a problem with our payment service.");
108-
}
109-
}, [attributionId, createPaymentIntent, toast]);
110-
11197
// Handle stripe setup-intent or payment-intent redirect flow
11298
useEffect(() => {
11399
const params = new URLSearchParams(location.search);
@@ -318,13 +304,27 @@ export default function UsageBasedBillingConfig({ hideSubheading = false }: Prop
318304
</div>
319305
</div>
320306
<div className="flex flex-col p-4 rounded-b-xl bg-pk-surface-secondary border-t border-gray-200 dark:border-gray-700">
321-
<div className="uppercase text-sm text-pk-content-tertiary">Upgrade Plan</div>
322307
<div className="mt-1 text-xl font-semibold flex-grow text-pk-content-primary">
323-
Pay-as-you-go
308+
Gitpod is now Ona (
309+
<a
310+
href="https://ona.com/stories/gitpod-is-now-ona"
311+
target="_blank"
312+
rel="noreferrer"
313+
className="!underline hover:!no-underline !gp-link"
314+
>
315+
learn more
316+
</a>
317+
)
324318
</div>
325319
<div className="mt-4 flex space-x-1 text-pk-content-tertiary">
326320
<div className="flex flex-col">
327-
<span>{priceInformation}</span>
321+
<span>
322+
All you loved in Gitpod Classic and more: Parallel coding agents with full VS
323+
Code in browser. Each runs in its own sandbox, fire off many at once and handoff
324+
to web or desktop IDE, even start on mobile. <br />
325+
<br /> Gitpod Classic sunsets Oct 15 - migrate in September and get $100 in
326+
credits.
327+
</span>
328328
</div>
329329
</div>
330330
<div className="flex justify-end mt-6 space-x-2">
@@ -335,9 +335,10 @@ export default function UsageBasedBillingConfig({ hideSubheading = false }: Prop
335335
</Button>
336336
</a>
337337
)}
338-
<LoadingButton loading={createPaymentIntent.isLoading} onClick={handleAddPaymentMethod}>
339-
Upgrade Plan
340-
</LoadingButton>
338+
339+
<a href="https://app.ona.com" target="_blank" rel="noreferrer">
340+
<Button variant="default">Try Ona ↗</Button>
341+
</a>
341342
</div>
342343
</div>
343344
</>

0 commit comments

Comments
 (0)