# 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.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 `