+
+
{t.violationsTitle}
+ {violations === null ?
{t.loadingList}
: null}
+ {violations?.length === 0 ?
{t.noViolations}
: null}
+ {violations?.length ? (
+
+
+
+ | {t.name} |
+ {t.kind} |
+ {t.category} |
+ {t.pages} |
+
+
+
+ {violations.map((v) => (
+
+ {v.name} |
+ {kind(v)} |
+ {v.category && v.category in t ? t[v.category as keyof CookieScanLabels] : (v.category ?? '')} |
+ {v.pages.join(', ')} |
+
+ ))}
+
+
+ ) : null}
+
+ {t.warningEmailsLink}
+
+
+ )
+}
+
+export default CookieSiteCheckTab
diff --git a/src/modules/consent/scanner/adminTabs.ts b/src/modules/consent/scanner/adminTabs.ts
new file mode 100644
index 0000000..49a1ced
--- /dev/null
+++ b/src/modules/consent/scanner/adminTabs.ts
@@ -0,0 +1,63 @@
+import type { Field, GlobalConfig, Tab } from 'payload'
+
+import type { ConsentCategory } from '../categories.js'
+import type { CookieScanLabels } from './labels.js'
+
+import { labelRecord } from './labels.js'
+
+/**
+ * The combined admin layout (`cookieScanner.adminLayout: 'combined'`, the
+ * default): the Cookies global gets a "Review and approve" tab and — with the
+ * crawl — a "Site check" tab. They are `ui` fields (no data, no schema
+ * change) that render the scanner's admin components; the review list and the
+ * site-check global leave the navigation but keep their pages and API.
+ */
+export function addCookieScannerTabs(
+ global: GlobalConfig,
+ {
+ approval,
+ crawl,
+ labels,
+ unknownCategory,
+ }: { approval: boolean; crawl: boolean; labels: Record