Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(settings): correct billing plan display for annual subscriptions

Steven Enamakel037815b5e11e
diff --git a/app/src/components/dashboard/UsageLogPanel.tsx b/app/src/components/dashboard/UsageLogPanel.tsx
index bc9128857a..c5c876d471 100644
--- a/app/src/components/dashboard/UsageLogPanel.tsx
+++ b/app/src/components/dashboard/UsageLogPanel.tsx
@@ -144,14 +144,30 @@ const UsageLogPanel = () => {
.replace('{days}', String(days))
.replace('{limit}', '1000')}
</p>
- {data && (
- <span className="text-xs tabular-nums text-content-muted">
- {t('settings.costDashboard.filteredTotal')
- .replace('{shown}', String(records.length))
- .replace('{loaded}', String(data.records.length))
- .replace('{cost}', formatCurrency(filteredCost, data.currency))}
- </span>
- )}
+ <div className="flex items-center gap-3">
+ {data && (
+ <span className="text-xs tabular-nums text-content-muted">
+ {t('settings.costDashboard.filteredTotal')
+ .replace('{shown}', String(records.length))
+ .replace('{loaded}', String(data.records.length))
+ .replace('{cost}', formatCurrency(filteredCost, data.currency))}
+ </span>
+ )}
+ <Button
+ type="button"
+ variant="secondary"
+ size="sm"
+ leadingIcon={
+ <RefreshCw
+ className={`h-3.5 w-3.5 ${isFetching ? 'animate-spin' : ''}`}
+ aria-hidden
+ />
+ }
+ onClick={() => void refetch()}
+ disabled={isFetching}>
+ {t('settings.costDashboard.refresh')}
+ </Button>
+ </div>
</div>
<DataTable<CostUsageRecord>
@@ -211,22 +227,6 @@ const UsageLogPanel = () => {
placeholder: t('settings.costDashboard.searchModelSession'),
ariaLabel: t('settings.costDashboard.searchModelSession'),
}}
- toolbarEnd={
- <Button
- type="button"
- variant="secondary"
- size="sm"
- leadingIcon={
- <RefreshCw
- className={`h-3.5 w-3.5 ${isFetching ? 'animate-spin' : ''}`}
- aria-hidden
- />
- }
- onClick={() => void refetch()}
- disabled={isFetching}>
- {t('settings.costDashboard.refresh')}
- </Button>
- }
loading={!data && isLoading}
loadingLabel={t('settings.costDashboard.loading')}
error={error ? <StatusLine saving={false} error={error} savingLabel="" /> : undefined}
diff --git a/app/src/components/settings/panels/billing/SubscriptionPlans.tsx b/app/src/components/settings/panels/billing/SubscriptionPlans.tsx
index 8e6617ecd1..b44c911374 100644
--- a/app/src/components/settings/panels/billing/SubscriptionPlans.tsx
+++ b/app/src/components/settings/panels/billing/SubscriptionPlans.tsx
@@ -212,11 +212,7 @@ const SubscriptionPlans = ({
</div>
{isCurrent ? (
- <Badge
- variant="primary"
- className="rounded-full bg-primary-600 px-4 py-2 text-xs font-semibold normal-case text-content-inverted">
- {t('settings.billing.subscription.currentPlan')}
- </Badge>
+ <Badge variant="primary">{t('settings.billing.subscription.currentPlan')}</Badge>
) : isUpgrade ? (
<Button
variant="primary"