Cookie scanner: one approval for everything a scan finds
After "Scan cookies" or a site check, the new Approve cookies view (/admin/cookie-approval) lists what waits, grouped by consent category, with provider, purpose and duration and New / Changed / Needs description markers. One "Approve and add" puts every ticked cookie into Cookie banner -> Cookie list in every locale. That list feeds the cookie policy table and the detailed settings window. - Never overwrites editor text or categories, never adds a second row (a pattern and a concrete name are the same cookie), never deletes. - Unknown cookies are approved into a category that needs consent (approval.unknownCategory, default marketing) and flagged Needs description; writing a purpose clears the flag. - Cookies a scan or crawl no longer finds are flagged No longer found, for review only. - The dashboard and the crawl e-mail say how many cookies wait and link to the view; nothing is added without approval. - Optional: cookieScanner.approval false keeps per-entry review. - Migration: cookie-review gains change and needsDescription. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0e7966dfbb
commit
86ff3f5ff7
@@ -63,12 +63,16 @@ export type { ConsentCategory, ConsentLogOptions, ConsentState, ConsentTexts, Co
|
||||
export {
|
||||
addToCookieList,
|
||||
applyCookieFindings,
|
||||
approveCookies,
|
||||
bearerMatches,
|
||||
buildCookieApprovalEndpoints,
|
||||
buildCookieCrawlEndpoints,
|
||||
buildCookieCrawlGlobal,
|
||||
buildCookieReviewCollection,
|
||||
buildCookieScanEndpoints,
|
||||
collectCookieFindings,
|
||||
COOKIE_APPROVAL_PATH,
|
||||
COOKIE_APPROVAL_VIEW_PATH,
|
||||
COOKIE_CRAWL_PATH,
|
||||
COOKIE_CRAWL_RESULTS_PATH,
|
||||
COOKIE_CRAWL_SLUG,
|
||||
@@ -79,26 +83,38 @@ export {
|
||||
COOKIE_SCAN_URL_ENV,
|
||||
cookieNameMatches,
|
||||
cookieScanContext,
|
||||
countPendingCookies,
|
||||
DEFAULT_COOKIE_INTEGRATIONS,
|
||||
DEFAULT_DATABASE_CATEGORIES,
|
||||
DEFAULT_TRACKER_HOSTS,
|
||||
DEFAULT_UNKNOWN_CATEGORY,
|
||||
findCrawlViolations,
|
||||
finishCrawl,
|
||||
flagGoneEntries,
|
||||
GOOGLE_TAG_HOSTS,
|
||||
indexCookieDatabase,
|
||||
ingestCrawlResult,
|
||||
loadCookieApproval,
|
||||
loadCookieDatabase,
|
||||
lookupCookie,
|
||||
mergeCookieReview,
|
||||
mergeCookieScanLabels,
|
||||
nextChange,
|
||||
parseCookieNames,
|
||||
parseCrawlResult,
|
||||
PENDING_WHERE,
|
||||
resolveCrawlConfig,
|
||||
runCookieScan,
|
||||
sameCookie,
|
||||
sendCrawlWarning,
|
||||
suggestionFor,
|
||||
} from './modules/consent/scanner/index.js'
|
||||
export type {
|
||||
CookieApprovalItem,
|
||||
CookieApprovalList,
|
||||
CookieApprovalOptions,
|
||||
CookieApprovalResult,
|
||||
CookieChange,
|
||||
CookieCrawlOptions,
|
||||
CookieDatabaseIndex,
|
||||
CookieDeclaration,
|
||||
|
||||
Reference in New Issue
Block a user