Skip to content

Commit

Permalink
Update wording for usage limits and alerts (#553)
Browse files Browse the repository at this point in the history
Clarify wording for usage limits & alerts
  • Loading branch information
mlejva authored Jan 25, 2025
2 parents fb0dcb7 + 525d053 commit 8b5af4e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions apps/web/src/components/Dashboard/BillingAlerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}`
),
{
Expand Down Expand Up @@ -257,7 +256,7 @@ export const BillingAlerts = ({
{isLoading[type].save ? (
<Loader2 className="h-4 w-4 animate-spin" />
) : (
'Save'
'Set'
)}
</Button>
{originalValue !== null && (
Expand Down Expand Up @@ -320,17 +319,18 @@ export const BillingAlerts = ({
<form onSubmit={(e) => handleSubmit(e, 'limit')} className="space-y-2">
<h3 className="font-medium">Enable Budget Limit</h3>
<p className="text-sm text-white/70">
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.
</p>
<p className="text-sm text-white/70">
You will automatically receive email notifications when your usage
reaches <b>50%</b> and <b>80%</b> of this limit.
reaches <b>50%</b>, <b>80%</b>, <b>90%</b>, and <b>100%</b> of this
limit.
</p>
<p className="text-sm text-red-400">
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.
</p>
<div className="!mt-4">{renderAmountInput('limit')}</div>
Expand All @@ -339,8 +339,9 @@ export const BillingAlerts = ({
<form onSubmit={(e) => handleSubmit(e, 'alert')} className="space-y-2">
<h3 className="font-medium">Set a Budget Alert</h3>
<p className="text-sm text-white/70">
If your team exceeds this threshold in a given billing period,
you&apos;ll receive an alert notification to <b>{email}</b>.
If your team exceeds this threshold in a given month, you&apos;ll
receive an alert notification to <b>{email}</b>.
This will not result in any interruptions to your service.
</p>
<div className="!mt-4">{renderAmountInput('alert')}</div>
</form>
Expand Down

0 comments on commit 8b5af4e

Please sign in to comment.