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
@@ -1,4 +1,15 @@
|
||||
// Cookie scanner — server-safe building blocks. The admin button is in /admin.
|
||||
export {
|
||||
approveCookies,
|
||||
buildCookieApprovalEndpoints,
|
||||
COOKIE_APPROVAL_PATH,
|
||||
COOKIE_APPROVAL_VIEW_PATH,
|
||||
countPendingCookies,
|
||||
DEFAULT_UNKNOWN_CATEGORY,
|
||||
loadCookieApproval,
|
||||
PENDING_WHERE,
|
||||
} from './approval.js'
|
||||
export type { CookieApprovalItem, CookieApprovalList, CookieApprovalResult } from './approval.js'
|
||||
export { buildCookieReviewCollection, COOKIE_REVIEW_SLUG } from './collection.js'
|
||||
export { DEFAULT_DATABASE_CATEGORIES, indexCookieDatabase, loadCookieDatabase, lookupCookie } from './cookieDatabase.js'
|
||||
export type { CookieDatabaseIndex } from './cookieDatabase.js'
|
||||
@@ -26,10 +37,11 @@ export { COOKIE_SCAN_LABELS, mergeCookieScanLabels } from './labels.js'
|
||||
export type { CookieScanLabels } from './labels.js'
|
||||
export { mergeCookieReview, suggestionFor } from './merge.js'
|
||||
export type { CookieReviewValues } from './merge.js'
|
||||
export { applyCookieFindings, collectCookieFindings, cookieScanContext, parseCookieNames, runCookieScan } from './scan.js'
|
||||
export type { CookieObservation, CookieReviewEntryRef } from './scan.js'
|
||||
export { addToCookieList } from './sync.js'
|
||||
export { applyCookieFindings, collectCookieFindings, cookieScanContext, flagGoneEntries, nextChange, parseCookieNames, runCookieScan } from './scan.js'
|
||||
export type { CookieChange, CookieObservation, CookieReviewEntryRef } from './scan.js'
|
||||
export { addToCookieList, sameCookie } from './sync.js'
|
||||
export type {
|
||||
CookieApprovalOptions,
|
||||
CookieCrawlOptions,
|
||||
CookieDeclaration,
|
||||
CookieFinding,
|
||||
|
||||
Reference in New Issue
Block a user