Add Configuracoes review section for shared numbers

Adds an admin-only "Numeros compartilhados entre leads" section to the
settings modal, wired to the Task 4 shared-numbers routes: lists
detected groups, lets an admin liberar (with an inline motivo input)
or bloquear de novo. Updates the two frontend VM-based test files'
default API mocks to answer GET /api/outreach/shared-numbers so
existing settings-modal tests keep passing, and adds a new
interaction test covering the liberar round trip.
This commit is contained in:
Gustavo
2026-07-31 16:33:03 -03:00
parent a6dce5c936
commit 18d427e2bd
4 changed files with 105 additions and 1 deletions
+7
View File
@@ -419,6 +419,13 @@
<div id="optout-list" class="lista"></div>
</details>
<details class="settings-section admin-only">
<summary>Números compartilhados entre leads</summary>
<p class="muted">Detectados automaticamente quando o mesmo número aparece em mais de um lead (ex.: contabilidade que registra o próprio telefone para clientes). Envio automático e manual ficam bloqueados até você revisar e liberar.</p>
<p id="shared-numbers-status" class="muted"></p>
<div id="shared-numbers-list" class="lista"></div>
</details>
<details class="settings-section zona-risco admin-only">
<summary>Zona de risco</summary>
<p class="muted">Apaga permanentemente todos os leads, exportações, capturas e extrações. Configurações e nichos não são afetados.</p>