You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standardize pricing + wire real Analytics/Usage pages
Pricing: new lib/pricing.ts is the single source of truth for the tier
ladder (free/pro/scale/enterprise) with the agreed numbers (pro 500
docs/20 GB, scale $99 5,000 docs/100 GB). The marketing Pricing section
and the dashboard billing page both render from it, so the site, the
app, and the CP quota plans can no longer drift. Adds the Scale tier and
a 4-up grid on both surfaces.
Analytics + Usage (were fully mocked): both pages now fetch real data.
- /api/dashboard/analytics and /api/dashboard/usage proxy to the CP
analytics + quota endpoints for the caller org.
- Analytics: live summary (requests, success rate, avg latency, tokens),
usage-by-source breakdown, daily request-volume chart, and a recent-
calls feed with per-request source attribution.
- Usage: real quota meters (queries / documents / tokens), usage-by-
source bars, and plan ceilings derived from lib/pricing.ts.
- lib/usage-sources.ts gives web/sdk/mcp/api consistent labels + colours
(no purple, per brand).
@
0 commit comments