Commit Graph
6 Commits
Author SHA1 Message Date
Gustavo 60d28c7465 Campanhas UI: try/catch on Marcar button, inline error for segmentos, cap variants at 3
- Wrap the "Marcar" stage button's onclick body in try/catch (toast on
  error), matching the pattern already applied to the 5 campaign action
  buttons.
- carregarSegmentos' error handler (from the produto <select> change
  handler) can fire while #modal-nova-campanha is open, where a toast
  alone is hidden behind the open <dialog> (documented in api.js next to
  the toast() function) -- now also surfaces the error in the existing
  inline #campanha-erro paragraph.
- addVarianteRow now caps at 3 rows (A/B/C, matching the convention used
  elsewhere in the UI/backend) and disables "+ Variante" once the cap is
  reached.
2026-08-03 13:07:13 -03:00
Gustavo 5947a3eaa3 Add stage classification and appointment scheduling UI 2026-08-03 08:38:45 -03:00
Gustavo b4290452b3 Fix fila column label and add error handling to campaign action buttons
Relabel misleading "Empresa" header to "Lead ID" in fila table (queue
has no join to leads, cell showed lead_id). Wrap iniciar/pausar/retomar
and aprovar/cancelar selecionados handlers in try/catch with toast on
failure, matching btn-gerar-fila's existing pattern.
2026-08-03 08:35:56 -03:00
Gustavo 9aceaa140d Add campaign detail panel: queue approval, health and variant stats 2026-08-03 08:31:00 -03:00
Gustavo 5fef71d157 Fix segment picker misusing removable-tag .chip/.chips styling
The new-campaign segment checkboxes reused .chip/.chips, which is
reserved codebase-wide for click-to-remove selected tags (adds a
trailing " x" and removable-tag hover styling). Give the segment
picker its own segmento-opcao/segmento-lista classes with a minimal
non-removable style instead.
2026-08-03 08:27:35 -03:00
Gustavo e8745513e9 Add Campanhas tab: listing and campaign creation 2026-08-03 08:22:09 -03:00