From 433984e1e1805c85d739e3c869cf6b2de86866f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Smoli=C5=84ski?= Date: Tue, 27 Oct 2026 15:21:17 +0100 Subject: [PATCH] Cookie scanner: fixes from the browser test in the dev app - The admin box uses Payload's Button (plain + {status.kind === 'done' ? ✓ {result(status.summary)} : null} {status.kind === 'error' ? ( ✗ {t.scanError} @@ -151,21 +145,24 @@ export function CookieScanButton({ crawl = false, labels = COOKIE_SCAN_LABELS }:

{t.crawlIntro}

- + {crawlState && !crawlState.configured ? `${t.crawlNotConfigured} (${crawlState.missing.join(', ')})` : null} {crawlState?.configured && crawlState.status === 'running' ? fill(t.crawlRunning, { startedAt: when(crawlState.startedAt) }) : null} {crawlState?.configured && crawlState.status === 'done' ? fill(t.crawlDone, { finishedAt: when(crawlState.finishedAt), newUnknown: crawlState.summary?.newUnknown ?? 0, pages: crawlState.summary?.pages ?? 0, violations: crawlState.summary?.violations ?? 0 }) : null} + {/* a finished crawl can still carry a note, e.g. "Accept all" not found */} + {crawlState?.configured && crawlState.status === 'done' && crawlState.error ? ` ⚠ ${crawlState.error}` : null} + {crawlState?.configured && crawlState.status === 'idle' ? t.crawlIdle : null} {crawlState?.configured && crawlState.status === 'failed' ? fill(t.crawlFailed, { error: crawlState.error ?? '' }) : null}
diff --git a/src/modules/consent/scanner/crawl/CookieCrawlAlert.tsx b/src/modules/consent/scanner/crawl/CookieCrawlAlert.tsx index b5868c8..e7c5ae8 100644 --- a/src/modules/consent/scanner/crawl/CookieCrawlAlert.tsx +++ b/src/modules/consent/scanner/crawl/CookieCrawlAlert.tsx @@ -58,7 +58,7 @@ export async function CookieCrawlAlert({ adminRoute = '/admin', i18n, labels = C

{t('alertBody')}

)} - + {t('alertLink')}