# 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.16.2
### Security
- **`mongoose` and `happy-dom` overrides for Payload's own dependencies.** `@payloadcms/db-mongodb` pins `mongoose`
8.24.1 exactly (still so in Payload 3.93.0). 8.x below 8.24.7 has five advisories published 2026-11-10:
[GHSA-pcrw-h46h-c93h](https://github.com/advisories/GHSA-pcrw-h46h-c93h) (critical, `sanitizeFilter` not applied on
`countDocuments`; fixed in 8.24.3), [GHSA-gg4r-jv3p-qx3c](https://github.com/advisories/GHSA-gg4r-jv3p-qx3c) and
[GHSA-8332-j7wj-wjw4](https://github.com/advisories/GHSA-8332-j7wj-wjw4) (high),
[GHSA-wr5m-5jph-8m96](https://github.com/advisories/GHSA-wr5m-5jph-8m96) and
[GHSA-6972-9mcm-vhwj](https://github.com/advisories/GHSA-6972-9mcm-vhwj) (moderate) — all fixed in 8.24.7.
`@payloadcms/richtext-lexical` → `@lexical/headless` 0.50 brings `happy-dom` 20.x, which has
[GHSA-c8p4-j97h-3vg8](https://github.com/advisories/GHSA-c8p4-j97h-3vg8) (high, fixed in 21.0.0) and
[GHSA-834v-8h66-3h79](https://github.com/advisories/GHSA-834v-8h66-3h79) (high, fixed in 21.0.4). The plugin has no
part in either; only the project's lockfile can lift them. The reference site and the project starter now carry
`"mongoose@>=8 <8.24.7": "~8.24.10"` and `"happy-dom@<21.0.4": "^21.0.4"` in `pnpm.overrides`; with them
`pnpm audit --prod` on the reference site reports no known vulnerabilities, and its seed, production build, smoke
tests and doctor pass. The plugin forces neither override on a project.
### Added
- **ipal-doctor `transitive-min`** (group `versions`): reports a `mongoose` 8.x below 8.24.7 (error) and a `happy-dom`
below 21.0.4 (warning) anywhere in the dependency tree, read from `pnpm-lock.yaml`, and prints the exact
`pnpm.overrides` line. Silence it in `ipal-doctor.json` like any rule
(`"transitive-min": { "off": true, "reason": "…" }`). `DoctorContext.installedAll(name)` is the building block for
your own rules on transitive packages.
### Changed
- AGENT.md §4 item 12, the `ipal-setup` and `ipal-upgrade` skills, doctor.md and the README list five overrides.
### What projects must update
- **Every MongoDB site** (`@payloadcms/db-mongodb`): add the two lines to `pnpm.overrides` in `package.json`, next to
the existing `dompurify` / `graphql-scalars` / `undici` entries:
```json
"happy-dom@<21.0.4": "^21.0.4",
"mongoose@>=8 <8.24.7": "~8.24.10"
```
then `pnpm install`, `pnpm build`, commit `package.json` and `pnpm-lock.yaml`, redeploy on Coolify. No data change,
no migration, no import map change. The selectors only touch the vulnerable versions: a mongoose 9 or a mongoose
8.24.7 and later is left as it is.
- **Postgres / SQLite sites:** only the `happy-dom` line (they have no mongoose).
- **Verify:** `pnpm why mongoose happy-dom` → mongoose 8.24.10 (MongoDB sites), happy-dom 21.0.4; `pnpm audit --prod` →
no high or critical; `pnpm exec ipal-doctor` → no `transitive-min` finding; open the panel and save a document.
- `pnpm ipal:skills` for the updated `ipal-setup` / `ipal-upgrade` skills.
## 1.16.1
### Security
- **Next.js 16.4.6; the minimum safe version is now 16.4.5.** Next.js 16.3.0–16.4.4 is affected by
[GHSA-mfr8-8qww-v76h](https://github.com/advisories/GHSA-mfr8-8qww-v76h) (CVE-2026-119790, moderate): information
disclosure across root params when a `'use cache'` function is called through `unstable_cache()`. Fixed in 16.4.5.
This is the advisory behind the `pnpm dev` warning "Next.js 16.4.3 is affected by a known security vulnerability".
The plugin's dev dependencies (`next`, `eslint-config-next`), the reference site and the project starter move to
16.4.6. The Next.js 15 lines Payload 3.90 accepts are not affected by this advisory but still carry older critical
ones, so 16.4.x stays the only safe line. The plugin's peer range is unchanged (`next >=15`).
### Changed
- **ipal-doctor `next-min`** now reports `next` below 16.4.5 as an error, naming GHSA-mfr8-8qww-v76h (below 16.4.1 it
still names the RCE and DoS advisories). The fix it prints: `pnpm add next@16.4.6 eslint-config-next@16.4.6`. It can
be silenced in `ipal-doctor.json` as before (`"next-min": { "off": true, "reason": "…" }`).
- AGENT.md §4 item 11, the `ipal-setup` and `ipal-upgrade` skills and doctor.md state 16.4.5 as the minimum.
### What projects must update
- **Every client site below Next.js 16.4.5:** `pnpm add next@16.4.6 eslint-config-next@16.4.6`, `rm -rf .next`,
`pnpm build`, commit the lockfile and redeploy on Coolify. `pnpm ls next` → 16.4.6; `pnpm exec ipal-doctor` → no
`next-min` finding; `pnpm dev` prints no security warning. No plugin option, migration or import map change.
- `pnpm ipal:skills` brings the updated `ipal-setup` / `ipal-upgrade` skills.
## 1.16.0
### Added
- **Files on forms, sent by e-mail and never stored** (`forms: { attachments: true }`, [forms.md](./forms.md) "Files").
A new **File** field in the form builder: label and help text per language, required, allowed file types,
maximum size and number of files, "Show only when". A file a visitor attaches is checked, attached to the
company notification e-mail and dropped. There is no upload collection, bucket, disk write or download route;
the submission keeps the file's name, type and size and whether the mail server took the message.
- **Checks, in order, before a file is accepted:** same origin, rate limit, declared size, a concurrency guard,
honeypot, Turnstile, field validation and GDPR consent, then per file: count, name (double and refused
extensions), size while reading, content signature, container and macro checks. An upload that breaks off,
stalls (`submit.idleTimeoutMs`, 30 s) or runs too long (`submit.timeoutMs`, 5 minutes) is given up and frees
everything it held. Programs, scripts,
macro-enabled Office files, archives, HTML and SVG are refused unless the project allows the extension
(`allowRisky`). **No antivirus is built in** — `attachments.scan` is the hook for one.
- **E-mail:** the file goes to every e-mail of the form whose recipients are fixed addresses from the panel; an
e-mail addressed with a placeholder (the confirmation to the visitor) never carries it. `{{field}}`, `{{*}}` and
`{{*:table}}` show the file name.
- **The visitor is told when the problem is the file:** too large (with the limit), a format the field does not
take (with the formats), a refused file (a program, an archive, macros, content that does not match), too many
files, or a file that could not be e-mailed. Each message names the file, says what to do, shows at the File
field, and on an optional field adds "You can also send the form without the file." What the visitor typed
stays in the form. A failure that is not about the file keeps its own message.
- **A failed send is visible:** the visitor sees "We could not send the file …" and can retry, staff get the
notification without the file, the submission is marked **File delivery: Not sent**. A repeated request
(double click, a resend) sends nothing twice.
- Browser: `RenderForm` / `BuilderForm` render a native file input with help text, the list of picked files and
a "Remove" button; `useBuilderForm` gains `getFileProps`, `getFiles`, `removeFile`, `helpId`,
`getHoneypotProps`; new `classNames` keys `file`, `help`, `fileList`, `fileItem`, `fileRemove`.
- New texts in Form messages → **Files** (`fileTooLarge`, `fileType`, `fileRefused`, `fileCount`, `fileNotSent`,
`fileOptional`, `fileRemove`), English and Polish defaults.
- New exports: `buildFileBlock`, `fileBlock`, `FORM_FILE_TYPES`, `RISKY_FILE_EXTENSIONS`, `formatFileSize`,
`mailAttachmentLimit` (root); `fileFieldRules`, `fileFieldError`, `formatFileSize` (`/client`);
`splitFormFiles` (`/server`); `submitForm({ files, attemptKey })`; result codes `kind: 'file_too_large' |
'file_type' | 'file_refused' | 'file_count'` and `reason: 'delivery'`.
- **Attachments over both e-mail transports** ([email.md](./email.md) "Attachments"). SMTP passes them through.
Microsoft Graph sends attachments under 3 MB in the one `sendMail` call; larger ones go through a draft and an
upload session, and the copy the mailbox keeps is deleted afterwards. That path needs the `Mail.ReadWrite`
application permission (limit it to the forms mailbox — steps in email.md). Without the permission the message
goes over SMTP when the panel has SMTP settings; otherwise the form's file limit drops to about 2.8 MB.
`mailAdapter({ graph: { largeAttachments: false } })` turns the large path off.
- **Test e-mail with a 10 MB file:** a checkbox next to "Send test e-mail" (endpoint body `attachmentMB`) — shows
whether the mail server takes a file of that size.
### Fixed
- **A form can be sent again after the server refused it.** After a refused submission (a field error from the
server, a failed e-mail) `useTurnstile().reset()` cleared the token but never asked the widget for a new one, so
with Turnstile on, the next click on Send answered "The form could not be sent" without sending anything.
`reset()` now makes the widget issue a new token (`Turnstile` takes a `resetSignal` prop for your own wiring).
No project change.
- **The honeypot of `BuilderForm` / `RenderForm` now reaches the server.** The hidden field was rendered, but its
value was not part of what the form sent, so a bot that filled it was not dropped. It is now sent with the
submission (`createSubmitAction` checks and strips it, as before). A hand-written action that calls `submitForm`
directly must strip `HONEYPOT_FIELD` first, as the example in forms.md always did — otherwise a filled honeypot
is answered with "unknown field" instead of the fake success.
### Changed
- The Microsoft Graph access token is cached in the process until a minute before it expires (it was fetched on
every send).
### What projects must update
- **Nothing is required; existing forms need nothing.** Without `forms.attachments` the forms config, collections,
routes and e-mails are unchanged, and a form without a File field behaves as before even with the option on.
`pnpm ipal:skills` brings the updated `ipal-form` / `ipal-reference` skills.
- **Import map:** no new admin component — `pnpm payload generate:importmap` changes nothing (running it is harmless).
- To use files on forms: set `forms: { attachments: true }`, add a **File** field to the form (panel or seed), keep
one e-mail with a fixed recipient on that form, run `pnpm generate:types`. **Postgres / SQLite:**
`pnpm payload migrate:create` (the File block tables, three columns and one array table on submissions, the new
Form messages columns — all additive). MongoDB: no migration.
- Add the classes `file`, `help`, `fileList`, `fileItem`, `fileRemove` to `src/components/forms/formClasses.ts`
(template in the `ipal-form` skill) and fill Form messages → Files for languages other than English and Polish.
- **Proxy body limit** ([deployment.md](./deployment.md) "Form files"): the browser posts up to `maxTotalMB`
(10 MB) plus the answers to `/api/ipal/forms/submit`. Coolify's Traefik and Caddy have no body limit by default; an
nginx in front needs `client_max_body_size 12m;`; Cloudflare (proxied) allows 100 MB. Keep `/api` out of the i18n
proxy matcher (the default one does).
- **Mail transport for files:** with Microsoft Graph, grant `Mail.ReadWrite` (application permission) limited to the
forms mailbox with an application access policy ([email.md](./email.md)), **or** fill SMTP settings in Site
integrations (files of 3 MB and more then go over SMTP), **or** accept a limit of about 2.8 MB per form. With SMTP
only, nothing to grant — the mail server's own size limit applies. Send the test e-mail with the 10 MB file once
per site.
### Verify on your real systems
The plugin's tests use a mock of Microsoft Graph and a local mail sink; check these once on the real setup:
- [ ] **Graph, 10 MB file:** a form submission with a 10 MB file arrives with the attachment; the sender mailbox keeps
**no draft and no copy in Sent Items** a minute later, and no draft after a failed send either. Checklist:
[email.md](./email.md) "Verify on the real tenant".
- [ ] **Traefik timeout on a slow upload:** a 10 MB upload over a throttled connection (browser dev tools, "Slow 4G")
finishes; if it is cut, raise the entry point's `respondingTimeouts.readTimeout`.
- [ ] **SMTP size limit:** the test e-mail with the 10 MB file is accepted by the SMTP server (many limit a message to
10–25 MB, and base64 adds a third); if not, lower `maxSizeMB` / `maxTotalMB` or use Graph.
## 1.15.5
### Fixed
- **Seeding a required field with references** (`createSeeder`, `upsertBySlug` / `upsertBy`): a page whose required
`layout` holds a `{ $page }` or `{ $form }` reference can be created. The first pass used to leave the whole field out,
so validation rejected the record ("The following field is invalid: … > Layout") while the dry run reported a create.
Now references to records that exist are resolved in the first pass, so the field is written complete. A link to a
page created later in the same call is filled in the second pass, and a record whose required field needs that page
waits until it exists. Required links in a cycle, and links to a page or form that never appears, are an error with
nothing written. The dry run now reports the same outcome, including a missing form. Seed scripts need no change.
### Changed
- **A stricter dry run:** `SEED_DRY_RUN=1` with a `{ $form }` to a form that neither exists nor is seeded earlier in the
same run is now an error, as the real run would be (before, the dry run printed a placeholder and reported a create).
The same holds for a `{ $page }` that never appears.
### What projects must update
- Nothing is required: seed scripts need no change.
- A seed with a required reference cycle (two new pages whose required fields link to each other) now stops with a
clear error naming the pages, and nothing is written for them; make one of the links optional or seed one page
first. Before, such a run could look successful in the dry run and fail on validation in the real one.
- A dry run that now reports a missing form or page: seed that record first (or create it in the panel), then run again.
## 1.15.4
### Fixed
- **Seeding whole localized arrays** (`createSeeder`, `writeLocales`): a value written per language as a whole —
`fields: { pl: [...], en: [...], de: [...] }`, a page `layout`, a global array — now keeps the stored row ids in every
language. Before, each locale write made new shared rows and only the last language survived (form fields, nested
select options, layouts, global arrays); an editor's later save could then fail validation. Fields that are
themselves `localized: true` (a localized layout) keep rows per language, as before. Seed scripts need no change;
repairing records an earlier seed already wrote: "What projects must update".
### What projects must update
- Nothing is required: seed scripts need no change.
- A project that seeded whole localized arrays (form fields with options, a page `layout`, a global array written as
`{ pl: [...], en: [...] }`) and lost languages: a plain re-run skips existing records (create-only), so rewrite them
with `SEED_UPDATE=1` — **locally first**, then check every language in the panel. On a live site only for the named
records: `SEED_ONLY="forms:
,pages:" SEED_UPDATE=1 IPAL_SEED_ALLOW_PROD_UPDATE=1`, `SEED_DRY_RUN=1` first,
after a backup (Coolify). Records an editor changed since seeding are skipped — fix those in the panel. A global
array: `fillGlobal` fills empty fields only, so clear the field in the panel before the run, or fix it by hand.
## 1.15.3
### Fixed
- **ipal-audit and ipal-doctor no longer report the panel's own bilingual labels as hardcoded text.** "Hardcoded Polish
text in code" (`i18n-literals` in the doctor) flagged `adminText('Title', 'Tytuł')` and `{ en: 'Title', pl: 'Tytuł' }`,
the labels AGENT.md §6.5a asks for. The check now reads the syntax tree (`polish-literals.mjs`, with the project's
TypeScript; a plain grep without it). In a schema file — a `.ts` file under `collections/`, `globals/`, `fields/` or
`blocks/`, or one importing Payload's schema types — it accepts `adminText()`, `{ en, pl }` as `label`, `singular`,
`plural`, `description`, `placeholder` or `group`, a `rowLabel()` fallback and a `const x: AdminText`, also over several
lines. Still reported: every `.tsx` file, a Polish-only label, other keys, anything under `defaultValue`.
### What projects must update
- Nothing is required.
- Run `pnpm ipal:skills` after upgrading, so the updated audit scripts reach the project: the **ipal-audit** skill runs
the project's own copy in `.agents/skills/ipal-audit/scripts` (`audit.sh`, `polish-literals.mjs`); `ipal-doctor` already
uses the plugin's.
## 1.15.2
### Fixed
- **ipal-doctor finds the frontend by structure, not by the name `(frontend)`.** A site with its pages in another route
group (`src/app/(site)/[locale]`) was treated as single-language: false "missing" routes and a demand for the
single-language Markdown route. `layout-required` now takes any `app/()` (or `app` itself) that holds the
catch-all page, a localized one first; two candidates give a warning naming both. The lazy 404's server action may be
`notFoundView.ts` or `notFoundView.tsx` (pages.md), and the other required files accept their usual extensions
(`.ts`/`.tsx`, route `.js`). New: `ipal-doctor.json` `"layout": { "frontend": "src/app/(site)" }` for a layout the
doctor cannot tell; new export `findFrontend`.
### What projects must update
- Nothing is required.
- After upgrading, remove any temporary `layout-required` silence in `ipal-doctor.json` that was added for a route group
with another name (e.g. `(site)`) or a `notFoundView.tsx`, then run `pnpm exec ipal-doctor` again. Only if the doctor
reports two frontend candidates: set `"layout": { "frontend": "src/app/()" }`.
- `pnpm ipal:skills` for the updated `ipal-doctor` and `ipal-reference` skills.
## 1.15.1
A seed run that stops early now fails loudly instead of looking like a success.
### New
- `guardSeedExit()` in `@intecion/ipal-kit/seed` ([seeding.md](./seeding.md)): call it first in a seed script. A run that
ends before Payload initializes or before `summary()` — `payload run` exits with code 0 and no output when the
script's top-level await is left without anything that keeps Node running — now prints `[seed] ended before Payload
initialized` / `… before the seed finished` and exits 1. `createSeeder` and `summary()` report to it; normal runs, dry
runs, write errors and the production refusals keep their exit codes and messages. Also `activeSeedExitGuard()` and
the types `SeedExitGuard`, `SeedExitGuardOptions`, `SeedExitProcess`.
- The seed templates (`ipal-site`, `ipal-form`) and the reference site call it, so sites made with `ipal-kit create` have it.
### Changed
- Reference site (not shipped): the Playwright smoke tests start their own server and fail when the port is taken
(`reuseExistingServer` only with `E2E_REUSE_SERVER=1`), so another project's dev server is never tested by mistake.
### What projects must update
- Nothing is required.
- Recommended: add `guardSeedExit()` (imported from `@intecion/ipal-kit/seed`) as the first statement of every seed
script, before `getPayload()`; without it nothing changes. A guarded script must end with `seed.summary()` (the seed
templates do), otherwise it exits 1 as "ended before the seed finished".
- **Check in Coolify:** after a seed in the app's Terminal, `echo $?` must print `0`; `1` with a `[seed] ended …` line
means the run stopped early and nothing after that point was written — run it again.
- `pnpm ipal:skills` for the updated `ipal-site` / `ipal-form` seed templates and `ipal-reference`.
## 1.15.0
A new site in one command (`ipal-kit create`), built from a complete reference site; `ipal-doctor`, which checks any site
against the team rules; a design-token standard; a block library of fifteen ready page sections and ten page templates.
Database names follow one rule, and seeding a live site touches only the records you name. Everything new is opt-in for
existing sites, except the few changes listed under "What projects must update".
### New
- **`ipal-doctor`** ([doctor.md](./doctor.md)): one command, run in a site, that checks it against the team rules and
lists every gap with a fix hint — plugin/Next/sharp/Node versions, the AGENT.md §3 layout and naming, database names,
env rules, security headers, X-Powered-By, CSP, 2FA, the cookie scanner, adminMeta, AGENTS.md "Project decisions",
current skills, seeds (`createSeeder`, no deletes, guard on), the block library (`blockLibraryManifest`), `pnpm audit
--prod`, hardcoded texts (it runs `ipal-audit --quick`). `--url` checks the running site (and runs `ipal-seo-check`),
`--deep` reads the database read-only through `payload run`. Human or `--json` output, `--strict`, exit codes 0/1/2/3,
`--sites '../*-web'` for a read-only drift table. `ipal-doctor.json` silences, lowers or raises a rule with a reason
(`until`, `files`). New bin `ipal-doctor`, new entry `@intecion/ipal-kit/doctor`, new skill **ipal-doctor**.
- **`GET /api/ipal/doctor`**: read-only counts for the doctor (users without TOTP, cookies waiting for approval,
versions). 404 until `IPAL_DOCTOR_TOKEN` (≥ 32 characters) is set; Bearer token, rate-limited. `ipalKit({ doctor: false })`
removes it.
- **`ipal-kit create` — a new site in one command** ([project-starter.md](./project-starter.md)):
`pnpm --config.auto-install-peers=false dlx @intecion/ipal-kit@ create intecion.com` asks the architecture
questions (or reads `--answers answers.json`), generates the site from the reference site (`reference/` through
`starter.manifest.json`: placeholders, `@starter:if` variants, demo left out), writes the answers into `AGENTS.md` →
Project decisions and `ipal-doctor.json`, installs from a shipped lockfile, runs `ipal-skills`, `ipal-tokens`,
`generate:types`, `generate:importmap`, `typecheck`, checks for secrets and makes the first commit. New bin `ipal-kit`
(subcommand `create`), new entry `@intecion/ipal-kit/starter` with the building blocks (`renderSite`,
`validateAnswers`, `applyVariants`, `collectBundle` …). New scripts `build:starter` and `starter:gate` in
`prepublishOnly`: a site made from the packed tarball must install frozen, seed, build, run the targeted seed in
production mode and serve `/pl` before a publish. Adds ~180 KB to the tarball. Not yet: single-language sites and a
default language other than `pl` — the command stops and points to the manual `ipal-setup` path.
- **Design-token standard** ([design-tokens.md](./design-tokens.md)): one set of `--ipal-*` names for every site,
only the values differ per brand. `@intecion/ipal-kit/tokens.css` (neutral defaults, light/dark on `data-theme`,
`[data-surface="inverse"]` scope, reduced motion), `@intecion/ipal-kit/tailwind.css` (Tailwind 4 preset: `bg-surface`,
`text-fg`, `text-on-primary`, `py-section`, `rounded-card`, `duration-fast`…), `@intecion/ipal-kit/a11y.css` (the
accessibility widget's CSS through the tokens). New entry `@intecion/ipal-kit/tokens` (`defineTokens`, `tokensToCss`,
`contrastReport`, `fluidClamp`, `IPAL_TOKENS`, `ipalVar`, `IPAL_BREAKPOINTS` …; the first four names also from the root).
New bin `ipal-tokens`: `src/design/tokens.ts` → `src/design/tokens.css` + WCAG contrast check (`--check` for CI).
Templates `DESIGN.md` and `tokens.ts` in `ipal-setup/resources`. `ipal-audit` checks the standard.
- `fluid.css` / `fluid-wide.css`: `--ipal-fs-xs`, `--ipal-fs-h4`, `--ipal-space-stack`, `--ipal-space-section-sm`.
- Design tokens: `data-theme="dark"` / `"light"` switches the tokens on any element (a dark panel, a styleguide), not
only on `` (`LIGHT_SELECTOR`, `DARK_SELECTOR`). Inside an inverted section `primary` reads the new
`primary-inverse` / `primary-inverse-text` roles (default: the brand primary), and the contrast report checks primary
buttons there. The `ipal-form` `formClasses.ts` template uses the token utilities and `buttonClass()`.
- **Block library** ([block-library.md](./block-library.md)): `hero`, `textMedia`, `featureGrid`, `cta`, `richText`, `faq`,
`contact`, `gallery`, `testimonials`, `stats`, `steps`, `logos`, `team`, `pricing`, `entryList` — Payload block +
server component each, `{ en, pl }` panel, accessibility built in, styled only with design-token utilities.
Opt in per block: `libraryBlocks({ hero: true, … })` (`@intecion/ipal-kit/blocks`); render with
`createBlockRegistry(content, { Image, Link, sendForm })` (`@intecion/ipal-kit/blocks/rsc`). Nothing is on by default.
Override fields, variants, slugs, labels, part classes, primitives or whole components; own blocks share the registry.
- **Page templates:** `pageTemplates` (`@intecion/ipal-kit/templates`) — home, about, services, service, contact, blog
index, post, legal pages, cookie policy, 404 — as `createSeeder` data in English and Polish; `systemPageRefs`.
- **`ipal-blocks eject `** copies a library block into `src/blocks/` (same slug and data shape).
- **`blockLibraryManifest`** — the library's blocks, variants, fields and primitives as data, for checks.
- **Seeder:** `{ $form: 'Contact form' }` references (by title, `formsCollection`, default `forms`).
- **Database name rule:** `_prod` / `_dev` (e.g. `acmepl_prod`), docs/deployment.md.
`ipalEnvRules({ databaseName: true })` (domain from `NEXT_PUBLIC_SERVER_URL`, skipped on localhost) or
`{ databaseName: { domain, warn } }` checks `DATABASE_URI` and **warns only** — never fails startup. Default off.
Helpers: `databaseNamesFor(domain)`, `databaseNameFromUri(uri)`, `checkDatabaseName({ databaseUri, domain })`.
- **Seeding after launch:** `createSeeder(payload, { only })` / `SEED_ONLY="pages:kontakt,global:header"` (also
`forms:`, `pages:*`) — the run touches only the listed records; the rest are reported as
`skip (not listed)`. The seed templates (`ipal-site`, `ipal-form`) read it.
- **Reference site for agents:** `docs/agent/reference-site/INDEX.md` (shipped) maps every plugin feature to a file
in a complete example site built on ipal-kit, so an agent can copy a working pattern. The site itself lives in the
plugin repo (`reference/`, not shipped) and is built, seeded and smoke-tested in the plugin's CI.
- **2FA screens in plain English and Polish:** `TOTP_TEXTS` (en, pl) go over `@clocklimited/payload-2fa`'s texts, and
the setup / verify screens get a tab title (`TOTP_VIEW_TITLE`, in the site's default language) instead of
"Payload". The project's own `i18n.translations..totpPlugin` still wins, a view's own `meta.title` stays, and
`twoFactor: { …, texts: false }` keeps the package's texts. The admin language still follows the browser.
- **`` stays clear of the footer:** when the footer scrolls into view the button moves up above it
(`avoid`, default `COOKIE_BUTTON_AVOID` = `footer, [role="contentinfo"]`; `avoid={false}` turns it off), `side`
(`'left'` default / `'right'`), position tokens `--ipal-cookie-button-inset`; `bottomOverlap` for your own widget.
Type `CookieButtonProps`.
### Fixed
- Meta descriptions, `/md` pages and `llms-full.txt` now read the **section header** of blocks
(`header: { heading, intro }` from `buildSectionHeaderField`, every library block) and testimonial `quote`s
(`blocksToMarkdown`). Before, a page whose text sat only in its hero (an archive page, a form page, the 404) got no
auto-filled meta description and fell back to the site description — the same text on several pages, which Google
ignores. **Requires project changes:** none; pages saved before keep their stored description — re-save them (or seed
`meta.description`) to fill an empty one.
- **Block library — headings and the LCP image** (found by `ipal-doctor` live-seo on the archive pages): item headings
follow the section — `h3` under a section heading, `h2` when the block shows none (an entry list under the page header
no longer jumps `h1` → `h3`); override with `createBlockRegistry({ itemHeadings: { entryList: 'h3' } })`. The first
image of the block that leads the page loads eagerly with high priority — `createPageRoute` now passes `firstImage`
("no block before this one shows an image", `blockPosition`) next to `isFirst`; `priorityImage: false` turns it off.
- **Sitemap, llms.txt, the site index (MCP `list_pages`), search (`searchContent`, the search route, MCP
`search_content`):** the page assigned as the 404 page is no longer listed —
it answers 404 at its own address (`unlistedPageIds(settings)`). A 404 page that is also the homepage stays.
- **`buildImagesConfig` in production without R2:** with `R2_PUBLIC_URL` empty (the default: media served by the
app) the site's own `/api/media/file/**` on `NEXT_PUBLIC_SERVER_URL` is allowed, so next/image no longer answers
400. With R2 nothing changes; a production build on localhost still never opens private IPs.
- **`fillGlobal`:** a choice field (select, radio, checkbox, number, date) still at its `defaultValue` counts as
empty, so e.g. Theme → `defaultTheme: 'system'` can be seeded over the stored default `light`. Text is never
overwritten, even when it equals a default. A field already holding
exactly the seeded value is not rewritten (`skip (exists)`), so a seed of defaults stays idempotent.
- **Docs:** `LanguageSwitcher` with `renderLabel` needs a `'use client'` wrapper (i18n.md, ipal-site).
### Changed
- **ipal-seo-check:** duplicate titles are counted per language (the same word in two languages is not a duplicate).
- **ipal-audit:** array `labels` / `rowLabel` after the `fields` key are found (were reported missing); a form seeded
from any seed file (`src/seed/forms.ts`, `upsertBy('forms', …)`) counts as a form seed; the script runs grep in UTF-8
(in the C locale an en dash matched the Polish-letter check).
- The plugin's own dependencies are pinned to exact versions (`lucide-react` 0.400.0, `nodemailer` 10.3.1,
`server-only` 0.0.1, `slugify` 1.6.9), so two sites created from the same release get identical trees. Projects:
nothing to do (pnpm installs the pinned versions; `nodemailer` moves from 10.2.1 to 10.3.1).
- The reference site carries `@starter:if` markers (comment lines) and the starter's alternatives as `//: ` lines;
it runs exactly as before.
- **Cookie banner / button colours** read the single token names (`--ipal-surface`, `--ipal-text` …) instead of
`dark:` + `--ipal-*-dark`. With `tokens.css` they switch with the theme. Without it, the built-in fallback follows the
page's `color-scheme` (`light-dark()`): a site without a dark theme no longer gets a dark banner on a dark-mode
device. A `-dark` variable a site still sets is used as the dark fallback. The secondary button's dark fallback text
is `#d4d4d4` (was `#e5e5e5`).
- Lightbox fade: `--ipal-lightbox-duration` defaults to `var(--ipal-duration, 200ms)`; new `--ipal-lightbox-easing`.
- **Admin labels:** the link "Open in new tab" checkbox is now **New tab** (with a description) and the table-of-contents
switch **Show contents** — shorter labels per admin-ux; the stored fields are unchanged.
- **A full seed of a live database is refused:** a run without `only` / `SEED_ONLY` against `NODE_ENV=production` or
a non-local database now throws (with the steps to follow). Dry runs (`SEED_DRY_RUN=1`) are never refused. Allow it
only with the owner's explicit OK: `IPAL_SEED_ALLOW_FULL=1` or `guard: { allowFull: true }`; `guard: false` turns
every guard off.
### What projects must update
1. **Production seed scripts / Coolify jobs:** a seed run against production without a record list now stops. List
the records: `SEED_ONLY="pages:kontakt,global:header" pnpm seed` (check with `SEED_DRY_RUN=1` first, back up the
database). A deliberate full re-seed: `IPAL_SEED_ALLOW_FULL=1`, with the owner's OK. Local seeding is unchanged.
2. Optional: name the databases `_prod` / `_dev` and add `ipalEnvRules({ databaseName: true })`
to see a warning when `DATABASE_URI` points elsewhere. Existing databases need not be renamed.
3. Seed scripts copied from older templates: take the new `SEED_ONLY` handling from `ipal-site` / `ipal-form`.
4. Optional: adopt the design-token standard (design-tokens.md → "Migrating an existing site"; **ipal-upgrade**). A
site that styles the cookie banner only through `--ipal-*-dark` for its dark theme and does not adopt `tokens.css`:
check the banner in the dark theme (the dark fallback now needs `color-scheme: dark`, which `` sets).
5. Block library — optional, nothing changes until you turn blocks on. New sites: the starter turns on eight blocks.
Existing sites move block by block when they get work (an own block with the same slug and fields can be replaced by
the library block with `slug`, else a migration with **ipal-migrate-fields**). After turning blocks on:
`pnpm generate:types`, `pnpm payload generate:importmap`, Postgres/SQLite `pnpm payload migrate:create`.
6. **CookieButton:** it now lifts above the site footer when the footer is in view. A site with its own fixed footer
bar or a button placed by `className`: check it; `avoid={false}` keeps the old fixed position.
7. **Agent skills:** `pnpm ipal:skills` — new skill **ipal-doctor**, and the updated `ipal-reference`, `ipal-setup`,
`ipal-site`, `ipal-audit` (the audit now skips the starter's `//:` alternative lines).
8. **Recommended:** run `pnpm exec ipal-doctor` in the site (and `--url https://` against production) and fix or
silence each finding with a reason in `ipal-doctor.json`. The `GET /api/ipal/doctor` endpoint stays a 404 until
`IPAL_DOCTOR_TOKEN` (≥ 32 characters) is set; `ipalKit({ doctor: false })` removes it.
9. **Exact dependency pins:** the plugin's own `lucide-react`, `nodemailer` (10.3.1), `server-only` and `slugify` are
pinned — nothing to do; `pnpm install` picks them up. Node.js stays `>=20.9` for the plugin (new sites from
`ipal-kit create` use Node 22).
10. **New sites:** `pnpm --config.auto-install-peers=false dlx @intecion/ipal-kit@1.15.0 create ` (project-starter.md).
Not yet: single-language sites and a default language other than `pl` — the command stops and points to the manual
**ipal-setup** path.
## 1.14.6
The release of everything listed under 1.14.5. **1.14.5 was tagged but never published** (its pre-publish test run
failed on the bug below): projects upgrade from 1.14.4 straight to 1.14.6 and follow the **1.14.5 "What projects
must update" steps**.
### Fixed
- **The admin link-preview hook no longer throws without a Payload instance.** The Site settings `afterChange` hook
added in 1.14.5 (`adminMeta`) called `syncAdminMeta(req.payload, …)`; with no `payload` on the request (tests,
scripts calling hooks by hand) it threw, and its own error handler threw again. `syncAdminMeta` now returns when
there is no Payload instance and logs only through `payload?.logger`, and the hook skips it without `req.payload`.
The `fillEmptyLocales` hooks got the same guard. In a running site `req.payload` is always set.
### What projects must update
- From 1.14.4: the 1.14.5 steps below (storage-type and title-separator migrations, theme key, cookie list, admin
link preview, dependency overrides, agent skills). Nothing more for 1.14.6.
## 1.14.5
> Tagged but never published — use 1.14.6, which contains everything below.
The theme choice moves to the standard `theme` key, the cookie scanner declares the plugin's own browser-storage
key, and the cookie list tells cookies from browser storage. A pasted `/admin` link now shows the site's own name,
description and preview image instead of Payload's, and search engines are told not to index the panel.
`/api/graphql` works again: it answered 500 on every site since 1.0.1. The `graphql-scalars` advisory is fixed in the
plugin and recommended to projects, and the agent guide asks the architecture questions first and can add pinned
third-party skills.
### Fixed
- **`/api/graphql` returned 500 for every project** (`Names must start with [_a-zA-Z] but "|" does not.`). The values
of Site settings → **Title separator** became GraphQL enum names, and `|`, `–`, `·` are not valid names (`-` and
`/` both became `_`). Present since 1.0.1. The admin, REST and Local API were not affected, because they don't use
GraphQL. Stored values are now names: `pipe`, `endash`, `hyphen`, `middot`, `slash`. The labels are the same, and
`TITLE_SEPARATORS` / `titleSeparatorChar` map a name to its character. An old stored character still works: titles
use it, and the field reads and saves it as its name. A test now builds the full plugin's GraphQL schema and fails
on any invalid or duplicate enum name.
### Changed
- **Theme key** `ipal-theme` → **`theme`** (`THEME_STORAGE_KEY`), the key and `light` / `dark` values next-themes uses.
Visitors keep their choice: `` moves an old `ipal-theme` value to the new key before the first paint
(no flash) and removes the old key; `useTheme` / `` do the same on pages without the script
(`migrateThemeStorage`, `LEGACY_THEME_STORAGE_KEY`). A project that also runs next-themes now shares the key —
set `ipalKit({ theme: { storageKey } })` to keep them apart.
- **White-label credit text** "Technology supported by Intecion.com" → **"Technology support: Intecion.com"** (pl:
"Wsparcie technologiczne: Intecion.com"), with the name from the `agency` option.
### New
- **`theme.storageKey`** option (`ThemeOptions`): `getSiteShell().theme.storageKey` → `` →
`` (`THEME_STORAGE_ATTRIBUTE`) → `useTheme` / ``; both also take `storageKey`.
- **Cookie scanner declares browser storage**: the theme choice (*Theme choice*, on when Site settings → Theme →
*Allow theme toggle* is on) as **necessary**, local storage, "until changed or site data is cleared" — so
**Scan cookies** finds it without a crawl.
- **Type in the cookie list**: *Cookies → Cookie list* rows have **Type** (`storage`: cookie · local storage ·
session storage, default cookie, shared by every language), filled by scan, review and approval. The detailed
settings window shows it for storage entries (heading: *Settings window → Cookie list headings → Type*);
`` adds a **Type** column when the list has a storage entry (`storageColumn`, `storageTypes`,
`COOKIE_STORAGE_LABELS`). `CookieTableRow.storage`, `texts.details.storage` / `.storageTypes`, type `ConsentStorage`.
The approval page marks storage entries.
- **Admin link previews** (`adminMeta`, default on): the panel's `` suffix, description, `og:site_name`,
preview image and favicon come from Site settings (site name, logo, site icon), and `/admin` gets
`robots: noindex, nofollow`. The preview image is `GET /api/ipal/admin-og` (1200×630 PNG rendered with next/og:
the logo or site name, "Administration panel", a technology-support line) and the icon `GET /api/ipal/admin-icon`.
Both are public, like the link previews that fetch them, and show only what Site settings already serves
publicly (name, logo, icon). Per piece: `adminMeta: { description, image, icons, robots, titleSuffix, language }`
(`false` for a piece = Payload's own); `adminMeta: false` turns it all off; keys the project sets in its own
`admin.meta` always win. Building blocks: `buildAdminMeta`, `adminMetaForSite`, `syncAdminMeta`,
`buildAdminImageEndpoints`, `ADMIN_META_TEXTS`, types `AdminMetaOptions`, `ResolvedAdminMeta` (white-label.md).
- **`agency`** option (default `{ name: 'Intecion.com', url: 'https://intecion.com' }`, `AgencyOption`,
`DEFAULT_AGENCY`): the technology-support name in the white-label credit, the admin description and the preview
image. Another agency: `agency: { name, url }`; none anywhere: `agency: false`. The credit itself still turns off
with `whiteLabel: { credit: false }`.
- **Agent guide — ask before you build:** AGENT.md and the `ipal-*` skills start with one list of architecture
questions (languages, content model, forms, integrations, hosting…) that the agent asks once and waits for; an
unanswered question is never guessed. **ipal-kit first:** use the plugin's function when one exists; a gap is
reported (`ipal-plugin-gap`) and the agent waits instead of writing its own version. Plus code rules for the
project (`ipal-block`, `ipal-collection`, `ipal-form`, `ipal-site`, `ipal-setup`, `ipal-debug`).
- **External skills (opt-in):** `pnpm exec ipal-skills --external` (or `--external ext-react-best-practices,ext-payload`)
also copies five vendored third-party skills — `ext-react-best-practices`, `ext-composition-patterns`
(vercel-labs/agent-skills, MIT), `ext-accessibility` (addyosmani/web-quality-skills, MIT), `ext-frontend-design`
(anthropics/skills, Apache-2.0), `ext-payload` (payloadcms/payload, MIT). Text only, pinned to a commit, with each
licence and a sha256 manifest (`docs/agent/external/manifest.json`); nothing is fetched at install time. Without
`--external` nothing changes.
### Security
- **`graphql-scalars` advisory** (high, ReDoS in the `PhoneNumber` scalar, GHSA-x8rm-f576-gq67): `@payloadcms/graphql`
pins 1.22.2 up to the latest Payload (3.92.1). The plugin's repo overrides it to `^2.0.1`; Payload's GraphQL
(`DateTime`, `EmailAddress`, JSON) works unchanged with it. Projects get the recommendation in AGENT.md §4 item 12.
`pnpm audit --prod` on the plugin: 0 high, only the unfixed `deepmerge` low. graphql-scalars 2.x is a major
(graphql-js 16+); Node.js 22 is recommended for projects that add the override (the package itself declares
`node >=10`, and the plugin's `engines` stay `>=20.9`).
### Known issue
- `deepmerge` 4.2.0–4.3.1 (low, GHSA-gcqx-w48m-w2h4) through `payload`: no patched version yet; nothing to do.
### What projects must update
1. **Migration (Postgres / SQLite):** `pnpm payload migrate:create cookie-storage-type` — it only adds
`cookie_settings_cookies.storage` (enum, `DEFAULT 'cookie'`) and `cookie_settings_locales.detail_labels_storage`.
Existing rows become *Cookie*: set the type of storage rows by hand. MongoDB: nothing to do.
2. A project that reads `localStorage.getItem('ipal-theme')` itself: use `THEME_STORAGE_KEY` (or `documentThemeStorageKey()`).
3. Cookie list: after the next **Scan cookies**, approve the new *theme* entry; remove an old *ipal-theme* row from
*Cookies → Cookie list* once the site runs this version.
4. **Admin link previews:** nothing required — the preview, noindex and favicon come from Site settings by default.
Remove a hand-written `admin.meta` that only set the panel title, description, `openGraph` or `robots: noindex`
(keep any key you really want: your `admin.meta` keys win). With `whiteLabel`, the credit reads "Technology support:
Intecion.com"; `agency: false` or `whiteLabel: { credit: false }` to remove it. No new admin components (the import
map is unchanged). **Check:** `curl -s $URL/admin/login | grep -E 'og:|robots'`, open `$URL/api/ipal/admin-og`, and
paste an `/admin` link in Slack or Messenger.
5. **Security (recommended):** on `payload` 3.90.x–3.92.x add `"graphql-scalars@<2.0.1": "^2.0.1"` to `pnpm.overrides`
next to the `dompurify` and `undici` ones (AGENT.md §4 item 12), `pnpm install`; Node.js 22 recommended with this
override (check the Coolify build image). **Check:** `pnpm audit --prod` → no high or critical; with GraphQL in use,
a query on a `DateTime` / `EmailAddress` field still answers 200.
6. **Title separator (Postgres):** `pnpm payload migrate:create title-separator`. The generated SQL turns the column
into text, recreates the enum with the new names and casts back, and that cast **fails on a stored `|`**. Add the
data update right after the first `SET DATA TYPE text;` in `up` (and the `'down'` variant in `down`):
```ts
import { titleSeparatorSql } from '@intecion/ipal-kit'
// up: ALTER TABLE "site_settings" ALTER COLUMN "title_separator" SET DATA TYPE text;
// ${sql.raw(titleSeparatorSql())}
// down: ALTER TABLE "site_settings" ALTER COLUMN "title_separator" SET DATA TYPE text;
// ${sql.raw(titleSeparatorSql({ direction: 'down' }))}
```
**SQLite:** the column is plain text, so nothing fails. Optionally run `titleSeparatorSql()` in a migration to
store the names. **MongoDB:** nothing to do, because the plugin rewrites the stored character at start
(`[ipal] Site Settings: title separator … stored as …`). If you overrode the field's options (`globalOverrides`),
use GraphQL-safe values (`/^[_A-Za-z][_A-Za-z0-9]*$/`). **Check:**
`curl -s -X POST $URL/api/graphql -H 'content-type: application/json' -d '{"query":"{ SiteSetting { titleSeparator } }"}'`
returns 200, and the browser tab shows the same separator as before.
Project code that reads `settings.titleSeparator` itself now gets a name (`pipe`, …): pass it through
`titleSeparatorChar()` before putting it in a title.
7. **Agent skills:** `pnpm ipal:skills` (or `pnpm exec ipal-skills`) to get the new agent rules. Optional, only if the
owner wants them (record it in AGENTS.md → "Project decisions"): `pnpm exec ipal-skills --external`.
## 1.14.4
Cookie texts in every language without retyping them, and one **Cookies** entry in the admin instead of three.
Both are on by default and can be turned off; no schema change.
### New
- **Empty languages are filled automatically** (`fillEmptyLocales`, default on): text written in one language goes
to every language where the same field is still empty — the cookie list (Cookies → Cookie list: `purpose`,
`duration`) and the cookie review (`purpose`, `retention`). A language that has its own text is never overwritten,
so editors can still change each language on its own. `fillEmptyLocales: false` turns it off; an object sets the
fields per slug (`{ 'cookie-settings': [...], 'cookie-review': [...] }`, `[]` = off for that slug). Building blocks:
`fillEmptyLocales`, `withFillLocales`, `buildFillEmptyLocalesGlobalHook`, `buildFillEmptyLocalesCollectionHook`,
type `FillEmptyLocalesTarget` (docs/hooks.md).
- **One Cookies entry in the admin** (`cookieScanner.adminLayout`, default `'combined'`): with the cookie scanner,
the Cookies global gets **Review and approve** and **Site check** tabs (`CookieReviewTab`, `CookieSiteCheckTab`,
`/admin`; `addCookieScannerTabs`). The Cookie review collection and the Cookie check global leave the navigation;
their data, API and `/admin/cookie-approval` stay. `adminLayout: 'separate'` keeps the separate entries.
`collectionOverrides` and `crawl.globalOverride` still win (e.g. `admin.group` to show an entry again).
### Changed
- The **Cookie banner** global is labelled **Cookies** (pl: Cookies) in every project; the slug `cookie-settings` and
the data are unchanged. Docs and skills use the new name.
### 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
1. `pnpm payload generate:importmap` — with `cookieScanner` it adds `@intecion/ipal-kit/admin#CookieReviewTab` and
(with `crawl`) `@intecion/ipal-kit/admin#CookieSiteCheckTab`; commit `importMap.js`. No migration (no schema change).
2. **Behaviour to know (both overridable):**
- Empty languages of the cookie texts are now filled from the language an editor writes in. To keep empty
languages empty: `ipalKit({ fillEmptyLocales: false })`.
- With `cookieScanner`, the cookie screens are one **Cookies** entry with tabs; Cookie review and Cookie check
are no longer in the navigation. To keep the old entries: `cookieScanner: { adminLayout: 'separate' }`.
3. Tell editors: **Cookie banner** is now **Cookies**; the review list and the site check are its tabs. Update
screenshots and instructions. **Check:** the admin navigation shows one **Cookies** entry; its **Review and
approve** tab lists the review entries; type a cookie purpose in one language, save → the other languages show it.
## 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 `