Skip to content

v1.10.90 — Pre-AIC billing panel (premium requests, not credits, for pre-June ranges)

Choose a tag to compare

@pvjagtap pvjagtap released this 07 Aug 16:06
· 12 commits to main since this release

Fixes a real regression: the AIC section was rendering credit-based promo, budget, and overage cards for pre-AIC ranges (April / May 2026), contradicting the "Premium Requests" hero card. Users looking at May saw an invented ~$2,600 overage against a 3,000-credit budget that did not exist yet.

Fixed

Re-audit of billing-era display. For any range whose end date is before 2026-06-01 the AIC section now respects the historical billing model.

Added

  • Premium Request Billing panel at the top of the AIC section for pre-AIC ranges.
    • Used-vs-included bar against the plan's includedPremiumRequests allowance (300 Business, 1000 Enterprise, 1500 Pro+, 3000 Max).
    • Overage card at the historical rate of \.04 per premium request over the allowance.
  • Section title switches to "Billing Detail (Pre-AIC · Premium Requests + AIC Reconstruction)".
  • Model table below is now clearly labelled "AI Credits by Model (rate-table reconstruction)" so the AIC numbers are not mistaken for the invoice.
  • AICDashboardData.includedPremiumRequests plumbed from PLAN_SPECS through buildDashboardData() to the webview so the panel reads the actual plan allowance instead of hardcoding.

Suppressed for pre-AIC ranges

  • PROMO tag on the section title
  • Credit budget bar (x / 3000 credits used)
  • Dollar overage cards (Overage (with promo) / Overage (without promo) / Promo Savings)

Verified

  • tests/audit-billing-era-split.js confirms every era renders the right headline: May → "Premium Requests" hero + premium-request panel; July → "AI Credits Spent" hero + credit budget bar; August → same as July (current cycle, live projections).
  • Existing tests still pass: webview parses (1 inline script, 84275 chars), historical credits populate for both pre-AIC months, per-model splits populate correctly.