# Changelog Changes that matter for projects built on ipal-kit. How to move to a new version: the **ipal-upgrade** skill and [PROGRAMISTA.md §6](./dev/PROGRAMISTA.md). We keep at least the **20 most recent versions** here. When you upgrade a project by several versions at once, go through every "Requires project changes" section in order, starting from the version you have. A new release = a new section at the top; we remove the oldest ones only once there are more than 20. ## 1.14.3 One approval for everything the cookie scanner finds: editors tick the cookies and add them all to the cookie list at once, instead of opening every review entry. Only for projects with `cookieScanner`. ### New - **Approve cookies** page (`/admin/cookie-approval`, `CookieApprovalView`; linked from the scan box on Privacy → Cookie review and from the dashboard): the cookies a scan or crawl found, grouped by category, with one **Approve and add** button for every ticked cookie. They go into Cookie banner → Cookies in every locale. Nothing reaches the cookie list until an editor approves it. The approve and list endpoints are for editors and up by default (`cookieScanner.access`). - **Markers** on each review entry (new `change` and `needsDescription` fields): **New**, **Changed** (a scan changed its suggested values), **Needs description** (no purpose yet; cleared when an editor writes one) and **No longer found** (a scan or crawl no longer sees it). A cookie that is no longer found is flagged for review only; neither the review entry nor the list row is deleted. - **Never overwrites, never duplicates:** an existing list row (same name, or a pattern such as `_ga_*` that covers it) only gets its empty texts filled; editor text is kept, and no second row is added. - **Unknown cookies** that no integration or database knows go to `cookieScanner.approval.unknownCategory` (default `marketing`, so they need consent until an editor describes them). - **Reminders:** a dashboard notice while cookies wait (`CookieCrawlAlert`; `approval.dashboard: false` hides it), and the crawl e-mail says how many cookies wait, with a link to the approval page. - **`cookieScanner.approval: false`** keeps the old review, entry by entry. - New exports: `approveCookies`, `loadCookieApproval`, `countPendingCookies`, `flagGoneEntries`, `nextChange`, `sameCookie`, `buildCookieApprovalEndpoints`, `COOKIE_APPROVAL_PATH`, `COOKIE_APPROVAL_VIEW_PATH`, `DEFAULT_UNKNOWN_CATEGORY`, `PENDING_WHERE`; `CookieApprovalView`, `CookieApprovalForm` (`/admin`); types `CookieApprovalOptions`, `CookieApprovalItem`, `CookieApprovalList`, `CookieApprovalResult`, `CookieChange`. ### Changed - **Hand-typed cookie list rows:** a scan looks a row up (database, integrations) only while it has no review entry. Once it has one, the review entry and the approval page are the place to change it. ### Known issue - `pnpm audit --prod` still reports one **low** advisory: `deepmerge` 4.2.0–4.3.1 (GHSA-gcqx-w48m-w2h4), reached through `payload`. No patched version exists yet; nothing to do in projects. ### What projects must update - **Projects with `cookieScanner`:** 1. `pnpm payload generate:importmap` — adds `@intecion/ipal-kit/admin#CookieApprovalView` and `@intecion/ipal-kit/admin#CookieCrawlAlert` (the dashboard reminder now uses it even without `crawl`); commit `importMap.js`. 2. Postgres/SQLite: `pnpm payload migrate:create` → `migrate` — the `cookie-review` collection gets `change` (an enum column with an index) and `needs_description` (boolean). Only new columns; nothing is dropped or renamed. MongoDB: nothing. 3. Tell editors: after a scan, open **Approve cookies** (from the scan box on Privacy → Cookie review, or the dashboard), tick and **Approve and add**. Fill in the cookies marked **Needs description**. **Check:** run a scan → the new cookies appear on `/admin/cookie-approval`; approve one → it is in Cookie banner → Cookies in every language. 4. Keep the old review instead: `cookieScanner: { approval: false }`. - Projects without `cookieScanner`: nothing. ## 1.14.2 ### Fixed - **2FA setup loop.** A user without TOTP (every new admin) was sent to `/admin/setup-totp?back=null`, and that page redirected to itself forever. `@clocklimited/payload-2fa`'s admin provider reads the path from an `x-pathname` request header, which nothing sets on `/admin` (the `createProxy` matcher skips it). ipal-kit now swaps in its own provider, `TotpRedirectProvider` (`@intecion/ipal-kit/admin`): it reads the path in the browser, never redirects away from the setup or verify screen or from logout, and renders nothing while a redirect is pending. ### New - **`twoFactor.provider`** — your own redirect component (path or `{ path, clientProps, serverProps }`), or `false` to keep the package's (then set `x-pathname` on `/admin` yourself). **`totpRedirectTarget` / `totpAdminPath`** — the redirect rules as a pure function, for your own provider. ### Known issue - `pnpm audit --prod` reports one **low** advisory: `deepmerge` 4.2.0–4.3.1, prototype poisoning in `mergeObject()` (GHSA-gcqx-w48m-w2h4), reached through `payload` (`@clocklimited/payload-2fa` → `payload` → `deepmerge`). No patched version exists yet; nothing to do in projects until Payload or `deepmerge` ships a fix. ### What projects must update - **Projects with 2FA on:** `pnpm payload generate:importmap` (adds `@intecion/ipal-kit/admin#TotpRedirectProvider`), commit `importMap.js`, `rm -rf .next`, redeploy on Coolify. **Check:** a new admin lands on `/admin/setup-totp?back=%2Fadmin` and sees the QR code. Remove an own `x-pathname` rule on `/admin` if one was added as a workaround. - Projects without 2FA (`twoFactor: false`): nothing. ## 1.14.1 Response-header hardening from the intecion.com audit: hide `X-Powered-By`, and a Content-Security-Policy the project can roll out safely (report-only first, with reports). Everything is opt-in; nothing changes until the project uses it. ### New - **`withSecurityConfig(nextConfig, { hidePoweredBy })`** — hides `X-Powered-By` (Next's `Next.js` and the `Next.js, Payload` that `withPayload` adds) by setting `poweredByHeader: false` and dropping the header from `headers()` rules. Works on either side of `withPayload`. Opt out: `hidePoweredBy: false`. - **`buildSecurityHeaders({ csp })`** — off by default (`csp: false`). Pass `buildCsp` args to add the policy: `mode: 'report-only'` (`Content-Security-Policy-Report-Only`) or `'enforce'`; with `reportUri` the policy gets `report-uri` / `report-to` and the `Reporting-Endpoints` header is added (`reportGroup`, default `csp-endpoint`). A hand-written policy in `additional` still wins. - **`createCspReportRoute()`** — a POST route for violation reports (both the legacy `application/csp-report` and the Reporting API format), logged as one `[csp]` line each (`onReport` to send them elsewhere, `maxBytes`); `parseCspReports` for your own handler. - **`buildAdminCspHeaders` / `buildAdminCsp`** — a policy for `/admin/:path*` that fits Payload's admin, with the same `mode` / `reportUri` / `extra` / `override`. - **Nonces (opt-in)** — `createProxy(config, { csp })` creates a per-request nonce, puts the policy on the request (Next adds the nonce to its own scripts) and the response, and exposes it as the `x-nonce` request header; `` passes it to the theme script and the analytics tags (`ThemeScript`, `Analytics`, `ConsentScript` take `nonce`). `strictDynamic` (default on with a nonce). Nonces need dynamic rendering, so they are only for sites that render per request; static and ISR sites keep the header-only CSP. `createCspNonce`, `CSP_NONCE_HEADER`. - **`buildCsp` flags** — `metaPixel`, `linkedIn`, `tiktok`, `clarity` next to `analytics`, `turnstile`, `youtube`, `googleMaps`, `r2Url`; `dev` (adds `'unsafe-eval'`, default `NODE_ENV === 'development'`); `extra` adds sources to any directive; `override` replaces a directive (`null` drops it). `buildCspHeaders`, `buildReportingEndpoints`, `cspHeaderKey`, types `CspDirective`, `CspSources`, `CspViolation`. - **ipal-audit** — checks the response headers: `X-Powered-By` anywhere → ERROR; no CSP on the site or `/admin` → WARNING; report-only for weeks with clean reports → WARNING (switch to enforce). ### Changed - `buildCsp` allowlists are slightly wider (nothing that was allowed is now blocked): `analytics` also allows the Google Signals hosts (`https://*.g.doubleclick.net`, `https://www.google.com`) in `connect-src` and `img-src`; `r2Url` is also added to `media-src`; in development `'unsafe-eval'` is added (`dev: false` to turn it off). The order of the directives in the header changed (cosmetic). - `buildSecurityHeaders({})` output is unchanged. ### Documentation - security.md rewritten: X-Powered-By, CSP roll-out (report-only → enforce), report route, admin policy, nonces vs static pages. AGENT.md, ipal-setup, ipal-reference, ipal-audit, ipal-upgrade. ### What projects must update Nothing is required. Recommended, in this order (ipal-upgrade → 1.14.1, security.md): 1. **Hide `X-Powered-By`:** `export default withPayload(withSecurityConfig(nextConfig))`; remove a hand-written `poweredByHeader: false`. **Check:** `curl -sI /pl | grep -i x-powered-by` → nothing (also `/admin`). 2. **CSP report-only:** `buildSecurityHeaders({ csp: { mode: 'report-only', reportUri: '/api/csp-report', r2Url: process.env.R2_PUBLIC_URL, …flags for what the site loads } })`, the admin rule `{ source: '/admin/:path*', headers: buildAdminCspHeaders({ mode: 'report-only', reportUri: '/api/csp-report' }) }` and `src/app/api/csp-report/route.ts` → `export const POST = createCspReportRoute()`. Deploy and read the `[csp]` lines in the Coolify logs. 3. **Enforce:** after a few days of clean reports, `mode: 'enforce'` in both places; redeploy and check the pages. 4. Projects that already call `buildCsp({ analytics })` or pass `r2Url`: the policy gets the wider allowlists above after upgrading — review them if the policy is audited line by line. ## 1.14.0 An image lightbox, a cookie scanner with a browser pre-consent check, an admin panel in English and Polish, and dependency security fixes. Every new feature is opt-in or overridable — AGENT.md §7.1 lists the switches. ### Image lightbox - **One shared viewer for the site** — ``, ``, ``, `useLightbox` (`/client`) and the pure helpers `lightboxImage(media, { size })`, `lightboxIndex`, `formatLightboxCounter`, `resolveLightboxTexts` (root and `/client`). Galleries by `group`, keyboard and swipe, focus trap, reduced motion, unstyled mode, `classNames` / `icons` / `renderImage` / `renderDialog`. - `` mounts the provider for the whole site (default off). `RenderRichText lightbox` makes image uploads in rich text click-to-enlarge (opt-in); `withLightboxUploads` (`/rsc`) for your own converters. - `ipalKit({ lightbox: true })` adds an **Image viewer** group to Form messages so editors translate the labels (default off; English and Polish fallbacks without it). docs/lightbox.md. ### Cookie scanner - **Phase 1 — declarations and lookup:** `ipalKit({ cookieScanner: true })` adds the **Cookie review** collection (Privacy group) and a **Scan cookies** box above its list (`GET`/`POST /api/ipal/cookie-scan`, editors and up by default — `cookieScanner.access`). A scan lists the cookies of the integrations the project switches on, your own `declarations` and names looked up in the bundled Open Cookie Database (Apache-2.0, loaded only when a scan runs), as drafts. An editor accepts (→ Cookie banner → Cookie list), edits or rejects; a rescan never overwrites edited text, never deletes and never publishes by itself. Overrides: `collectionOverrides`, `integrations`, `labels`, `database`, `databaseCategories`, `syncAccepted`. - **Phase 2 — "Check site":** `cookieScanner: { crawl: true }` sends a real browser through the shared `services/cookie-crawler` service (one Coolify deployment for all sites). It visits the site before consent and reports cookies and tracker requests set without consent as **violations**: drafts in Cookie review, the latest result in the `cookie-crawl` global, a dashboard warning (`CookieCrawlAlert`, `crawl.dashboard: false` to hide) and an e-mail. Site env: `IPAL_COOKIE_SCAN_URL`, `IPAL_COOKIE_SCAN_TOKEN` (`ipalEnvRules({ cookieCrawl: true })`); service env: `IPAL_CRAWLER_SITES`. docs/cookie-scanner.md. - Building blocks are exported (`runCookieScan`, `lookupCookie`, `findCrawlViolations`, `parseCrawlResult`, …). ### Admin panel in English and Polish - **The admin speaks English and Polish by default** when the project sets no `i18n.supportedLanguages`; a project's own list always wins. Plugin texts live under the `ipal` namespace and the project's `i18n.translations` win key by key. New exports: `applyAdminI18n`, `ipalT`, `adminTexts`, `defineTexts`, `formatNumber`, `formatDateTime`, `adminDocumentTitle`, `` (`/admin`). - **All wording rewritten** (docs/dev/admin-ux.md): plain names (Site settings, Site integrations, Cookie banner, Form messages, Search engines, Maintenance), descriptions that say what a field does, labels as `{ en, pl }`. - **Regrouped, same data:** a **Privacy** group (Cookie banner, Consent records, Cookie review), Forms under one group, the `roles` field and Cookie banner → Consent version in the sidebar. No slugs, field names or columns changed (Postgres `migrate:create` reports no schema changes). - **Frontend texts:** validator messages are full sentences (`VALIDATION_MESSAGES`, `validationMessages(locale)`, `localizedRules(locale)`), and `pl` locales get Polish fallbacks for consent, form messages and the lightbox (`CONSENT_FALLBACK_PL`, `NOTIFICATION_FALLBACK_PL`, `LIGHTBOX_FALLBACK_PL`, `consentFallback`, …). ### Admin follow-ups - The statistics tab title follows the admin language; the cookie scanner's integration names are Polish in a Polish admin; the maintenance notice's close button has a screen-reader label in the page language. - **Favicon warning:** `FaviconCheck` (`/admin`) shows under Site settings → Site icon when the image is under 48×48 px or not square; saving is never blocked. `faviconProblems`, `FAVICON_MIN_SIZE` for your own checks. ### Dependencies and security - **Next.js:** dev dependencies on `next` and `eslint-config-next` 16.4.3 and `sharp` 0.35.5. The docs set **16.4.1 as the minimum safe Next**. The peer range stays `next >=15`. - **nodemailer 10** (was 8; ships its own types, `@types/nodemailer` dropped). **Node.js 20.9 or later** (`engines.node: ">=20.9.0"`; Payload 3 already needs it). - `pnpm audit --prod` on the plugin: no known vulnerabilities. Repo-only `pnpm.overrides` fix Payload's pinned transitive dependencies; projects are not bound by them (see "What projects must update"). ### Tests and dev - Tests boot Payload through `buildTestConfig` (`typescript.autoGenerate: false`), and a guard test fails on a raw `buildConfig`. The dev app no longer spawns `payload generate:types` on every start. Both left orphan processes. ### What projects must update 1. `pnpm payload generate:importmap` — `FaviconCheck` and the `RowLabel` components are injected into every project. Missing entries leave the Site settings screen or array rows broken. Then `pnpm ipal:skills`, `rm -rf .next`. 2. **Node.js 20.9 or later** — check the Coolify build image, `.nvmrc` and `engines`. Remove `nodemailer` / `@types/nodemailer` from the project's own `package.json` if someone added them. 3. **Next.js 16.4.1 or later** (16.4.3 recommended) with **sharp 0.35.5 or later**: `pnpm add next@^16.4.3 eslint-config-next@^16.4.3 sharp@^0.35.5`. Next 16.0.0–16.4.0 is affected by GHSA-2464-fhr4-w9xw, GHSA-673q-mjm6-r5xr and GHSA-p3m5-59mp-jv5r (two unauthenticated remote code executions and a Server Actions denial of service). 4. `pnpm audit --prod`. With `payload` 3.90.x add the recommended overrides to the project's `pnpm.overrides`: `"dompurify@<3.4.17": "^3.4.17"`, `"undici@>=7 <7.30.1": "^7.30.1"`, then `pnpm install` and audit again (AGENT.md §4 item 12). 5. **Postgres/SQLite:** `pnpm payload migrate:create` → `migrate` when turning on `cookieScanner` (the `cookie-review` collection), `cookieScanner.crawl` (the `cookie-crawl` global) or `lightbox: true` (Form messages → Image viewer). For the crawl set `IPAL_COOKIE_SCAN_URL` and `IPAL_COOKIE_SCAN_TOKEN` and add the site to the service's `IPAL_CRAWLER_SITES`. Without these options there is no schema change. MongoDB: nothing. 6. **Admin languages:** the admin now offers English and Polish when the project sets no `i18n.supportedLanguages`. To keep English only: `i18n: { supportedLanguages: { en } }` in the Payload config. 7. **Frontend texts:** default validator messages are now full sentences ("Fill in this field." instead of "required"), and `pl` locales get Polish fallback texts where the panel fields are empty. Tests or code that compare these strings need updating; pass your own message to a rule to keep it. 8. **Sidebar moves:** the `roles` field (users) and Cookie banner → Consent version now sit in the admin sidebar. Data is unchanged; update screenshots and editor instructions. ## 1.13.0 Security and performance fixes from an audit, SEO/GEO and Search Console features, a seed helper, and English docs. Every new default can be turned off or overridden — AGENT.md §7.1 lists each one with its switch. ### Security and access - **Staff features follow roles through one rule, `userMeetsRole(req, minimum)`** (exported). With `access` (a `roles` field), the role decides. **Without `access`, every logged-in account passes** — see "What projects must update". Used by Site Integrations, the settings globals, the test e-mail endpoint, stats, consent records, forms and form submissions. - **Plugin globals:** Site Settings, Cookie Settings and Notifications are written by editor+ only, Site Integrations by admins only. Before, any logged-in account (a plain `user`) could rewrite the brand, homepage or construction mode. Override: `ipalKit({ globalOverrides: { : { access, admin, hooks } } })`, where an object merges key by key and a function `(global) => global` takes over (`applyGlobalOverrides`). - **Forms:** forms are created, edited and deleted by editor+, and the Emails tab (recipients, BCC) is readable by editor+ only, so a plain `user` can no longer BCC every submission to itself. Override: `forms.formOverrides.access` / `.fields` (the protected fields reach your `fields` function, so you can change the rule). - **Injected `users` collection** (with `access`): create, delete and unlock are admin-only; read and update are admin or self. Override: `access.authAccess` (your keys win). Your own auth collection still wins whole. - **First account = admin:** the account made on Payload's "create first user" screen becomes admin; an open sign-up on an empty collection still gets `defaultRole`. Turn off: `access.firstUserAdmin: false`. - **2FA** targets `admin.user`. A `twoFactor.collectionSlug` that is not an auth collection, or differs from `admin.user`, stops startup with a clear error. Override: `twoFactor.allowCollectionMismatch: true`. - **Rate limit:** requests without a client IP share one `unknown-ip` bucket at 20× the limit (before: no limit). `setUnknownIpFactor(n)`, `UNKNOWN_IP_FACTOR`; `setUnknownIpFactor(0)` only with a limiter in front. - **Turnstile hostname check** (opt-in): `createSubmitAction({ turnstileHostnames })`, `verifyTurnstile({ hostnames })`. - **`RenderRichText` neutralises unsafe link URLs** (`javascript:` and similar → `#`). Off: `safeLinks={false}` (fully trusted content only). - **Consent Mode `'basic'`** (opt-in): `` sends nothing to Google until analytics or marketing consent. Default stays `'advanced'`. The rule is exported: `shouldLoadGoogle` (root and `/client`). - **Construction mode** now also hides pages from the Markdown mirror, MCP and search (`isPathVisible`, `isPathVisibleIn`, `pathOf`, type `PathVisibility`). Opt out per route: `markdown: { isPathVisible: () => true }`, `mcp: { isPathVisible: () => true }`. - Old-slug redirects skip never-published drafts (`resolveRedirect({ draft: true })` to include them). MCP rejects non-object messages (-32600). The locale cookie honours consent saved under a bumped policy version (`createProxy(config, { policyVersion })`). - **`enabled: false` keeps the plugin's schema** (collections, globals, fields) and drops only endpoints, `onInit` and admin components. Before, it dropped the collections and globals, so a Postgres `migrate:create` would drop their tables. - **Collection overrides for consent records and stats:** `consentLog.collectionOverrides`, `stats.collectionOverrides` (object merges `access` / `admin` / `hooks`, function takes over; `applyCollectionOverride`, type `CollectionOverride`). The stats view and dashboard chart follow the `stats-visits` read access, so an override narrows the panel too. ### Performance - **`getSettings` / `getSiteShell` read Site Settings at `depth: 1`** (was 2, which pulled every assigned page's blocks and media on every request). The archive page is re-fetched at page depth. Override: `createContentHelpers({ settingsDepth: 2 })`. - Stats and consent-log retention purges run off the request, as one `deleteMany`. - `isPathVisible` reads construction mode once per list. Global saves can revalidate the layout: `ipalKit({ revalidatePath })` (opt-in), `buildGlobalRevalidateHook` for your own globals; skip once with `context: { disableRevalidate: true }`. - Hooks run Local API calls with `req` (same transaction); cross-locale sync restores `req.locale`. - Server entries no longer load `'use client'` modules. ### SEO, GEO and Search Console - **Site Settings → Search & AI tab:** search-engine verification codes (Google, Bing, Yandex → `` via `generatePageMetadata`), AI crawler policy and rules (→ robots.txt via `getRobots`), localized `llmsIntro` (→ top of `/llms.txt`). Empty fields change nothing. Off: top-level `searchSettings: false` (works without `seo`; `seo.searchSettings` still works, the top-level option wins). Your own fields: `searchSettings: (fields) => fields`. Building blocks: `verificationFrom`, `robotsOptionsFrom`, `AI_ASSISTANT_BOTS`, `AI_TRAINING_BOTS`. - **`getRobots`** in `createContentHelpers`: `app/robots.ts` → `export { getRobots as default } from '@/lib/content'`. - **Sitemap index** above 10 000 URLs (`/sitemap.xml?part=N`), CDN cache headers and an in-memory memo, documents read in batches of 500. `sitemapOptions: { maxUrls, cacheControl, memoSeconds }`, `sitemapEntries`, `createSitemapRouteHandler`, `buildSitemapIndexXml`. - **Sitemap errors are errors:** at runtime `sitemapRoute` answers 503 with `Retry-After` and `sitemap()` throws (before: an empty 200 / `[]`, which told Google the site had no pages). The build phase still falls back. - Construction mode filters the sitemap and llms.txt. Off: `underConstructionSeo: false`. - Unknown-route metadata is `noindex`. `collectSiteIndex` no longer caps at 1000 entries (MCP keeps `limit: 1000`). - `seo.uploadsCollection` (default `'media'`) — the upload collection `meta.image` relates to. - DNS verification is the default path for Search Console; `ipal-seo-check` reports a missing verification tag as INFO only, and follows the sitemap index. ### Seeding — `@intecion/ipal-kit/seed` (new entry) - **`createSeeder(payload, options)`** → `upsertBySlug`, `upsertBy`, `fillGlobal`, `summary()`. Dry run, update vs skip of entries edited in the panel, production guard (refuses non-local databases and `NODE_ENV=production` unless allowed), seed context that skips revalidation and IndexNow. Reads the same env vars as the old templates (`SEED_DRY_RUN` / `--dry-run`, `SEED_UPDATE`, `SEED_FORCE`, `IPAL_SEED_ALLOW_PROD_UPDATE`, `SEED_LOCAL_HOSTS`, `SEED_DB_URL_ENV`, `SEED_UNTOUCHED_SECONDS`, `SEED_HASH_FIELD`). `guard: false` turns the guard off. - Building blocks: `isLocalDatabase`, `writeLocales`, `seedHash`, `projectOnto`, `editedSinceSeed`. - The `ipal-site` and `ipal-form` seed templates are now thin scripts over the helper. - IndexNow skips writes with `context.ipalSkipIndexNow`. ### Documentation and agent guide - All docs, the agent guide (`docs/agent/AGENT.md`) and the `ipal-*` skills are in English. - The agent guide covers every export, option, env var, route, middleware, layout component, import-map entry and hook a project wires, with steps to verify. New: §7.1 "Newer defaults — turn off / override", a seeding guide, Coolify deployment (env, migrations, seeding, backups), a DNS records checklist. - `CLAUDE.md` states the plugin's two rules: the plugin helps projects and never limits them; an agent that adds the plugin gets the complete guide. ### Small and gap fixes - `ipalEnvRules({ storage: true })`: `R2_PUBLIC_URL` is optional; `storage: { requirePublicUrl: true }` requires it. - `forms.consentFieldName` now works: `submitForm` reads it from the `ipalKit` options. - Top-level `searchSettings` option, public `shouldLoadGoogle`, collection overrides for `consent-records` and `stats-visits` (see above). ### What projects must update 1. **Behaviour change — projects without `access`:** every logged-in account can now use the plugin's admin and editor features: Site Integrations, the settings globals, the test e-mail endpoint, stats, consent records, forms and form submissions. Before, nobody could through the API. If the project lets untrusted people log in (open sign-up, customer accounts), add `access` (roles), or narrow each feature with `globalOverrides`, `forms.formOverrides` / `forms.formSubmissionOverrides`, `consentLog.collectionOverrides`, `stats.collectionOverrides`. 2. **Projects with `access`:** accounts with the plain `user` role can no longer edit Site Settings, Cookie Settings, Notifications or forms, or create and delete users. Give staff accounts `editor` or `admin`, or loosen with `globalOverrides`, `forms.formOverrides.access`, `access.authAccess`. 3. **Postgres/SQLite: `payload migrate:create` → `migrate`** (Site Settings → Search & AI: `search_verification_*`, `ai_crawlers_policy`, the `ai_crawlers_rules` table, localized `llms_intro`). With `enabled: false`, the migration now keeps (or restores) the plugin's tables. MongoDB: no changes. 4. `pnpm payload generate:importmap`, `pnpm ipal:skills`. 5. Check: - code that reads a relation of a relation from `getSettings` / `getSiteShell` → `settingsDepth: 2`; - a hand-written `sitemap()` caller that relied on `[]` on errors (it throws now); - `twoFactor.collectionSlug` other than `admin.user` (stops startup → `allowCollectionMismatch: true`); - rate limits behind a proxy that hides the client IP (`setUnknownIpFactor`); - rich text with deliberately unusual link schemes (`safeLinks`). 6. Review the new options and defaults: `consentMode` (`'basic'` for "zero tags before consent"), `revalidatePath`, `turnstileHostnames`, the Search & AI tab (fill in verification codes or keep DNS verification), `app/robots.ts` → `getRobots`, `createSearchRoute({ isPathVisible })`, `access.firstUserAdmin`. 7. Remove workarounds: a plugin after `ipalKit` that adds hooks or access to the plugin globals → `globalOverrides` / `revalidatePath`; a hand-written global revalidation hook → `buildGlobalRevalidateHook`; your own seed guard and upsert code → `@intecion/ipal-kit/seed`. ## 1.12.3 ### New - **Large cookie settings window with details** — ``. Each category is a card with a switch (on/off), a description and an expandable list of the cookies it covers (name, provider, purpose, duration) — from **Cookie Settings → Cookies**. The developer picks the mode: `'inline'` (default, unchanged), `'modal'`, `'detailed'`. New group in the **Cookie Settings → Detail labels** global (list labels, per language; empty → English). `ConsentTexts` has optional `cookies` and `details` (filled by `getConsentTexts`). New `classNames` slots: `categoryCard`, `cookies`, `cookiesToggle`, `cookieList`, `cookie`, `cookieName`, `cookieMeta`. consent.md → "Large window with details". ### Documentation - consent.md: comparison of the three `settings` modes, which one to pick (brief says nothing → `detailed` when the Cookies list is filled in), new fields in the table of panel texts, slots and `data-ipal` hooks. - AGENT.md (§0b item 12, §7, compliance), PROGRAMISTA §2.8 / §2.11 / §6 item 46, skills `ipal-setup`, `ipal-site`, `ipal-upgrade`, `ipal-locale-add` (Detail labels and Cookies in every language), `ipal-consent-check` (the import also feeds the `detailed` window — check it after the import). ### Requires project changes 1. Postgres/SQLite: new fields in the Cookie Settings global → `payload migrate:create`. MongoDB: no changes. 2. Optional: ``, fill in Cookie Settings → Cookies (scan: `ipal-consent-check` → cookie-scan) and Detail labels in every language. ## 1.12.2 ### Fixes - **Empty admin panel in production because of the import map from dev.** `buildR2Storage` without `R2_*` returned a no-op, so `pnpm dev` / `generate:importmap` without R2 wrote `importMap.js` without `S3ClientUploadHandler`; the project committed it, and the production panel (with R2) rendered a blank page with no console error. Now the adapter is always registered (without R2 as `enabled: false`, media still on disk) — the import map is identical in every environment. `ipal-audit`: ERROR "import map without the R2 upload handler". - **Cookie Settings — the "Zapisz" text is no longer lost after 1.11.1 (MongoDB).** The first save of the global removed the old `buttons.save` and the button fell back to "Save preferences" in all languages. On startup the plugin copies `buttons.save` → `buttons.savePreferences` (all languages) when the new field is missing. `getConsentTexts` read the old field as text, but Mongo returns it as a `{ pl, en }` map (the field is not in the schema) — the banner could show "[object Object]". - `ipal-audit`: a multi-line `"exclude"` in tsconfig is no longer reported; `a11y`, `i18n`, `l10n` are not "numbered fields"; it catches links `` `${prefix}/${slug}` `` and page paths hard-coded in code (`` `${prefix}/kontakt` ``); message "panel text in Polish — admin labels/descriptions are English" (was the misleading "panel is English"). ### New - **Read-only media:** `R2_PUBLIC_URL` alone (absolute, outside production) → file URLs from the media domain, upload and delete blocked (403). Local dev on the production database without bucket keys. `ipalEnvRules` in dev then does not require the rest of `R2_*`. storage.md → "Behavior". - **`context: { ipalSkipAutoFill: true }`** (`SKIP_AUTO_FILL`) — save without auto-filling meta and `aiSummary`. For data migrations and scripts that must save only what they set. seo.md. - **`createPageRoute` redirects the home page from its slug** (`/pl/home` → 308 `/pl`). Turn off: `homeAlias: false`. Remove your own redirect from `page.tsx`. pages.md. ### Documentation - i18n.md: `fallback: true` persists default-language text into empty fields of other languages on save — the consequences and how to write scripts. - PROGRAMISTA §1: `pnpm up --latest @intecion/ipal-kit` (plain `pnpm up` will not go past the exact version); 401 on the public registry = old token in `~/.npmrc`. ### Requires project changes 1. `pnpm up --latest @intecion/ipal-kit`, then `pnpm payload generate:importmap` and check that `importMap.js` has `@payloadcms/storage-s3/client#S3ClientUploadHandler` (project with `buildR2Storage`). Commit it. 2. Your own redirect of the home page from its slug (e.g. in `render` with `buildLocalizedPath`) — remove it, `createPageRoute` does this now. 3. Optional: local dev on the production database → only `R2_PUBLIC_URL` in `.env` instead of R2 keys. ## 1.12.1 ### New - **A description for every page from its content** — auto-fill fills an empty `meta.description` from the page's blocks (`layout` → paragraphs without headings, whole sentences up to ~155 characters) when `autoFill.description` yields nothing. Before, a page without a description got `siteDescription` — the same on every page, so Google ignored it and quoted the footer. `autoFill: { content: 'blocks' | false, descriptionLength }`. A description typed by hand is never overwritten. - **``** (`/rsc`, `/client`) — `data-nosnippet` on `div`/`section`/`span`. For the footer, contact bar, repeated CTA: Google stops showing the address and opening hours from the footer as the description of subpages. `CookieBanner` and `LanguageSwitcher` have `data-nosnippet` themselves. Details: seo.md → "Descriptions in Google". - **Hint under the description in the SEO tab** (`MetaDescriptionCheck`) — description empty, identical to `siteDescription`, or identical to another document in the collection. Does not block saving. `seo.descriptionCheck: { settingsSlug, siteDescriptionField }` or `false`. - **ipal-seo-check** — warnings: duplicated meta description, footer without `data-nosnippet`. - **Statistics in the panel** — `ipalKit({ stats: true })` + `` (or `` from `/client`). The `/admin/stats` view: daily visits over 30 days, pages, entries, sources, devices; chart on the dashboard. No cookies and no IP stored — **no consent required** (hash with a salt rotated daily). Visitors with *analytics* consent (the same as GA4) get the `ipal_vid` cookie and a multi-day history; the server checks the consent cookie itself. Collection `stats-visits`, 90-day retention. Details + privacy policy text: stats.md. - `@payloadcms/next` in peerDependencies (the `/admin/stats` view uses its `DefaultTemplate`; every Payload+Next project already has it). ### Fixes - **Auto-fill on a partial save** — `payload.update` / REST PATCH without the `meta` group no longer treats the saved title as empty (it reads it from the document). ### Requires project changes 1. `pnpm payload generate:importmap` — new panel component `@intecion/ipal-kit/admin#MetaDescriptionCheck`. 2. Footer: content in `` inside `