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
+5
-3
@@ -257,7 +257,7 @@ window width `max-w-4xl` — change it with `classNames.dialog`.
|
||||
|
||||
Which mode to choose: the project design decides. If the brief is silent → `'detailed'` (at the moment of
|
||||
consent the user sees which cookies are set and by whom — full information where the decision is made),
|
||||
provided the Cookies list is filled from a scan (`ipalKit({ cookieScanner: true })` → *Cookie review* → **Scan cookies**,
|
||||
provided the Cookies list is filled from a scan (`ipalKit({ cookieScanner: true })` → *Cookie review* → **Scan cookies** → *Approve cookies* → **Approve and add**,
|
||||
[cookie-scanner.md](./cookie-scanner.md), or `ipal-consent-check` → cookie-scan); an empty list = a
|
||||
window without expandable lists, then `'modal'` is enough. Record the decision in `AGENTS.md` →
|
||||
"Project decisions".
|
||||
@@ -349,7 +349,7 @@ independent consent state).
|
||||
(admin only), automatic cleanup after `retentionDays` (default 1095). Details below. Postgres:
|
||||
`migrate:create`.
|
||||
- **Cookie table** for the policy page: Cookie banner → *Cookie list* + `getCookieTable` + `<CookieTable>` from `/rsc`.
|
||||
Fill the list from the panel with the cookie scanner (`cookieScanner` option — drafts an editor accepts,
|
||||
Fill the list from the panel with the cookie scanner (`cookieScanner` option — one approval adds every cookie found to the list, the table and the detailed window,
|
||||
[cookie-scanner.md](./cookie-scanner.md)) and check the real site with `ipal-consent-check` → cookie-scan.
|
||||
- Consent cookie: `cookie-consent` (`CONSENT_COOKIE`), JSON `{ id, state, timestamp, version }`,
|
||||
`max-age` 180 days (`CONSENT_MAX_AGE`), `samesite=lax`, `Secure` on HTTPS. Consent with another
|
||||
@@ -396,7 +396,9 @@ ipalKit({
|
||||
global (write access is `admin` + `editor` by default, hooks, admin options):
|
||||
`ipalKit({ globalOverrides: { 'cookie-settings': { access: { update } } } })` — your access rules win,
|
||||
your hooks run after the plugin's; a function gets the plugin's global and returns the one to use.
|
||||
- **Cookie list from the panel:** `ipalKit({ cookieScanner: true })` — opt-in, see
|
||||
- **Cookie list from the panel:** `ipalKit({ cookieScanner: true })` — opt-in: scan, then one **Approve and add**
|
||||
on the *Approve cookies* page puts every cookie found into the cookie list (and so into `<CookieTable>` and the
|
||||
detailed window); `cookieScanner: { approval: false }` keeps per-entry review. See
|
||||
[cookie-scanner.md](./cookie-scanner.md) (off, overrides and building blocks there).
|
||||
- **Pre-consent check in a real browser:** `cookieScanner: { crawl: true }` + the shared scanner service
|
||||
— **Check site** in the panel, violations (non-necessary cookies or trackers before consent), dashboard
|
||||
|
||||
Reference in New Issue
Block a user