diff --git a/apps/webapp/app/components/billing/UsageBar.tsx b/apps/webapp/app/components/billing/UsageBar.tsx index b1c51f438..a54219a98 100644 --- a/apps/webapp/app/components/billing/UsageBar.tsx +++ b/apps/webapp/app/components/billing/UsageBar.tsx @@ -19,13 +19,12 @@ export function UsageBar({ projectedRuns, subscribedToPaidTier = false, }: UsageBarProps) { - //create a maximum range for the progress bar const getLargestNumber = Math.max( numberOfCurrentRuns, tierRunLimit, projectedRuns, billingLimit ?? -Infinity - ); + ); //creates a maximum range for the progress bar const maxRange = Math.round(getLargestNumber * 1.1); // add 10% to the largest number so the bar doesn't reach the end const tierRunLimitPercentage = Math.round((tierRunLimit / maxRange) * 100); //convert the freeRunLimit into a percentage const projectedRunsPercentage = Math.round((projectedRuns / maxRange) * 100); //convert the projectedRuns into a percentage diff --git a/apps/webapp/app/routes/_app.orgs.$organizationSlug.billing._index/route.tsx b/apps/webapp/app/routes/_app.orgs.$organizationSlug.billing._index/route.tsx index 817137e40..35a46684f 100644 --- a/apps/webapp/app/routes/_app.orgs.$organizationSlug.billing._index/route.tsx +++ b/apps/webapp/app/routes/_app.orgs.$organizationSlug.billing._index/route.tsx @@ -59,7 +59,7 @@ export default function Page() {
Concurrent Runs -
+
Runs -
-
-
-
- Month-to-date -

$0.00

-
- -
- Projected -

$5.25

-
-
- -
-
- Monthly Runs - - No Runs to show - - - + - - `${value}`} - /> - } /> - - - + Upgrade + + } + > + You have exceeded the monthly 10,000 Runs limit. Upgrade to a paid plan before Nov 30. + +
+
+
+
+ Month-to-date +

$0.00

+
+ +
+ Projected +

$5.25

+
+
+ +
+
+ Monthly Runs + + No Runs to show + + + + + `${value}`} + /> + } + /> + + + +
diff --git a/apps/webapp/app/routes/_app.orgs.$organizationSlug.billing/route.tsx b/apps/webapp/app/routes/_app.orgs.$organizationSlug.billing/route.tsx index 004279c29..ee872bb9c 100644 --- a/apps/webapp/app/routes/_app.orgs.$organizationSlug.billing/route.tsx +++ b/apps/webapp/app/routes/_app.orgs.$organizationSlug.billing/route.tsx @@ -71,7 +71,7 @@ export default function Page() { } - value={"You’re currently on the Pro plan ($80/mo)"} + value={"You’re currently on the $80/mo Pro plan"} /> }