feat(executors): Improved UI components for displaying provider limits and usage statistics in the dashboard.

This commit is contained in:
decolua
2026-02-05 18:38:50 +07:00
parent 249fc28c49
commit 32aefe5a76
21 changed files with 1113 additions and 311 deletions
@@ -155,7 +155,10 @@ export default function ProviderLimitCard({
{!loading && !error && !message && quotas?.length > 0 && (
<div className="space-y-4">
{quotas.map((quota, index) => {
const percentage = calculatePercentage(quota.used, quota.total);
// For Antigravity, use remainingPercentage if available, otherwise calculate
const percentage = quota.remainingPercentage !== undefined
? Math.round((quota.total - quota.used) / quota.total * 100)
: calculatePercentage(quota.used, quota.total);
const unlimited = quota.total === 0 || quota.total === null;
return (