Merge pull request #126 from nyatoru/fix/codex-plam

Approved: Clean, well-scoped change that correctly separates Plus/Paid tier from Pro in ProviderLimits.
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-02-25 06:03:40 -03:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -27,6 +27,7 @@ const TIER_FILTERS = [
{ key: "business", label: "Business" },
{ key: "ultra", label: "Ultra" },
{ key: "pro", label: "Pro" },
{ key: "plus", label: "Plus" },
{ key: "free", label: "Free" },
{ key: "unknown", label: "Unknown" },
];

View File

@@ -229,15 +229,14 @@ export function normalizePlanTier(plan) {
return { key: "ultra", label: "Ultra", variant: "success", rank: 4, raw };
}
if (
upper.includes("PRO") ||
upper.includes("PLUS") ||
upper.includes("PREMIUM") ||
upper.includes("PAID")
) {
if (upper.includes("PRO") || upper.includes("PREMIUM")) {
return { key: "pro", label: "Pro", variant: "primary", rank: 3, raw };
}
if (upper.includes("PLUS") || upper.includes("PAID")) {
return { key: "plus", label: "Plus", variant: "secondary", rank: 2, raw };
}
if (
upper.includes("FREE") ||
upper.includes("INDIVIDUAL") ||