feat: agency control panel for per-client connections

Matrix view of Meta/Google/Drive/Clientify, follow/archive clients,
and per-channel ON/OFF with account IDs in the client hub.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
4Ventures
2026-09-22 18:47:29 +02:00
parent 1eb02dac4d
commit c4c527072f
10 changed files with 637 additions and 140 deletions

16
sql/agency_control.sql Normal file
View File

@@ -0,0 +1,16 @@
-- Agency control: follow/archive clients + enable/disable channels
-- Idempotent.
alter table public.tenants
add column if not exists agency_followed boolean not null default true;
alter table public.tenants
add column if not exists agency_notes text;
alter table public.integrations
add column if not exists enabled boolean not null default true;
comment on column public.tenants.agency_followed is
'Agency portfolio: false = archived / not actively managed in Centro de Mando';
comment on column public.integrations.enabled is
'Agency wants this channel for the client (false = deliberately off)';