cohorta/backend/app
Vadym Samoilenko 783a89e825 fix(analytics): correct revenue, persona count, and gross margin
- Store amount_usd in Stripe webhook transaction (was only storing credits)
- Analytics endpoint: sum amount_usd for real USD revenue instead of credits
- Persona count: query personas collection directly (not credit transactions
  which counted transactions, not individual personas — batch creation
  of 3 at once appeared as count=1)
- Frontend: Revenue card now shows USD not credits; Gross Margin uses
  USD revenue so calculation is dimensionally correct

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 17:10:59 +01:00
..
auth Complete phases D–G: quota enforcement, token invalidation, admin writes, backfill 2026-04-24 18:34:48 +01:00
models feat(ai-config): wire admin UI to LLM service — endpoint/key/model from DB 2026-05-25 13:10:40 +01:00
routes fix(analytics): correct revenue, persona count, and gross margin 2026-05-25 17:10:59 +01:00
services feat(personas): structural improvements for realistic focus group dialogue 2026-05-25 17:00:01 +01:00
utils Add LLM usage tracking infrastructure (Phases A-C) 2026-04-24 18:08:27 +01:00
.DS_Store changed permissions 2025-12-19 19:26:16 +00:00
__init__.py feat: commit all app changes — billing API, new auth, design overhaul 2026-05-23 19:04:43 +01:00
db.py feat: commit all app changes — billing API, new auth, design overhaul 2026-05-23 19:04:43 +01:00
extensions.py changed permissions 2025-12-19 19:26:16 +00:00
websocket_debug_tap.py changed permissions 2025-12-19 19:26:16 +00:00
websocket_manager.py Apply Jintech security audit remediation (sprint 3) — 87/92 findings fixed 2026-03-20 12:51:18 +00:00
websocket_manager_async.py Fix AI autonomous mode: cross-loop WebSocket emit + polling fallback 2026-03-23 18:22:24 +00:00