cc-dashboard/web
Vadym Samoilenko fde9b61465 feat(cost): track Claude Code token usage and cost per project
- cc-collector.py: extract input/output/cache tokens from JSONL usage
  fields and calculate cost_usd using model-based pricing table
- Session model: add input_tokens, output_tokens, cost_usd columns
- Migration 0010: ALTER TABLE sessions ADD cost columns
- Ingest: persist cost fields on upsert (updated on every sync)
- Dashboard /projects: aggregate total_cost_usd per project from sessions
- ProjectHours schema + ProjectSummary TS type: expose total_cost_usd
- ProjectsView: replace Budget% column with "Cost $" showing total spend;
  Grid cards show CC Cost row when cost > 0
- backfill_session_costs.py: one-time script to populate cost for all
  historical sessions from local JSONL files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 12:47:26 +01:00
..
src feat(cost): track Claude Code token usage and cost per project 2026-05-13 12:47:26 +01:00
.env.example feat: replace local auth with Azure AD SSO (MSAL PKCE) 2026-05-07 10:43:19 +01:00
.eslintrc.cjs fix(ui): lint and type-check fixes 2026-05-13 11:25:23 +01:00
index.html fix: implement 5-phase contract fixes, devops page, AI summaries, expanded assistant 2026-05-06 21:13:28 +01:00
package-lock.json feat: replace local auth with Azure AD SSO (MSAL PKCE) 2026-05-07 10:43:19 +01:00
package.json feat: replace local auth with Azure AD SSO (MSAL PKCE) 2026-05-07 10:43:19 +01:00
postcss.config.js feat: add complete Vue 3 frontend in web/ directory 2026-05-06 18:52:43 +01:00
tailwind.config.ts feat: add complete Vue 3 frontend in web/ directory 2026-05-06 18:52:43 +01:00
tsconfig.json feat: add complete Vue 3 frontend in web/ directory 2026-05-06 18:52:43 +01:00
tsconfig.node.json feat: add complete Vue 3 frontend in web/ directory 2026-05-06 18:52:43 +01:00
vite.config.ts feat: AI assistant widget, design system upgrade via 21st-dev Magic 2026-05-06 19:34:17 +01:00
vitest.config.ts feat: add complete Vue 3 frontend in web/ directory 2026-05-06 18:52:43 +01:00