Files
chatballs/apps/backend/hub_platform
AndreyandClaude Opus 4.8 ca453269e1 feat(sales): real data in the Clients list
The Clients section rendered a hardcoded mock array. Now it lists real
contacts with their conversations:

- Backend: conversations/clients.py aggregates each Contact into channels
  used (MAX/TG/WEB), products (via channel.product), open-dialog count,
  last activity and current mode (ai/operator/wait/closed). Served at
  /api/v1/conversations/clients/ (IsAuthenticated, org-scoped).
- UI: useClientsData fetches; useSalesClients now takes the data as input
  (filters/sort unchanged); the page shows loading/empty states.
  Avatar initials/colour and relative time are derived client-side.

Orders/revenue have no domain in Hub, so those columns stay 0/"—" — no
fabricated numbers. The client detail page is still mock (separate task).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-29 19:01:48 +03:00
..
2026-06-17 18:14:16 +03:00
2026-06-17 18:14:16 +03:00