From 829a5ae919bd15a2edf60da86040ac20fd428904 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 27 Aug 2026 23:30:19 -0700 Subject: [PATCH] improvement(usage): drop the segmented allowance meter from the usage summary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pills answered a question the line above them had already answered. "511,488 credits of 2,000,000" is the proportion, stated exactly; a 24-segment bar restates it approximately, and directly under a chart of the same data in the same colour it reads as a third series rather than as a summary. The seat meter keeps `SegmentedMeter`, where it belongs: seats are countable, so a pill per seat is legible in a way a pill per ~83,000 credits is not. The overage signal the meter also carried is unaffected — the "Over limit" badge beside the figure already states it, and states it in words. --- .../components/usage-summary.tsx | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/apps/sim/ee/organization-usage/components/usage-summary.tsx b/apps/sim/ee/organization-usage/components/usage-summary.tsx index 46b29c571af..0acdeec924a 100644 --- a/apps/sim/ee/organization-usage/components/usage-summary.tsx +++ b/apps/sim/ee/organization-usage/components/usage-summary.tsx @@ -5,19 +5,11 @@ import { Badge } from '@sim/emcn' import { BarChart } from '@/components/charts' import type { OrganizationUsageSummary } from '@/lib/api/contracts/organization-usage' import { formatCreditsLabel } from '@/lib/billing/credits/conversion' -import { SegmentedMeter } from '@/app/workspace/[workspaceId]/settings/components/segmented-meter' import { SettingsEmptyState } from '@/app/workspace/[workspaceId]/settings/components/settings-empty-state' /** Consumption, matching the seat meter's indicator rather than an outcome colour. */ const USAGE_SERIES_COLOR = 'var(--indicator-seat-filled)' -/** - * A credit allowance runs to the millions, so the meter cannot be countable the way - * the seat meter is — a fixed count reads as a percentage instead. Matches the seat - * overview's own fallback. - */ -const ALLOWANCE_SEGMENTS = 24 - interface UsageSummaryProps { summary?: OrganizationUsageSummary /** Pooled allowance in credits, from the organization's billing data. `null` when uncapped. */ @@ -95,15 +87,6 @@ export function UsageSummary({ summary, limitCredits, isLoading, isError }: Usag )} - {/* - The shared allowance meter, not a second bar drawn from the same token. - `SegmentedMeter` already owns the overage tone, and it is the affordance the - seat overview uses for exactly this question. - */} - {hasLimit && ( - - )} - )