[AI] ai usage line chart date gap filling (#20048)

https://github.com/user-attachments/assets/ecd37dfb-daae-41c3-8316-a9d923463eca
This commit is contained in:
nitin
2026-04-26 18:11:16 +05:30
committed by GitHub
parent d1a4902460
commit ca84d28157
5 changed files with 198 additions and 4 deletions
@@ -62,7 +62,8 @@ export const SettingsAdminAI = () => {
const billing = useAtomStateValue(billingState);
const isBillingEnabled = billing?.isBillingEnabled ?? false;
const hasEnterpriseAccess =
isBillingEnabled || currentWorkspace?.hasValidEnterpriseKey === true;
isBillingEnabled ||
currentWorkspace?.hasValidEnterpriseValidityToken === true;
const [usagePeriod, setUsagePeriod] = useState<PeriodPreset>('30d');
const periodOptions = getPeriodOptions();
const usageDates = getPeriodDates(usagePeriod);