-
-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds Realtime concurrency limits to the billing page pricing tiers #1500
Conversation
WalkthroughThe changes introduce a new feature for "Realtime connections" in the pricing definitions within the web application. A new property, Changes
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 eslint
apps/webapp/app/routes/resources.orgs.$organizationSlug.select-plan.tsxOops! Something went wrong! :( ESLint: 8.45.0 ESLint couldn't find the config "custom" to extend from. Please check that the name of the config is correct. The config "custom" was referenced from the config file in "/.eslintrc.js". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
apps/webapp/app/routes/resources.orgs.$organizationSlug.select-plan.tsx
(5 hunks)
🔇 Additional comments (1)
apps/webapp/app/routes/resources.orgs.$organizationSlug.select-plan.tsx (1)
193-197
: LGTM! Clear and consistent definition.
The new realtime
property follows the established pattern and provides clear, informative content about Realtime connections.
@@ -494,6 +499,7 @@ export function TierFree({ | |||
<LogRetention limits={plan.limits} /> | |||
<SupportLevel limits={plan.limits} /> | |||
<Alerts limits={plan.limits} /> | |||
<RealtimeConnecurrency limits={plan.limits} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update component references after fixing the typo
After renaming the component from RealtimeConnecurrency
to RealtimeConcurrency
, update all references:
Apply this diff to update the references:
- <RealtimeConnecurrency limits={plan.limits} />
+ <RealtimeConcurrency limits={plan.limits} />
Also applies to: 617-617, 688-688
function RealtimeConnecurrency({ limits }: { limits: Limits }) { | ||
return ( | ||
<FeatureItem checked> | ||
{limits.realtimeConcurrentConnections.number} | ||
{limits.realtimeConcurrentConnections.canExceed ? "+" : ""}{" "} | ||
<DefinitionTip | ||
title={pricingDefinitions.realtime.title} | ||
content={pricingDefinitions.realtime.content} | ||
> | ||
concurrent Realtime connections | ||
</DefinitionTip> | ||
</FeatureItem> | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix typo in component name: "Connecurrency" → "Concurrency"
The component name contains a typo that should be corrected for clarity and consistency.
Apply this diff to fix the typo:
-function RealtimeConnecurrency({ limits }: { limits: Limits }) {
+function RealtimeConcurrency({ limits }: { limits: Limits }) {
return (
<FeatureItem checked>
{limits.realtimeConcurrentConnections.number}
{limits.realtimeConcurrentConnections.canExceed ? "+" : ""}{" "}
<DefinitionTip
title={pricingDefinitions.realtime.title}
content={pricingDefinitions.realtime.content}
>
concurrent Realtime connections
</DefinitionTip>
</FeatureItem>
);
}
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
function RealtimeConnecurrency({ limits }: { limits: Limits }) { | |
return ( | |
<FeatureItem checked> | |
{limits.realtimeConcurrentConnections.number} | |
{limits.realtimeConcurrentConnections.canExceed ? "+" : ""}{" "} | |
<DefinitionTip | |
title={pricingDefinitions.realtime.title} | |
content={pricingDefinitions.realtime.content} | |
> | |
concurrent Realtime connections | |
</DefinitionTip> | |
</FeatureItem> | |
); | |
} | |
function RealtimeConcurrency({ limits }: { limits: Limits }) { | |
return ( | |
<FeatureItem checked> | |
{limits.realtimeConcurrentConnections.number} | |
{limits.realtimeConcurrentConnections.canExceed ? "+" : ""}{" "} | |
<DefinitionTip | |
title={pricingDefinitions.realtime.title} | |
content={pricingDefinitions.realtime.content} | |
> | |
concurrent Realtime connections | |
</DefinitionTip> | |
</FeatureItem> | |
); | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in Concurrency… but it's fine for now
The billing page pricing tiers now include information about the Realtime concurrency limits
Summary by CodeRabbit
RealtimeConcurrency
component to showcase realtime connection features within the pricing tiers.