From 3fcfd2beb5cc5c8fd78f994255713eb4b665187d Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Fri, 24 Jan 2025 16:05:31 -0800 Subject: [PATCH 1/2] Update wording for usage limits and alerts --- .../src/components/Dashboard/BillingAlerts.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/apps/web/src/components/Dashboard/BillingAlerts.tsx b/apps/web/src/components/Dashboard/BillingAlerts.tsx index 8a5801233..2e77dd560 100644 --- a/apps/web/src/components/Dashboard/BillingAlerts.tsx +++ b/apps/web/src/components/Dashboard/BillingAlerts.tsx @@ -148,8 +148,7 @@ export const BillingAlerts = ({ const res = await fetch( getBillingUrl( domain, - `/teams/${team.id}/billing-limits/${ - type === 'limit' ? 'limit_amount_gte' : 'alert_amount_gte' + `/teams/${team.id}/billing-limits/${type === 'limit' ? 'limit_amount_gte' : 'alert_amount_gte' }` ), { @@ -320,17 +319,18 @@ export const BillingAlerts = ({
handleSubmit(e, 'limit')} className="space-y-2">

Enable Budget Limit

- If your team exceeds this threshold in a given billing period, + If your team exceeds this threshold in a given month, subsequent API requests will be blocked.

You will automatically receive email notifications when your usage - reaches 50% and 80% of this limit. + reaches 50%, 80%, 90%, and 100% of this + limit.

Caution: Enabling a Budget Limit may cause interruptions to your service. Once your Budget Limit is reached, your team will not be able - to create new sandboxes in the given billing period unless the limit + to create new sandboxes in the given month unless the limit is increased.

{renderAmountInput('limit')}
@@ -339,8 +339,9 @@ export const BillingAlerts = ({ handleSubmit(e, 'alert')} className="space-y-2">

Set a Budget Alert

- If your team exceeds this threshold in a given billing period, - you'll receive an alert notification to {email}. + If your team exceeds this threshold in a given month, you'll + receive an alert notification to {email}. + This will not result in any interruptions to your service.

{renderAmountInput('alert')}
From 525d05329b3f52c28ed4e1386a42551655910b1e Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Fri, 24 Jan 2025 16:17:22 -0800 Subject: [PATCH 2/2] Change button's text --- apps/web/src/components/Dashboard/BillingAlerts.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/Dashboard/BillingAlerts.tsx b/apps/web/src/components/Dashboard/BillingAlerts.tsx index 2e77dd560..0e7660f05 100644 --- a/apps/web/src/components/Dashboard/BillingAlerts.tsx +++ b/apps/web/src/components/Dashboard/BillingAlerts.tsx @@ -256,7 +256,7 @@ export const BillingAlerts = ({ {isLoading[type].save ? ( ) : ( - 'Save' + 'Set' )} {originalValue !== null && (