iachat/app/javascript/dashboard/components-next/captain/assistant
Rodribm10 cfffea9c16 feat(captain): semantic memory fixes + roleta + reclamações + analytics
Consolida o trabalho desta branch de abril/2026 em um bloco pronto pra
testar em staging antes do merge pra main.

## Correções de memória semântica
- ExtractionService: Princípio Zero + Regra de Ouro (ação consumada vs intenção).
- Cenário Daniela_Reservas: Passo 0 de classificação (consulta/intenção/fora).

## Roleta da Sorte (end-to-end)
- Schema Supabase + 7 RPCs atômicas (server-side, idempotentes).
- Services: Offer, Redeem, WeeklyReport.
- Jobs: OfferRouletteJob (hook em ConfirmationService após Pix pago),
  NotifyRevealed + Scheduler de fallback.
- Tool manual GenerateRoletaLinkTool + endpoint público /roleta/notify.
- Dashboard /captain/roleta com Resgate + Relatório + anomaly detection.

## Cenário Reclamacoes_Ouvidoria
- Triagem P1-P4, framework LAST, Three-level listening, Self-check.
- Sem compensação material, detecção de cliente frustrado eleva prioridade.

## Analytics
- Funil de conversão /captain/funnel: 5 etapas via regex, zero LLM.
- Detector de churn via ChurnOutreach* (cron dias úteis 10h-17h BRT).

## Trabalho pré-existente incluído
- Captain Executive Reports (ceo_digest, mattermost_delivery).
- get_reserva_preco_tool, Lifecycle ajustes, Reservations UI polimentos.

## Outros
- .gitignore: patterns pra credenciais.
- Migrations de scenarios idempotentes.
- i18n completa pt_BR+en pra roleta/funnel.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 15:36:25 -03:00
..
AddNewRulesDialog.story.vue feat: New GuardRails and Response Guidelines edit page (#11932) 2025-07-16 21:52:25 +05:30
AddNewRulesDialog.vue feat: New Scenarios page (#11975) 2025-07-30 19:34:27 +05:30
AddNewRulesInput.story.vue feat: New GuardRails and Response Guidelines edit page (#11932) 2025-07-16 21:52:25 +05:30
AddNewRulesInput.vue feat: New GuardRails and Response Guidelines edit page (#11932) 2025-07-16 21:52:25 +05:30
AddNewScenariosDialog.vue feat(captain): semantic memory fixes + roleta + reclamações + analytics 2026-04-21 15:36:25 -03:00
AssistantCard.story.vue chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
AssistantCard.vue feat: Update Captain navigation structure (#12761) 2025-11-06 16:31:23 -08:00
AssistantPlayground.vue chore: Improve captain layout (#12820) 2025-11-12 18:31:17 +05:30
BulkSelectBar.vue chore: Make contacts bulk action bar sticky (#12773) 2025-10-30 11:57:46 -07:00
DocumentCard.story.vue chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
DocumentCard.vue feat: add FE changes for captain pdf support for faq generation (#12115) 2025-09-02 19:01:16 +05:30
InboxCard.story.vue chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
InboxCard.vue chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
MessageList.vue chore: Improve captain layout (#12820) 2025-11-12 18:31:17 +05:30
ResponseCard.story.vue chore: Remove older UI (#11720) 2025-07-01 09:43:44 +05:30
ResponseCard.vue chore: Update captain pending FAQ interface (#12752) 2025-10-28 20:47:42 -07:00
RuleCard.story.vue feat: New GuardRails and Response Guidelines edit page (#11932) 2025-07-16 21:52:25 +05:30
RuleCard.vue feat: New Scenarios page (#11975) 2025-07-30 19:34:27 +05:30
ScenariosCard.story.vue feat: New Scenarios page (#11975) 2025-07-30 19:34:27 +05:30
ScenariosCard.vue feat(captain): semantic memory fixes + roleta + reclamações + analytics 2026-04-21 15:36:25 -03:00
SuggestedRules.story.vue feat: New GuardRails and Response Guidelines edit page (#11932) 2025-07-16 21:52:25 +05:30
SuggestedRules.vue feat: New GuardRails and Response Guidelines edit page (#11932) 2025-07-16 21:52:25 +05:30
ToolsDropdown.story.vue feat: New Scenarios page (#11975) 2025-07-30 19:34:27 +05:30
ToolsDropdown.vue feat: New Scenarios page (#11975) 2025-07-30 19:34:27 +05:30