Skip to content

Commit c193f7a

Browse files
authored
feat: subscription changes in pricing page (#8444)
1 parent 0ece60a commit c193f7a

File tree

3 files changed

+41
-17
lines changed

3 files changed

+41
-17
lines changed

packages/app/src/app/components/WorkspaceSetup/steps/Plans.tsx

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ const PlanPricing: React.FC<{
345345
weight="medium"
346346
css={{ textWrap: 'balance', width: 180 }}
347347
>
348-
{interval === SubscriptionInterval.Monthly ? "per month per workspace" : "per workspace per month billed annually"}
348+
{interval === SubscriptionInterval.Monthly
349+
? 'per month per workspace'
350+
: 'per workspace per month billed annually'}
349351
</Text>
350352
)}
351353
</Stack>
@@ -612,21 +614,38 @@ const FeaturesComparison: React.FC<{ plans: PricingPlanFeatures[] }> = ({
612614
property="storage"
613615
/>
614616
<FeatureComparisonNumbersRow
615-
title="Sandboxes"
617+
title="Private Sandboxes"
616618
description={
617619
<>
618-
The maximum number of Sandboxes in a workspace. <br />
620+
The maximum number of private Sandboxes in a workspace. <br />
619621
<a
620622
target="_blank"
621623
rel="noreferrer"
622-
href="https://codesandbox.io/docs/learn/devboxes/overview?tab=sandbox#difference-between-devboxes--sandboxes"
624+
href="https://codesandbox.io/docs/learn/devboxes/editors?tab=sandbox"
623625
>
624626
Learn more about Sandboxes.
625627
</a>
626628
</>
627629
}
628630
plans={plans}
629-
property="sandboxes"
631+
property="privateSandboxes"
632+
/>
633+
<FeatureComparisonNumbersRow
634+
title="Public Sandboxes"
635+
description={
636+
<>
637+
The maximum number of public Sandboxes in a workspace. <br />
638+
<a
639+
target="_blank"
640+
rel="noreferrer"
641+
href="https://codesandbox.io/docs/learn/devboxes/editors?tab=sandbox"
642+
>
643+
Learn more about Sandboxes.
644+
</a>
645+
</>
646+
}
647+
plans={plans}
648+
property="publicSandboxes"
630649
/>
631650
<FeatureComparisonNumbersRow
632651
title="Personal drafts"

packages/app/src/app/components/WorkspaceSetup/steps/constants.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ export type PricingPlanFeatures = {
55
name: string;
66
members: number;
77
storage: string;
8-
sandboxes: string | number;
8+
publicSandboxes: string | number;
9+
privateSandboxes: string | number;
910
devboxes: number;
1011
repositories: number;
1112
drafts: number;
@@ -28,10 +29,11 @@ export const FREE_FEATURES: PricingPlanFeatures = {
2829
name: 'Free',
2930
members: 5,
3031
storage: '20 GB',
31-
sandboxes: 20,
32+
publicSandboxes: 'Unlimited',
33+
privateSandboxes: 5,
3234
devboxes: Number.MAX_SAFE_INTEGER,
3335
repositories: Number.MAX_SAFE_INTEGER,
34-
drafts: 10,
36+
drafts: Number.MAX_SAFE_INTEGER,
3537
vmType: `4 vCPUs<br/>8 GB RAM`,
3638
privateProject: true,
3739
shareableLinks: true,
@@ -52,7 +54,8 @@ export const PRO_FEATURES: PricingPlanFeatures = {
5254
members: 20,
5355
storage: `50 GB<br/>
5456
<small>more with add-ons</small>`,
55-
sandboxes: Number.MAX_SAFE_INTEGER,
57+
publicSandboxes: Number.MAX_SAFE_INTEGER,
58+
privateSandboxes: Number.MAX_SAFE_INTEGER,
5659
devboxes: Number.MAX_SAFE_INTEGER,
5760
repositories: Number.MAX_SAFE_INTEGER,
5861
drafts: Number.MAX_SAFE_INTEGER,
@@ -75,7 +78,8 @@ export const ENTERPRISE_FEATURES: PricingPlanFeatures = {
7578
name: 'Enterprise',
7679
members: Number.MAX_SAFE_INTEGER,
7780
storage: 'Custom',
78-
sandboxes: Number.MAX_SAFE_INTEGER,
81+
publicSandboxes: Number.MAX_SAFE_INTEGER,
82+
privateSandboxes: Number.MAX_SAFE_INTEGER,
7983
devboxes: Number.MAX_SAFE_INTEGER,
8084
repositories: Number.MAX_SAFE_INTEGER,
8185
drafts: Number.MAX_SAFE_INTEGER,

packages/app/src/app/overmind/namespaces/checkout/constants.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export const FREE_PLAN: PricingPlan = {
1313
storage: 20,
1414
usage: [
1515
'Up to 40 hours worth of VM credits per month',
16-
'20 GB storage per VM',
17-
'VMs up to 4 vCPUs + 8 GB RAM',
16+
'VMs up to 4 vCPUs + 8 GiB RAM',
17+
'5 private Sandboxes',
18+
'Unlimited public Sandboxes',
19+
'Unlimited personal drafts',
1820
'Unlimited Devboxes and repositories',
19-
'20 Sandboxes',
20-
'10 personal drafts',
2121
'5 members',
2222
],
2323
features: [
@@ -44,9 +44,10 @@ export const PRO_PLAN: PricingPlan = {
4444
'Start from 100 hours worth of VM credits per month',
4545
'50 GB storage per VM',
4646
'VMs up to 16 vCPUs + 32 GB RAM',
47-
'Unlimited Devboxes and repositories',
48-
'Unlimited Sandboxes',
47+
'Unlimited public Sandboxes',
48+
'Unlimited private Sandboxes',
4949
'Unlimited personal drafts',
50+
'Unlimited Devboxes and repositories',
5051
'20 members',
5152
'Access on-demand VM credits for $0.18 per hour',
5253
],
@@ -63,7 +64,7 @@ export const ENTERPRISE_PLAN: PricingPlan = {
6364
features: [
6465
'Unlimited members',
6566
'Unlimited API',
66-
'VMs up to 64 vCPUs + 128 GB RAM',
67+
'VMs up to 64 vCPUs + 128 GiB RAM',
6768
'On-premise options',
6869
'Private managed cloud',
6970
'Dedicated support',

0 commit comments

Comments
 (0)