feat(executors): Improved UI components for displaying provider limits and usage statistics in the dashboard.
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user