iachat/enterprise/app/jobs/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
..
conversation feat(ai): implement dynamic debounce with sidekiq and concurrency locking with redis 2026-03-01 02:04:55 -03:00
copilot feat: Instrument captain (#12949) 2025-11-28 15:12:55 +05:30
documents chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
llm feat: legacy features to ruby llm (#12994) 2025-12-11 14:17:28 +05:30
notifications refactor: move notification templates de units para inboxes 2026-03-01 22:17:27 -03:00
payments chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
reports 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
tools fix: Captain response builder not getting triggered (#12729) 2025-10-28 18:31:08 -07:00
inbox_pending_conversations_resolution_job.rb feat: Improve Captain interactions, activity messages (#11493) 2025-05-16 19:27:57 -07:00