Skip to content

Commit 90db0f6

Browse files
authored
Adds realtime limits to the billing page pricing tiers (#1500)
1 parent 6df8069 commit 90db0f6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

apps/webapp/app/routes/resources.orgs.$organizationSlug.select-plan.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ const pricingDefinitions = {
190190
content:
191191
"A single email address, Slack channel, or webhook URL that you want to send alerts to.",
192192
},
193+
realtime: {
194+
title: "Realtime connections",
195+
content:
196+
"Realtime allows you to send the live status and data from your runs to your frontend. This is the number of simultaneous Realtime connections that can be made.",
197+
},
193198
};
194199

195200
type PricingPlansProps = {
@@ -494,6 +499,7 @@ export function TierFree({
494499
<LogRetention limits={plan.limits} />
495500
<SupportLevel limits={plan.limits} />
496501
<Alerts limits={plan.limits} />
502+
<RealtimeConnecurrency limits={plan.limits} />
497503
</ul>
498504
</>
499505
)}
@@ -608,6 +614,7 @@ export function TierHobby({
608614
<LogRetention limits={plan.limits} />
609615
<SupportLevel limits={plan.limits} />
610616
<Alerts limits={plan.limits} />
617+
<RealtimeConnecurrency limits={plan.limits} />
611618
</ul>
612619
</TierContainer>
613620
);
@@ -678,6 +685,7 @@ export function TierPro({
678685
<LogRetention limits={plan.limits} />
679686
<SupportLevel limits={plan.limits} />
680687
<Alerts limits={plan.limits} />
688+
<RealtimeConnecurrency limits={plan.limits} />
681689
</ul>
682690
</TierContainer>
683691
);
@@ -950,3 +958,18 @@ function Alerts({ limits }: { limits: Limits }) {
950958
</FeatureItem>
951959
);
952960
}
961+
962+
function RealtimeConnecurrency({ limits }: { limits: Limits }) {
963+
return (
964+
<FeatureItem checked>
965+
{limits.realtimeConcurrentConnections.number}
966+
{limits.realtimeConcurrentConnections.canExceed ? "+" : ""}{" "}
967+
<DefinitionTip
968+
title={pricingDefinitions.realtime.title}
969+
content={pricingDefinitions.realtime.content}
970+
>
971+
concurrent Realtime connections
972+
</DefinitionTip>
973+
</FeatureItem>
974+
);
975+
}

0 commit comments

Comments
 (0)