mirror of
https://github.com/dartdavros/chatballs.git
synced 2026-10-19 15:19:02 +03:00
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>