# 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.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; `<SiteProviders nonce>` 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 <site>/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** — `<LightboxProvider>`, `<LightboxTrigger>`, `<LightboxDialog>`, `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`. - `<SiteProviders lightbox>` 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`, `<DocumentTitle>` (`/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: { <slug>: { 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): `<Analytics consentMode="basic">` 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 → `<meta>` 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** — `<CookieBanner settings="detailed" />`. 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: `<CookieBanner settings="detailed" />`, 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. - **`<NoSnippet>`** (`/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 })` + `<SiteProviders stats={{ locale }}>` (or `<PageStats>` 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 `<NoSnippet>` inside `<footer>` (not on `<footer>` — Google ignores the attribute there): `import { NoSnippet } from '@intecion/ipal-kit/rsc'`. The same for a repeated contact bar / CTA. 3. Optional: existing pages without a description get one on their next save. To get it now — save them in the panel. Project without a `layout` field (blocks under another name): `autoFill: { content: '<field name>' }`. 4. Check: `ipal-seo-check` with no warnings about the footer and duplicated descriptions; in Search Console → URL Inspection → request re-indexing of the main pages. 5. Optional, statistics: `stats: true` in `ipalKit`, `stats={{ locale }}` in `<SiteProviders>`, `pnpm payload generate:importmap`, migration (Postgres). In the panel, add `ipal_vid` (analytics) to Cookie Settings → Cookies and update the privacy policy — ready-made text in stats.md. ## 1.12.0 ### New - **Lazy 404 page** — `createNotFoundPage(content, { load })` + `renderNotFoundView(content, { blocks, blockProps, fallback }, locale)` (`/rsc`) in a project server action; `<NotFoundLoader>` (`/client`). Next puts the layout's `not-found` tree into the RSC data of EVERY page; the `{ blocks }` variant rendered the 404 page from the panel there in every language (404 = home page, 2 languages: home page HTML 195 → 146 KB gzip, RSC data −42%). Now the data holds only the loader; the content arrives when the 404 is shown. `renderNotFoundView` accepts only configured languages. Details: pages.md → "404 page". ### Requires project changes Nothing mandatory — `createNotFoundPage(content, { blocks })` works as before. Recommended (every project with a 404 from the panel, especially 404 = home page or several languages): 1. `src/app/(frontend)/[locale]/notFoundView.ts` (`.tsx` when `fallback` is JSX): `'use server'` + `export async function loadNotFoundView(locale: string) { return renderNotFoundView(content, { blocks: blockRegistry, blockProps, fallback }, locale) }` — move the options over from `not-found.tsx`. 2. `not-found.tsx`: `export default createNotFoundPage(content, { load: loadNotFoundView })`. 3. Check: the HTML of any page has no 404 page content (`self.__next_f`), and an unknown address (e.g. `/xx/test`) still gives a 404 with the content from the panel. ## 1.11.1 ### New - **Light / dark theme** — `<ThemeScript>` (`/rsc`, or `<SiteProviders theme>`) sets `data-theme` and `color-scheme` on `<html>` before paint; unstyled `<ThemeSwitcher>` (`role="switch"`), `useTheme()`, `applyTheme` (`/client`). The choice is kept in `localStorage` (`ipal-theme`), synced across tabs. Site Settings → Theme: `defaultTheme: 'system'`, `themeToggleLabel`; `getSiteShell(locale).theme`. Details: theme.md. - **Turnstile in the page theme** — `turnstileTheme` defaults to `'page'` (no page theme = `'auto'` as before). - **Table of contents** — `extractHeadings`, `RenderRichText headingIds` (the same ids), `<TableOfContents>` (`/client`, `aria-current="location"`), `buildTableOfContentsField()`. Details: richtext.md. - **Missing page → home page** — `createPageRoute(…, { redirect, onMissing: 'redirectHome' })` or your own function. - **Forms** — "Placeholder" field (localized) in the text, email, textarea, number blocks; new **Time** type (`HH:MM`, validated on the server). - `buildLinkField({ interfaceName })`. ### Fixes - **`buildRevalidateHook` outside Next** — without `NEXT_RUNTIME` (`payload run`, seed, migrations) or with `context.disableRevalidate` the hook does nothing. Before: `Invariant: static generation store missing`. - **`BuilderForm` no longer scrolls the page to the form** — focus only on step change. Before, React re-ran the effect (Next restoring a visited page, StrictMode) and focus jumped to the first field. - **Placeholder color under transparent images** — `mediaImageProps` gives `backgroundColor` only for JPEG (`placeholderColor`), the hook does not compute a color for images with alpha. No more black rectangles under logos. - **The link type does not depend on field order** — each shape has its own name: `CmsLink`, `CmsLinkPlain` (`appearances: false`), `CmsLinkNoLabel`, `CmsLinkPlainNoLabel`. All of them fit `CmsLink`. - **Mongoose warning on every start** — Cookie Settings field `buttons.save` → `buttons.savePreferences` (`save` is a reserved name). Frontend API unchanged (`texts.buttons.save`). - **ipal-audit** — object keys between JSX elements (`narrow: <A />, wide: <B />`) are no longer reported as hard-coded text; the "page routes rendered dynamically" rule skips the `/md/[locale]` route (route handlers are `force-dynamic` by design). ### Requires project changes - Migration (Postgres/SQLite): `pnpm payload migrate:create` — new fields (placeholder, time, `themeToggleLabel`, the `system` value), rename `buttons_save` → `buttons_save_preferences`: when drizzle asks about the column, choose **rename**; otherwise the button text falls back to the default "Save preferences" and has to be typed in the panel. MongoDB: no migration; the plugin tries to read the old value, but check the "Zapisz" button in the banner and if needed type the text in Cookie Settings → Buttons → Save. - `pnpm payload generate:types` — links without appearance / without a label have new type names; code using `CmsLink` keeps working. - Remove the workarounds from PROGRAMISTA §6 items 38–45 (`WORKAROUND ipal-kit` comments in the project). `pnpm ipal:skills` (new audit). ## 1.11.0 ### New - **Form fields filled by the page** — `values` in `RenderForm`, `BuilderForm` and `useBuilderForm` (`{ subject: 'Pierścionek · białe złoto · 0,70 ct' }`): a read-only field (`classNames.fixed`), in SSR, sent and validated like any other. `prepareBuilderForm` (`/rsc`) — the server half of `RenderForm` for a client component with changing values (a configurator); `publicForm` is exported. No more `publicForm` copies in projects. - **Links to collection entries** — `buildLinkField({ relationTo: ['pages', 'categories', 'products'] })`; `resolveLinkHref` / `resolveLink` / `resolveNav` build `/{locale}/{archive}/{entry}`, `getLinkOptions` provides the archives from Site Settings. - **JSON-LD for entries that are not articles** — `pageJsonLd.entries` (a node per collection) and `buildProductJsonLd` (`Offer` only with a real price). - **`isFirst`** for blocks from `createPageRoute` / `createNotFoundPage` — the first section carries the only `h1`. ### Fixes - `ipalEnvRules({ storage: true })`: `R2_*` required in production; optional in dev (media on disk), but all or none. Before, dev without R2 did not start, so projects made `storage` conditional themselves. - `buildImagesConfig()`: outside production it allows media served by the app (`/api/media/file/**` on `NEXT_PUBLIC_SERVER_URL`) and localhost (`dangerouslyAllowLocalIP`) — without R2, images in dev no longer give 500. ### Requires project changes - Remove the workarounds from PROGRAMISTA §6 items 34–37 (`publicForm` copies, manual remotePatterns for localhost, conditional `storage`, your own JSON-LD graph for entries). - Changing a link's `relationTo` to an array changes the data shape of existing links — migration (ipal-migrate-fields). ## 1.10.1 ### Fixes - **The fallback meta description works.** `createPageMetadata` (and so `createPageRoute` / `generatePageMetadata`) read Site Settings → `siteDescription` but did not pass it to `buildMetadata` — a page without its own `meta.description` had no `<meta name="description">` and no `og:description` (Lighthouse SEO: "Document does not have a meta description"). Regression test in `test/seo.test.ts`. ### Documentation - storage.md → "Media caching": a Cloudflare Cache Rules rule for the media domain (1 year). Files in R2 have no `Cache-Control` (the S3 adapter does not let you set it), and Cloudflare defaults to 4 h. ### Requires project changes - A meta description workaround in the project (filling `description` yourself in `generateMetadata`) can be removed — `export const generateMetadata = route.generateMetadata` is enough. - Cloudflare: add a Cache Rules rule for the media domain (storage.md). ## 1.10.0 ### New - **Cookie banner tailored to the project** — `CookieBanner`: `order` (button order), `settings="modal"` (settings in a centered window: ✕, Escape, click on the backdrop), `controls="switch"` (`role="switch"` switches), `settingsActions` (e.g. Save / Necessary only / Accept), `icon={false}`; `classNames` has a slot for every element (text, each button, modal, category card, switch, badge). Cookie Settings: `eyebrow`, `title`, `settingsDescription`, `alwaysActiveLabel`, `buttons.close`. Details: consent.md → "Layout". ### Fixes - **`/client` no longer pulls the admin panel into the page.** `MaskedField`, `TestEmailButton`, `IntegrationStatusBanner` (they import `@payloadcms/ui`) are now in `/admin`; `sideEffects` in package.json. Every page importing anything from `/client` (CookieBanner, LanguageSwitcher…) loaded ~235 KB gz of panel code. A test guards against regression. ### Requires project changes - `pnpm payload generate:importmap` (panel component paths: `/client#…` → `/admin#…`), `rm -rf .next`. - Import `MaskedField` / `TestEmailButton` / `IntegrationStatusBanner` from `@intecion/ipal-kit/client` → `@intecion/ipal-kit/admin`. - New Cookie Settings fields: Postgres/SQLite → `pnpm payload migrate:create`; MongoDB: no changes. ## 1.9.9 ### New - **Nice emails from forms** (`forms: { emailLayout: true }`): `{{*:table}}` → a readable summary (questions, answer labels, grouped by step, no empty fields) + an email template (logo, accent color, footer from Site Settings → Emails; tables + inline CSS). Hook `forms.beforeEmail`. Details: forms.md → "Nice emails". ### Fixes - `submitForm` saves the submission in the page language — emails (subject, body, confirmation) always went out in the default language, also for visitors of the English version. ### Requires project changes - `emailLayout: true` adds fields to Site Settings → migration (`pnpm payload migrate:create`, with the full set of `R2_*`). Set `serverURL` in `buildConfig` (absolute logo URL and the link in the email). ## 1.9.8 ### New - **Under construction** (developer tool): Site Settings → Under construction — a switch, a "Pages still available" list and the popup texts. When on, only the home page and the selected pages open (in every language); other addresses → home page with a popup, clicking a link to a blocked page → popup instead of navigation. `createPageRoute(…, { redirect })`, `getConstructionMode(locale)`, `<ConstructionNotice>` (`/client`). Details: construction.md. ### Requires project changes - New fields in Site Settings → migration (`pnpm payload migrate:create`, with the full set of `R2_*` if the project uses them). Without `redirect` in `createPageRoute` and without `<ConstructionNotice>` the mode does not work (nothing changes). ## 1.9.7 ### New - **Conditional fields and steps in forms from the panel** ("Show only when", `showWhen`): every field, Checkbox group, message and **Step** can show only for a chosen answer of another field (`field` + comma-separated `values`). A hidden Step drops out of the form together with its fields, the following steps are renumbered. The browser and the server apply the same rule (`visibleFields`): a hidden field is neither required nor saved; GDPR consent (`consent`) is always enforced. Details: forms.md → "Conditional fields and steps". ### Requires project changes - A new group in the form blocks = new database columns. After the upgrade: `pnpm payload migrate:create` (with the full set of `R2_*` if the project uses them) and `pnpm payload migrate`. Existing forms work unchanged (empty "Show only when" = field always visible). ## 1.9.6 ### Fixes - Markdown route: a safe type when reading language codes from the config (no change in behavior). Roll-up release — contains everything from 1.9.2–1.9.5 (multi-step forms, `SiteProviders`, `createPageRoute`, one-line routes, custom link styles, `getSystemLinks`, Markdown on a single-language site, new audit rules). When upgrading from an older version, go through the "Requires project changes" sections from your version upwards. ## 1.9.5 ### Fixes - **Markdown (GEO) on a single-language site:** `/md/kontakt` went to the `md/[locale]/[[...slug]]` route as the language "kontakt" → 404, and `/md` (home page) had no route. `markdownRoute` / `createMarkdownRoute` now works without the `locale` parameter (`app/md/[[...slug]]/route.ts`, language from config), and a route with `[locale]` on a single-language site reads that segment as the slug. ### Documentation - i18n.md: a single-language site on `SiteProviders`, `createPageRoute`, `createNotFoundPage` and `app/md/[[...slug]]`. Removed the wrong advice "set up `[locale]` in advance with one language" (links would be without `/pl`, pages with `/pl`); described moving to several languages (the proxy redirects old addresses). ### Requires project changes - Single-language site with `app/md/[locale]/[[...slug]]/route.ts` → move the file to `app/md/[[...slug]]/route.ts` (no content changes), so that `/md` works for the home page. ## 1.9.4 ### New - **Link styles from the project:** `buildLinkField` / `buildLinksField({ appearances })` accept any names and panel labels — `['primary', { label: 'Highlighted', value: 'highlight' }]`. Before, only primary / secondary / link, which pushed projects to conditions on content (`label === 'Tesla'`). - **Legal links:** `getSystemLinks(locale, roles?)` in `lib/content` (and `resolveSystemLinks`) — href and label (page title in the given language) from Site Settings → System Pages. ### Audit - ERROR: logic based on content (`label?.toLowerCase() === '…'`), Polish text in frontend code literals, link/button fields in globals (`prefooterButtonUrl`, `ctaLabel`…); WARNING: a relationship to `pages` in a global instead of `buildLinkField`. ### Requires project changes - Header/Footer globals with `page` + `url` + `label` fields → `buildLinkField` (the data must be moved — the **ipal-migrate-fields** skill), then `resolveNav` / `resolveLink`; legal links → `getSystemLinks`. ## 1.9.3 ### Audit - `ipal-audit` catches hand-written link building under any name (`resolveHref`, `getHref`…): a home page slug hard-coded in code (`=== 'home'`, `'strona-glowna'`) and a URL glued from the slug (`` `/${slug}` ``, `'/' + slug`) — ERROR pointing to `resolveLink` / `resolveNav`. Such a copy loses the language prefix, the home page from Site Settings, the `javascript:` filter and dead links. - Fix: a comment that starts a line is no longer reported by rules that ignore comments (fewer false alarms). - AGENT.md (forbidden substitutes) and links.md: how to remap a `page` + `url` field to `resolveLink`. ### Requires project changes - New audit ERRORs point to your own link functions — replace them with `resolveLink(link, locale)` from `lib/content` (PROGRAMISTA §6 item 33). ## 1.9.2 Import instead of code: what every project wrote the same way is in the plugin — logic and skeleton. The look stays in the project (classes, your own markup on hooks). Everything is optional: existing project code works unchanged. ### Requires project changes - **Security — your own `FormRenderer`:** the template from `ipal-form` passed the whole form document to the client component. The Local API reads with `overrideAccess`, so the **Emails** tab (company addresses, templates) ended up in the HTML/RSC. Replace the block with `<RenderForm>` (below) or pass to the client only the fields, labels and the confirmation. PROGRAMISTA §6 item 28. - **Postgres:** `pnpm payload migrate:create` — new form field types (Step, Checkbox group, Radio, Date) and the `next` / `back` / `stepOf` texts in Notifications. MongoDB/SQLite (push): no changes. ### New - **Forms from the panel in one line:** `<RenderForm form action locale texts classNames>` (`/rsc`) — rich text, action binding, redirect, only the public part of the form in the browser. Underneath: `BuilderForm` (`/client`, clean accessible HTML without styles, `classNames`, `renderField`) and `useBuilderForm` (all the logic for your own markup). Templates: `ipal-form/resources/FormBlock.tsx`, `formClasses.ts`, `CustomForm.example.tsx` (the old `FormRenderer.tsx` removed). - **Multi-step forms and choice lists:** in the panel, the **Step** blocks (split into screens, title and description per language), **Checkbox group** (multiple choice, min/max), **Radio**, **Date** — on by default (`forms.fields.<type>: false` turns one off). The server checks values from the panel, the number of choices and dates; choices are saved readably ("www, seo"). "Next" validates the current step, a server error returns to the step with the field, focus moves to the new step. Texts: Notifications → `next`, `back`, `stepOf`. - **Layout:** `getSiteShell(locale)` (consent, analytics, Turnstile key, form texts, JSON-LD WebSite + Organization, Site Settings) + `<SiteProviders shell>` (`/rsc`) — providers, banner, cookie button, Analytics, JSON-LD and preconnect in the right order; every part can be replaced or turned off. `siteJsonLd` in `createContentHelpers` for LocalBusiness. - **Page and 404:** `createPageRoute(content, { blocks, notFound, permanentRedirect, blockProps, render })` and `createNotFoundPage(content, { blocks, fallback })` (`/rsc`). - **One-line routes:** `createContentHelpers` returns `llmsRoute`, `llmsFullRoute`, `markdownRoute`, `mcpGET`/`mcpPOST`, `healthRoute`, `indexNowKeyRoute`, `manifest`; the options `summaryField`, `mcp`, `markdown`, `redirectCollections` once in `lib/content.ts`. - **Links and menus:** `resolveLink` (href, `internal`, `targetProps`, `appearance`), `resolveNav` (any depth, dead links skipped), `homeSlugFrom`; in `lib/content`: `resolveLink(link, locale)`, `resolveNav(items, locale)`, `getLinkOptions`, `getHomeSlug`, `resolvePageRedirect`, `getFormTexts`. - **Section fields:** `buildSectionHeaderField`, `buildSectionSettingsField({ backgrounds, anchor, fields })` — the same data shape as the old `src/fields/section*.ts` (no migration). - `useOptionalTurnstile()` — without a provider returns `enabled: false` instead of throwing. ### Documentation and audit - AGENT.md §7 is a full "need → import" catalog; §0b, §3, §6 and PROGRAMISTA §2.7–2.8, §6 (items 28–33) describe the new way; skills ipal-form, ipal-nav, ipal-block, ipal-setup, ipal-upgrade updated. - `ipal-audit` accepts re-export routes and `SiteProviders`; new rules: a copy of the form engine, `src/fields/section*.ts` / `lib/navigation.ts` (WARNING), importing the root / `/rsc` / `/server` in a client component (ERROR). - `docsConsistency` test: every import in the docs exists in the code, every public export is documented. - The sandbox (`dev/`) has a frontend built on these imports (multi-step form at `/pl/kontakt`). ## 1.9.1 ### Requires project changes - **Security — drafts:** never-published pages and entries were available at their address (and in Markdown, MCP, archive lists). Now they are not. Editor preview: `draft: true` in `resolveRoute` / `getArchiveEntries` in `draftMode()`. - **Form submissions** are readable only by the `editor`/`admin` roles (before: any panel account); recipient addresses (Emails tab) disappeared from the public `GET /api/forms`. - **Forms:** the `email` field accepts exactly one address, select only options from the panel, types checked on the server (`kind: 'invalid_format'`). A form sending data in a different shape will be rejected. - **Withdrawing consent deletes tool cookies** (`_ga*`, `_fbp`, `_gcl_*`, Clarity, LinkedIn…), also on the parent domain. - **New fields in globals** (Postgres: `pnpm payload migrate:create`): Site Settings → sameAs; Cookie Settings → Policy version, Cookies; Site Integrations → IndexNow. - **Exports:** `@intecion/ipal-kit/env` and `/fluid.css` finally work (they were in the docs, not in the package). - **`users`:** the plugin adds an auth collection when the project has none — remove the workarounds from `payload.config`. - The AGENT.md §0b set extended to 18 items (`ipal-audit` reports gaps). ### New - SEO/GEO: `getPageJsonLd`, `buildNavigationJsonLd`, `formatOpeningHours` + `type` in `buildLocalBusinessJsonLd`, `sameAsUrls`, IndexNow (`indexNow: true`, `createIndexNowKeyRoute`), `collectSiteIndex` (blog and all languages in llms.txt and MCP), URL + date in the Markdown frontmatter, X/Twitter card, `og:type=article`, images in the sitemap, the default share image works. - Ready-made routes and actions: `createMarkdownRoute`, `createSubmitAction`, `createProxy({ markdown: true })`. - Consent: policy version from the panel, `equalChoice`, consent log (`consentLog`), cookie table (`getCookieTable`, `<CookieTable>`), the `cookie-scan` scanner + import into the panel. - noindex: `IPAL_NOINDEX=1` for staging, Markdown/llms with `X-Robots-Tag: noindex` and canonical, noindex blocked on the home page and archives. - Media: `mediaImageProps`, `videoProps`, `MEDIA_SIZES`, placeholders on upload, `buildImagesConfig`, `<YouTubeEmbed>`, `buildUploadSecurityHeaders`. - Scaling: `fluid-wide.css` (up to 1920 px) and variables that depend on screen height. - `safeHref` (CMS links without `javascript:`), analytics ID validation, full Google Maps CSP preset. - Agent: AGENT.md §0c (content for Google and AI, when to use noindex), §6.0 (component rules), §6.11a/b (scaling, Core Web Vitals), §8a (tests) + the `smoke.spec.ts` template; form seed; new checks in `ipal-audit` and `ipal-seo-check`. ## 1.9.0 ### Requires project changes - **2FA: `twoFactor.plugin` is required.** Removed the fallback dynamic import of `@clocklimited/payload-2fa` (it did not work in Next anyway, and produced a Turbopack warning). `twoFactor: { issuer, plugin: payloadTotp }` — without `plugin` startup ends with a clear error. `twoFactor: false` unchanged. - **Turnstile required when configured.** Both keys (panel or env) → `submitForm` rejects a submission without a valid token (before, a missing token meant skipping verification — a bot could avoid it). No keys → no widget and no verification. One key → turned off + an alert on the dashboard. Layout: `siteKey` from the new `getTurnstileConfig(payload)` instead of `getSiteIntegrations(…).turnstileSiteKey`. Check that every form has the widget. - **The `/api/ipal/test-email` endpoint only for the `admin` role** (other logged-in users → 403). - **`roles` field: only an admin assigns roles, also when creating an account.** Open registration no longer lets `roles: ['admin']` through; the first user and the seed (`overrideAccess`) unchanged. - **The AGENT.md §0b set is mandatory** — SEO, JSON-LD, GEO (llms.txt, llms-full.txt, Markdown, MCP), R2, Turnstile, builder forms, consent, 2FA, health, env. `ipal-audit` reports gaps as `[ERROR] missing: …`, `ipal-seo-check` checks them on the running site. An exception only with the client's decision: `ipal-audit-skip:` in `AGENTS.md`. ### New - `createProxy(…, { markdown: true })` — lets `/md/…` through (before, on a multilingual site the proxy redirected `/md/pl/x` to `/pl/md/pl/x`, so the Markdown route did not work) and rewrites requests with `Accept: text/markdown`. - `createContentHelpers({ markdownAlternate: true })` — `generatePageMetadata` adds `<link rel="alternate" type="text/markdown">`. - MCP: the `get_site_info` and `list_pages` tools; the server stays public (AI browses the site). New helper `listContent`. - `getTurnstileConfig(payload)` → `{ enabled, siteKey }`. - `clientIp(req | headers, { header, trustedProxies })` — `X-Forwarded-For` read from the right (the leftmost entry is set by the client), header pinned via `IPAL_IP_HEADER`; a log warning in production when it is missing. `ipalEnvRules({ ipHeader: true })` requires it in production. - `setRateLimitStore({ hit })` — a shared counter (e.g. Redis) for several instances. - `clientIp` option in `createSearchRoute` and `createMcpRoute`. ### Fixes - Accessibility: category checkboxes in the cookie banner have labels, buttons have `type`, the address field in "Send test" has a label. - Localized collection labels no longer turn into "[object Object]" in the Content tab (`injectSeoTabs`). - Object values in a form submission are saved as JSON, not "[object Object]". - JSDoc and docs: JSON-LD only through `<JsonLdGraph>` (removed examples with `dangerouslySetInnerHTML`). ### Plugin (for ipal-kit developers) - `dist/` out of git; `prepublishOnly` = clean + build + tests, `prepare` builds on install from git. CI in `.gitea/workflows/ci.yml`. - 79 tests (vitest), including integration tests on a real Payload (in-memory SQLite). - `pnpm typecheck`, `pnpm lint` (0 errors), `pnpm test:int`. ## 1.8.14 ### Requires project changes - **2FA: in Next you must inject `twoFactor.plugin`** (`plugin: payloadTotp`). `serverExternalPackages` is not a workaround — the package imports its own `.css`, which Node cannot load. Remove the entry from `next.config` and the adapter with the cast. ### Fixes - `collection` in the 2FA type is `CollectionSlug` (before: `string`) — `plugin: payloadTotp` passes typecheck without a cast (`TS2322`). - The package publishes `bin` — `ipal-skills` works. ## 1.8.13 ### New - **Email sending status in the panel:** `mailAdapter()` saves the result in Site Integrations; an error → an alert on the dashboard and a banner in the SMTP tab. The form keeps working (the submission is saved). After the upgrade: `generate:importmap`, Postgres: `migrate:create`. - Forms in the panel in the **Forms** group with labels (`forms.adminGroup`); Notifications in the Settings group — no overrides in the project. ### Requires project changes - **`POST /api/form-submissions` closed to anonymous users** (403). The frontend submits through a server action + `submitForm` (the `ipal-form` skill). Deliberately public REST → `formSubmissionOverrides.access.create`. ## 1.8.12 ### New - **Turnstile: a failure on our side does not block forms.** `checkTurnstile` (`/server`) distinguishes `pass` / `reject` (bad visitor token) / `degraded` (missing or bad secret, Cloudflare unreachable). `degraded` → submission accepted, an alert on the dashboard (`IntegrationAlerts`) and a banner in Site Integrations → Turnstile. Strict: `submitForm({ turnstileOnConfigError: 'reject' })`. - Turnstile secret from the panel or the `TURNSTILE_SECRET_KEY` env; the rejection reason in the server log. `remoteip` is not sent by default (`sendRemoteIp: true`). - After the upgrade: `generate:importmap`, Postgres: `migrate:create` (`turnstileStatus`). ## 1.8.11 ### New - Per-IP request limit: search (`createSearchRoute`, 120/min) and MCP (`createMcpRoute`, 60 messages/min, batch max 10) → `429` with `Retry-After`. `rateLimit: { max, windowMs }` or `false` (a limiter in front, e.g. Cloudflare WAF). - A shared limiter module (`shared/rateLimit`) for forms, search and MCP. ## 1.8.10 ### Changes - The styled sitemap heading is a fixed "XML Sitemap" (without the site name from Site Settings); the `siteNameField` option removed. Your own title: `sitemapStyle: { title }`. ## 1.8.9 ### New - **`@intecion/ipal-kit/env`** — env validation without Payload and Node, safe in `instrumentation.ts` (the package root broke Edge/Turbopack). - **`fluid.css`** — a fluid typography and spacing scale 360→1280 px (variables only, opt-in, mapping in `@theme`). - `R2_PUBLIC_URL` outside production can be a path (`/media`) — prefixed with `NEXT_PUBLIC_SERVER_URL`; CSP does not add it to `img-src`. - `ipal-audit`: `html-check.mjs` — inline JSON-LD without escaping `<` = ERROR (XSS). ### Fixes - `createSitemapRouteHandler` requires `req` — Next 16 checks the type of the route handler's first argument (`Request | undefined` broke the build). ## 1.8.8 - Restored the optional `req` in the sitemap handler (reverted in 1.8.9). ## 1.8.7 - Type fixes for `routeHandlers` (sitemap handler). ## 1.8.6 ### Fixes - `buildLinkField` imported `src/…` instead of a relative path — an error in the project. ## 1.8.5 ### New - **`sitemapRoute`** from `createContentHelpers`: XML for crawlers, and in the browser a look served by the plugin (`/sitemap.xml?style`, CSS on XML, not XSLT). `sitemapStyle: { accent, credit, title } | false`. ### Requires project changes - One sitemap: `app/sitemap.xml/route.ts` (`export { sitemapRoute as GET }`); remove `app/sitemap.ts` and `public/sitemap.css` (`ipal-audit` reports them). ## 1.8.4 ### New - **`rowLabel()`** (`/admin`) — array rows in the panel show their content ("Kontakt") instead of "Item 01". After adding it: `generate:importmap`. - **`buildOptimizeUploadHook`** — image optimization on upload. - Agent skills: `ipal-site` (a site from brief to report), content seed, `ipal-upgrade` and others. - Cookie banner: `data-ipal` attributes on buttons (tests), labels from the panel texts. ## 1.8.3 ### New - **Links module:** `buildLinkField`, `buildLinksField`, `resolveLinkHref` — a link to a page / URL / file, section buttons as an array (instead of `cta1`, `cta2`). - `createContentHelpers`: `generatePageMetadata` (shares the cache with the route) and the `robots` option; one Site Settings read per language per request. - Section and navigation code templates for the agent (`ipal-block`, `ipal-nav`). ## 1.8.2 ### Fixes - Missing `LocaleView` export in `/client`. ## 1.8.1 ### Fixes - Restored the 1.7.14 changes that the 1.8.0 release reverted by accident (`LocaleView`, 404 without `headers()`, R2 fixes). **Do not use 1.8.0.** ## 1.8.0 - Faulty release: it reverted the 1.7.14 changes — upgrade to 1.8.1 or newer. - Agent documentation moved to `docs/agent/AGENT.md` + skills. ## 1.7.14 ### Requires project changes - **`not-found.tsx` without `headers()`** — Next 16 turned an SSG/ISR page into a dynamic one. The server renders the 404 for every language, `<LocaleView>` picks the version from the URL (pages.md). ### Fixes - `buildR2Storage`: R2 configuration fixes. - Skills for agents (`ipal-audit` and others). ## 1.7.12 ### New - The privacy policy link in the cookie banner is taken automatically from Site Settings → System Pages; the link text in the panel (`privacyLinkLabel`, per language). The old `privacyPolicy.label` in code — deprecated. - New documentation structure: `docs/dev/PROGRAMISTA.md`, AGENT.md, `vibe.md`. ## 1.7.10 ### Fixes - White-label: branding reads Site Settings through the `payload` passed by Payload (without `import('@payload-config')`, which Next did not bundle); the name is localized according to the panel language. ## 1.7.9 ### New - `<Analytics defer>` — tags load on the first interaction or after `deferTimeoutMs` (default 3500 ms) from `load`; Consent Mode unchanged. - Exported loaders `loadMetaPixel`, `loadClarity`, `loadLinkedIn`, `loadTikTok`. ## 1.7.8 ### New - **Meta Pixel, Microsoft Clarity, LinkedIn Insight, TikTok Pixel** in Site Integrations — loaded only after consent to the matching category. - 404 page from the panel (Site Settings → System Pages, `resolveNotFoundPage`). ### Requires project changes - `<Analytics>` must be inside `<ConsentProvider>`. ## 1.7.7 ### Security - `/api/health` and MCP do not return error details (database host, schema) — only a generic message; details in the server log. ## 1.7.6 ### Fixes - **noindex:** the `buildNoindexField` field is top-level (`doc.noindex`) — the earlier write to `meta.noindex` was stripped by plugin-seo, so noindex pages ended up in the sitemap. Sitemap, llms.txt, search and metadata read `noindex`. ## 1.7.4 ### New - 2FA: `twoFactor.plugin` — injecting `payloadTotp` instead of a dynamic import. - White-label: the "Technology supported by Intecion.com" credit under the navigation and on the login screen; a larger logo on the login screen.