Theme key 'theme', storage keys in the cookie scanner, type in the cookie list
- Theme choice in localStorage under 'theme' (next-themes' key and values)
instead of 'ipal-theme'. ThemeScript moves an old choice before the first
paint and removes the old key; useTheme / ThemeSwitcher do the same
without the script. ipalKit({ theme: { storageKey } }) sets an own key,
which reaches ThemeScript through getSiteShell().theme and <html
data-theme-storage>.
- The cookie scanner declares the theme key (Theme choice: local storage,
necessary, until changed or site data is cleared) when the theme switch
is on, so Scan cookies finds it without a crawl.
- Cookies -> Cookie list rows get a Type (cookie / local storage / session
storage, default cookie, shared by every language), filled by scan, review
and approval. The detailed settings window and <CookieTable> show it with
English and Polish defaults; the approval page marks storage entries.
- Migration: adds cookie_settings_cookies.storage (DEFAULT 'cookie') and
cookie_settings_locales.detail_labels_storage, nothing else.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6998b44431
commit
b5368cdc61
+11
-3
@@ -109,6 +109,7 @@ integrations switched on in this project are part of a scan:
|
||||
| Integration | On when | Cookies |
|
||||
|---|---|---|
|
||||
| Cookie banner | always | `cookie-consent` (necessary, 6 months) |
|
||||
| Theme choice | Site settings → Theme → *Allow theme toggle* on | `theme` (or `theme.storageKey`) in **local storage** — necessary (a preference the visitor chose), until changed or site data is cleared, may be set before consent |
|
||||
| Admin panel login | always | `payload-token` (`<cookiePrefix>-token`, necessary, editors only) |
|
||||
| Language choice | more than one locale in `i18n` | `NEXT_LOCALE` (functional, session) |
|
||||
| Built-in statistics | `stats` option | `ipal_vid` (analytics, 6 months) |
|
||||
@@ -120,9 +121,16 @@ integrations switched on in this project are part of a scan:
|
||||
| TikTok Pixel | Pixel ID | `_ttp`, `_tt_enable_cookie` |
|
||||
| Cloudflare Turnstile | both Turnstile keys set | `cf_clearance` (necessary; only when pre-clearance is on in Cloudflare) |
|
||||
|
||||
An ID that fails its format check counts as off. The theme switcher (`ipal-theme` in localStorage)
|
||||
and the accessibility widget (`a11y-prefs`) have no plugin option, so they are not declared: add
|
||||
them with `declarations` when the site uses them.
|
||||
An ID that fails its format check counts as off. Declarations cover browser storage too
|
||||
(`storage: 'localStorage' | 'sessionStorage'`): the theme choice is the plugin's only storage key.
|
||||
The accessibility widget (`a11y-prefs` cookie) has no plugin option the scan could check, so it is not
|
||||
declared: add it with `declarations` when the site uses the widget.
|
||||
|
||||
Every entry keeps its type (cookie, local storage, session storage) from the scan through the review and
|
||||
approval into *Cookies → Cookie list* (**Type** column; shared by all languages, default *Cookie*). The
|
||||
banner's detailed window shows the type for entries that are not cookies, and `<CookieTable>` adds a
|
||||
**Type** column when the list has one ([consent.md](./consent.md)). A row that was already in the list
|
||||
keeps the type it has; rows from before the type existed are *Cookie* — set storage rows by hand.
|
||||
|
||||
## Open Cookie Database
|
||||
|
||||
|
||||
Reference in New Issue
Block a user