feat: auditoría SEO real con histórico y avisos

Crawl técnico (HTTPS/robots/sitemap/on-page) + tabla seo_audits; UI con nota, checks y alertas.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
4Ventures
2026-09-24 16:55:58 +02:00
parent d896041bed
commit 06024cf473
6 changed files with 1008 additions and 67 deletions

View File

@@ -65,6 +65,28 @@ export type IntegrationLite = {
external_account_id?: string | null;
last_sync_at?: string | null;
error_message?: string | null;
meta?: { property_id?: string; site_url?: string };
};
export type SeoAuditCheckRow = {
id: string;
category: string;
title: string;
status: 'ok' | 'info' | 'warn' | 'critical';
detail: string;
};
export type SeoAuditRow = {
id?: string;
tenant_id?: string;
site_url?: string;
score?: number;
grade?: string;
warning_count?: number;
critical_count?: number;
checks?: SeoAuditCheckRow[];
summary?: string | null;
created_at?: string;
};
function n(v: unknown): number {