cohorta/src/components
Vadym Samoilenko bc4138f332 Final pieces: decorators on LLM routes, usage self-service, billing page, WS events
Backend:
- @active_required + @with_user_context applied to all LLM-invoking routes
  in personas.py, focus_group_ai.py, ai_personas.py
- backend/app/routes/usage.py: GET /api/usage/me (MTD summary by feature),
  GET /api/usage/focus-groups/<id> (owner or admin)
- Registered usage_bp in app/__init__.py
- llm_service._record_usage now emits usage_update WS event to focus group room

Frontend:
- useMyUsage + useFocusGroupUsage hooks
- MyUsage.tsx: personal billing dashboard (cost cards + per-feature table)
- /billing route (ProtectedRoute) + Billing nav link
- FocusGroupSession: quota_warning amber banner with Progress bar,
  quota_exceeded + quota_warning WS events wired via websocketServiceNew

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 18:43:13 +01:00
..
admin Complete phases D–G: quota enforcement, token invalidation, admin writes, backfill 2026-04-24 18:34:48 +01:00
ai-recruiter Update GPT-5 to GPT-5.2 and lower default reasoning effort to low 2026-02-11 11:24:01 -06:00
auth changed permissions 2025-12-19 19:26:16 +00:00
dashboard changed permissions 2025-12-19 19:26:16 +00:00
focus-group-session Fix root cause: naive vs aware datetime crash + stuck AI mode indicator 2026-03-23 19:30:04 +00:00
persona Migrate task result delivery from WebSocket to HTTP polling 2026-03-23 16:46:58 +00:00
ui Migrate task result delivery from WebSocket to HTTP polling 2026-03-23 16:46:58 +00:00
AIRecruiter.tsx Migrate task result delivery from WebSocket to HTTP polling 2026-03-23 16:46:58 +00:00
AssetUploader.tsx changed permissions 2025-12-19 19:26:16 +00:00
Chart.tsx changed permissions 2025-12-19 19:26:16 +00:00
ChatMessage.tsx changed permissions 2025-12-19 19:26:16 +00:00
FeatureCard.tsx changed permissions 2025-12-19 19:26:16 +00:00
FocusGroupModerator.tsx changed permissions 2025-12-19 19:26:16 +00:00
FolderTree.tsx Remove console.log debug calls from frontend browser console 2026-03-23 14:30:56 +00:00
FolderTreeItem.tsx changed permissions 2025-12-19 19:26:16 +00:00
Hero.tsx changed permissions 2025-12-19 19:26:16 +00:00
LoginRequired.tsx changed permissions 2025-12-19 19:26:16 +00:00
Navigation.tsx Final pieces: decorators on LLM routes, usage self-service, billing page, WS events 2026-04-24 18:43:13 +01:00
PersonaDetailsModal.tsx changed permissions 2025-12-19 19:26:16 +00:00
ProtectedRoute.tsx Remove console.log debug calls from frontend browser console 2026-03-23 14:30:56 +00:00
ThemeHighlighter.tsx changed permissions 2025-12-19 19:26:16 +00:00
UserCard.tsx changed permissions 2025-12-19 19:26:16 +00:00
UserCreator.tsx Remove console.log debug calls from frontend browser console 2026-03-23 14:30:56 +00:00
VoiceControls.tsx changed permissions 2025-12-19 19:26:16 +00:00