Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 7 additions & 55 deletions app/src/components/settings/panels/BillingPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ const BillingPanel = () => {
)}
<p className="text-xs text-stone-500">
{currentTier === 'FREE'
? 'Free accounts do not include recurring monthly credits. New accounts may receive a one-time signup credit, and any additional usage is covered by pay-as-you-go credits.'
: 'Your subscription includes premium usage each cycle. Pay-as-you-go credits cover overage after the included budget is consumed.'}
? 'Free accounts use pay-as-you-go credits. New accounts may receive a one-time signup credit.'
: 'Your subscription includes premium usage each cycle. Top-ups cover any overage.'}
</p>
{currentPlan && (
<div className="mt-2 flex flex-wrap gap-1.5">
Expand All @@ -433,12 +433,10 @@ const BillingPanel = () => {
10-hour cap: {formatUsdAmount(currentPlan.fiveHourCapUsd)}
</span>
)}
{currentPlanMeta && (
<>
<span className="rounded-full border border-stone-200 bg-stone-50 px-2 py-1 text-[10px] text-stone-600">
Premium-usage discount: {currentPlanMeta.discountPercent}%
</span>
</>
{currentPlanMeta && currentPlanMeta.discountPercent > 0 && (
<span className="rounded-full border border-stone-200 bg-stone-50 px-2 py-1 text-[10px] text-stone-600">
Premium-usage discount: {currentPlanMeta.discountPercent}%
</span>
)}
</div>
)}
Expand All @@ -457,7 +455,7 @@ const BillingPanel = () => {
<div className="flex items-center gap-3 py-2">
<div className="flex-1 h-px bg-stone-200" />
<span className="text-xs text-stone-400 whitespace-nowrap">
Or subscribe for recurring included usage + discounts
Or subscribe for included usage + discounts
</span>
<div className="flex-1 h-px bg-stone-200" />
</div>
Expand Down Expand Up @@ -506,52 +504,6 @@ const BillingPanel = () => {
onDeleteCard={handleDeleteCard}
onAddCard={handleAddCard}
/>

{/* ── Why upgrade? ───────────────────────────────────── */}
<div className="pt-2">
<div className="rounded-xl bg-gradient-to-br from-primary-500/10 to-sage-500/10 border border-primary-500/20 p-4">
<h3 className="text-sm font-semibold text-stone-900 mb-2">Why upgrade?</h3>
<ul className="space-y-1.5 text-xs text-stone-600">
<li className="flex items-start gap-2">
<svg
className="w-4 h-4 text-sage-400 flex-shrink-0 mt-0.5"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24">
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M5 13l4 4L19 7"
/>
</svg>
<span>
Higher tiers increase your premium-usage discount and included usage every cycle
</span>
</li>
{currentTier === 'FREE' && (
<li className="flex items-start gap-2">
<svg
className="w-4 h-4 text-sage-400 flex-shrink-0 mt-0.5"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24">
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M5 13l4 4L19 7"
/>
</svg>
<span>
Annual billing lowers the effective monthly price, and top-ups let you keep
going when usage spikes
</span>
</li>
)}
</ul>
</div>
</div>
</div>
</div>
</div>
Expand Down
Loading
Loading