diff --git a/apps/webapp/app/components/billing/PricingCalculator.tsx b/apps/webapp/app/components/billing/PricingCalculator.tsx index 8c43f8dda..31069f0e5 100644 --- a/apps/webapp/app/components/billing/PricingCalculator.tsx +++ b/apps/webapp/app/components/billing/PricingCalculator.tsx @@ -5,6 +5,7 @@ import { DefinitionTip } from "../DefinitionTooltip"; import { Header2 } from "../primitives/Headers"; import { Paragraph } from "../primitives/Paragraph"; import { formatNumberCompact } from "~/utils/numberFormatter"; +import { cn } from "~/utils/cn"; export function PricingCalculator({ plans }: { plans: Plans }) { const [selectedConcurrencyIndex, setSelectedConcurrencyIndex] = useState(0); @@ -162,17 +163,23 @@ function RunsSlider({ aria-label="Concurrent Runs slider" /> -
- {brackets.map((bracket, i) => { +
+ {brackets.map((bracket, i, arr) => { + const percentagePerBracket = 1 / arr.length; return ( - - {formatNumberCompact(bracket.from)} - + ); })} - - {formatNumberCompact(brackets[brackets.length - 1].upto)} - +
@@ -212,3 +219,37 @@ function GrandTotal({ cost }: { cost: number }) {
); } + +function SliderMarker({ + percentage, + alignment, + text, +}: { + percentage: number; + alignment: "left" | "center" | "right"; + text: string; +}) { + return ( +
+
+ + {text} + +
+
+ ); +}