nexus/ui
Sai Shankar 94018e0239 feat(ui): add resource and usage dashboard (/usage route)
adds a new /usage page that lets board operators see how much each ai
provider is consuming across any date window, with per-model breakdowns,
rolling 5h/24h/7d burn windows, weekly budget bars, and a deficit notch
when projected spend is on track to exceed the monthly budget.

- new GET /companies/:id/costs/by-provider endpoint aggregates cost events
  by provider + model with pro-rated billing type splits from heartbeat runs
- new GET /companies/:id/costs/window-spend endpoint returns rolling window
  spend (5h, 24h, 7d) per provider with no schema changes
- QuotaBar: reusable boxed-border progress bar with green/yellow/red
  threshold fill colors and optional deficit notch
- ProviderQuotaCard: per-provider card showing budget allocation bars,
  rolling windows, subscription usage, and model breakdown with token/cost
  share overlays
- Usage page: date preset toggles (mtd, 7d, 30d, ytd, all, custom),
  provider tabs, 30s polling plus ws invalidation on cost_event
- custom date range blocks queries until both dates are selected and
  treats boundaries as local-time (not utc midnight) so full days are
  included regardless of timezone
- query key to timestamp is floored to the nearest minute to prevent
  cache churn on every 30s refetch tick
2026-03-16 15:08:54 -05:00
..
public Add worktree-specific favicon branding 2026-03-10 16:15:11 -05:00
src feat(ui): add resource and usage dashboard (/usage route) 2026-03-16 15:08:54 -05:00
components.json Overhaul UI with shadcn components and new pages 2026-02-17 09:07:32 -06:00
index.html Add worktree UI branding 2026-03-13 11:12:43 -05:00
package.json feat(adapters): add Gemini CLI local adapter support 2026-03-10 16:46:04 +00:00
tsconfig.json Overhaul UI with shadcn components and new pages 2026-02-17 09:07:32 -06:00
vite.config.ts Adopt React Query and live updates across all UI pages 2026-02-17 12:24:48 -06:00
vitest.config.ts Fix inbox badge logic and landing view 2026-03-10 22:55:45 -05:00