iachat/app/javascript/dashboard/store/modules
Rodribm10 e9b8b6e587 feat(reports): filtro por inbox no Relatório do Bot
Hoje as métricas e séries do BotReports agregam toda a conta — não dá pra ver
"a Jasmine da PrimeAL está errando mais que a do Qnn01". Cada unidade tem
prompt próprio, então um sintoma localizado precisa de medição localizada.

Backend:
- Inbox#has_many :reporting_events (relação inversa que faltava)
- BotMetricsBuilder aceita inbox_id e filtra bot_conversations + base_reporting_events
- bot_metrics endpoint passa inbox_id pelos params permitidos
- count_report_builder já suporta scope=inbox; agora funciona pra
  bot_resolutions_count e bot_handoffs_count graças à relação acima

Frontend:
- BotReports.vue: ReportFilters com filter-type='inboxes' e dropdown ativo
- Quando uma inbox é escolhida, requestPayload inclui inboxId/type/id e os
  fetches (BotMetrics + ReportContainer) passam o filtro
- API client getBotMetrics aceita inboxId; getBotSummary aceita type+id
- Sem inbox selecionada: comportamento antigo (agregação da conta)

Bonus na rake task de retroativo:
- rebuild_bot_resolved.rake: Message.unscope(:order) pra evitar conflito
  PG::InvalidColumnReference (DISTINCT + ORDER BY default scope)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 11:47:46 -03:00
..
contacts feat: Add infinite scroll to contacts search page (#13376) 2026-01-27 18:55:19 -08:00
conversations Merge branch 'main' into chore/merge-upstream-4.11.0 2026-02-17 23:05:26 -03:00
helpCenterArticles
helpCenterCategories
helpCenterPortals feat(cloud): Add support for viewing status of SSL in custom domains (#12011) 2025-07-30 10:52:47 -07:00
inboxes feat: Voice channel creation Flow (#11775) 2025-06-25 14:21:03 -07:00
notifications feat: Display notification count in sidebar inbox item (#12324) 2025-09-01 15:55:09 +05:30
specs Merge branch 'main' into chore/merge-upstream-4.11.0 2026-02-17 23:05:26 -03:00
teams
accounts.js feat: Add AI credit topup flow for Stripe (#12988) 2025-12-02 17:53:44 -08:00
agentBots.js
agentCapacityPolicies.js feat: Agent capacity policy Create/Edit pages (#12424) 2025-09-12 18:42:55 +05:30
agents.js
assignmentPolicies.js feat: Agent assignment policy Create/Edit pages (#12400) 2025-09-10 20:02:11 +05:30
attributes.js
auditlogs.js
auth.js fix: Prevent display_name reset when updating password (#10374) 2025-06-11 19:05:30 -04:00
automations.js
bulkActions.js
campaigns.js feat: WhatsApp campaigns (#11910) 2025-07-16 09:04:02 +05:30
cannedResponse.js
captainGalleryItems.js chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
captainReports.js Fix(Captain): Correção na geração de relatórios de IA e adição do status Confirmada nas Reservas 2026-03-01 15:40:10 -03:00
captainUnits.js chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
contactConversations.js
contactLabels.js
contactNotes.js
conversationLabels.js
conversationMetadata.js
conversationPage.js
conversationSearch.js feat: Advanced Search Backend (#12917) 2026-01-07 15:30:49 +05:30
conversationStats.js chore: add script to throttle bulkreindex job creation and increase meta timeouts(#12626) 2025-10-13 16:21:45 +05:30
conversationTypingStatus.js
conversationWatchers.js
csat.js feat(ee): Review Notes for CSAT Reports (#13289) 2026-01-15 19:53:57 -08:00
customRole.js
customViews.js
dashboardApps.js feat: dashboard apps on sidebar (#146) 2025-11-19 14:44:18 -03:00
draftMessages.js
inboxAssignableAgents.js
inboxes.js feat: Implement existing template linking for CSAT surveys (#218) 2026-02-18 18:00:29 -03:00
inboxMembers.js
integrations.js
labels.js feat: Refactor reports filters (#13443) 2026-02-06 18:22:30 +05:30
macros.js
reports.js feat(reports): filtro por inbox no Relatório do Bot 2026-04-26 11:47:46 -03:00
scheduledMessages.js feat: mensagens agendadas (#198) 2026-01-30 22:08:16 -03:00
sla.js
SLAReports.js
summaryReports.js fix: add loading and silent retry to summary reports (#13455) 2026-02-06 19:53:46 +05:30
teamMembers.js
userNotificationSettings.js
webhooks.js