feat: KPIs con totales absolutos, backfill ads y ventas en cruce canal

Comparativas WoW/MoM/YoY muestran prev/Δ además del %; sync ads admite
histórico desde 2025; tabla ads↔CRM añade cierres, ventas y ROAS.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
4Ventures
2026-09-28 10:23:36 +02:00
parent dd50251de2
commit cf27eba74d
30 changed files with 2367 additions and 514 deletions

View File

@@ -16,7 +16,7 @@ type Integ = {
meta?: { folder_name?: string; match_score?: number } | null;
};
type Provider = { id: string; label: string; group: string };
type Provider = { id: string; label: string; group: string; live?: boolean };
const PLACEHOLDERS: Record<string, string> = {
meta_ads: 'act_… (Ad Account ID)',
@@ -219,6 +219,11 @@ export default function ClientIntegrationsPanel({
<div>
<p className="text-sm font-medium text-gray-900">
{p.label}
{p.live === false && (
<span className="ml-2 text-[10px] font-normal text-gray-500">
(sin conector API aún)
</span>
)}
</p>
{folderHint && (
<p className="text-[11px] text-brand-700 mt-0.5">