iachat/app/controllers/api/v2/accounts
Rodribm10 3897db325e feat(reports): aba "Novas × Retorno" no Inbox Report
Mede por inbox/período: leads novos (1ª conversa do contato em qualquer
inbox da rede), retorno (conversa anterior resolved há >24h) e outras
(conversa anterior open ou resolved <24h). Categorias somadas batem com
o conversations_count nativo do report — bucket "outras" garante o
fechamento.

- Novo builder V2::Reports::InboxLeadsSummaryBuilder com CTE única
- Endpoint GET /api/v2/accounts/:id/reports/inbox_leads_summary
- Tabs no InboxReportsShow (Visão Geral | Novas × Retorno)
- Componente InboxLeadsReport com 3 metric cards + barras empilhadas
- API client + Pinia (state/getters/actions/mutations)
- i18n en + pt_BR
- RSpec do builder cobrindo classificação e isolamento por inbox

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 20:22:43 -03:00
..
live_reports_controller.rb feat: Add new APIs for live reports with team filter (#10994) 2025-02-27 16:11:04 -08:00
reports_controller.rb feat(reports): aba "Novas × Retorno" no Inbox Report 2026-04-25 20:22:43 -03:00
summary_reports_controller.rb feat: Add an API to support querying metrics by ChannelType (#13255) 2026-01-12 23:18:47 -08:00
year_in_reviews_controller.rb chore: fix linting 2025-12-20 12:55:27 -03:00