iachat/app/javascript/dashboard/api/captain
Rodrigo Borba 84fff38d94 refactor: move notification templates de units para inboxes
- Arquitetura corrigida: templates agora pertencem à inbox (WhatsApp),
  não à unidade PIX (que é uma config financeira, não de mensagens)
- Migration: troca FK captain_unit_id -> inbox_id (up/down explícito)
- Model: belongs_to :inbox; scope for_inbox
- Controller: escopo via account.inboxes.find(inbox_id)
- Rotas: move de captain/units/:id → inboxes/:id/notification_templates
- Scanner job: joins(:conversation).where(conversations: {inbox_id:})
- UI: página /captain/notifications com seletor de inbox no topo
  (chips clicáveis, templates carregam por watch no selectedInboxId)
- i18n PT/EN: novas keys INBOX_LABEL, SELECT_INBOX_HINT, EMPTY
2026-03-01 22:17:27 -03:00
..
assistant.js feat: Allow customizing the responses, flows in Captain (#11385) 2025-04-29 15:42:15 -07:00
bulkActions.js feat: Add support for bulk action for Captain FAQs (#10905) 2025-02-27 17:05:33 -08:00
copilotMessages.js feat: Add stores for copilotMessages and copilotThreads (#11603) 2025-05-27 18:36:32 -06:00
copilotThreads.js feat: Add stores for copilotMessages and copilotThreads (#11603) 2025-05-27 18:36:32 -06:00
customTools.js feat: Add UI for custom tools (#12585) 2025-10-06 09:05:54 -07:00
document.js feat: Add assistant filter support to documents page (#10697) 2025-01-15 21:41:07 -08:00
galleryItems.js chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
inboxes.js feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
notificationTemplates.js refactor: move notification templates de units para inboxes 2026-03-01 22:17:27 -03:00
preferences.js feat: add global config for captain settings (#13141) 2026-01-12 19:54:19 +05:30
reports.js feat(captain): add AI reports page with insights generation 2026-02-27 07:05:58 -03:00
reservations.js feat(captain): permite criacao manual de reserva via painel e conversa 2026-03-01 03:07:44 -03:00
response.js feat: allow searching captain responses [CW-5631] (#12463) 2025-09-18 14:44:56 +05:30
scenarios.js feat: New Scenarios page (#11975) 2025-07-30 19:34:27 +05:30
tasks.js feat: new Captain Editor (#13235) 2026-01-21 13:39:07 +05:30
tools.js feat: New Scenarios page (#11975) 2025-07-30 19:34:27 +05:30
units.js chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00