Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

fix(quota-share): correct PoolCard statusCls template literal + remove duplicate icon span (B/G4)

diegosouzapwd00228826689
diff --git a/src/app/(dashboard)/dashboard/costs/quota-share/components/PoolCard.tsx b/src/app/(dashboard)/dashboard/costs/quota-share/components/PoolCard.tsx
index bfa2540299..6bae71c651 100644
--- a/src/app/(dashboard)/dashboard/costs/quota-share/components/PoolCard.tsx
+++ b/src/app/(dashboard)/dashboard/costs/quota-share/components/PoolCard.tsx
@@ -8,6 +8,7 @@ import type { PoolUsageSnapshot } from "@/lib/quota/types";
import DimensionBar from "./DimensionBar";
import AllocationTable from "./AllocationTable";
import BurnRateChart from "./BurnRateChart";
+import StackedAllocationBar from "./StackedAllocationBar";
export interface PoolCardProps {
pool: QuotaPool;
@@ -65,12 +66,9 @@ export default function PoolCard({
</div>
<div className="min-w-0">
<div className="flex items-center gap-1.5">
- <span className="material-symbols-outlined text-[16px] shrink-0 {statusCls}">
+ <span className={`material-symbols-outlined text-[16px] shrink-0 ${statusCls}`}>
{statusIcon}
</span>
- <span className={`text-[14px] shrink-0 ${statusCls}`}>
- <span className="material-symbols-outlined text-[16px]">{statusIcon}</span>
- </span>
<span className="text-sm font-bold text-text-main truncate">
{pool.name} · {connectionLabel}
</span>
@@ -122,6 +120,13 @@ export default function PoolCard({
</div>
)}
+ {/* Stacked allocation bar — per-key slices */}
+ <StackedAllocationBar
+ allocations={pool.allocations}
+ usage={usage}
+ keyLabels={keyLabels}
+ />
+
{/* Allocation table */}
<div className="mb-3">
<h4 className="text-[10px] uppercase tracking-wide font-bold text-text-muted mb-1.5">