mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
Wire Qoder credits into the Quota Tracker card grid: - Add `qoder` to USAGE_SUPPORTED_PROVIDERS so the connection passes the isUsageEligible filter at /api/providers/client and shows up in providerOptions on the dashboard. - Reshape getQoderUsage so quota records (user, organization) live under `quotas` and scalar metadata (totalUsagePercentage, isQuotaExceeded, expiresAt) are siblings — the parser used to walk Object.entries(quotas) and would have rendered `totalUsagePercentage: 0.42` as a "0/0" row. - Surface Qoder's expiresAt as resetAt on each quota record so the card shows when credits reset. - Add a parser branch in ProviderLimits/utils.js: rename internal keys (user → "Personal", organization → "Organization"), drop empty org buckets so personal accounts don't render a misleading "0/0 Organization" row, and forward remaining/unit so the QuotaProgressBar can use them. - Add Qoder's brand color (#EC4899) to ProviderLimitCard's color map. 42 tests still pass; build clean.