diff --git a/README.md b/README.md index 88fb48b..eec9137 100644 --- a/README.md +++ b/README.md @@ -164,7 +164,7 @@ clean working tree): ```bash npm version patch # 1.0.0 → 1.0.1 (commit + tag) -npm publish # prepublishOnly runs: pnpm clean && pnpm build && pnpm test:int +npm publish # prepublishOnly runs: pnpm clean && pnpm build && pnpm build:starter && pnpm test:int && pnpm starter:gate git push && git push --tags ``` diff --git a/docs/accessibility.md b/docs/accessibility.md index 138ffc8..daeaa9a 100644 --- a/docs/accessibility.md +++ b/docs/accessibility.md @@ -172,6 +172,9 @@ The provider re-applies and syncs on the client anyway. This only removes the fl ### State and attributes (`A11yState`) Cookie `a11y-prefs` (`A11Y_COOKIE`, JSON, `path=/`, `max-age` 1 year, `samesite=lax`). +It is written only when the visitor changes a setting, with no consent check: a preference the visitor +chose, no tracking (the same reasoning as the theme choice, theme.md). List it as **necessary** in the +cookie list — the scanner does not declare it, add it with `declarations` (cookie-scanner.md). Widget texts: `texts` prop wins, otherwise `A11Y_DEFAULT_TEXTS[locale]` (`en`, `pl`; prop `locale`, incl. `texts.on` / `texts.off` for the switches). The helpers `A11Y_COOKIE`, `A11Y_DEFAULT`, `parseA11y`, `serializeA11y`, `a11yAttributes` diff --git a/docs/agent/skills/ipal-audit/scripts/polish-literals.mjs b/docs/agent/skills/ipal-audit/scripts/polish-literals.mjs index 1aeb061..3aebbdb 100644 --- a/docs/agent/skills/ipal-audit/scripts/polish-literals.mjs +++ b/docs/agent/skills/ipal-audit/scripts/polish-literals.mjs @@ -4,7 +4,7 @@ // Reads the syntax tree (the project's TypeScript), so comments never count and multi-line forms work. // Not reported: the panel's own labels (AGENT.md §6.5a), only in a schema file — a .ts file under // collections/, globals/, fields/ or blocks/, or one importing Payload's schema types; never a .tsx file: -// - adminText('Title', 'Tytuł') from @intecion/ipal-kit +// - adminText('Title', 'Tytuł') from @intecion/ipal-kit/blocks // - { en: 'Title', pl: 'Tytuł' } as the value of label, singular, plural, description, placeholder or group // - rowLabel('title', { en: 'Item', pl: 'Pozycja' }) from @intecion/ipal-kit // - const TITLE: AdminText = { en: 'Title', pl: 'Tytuł' } diff --git a/docs/agent/skills/ipal-form/SKILL.md b/docs/agent/skills/ipal-form/SKILL.md index 5a2dc9a..70828d8 100644 --- a/docs/agent/skills/ipal-form/SKILL.md +++ b/docs/agent/skills/ipal-form/SKILL.md @@ -175,7 +175,7 @@ Details the seed already covers, which you check after every manual change in th - [ ] unticked consent → a message from Notifications (not the English fallback); - [ ] 6 quick submissions → `rate_limited`; - [ ] Turnstile with keys → widget visible; submitting without solving the widget → `turnstile`; - wrong secret → the form goes through, and the panel (dashboard + Site integrations → Turnstile) shows a red alert; + wrong secret → the form goes through, and the panel (dashboard + Site integrations → Spam protection) shows a red alert; - [ ] Turnstile without keys → no widget, the form goes through; - [ ] second language → labels and messages in that language; - [ ] GTM Preview → an event with the name from the panel after success; diff --git a/docs/agent/skills/ipal-reference/SKILL.md b/docs/agent/skills/ipal-reference/SKILL.md index 1d9b900..ff62320 100644 --- a/docs/agent/skills/ipal-reference/SKILL.md +++ b/docs/agent/skills/ipal-reference/SKILL.md @@ -14,7 +14,7 @@ description: Complete map of everything @intecion/ipal-kit provides — every ip - **The plugin helps, never limits:** every module can be turned off, every default can be overridden, the project config wins, the building blocks (`build*`, `create*`) are exported — compose your own version from them. - Missing option / behaviour that does not match the docs → skill **ipal-plugin-gap** (report). Never patch `node_modules`. -- Described per the 1.12.x code. "currently always" = no option to turn it off today (gap → ipal-plugin-gap). +- Described per the current code (checked against 1.16.3). "currently always" = no option to turn it off today (gap → ipal-plugin-gap). ## 1. `ipalKit({...})` options (`IpalOptions`, `dist/types.d.ts`) @@ -59,7 +59,6 @@ description: Complete map of everything @intecion/ipal-kit provides — every ip | `seo.generateTitle` / `generateDescription` | plugin-seo | preview / generation in the panel | your own function `({ doc }) => string` | | `seo.searchSettings` | tab on (the tab exists with or without `seo`) | Site settings → **Search engines** tab: `searchVerification.google/bing/yandex` (→ `` via `generatePageMetadata`), `aiCrawlers.policy` + `aiCrawlers.rules[]` (→ robots.txt via `getRobots`), localized `llmsIntro` (→ top of `/llms.txt`); empty fields change nothing. Postgres: `migrate:create` after upgrading | `false` = no tab, but this key exists only inside `seo` (which needs `collections`); without `seo` use the top-level `searchSettings: false`. When both are set, the top-level `searchSettings` wins; `(fields) => fields` = your own set (keep the names `searchVerification`, `aiCrawlers`, `llmsIntro` or read your own fields in your routes) | | `searchSettings` | tab on | same tab and values as `seo.searchSettings`, but a top-level option: works **with or without `seo`**; read as `searchSettings ?? seo.searchSettings`, so it wins when both are set | `false` = no tab; `(fields) => fields` = your own set | -| — (no option) | `uploadsCollection: 'media'` | meta image from the `media` collection | currently always `media` (gap) | | `forms` | none | `@payloadcms/plugin-form-builder`: `forms`, `form-submissions` collections | omit | | `forms.adminGroup` | `'Forms'` | sidebar group | `false` = Payload default; `admin.group` in overrides wins | | `forms.fields.*` | on: `checkbox`, `checkboxGroup`, `country`, `date`, `email`, `message`, `number`, `radio`, `select`, `state`, `step`, `text`, `textarea`, `time`; off: `payment` | block types in the builder (all with "Show only when") | `: false`; a block object replaces it; `payment: true` **does nothing** (filtered out) — pass a block object | @@ -89,8 +88,8 @@ description: Complete map of everything @intecion/ipal-kit provides — every ip | `stats.retentionDays` / `timeZone` / `dashboard` | 90 / `'Europe/Warsaw'` / `true` | retention, day boundary, `StatsWidget` | `dashboard: false` hides the chart | | `indexNow` | `false` | `afterChange` hook (publish → IndexNow, production + https only) in the `pages.slug ?? 'pages'` collection and each one from `content` | `true` + `indexnow-key.txt` route | | `lightbox` | `false` | **Image viewer** group in the Form messages global (`notifications`) (image viewer labels: open, dialog, previous, next, close, counter — localized); read by `getNotificationTexts(...).lightbox` / `getSiteShell().lightboxTexts`. Postgres: `migrate:create` | omit = English fallbacks + the `texts` prop; `lightboxNotificationFields` for your own global; `globalOverrides.notifications` | -| `siteSettingsFields` | none | **Custom** tab in Site settings | `Field[]` | -| `integrationsFields` | none | **Custom** tab in Site integrations | `Field[]` | +| `siteSettingsFields` | none | **More** tab in Site settings | `Field[]` | +| `integrationsFields` | none | **More** tab in Site integrations | `Field[]` | | `globalOverrides` | none | changes the plugin's globals (`site-settings`, `site-integrations`, `cookie-settings`, `notifications`): an object merges `access` / `admin` / `hooks` key by key (your keys win, your hooks run after the plugin's), other keys replace; a function `(global) => global` takes over | e.g. `{ notifications: { access: { update: authenticated } } }`; the way to change the plugin globals' access or hooks | | `revalidatePath` | none | `revalidatePath` from `next/cache` (injected): saving any plugin global revalidates the whole layout (`buildGlobalRevalidateHook`) | omit = globals change after the ISR window; once: `context: { disableRevalidate: true }` | | `enabled` | `true` | `false` → collections, globals and fields stay (schema and migrations unchanged), but no plugin endpoints (`/api/ipal/*`), no `onInit` work and no admin components; `i18n` is validated anyway | `false`; check: `payload migrate:create` after switching produces no DROP TABLE | @@ -139,7 +138,7 @@ description: Complete map of everything @intecion/ipal-kit provides — every ip | `IntegrationAlerts` | `beforeDashboard` | **currently always** (renders nothing when everything works) | | `IntegrationStatusBanner` | UI field in the Site integrations tabs | always (with the global) | | `MaskedField` | SMTP / Turnstile secrets | always | -| `TestEmailButton` | Site integrations → SMTP | always | +| `TestEmailButton` | Site integrations → E-mail sending | always | | `MetaDescriptionCheck` | below `meta.description` | `seo` and `descriptionCheck !== false` | | `FaviconCheck` | below Site settings → Site icon (`afterInput`) | always (with the global); remove with a `globalOverrides['site-settings']` function | | `RowLabel` | array row labels (Cookie banner categories and cookie list; your own `rowLabel(...)`) | always | @@ -178,11 +177,11 @@ Mandatory set: AGENT.md §0b, skill **ipal-setup**; checks: **ipal-audit**, **ip | image lightbox (optional) | layout + blocks | `lightbox: true` in `ipalKit`; ``; `` around the thumbnail (`/client`); `` | keyboard: Tab to a thumbnail, Enter → dialog with focus on Close, ←/→, Esc → focus back; Network: a resized file on a phone | lightbox.md | | image on the frontend | `Media` primitive | ``, video `videoProps` | blur before load | media.md | | storage | `payload.config.ts` | `buildR2Storage(['media'], { s3Storage })` — always (without `R2_*` = local disk) | upload → URL from `R2_PUBLIC_URL` | storage.md | -| e-mail | `payload.config.ts` | `email: mailAdapter()` (SMTP from the panel / Graph from env; also `panelSmtpAdapter`, `graphAdapter`, `sendEmail` from `/server`) | Site integrations → SMTP → **Send test** | email.md | +| e-mail | `payload.config.ts` | `email: mailAdapter()` (SMTP from the panel / Graph from env; also `panelSmtpAdapter`, `graphAdapter`, `sendEmail` from `/server`) | Site integrations → E-mail sending → **Send test** | email.md | | forms — action | `app/(frontend)/[locale]/actions.ts` | `'use server'`; `export const sendForm = createSubmitAction({ getCachedPayload, headers })` (`/server`) | submit → document in Form Submissions + e-mails | forms.md, skill **ipal-form** | | forms — files | config + panel | `forms: { attachments: true }`; a **File** field on the form; an e-mail with fixed recipients in Forms → E-mails; `mailAdapter({ graph: { largeAttachments } })` when Graph must stay under 3 MB; Azure: `Mail.ReadWrite` limited to the forms mailbox for files of 3 MB and more over Graph | Test e-mail with "Attach a 10 MB test file" arrives; a submission with a PDF arrives with the attachment; nothing in Media | forms.md "Files", email.md "Attachments" | | forms — render | form block | `` (`/rsc`) | form from the panel, Turnstile, message from Notifications | forms.md | -| Turnstile | panel / env | `SiteProviders` wires `TurnstileProvider`; keys in Site integrations → Turnstile or env; server: `verifyTurnstile` (`/server`) | widget in the form; dashboard alert on a bad key | turnstile.md | +| Turnstile | panel / env | `SiteProviders` wires `TurnstileProvider`; keys in Site integrations → Spam protection or env; server: `verifyTurnstile` (`/server`) | widget in the form; dashboard alert on a bad key | turnstile.md | | consent | layout + policy page | banner via `SiteProviders`; table `` (`/rsc`) from `getCookieTable` | `ipal-consent-check`; delete the consent cookie → the banner comes back | consent.md | | cookie crawl | config + env + service | `cookieScanner: { crawl: true }`, `IPAL_COOKIE_SCAN_URL` / `IPAL_COOKIE_SCAN_TOKEN`, site in the service's `IPAL_CRAWLER_SITES`; optional Coolify scheduled task `curl -X POST -H "Authorization: Bearer $IPAL_COOKIE_SCAN_TOKEN" $U/api/ipal/cookie-crawl` | **Check site** → "Last crawl …: N pages, N violations"; *Privacy → Cookie check* | cookie-scanner.md → Browser crawl | | cookie list | config | `cookieScanner: true` (+ `declarations` for embeds/chat), `generate:importmap`, `migrate:create` | *Cookie review* → **Scan cookies** → **Review and approve** → **Approve and add** → Cookies → Cookie list; `` and `` list it | cookie-scanner.md | @@ -238,7 +237,7 @@ and what throws without `i18n`: frontend.md. `SiteProviders` props: `shell`, `ba | `R2_BUCKET`, `R2_ENDPOINT`, `R2_ACCESS_KEY_ID`, `R2_SECRET_ACCESS_KEY` | `storage: true` + production, or when at least one is set (all or none) | local disk (in prod files disappear on redeploy); incomplete set → warning | env | | `R2_PUBLIC_URL` | optional; required only with `ipalEnvRules({ storage: { requirePublicUrl: true } })` (then like the other `R2_*`); absolute URL in prod when set | empty (default) → media served by the app at `/api/media/file/…` (Media needs `access.read: () => true`); set it only for a media domain on Cloudflare (storage.md); `R2_PUBLIC_URL` alone in dev = media read-only; `/media` allowed outside prod; also used by `buildImagesConfig`, `MediaPreconnect`, CSP | env | | `GRAPH_TENANT_ID`, `GRAPH_CLIENT_ID`, `GRAPH_CLIENT_SECRET`, `GRAPH_SENDER` | `emailGraph: true` / Graph transport in the panel | `mailAdapter` falls back to SMTP from the panel (logged) | env (agency Exchange) | -| `NEXT_PUBLIC_TURNSTILE_SITE_KEY`, `TURNSTILE_SECRET_KEY` | `turnstile: true` (names: `siteKeyVar`/`secretVar`) | fallback for keys from Site integrations → Turnstile; neither set → Turnstile off | panel (takes precedence) or env | +| `NEXT_PUBLIC_TURNSTILE_SITE_KEY`, `TURNSTILE_SECRET_KEY` | `turnstile: true` (names: `siteKeyVar`/`secretVar`) | fallback for keys from Site integrations → Spam protection; neither set → Turnstile off | panel (takes precedence) or env | | `INDEXNOW_KEY` | no | key from Site integrations → IndexNow (generated) | env or panel | | `IPAL_IP_HEADER` | `ipHeader: true` + production | rate limit trusts any IP header (spoofing) + warning in prod | env: `cf-connecting-ip` (Cloudflare) / `x-forwarded-for` (Traefik/nginx) | | `IPAL_COOKIE_SCAN_URL`, `IPAL_COOKIE_SCAN_TOKEN` | `cookieScanner.crawl` (`ipalEnvRules({ cookieCrawl: true })` requires both in production; token ≥ 16 chars) | **Check site** disabled, the box names the missing variable | env; the token also goes into the scanner service's `IPAL_CRAWLER_SITES` as `host=token` | diff --git a/docs/agent/skills/ipal-reference/resources/api.md b/docs/agent/skills/ipal-reference/resources/api.md index c0f46d9..193313e 100644 --- a/docs/agent/skills/ipal-reference/resources/api.md +++ b/docs/agent/skills/ipal-reference/resources/api.md @@ -567,7 +567,7 @@ Server only (`pnpm payload run`); never import it from client code, the Payload | `upsertBySlug(collection, data \| data[], { slugField? })` | (method of `createSeeder`) | Matches by the default-locale slug; an array creates missing records first, so `{ $page: 'slug' }` links work in any order; `{ $form: 'title' }` = the form's id (`formsCollection`, default `forms`). A required field (layout) with references is written complete in the first write; a link to a page later in the same call waits for it; required cycles and unknown targets are an error with nothing written; the dry run reports the same. | | `upsertBy(collection, key, data)` | (method) | Matches by other keys, e.g. a form by `{ title }`. | | `fillGlobal(slug, data)` | (method) | Fills only empty fields of a global — a choice (select, radio, checkbox, number, date) still at its `defaultValue` counts as empty, text never does; a field already holding the seeded value is skipped (all seeded fields with `update` when untouched). | -| `summary()` | (method) | Prints and returns `{ created, skipped, updated, skippedEdited, errors }`; exit 1 when `errors`. | +| `summary()` | (method) | Prints and returns `{ created, skipped, updated, skippedEdited, notListed, errors }`; exit 1 when `errors`. | | `guardSeedExit({ label?, log?, process? })`, `activeSeedExitGuard()` | `@intecion/ipal-kit/seed` | Call first in a seed script: a run that ends before Payload initializes or before `summary()` (Node exiting through an empty event loop under `payload run`) prints `[seed] ended before …` and exits 1 instead of a silent 0. `createSeeder` / `summary()` report to it; `dispose()` stops it. | | `isLocalDatabase(url, { localHosts? })` | `@intecion/ipal-kit/seed` | `true` for SQLite files, Unix sockets, localhost / 127.0.0.1 / ::1 (+ `SEED_LOCAL_HOSTS`). | | `writeLocales(payload, target, data, { context?, draft? })` | `@intecion/ipal-kit/seed` | Writes seed values (`{ pl, en }` per field, or a whole array per locale) to `{ collection, id }` or `{ global }`: default locale first, then every other locale with `fallbackLocale: false` onto the same row ids (shared rows of non-localized arrays and blocks; a `localized: true` field keeps rows per locale). | diff --git a/docs/agent/skills/ipal-seo-check/SKILL.md b/docs/agent/skills/ipal-seo-check/SKILL.md index e054b99..054d205 100644 --- a/docs/agent/skills/ipal-seo-check/SKILL.md +++ b/docs/agent/skills/ipal-seo-check/SKILL.md @@ -31,7 +31,7 @@ Checks the **running** app, not the code — exactly what Googlebot gets. | no JSON-LD structured data | no `` / `` in `[locale]/layout.tsx`, or an empty name in Site settings | | `/llms.txt` / `/llms-full.txt` → 404 | no route (`export { llmsRoute as GET }` / `llmsFullRoute` from `lib/content`) | | Markdown version `/md/…` → 404 | no `src/app/md/[locale]/[[...slug]]/route.ts`; the page is noindex/draft | -| `sitemap.xml → 503` | database unreachable while building the sitemap (`sitemapRoute` returns 503 + Retry-After instead of an empty one) — check `DATABASE_URL` / database health | +| `sitemap.xml → 503` | database unreachable while building the sitemap (`sitemapRoute` returns 503 + Retry-After instead of an empty one) — check `DATABASE_URI` / database health | | sitemap index parts not 200 | site > `maxUrls` (10 000) → `/sitemap.xml` is an index; the `?part=N` parts must answer 200 — your own route without `part` handling, or a CDN cache with an old part count | | MCP not answering initialize | no `src/app/api/mcp/route.ts`, or Cloudflare Access without a Bypass (mcp.md) | diff --git a/docs/agent/skills/ipal-seo-check/scripts/seo-check.mjs b/docs/agent/skills/ipal-seo-check/scripts/seo-check.mjs index 56cec8a..59c7189 100644 --- a/docs/agent/skills/ipal-seo-check/scripts/seo-check.mjs +++ b/docs/agent/skills/ipal-seo-check/scripts/seo-check.mjs @@ -228,7 +228,7 @@ if (issues.noLinks.length) report('WARNING', 'pages without internal links', 'li if (!skipped('jsonld') && issues.jsonLd.length) report('ERROR', 'no JSON-LD structured data', ' WebSite + Organization in [locale]/layout.tsx (AGENT.md §0b.4)', issues.jsonLd.slice(0, 5)) if (!skipped('markdown') && issues.mdAlt.length) report('WARNING', 'no text/markdown alternate link in head', 'createContentHelpers({ markdownAlternate: true }) (AGENT.md §0b.6)', issues.mdAlt.slice(0, 3)) -// --- 4b. Search Console / Bing verification tags (Site Settings → Search & AI) ---- +// --- 4b. Search Console / Bing verification tags (Site Settings → Search engines) ---- // INFO only: domain (DNS) verification — the recommended route — leaves the tags empty. if (!skipped('verification') && sample.length) { const page = await get(sample[0]).catch(() => null) @@ -236,7 +236,7 @@ if (!skipped('verification') && sample.length) { const missing = [['google-site-verification', 'Google Search Console'], ['msvalidate.01', 'Bing Webmaster Tools']] .filter(([name]) => !new RegExp(`]+name="${name}"`, 'i').test(head)) .map(([, label]) => label) - if (missing.length) report('INFO', 'no verification meta tag (fine with DNS / domain verification)', 'only for URL-prefix verification: paste the code in Site Settings → Search & AI', missing) + if (missing.length) report('INFO', 'no verification meta tag (fine with DNS / domain verification)', 'only for URL-prefix verification: paste the code in Site Settings → Search engines', missing) } // --- 5. 404 --------------------------------------------------------------- diff --git a/docs/agent/skills/ipal-setup/SKILL.md b/docs/agent/skills/ipal-setup/SKILL.md index adf2e1a..cbf4f77 100644 --- a/docs/agent/skills/ipal-setup/SKILL.md +++ b/docs/agent/skills/ipal-setup/SKILL.md @@ -74,7 +74,7 @@ pnpm --config.auto-install-peers=false dlx @intecion/ipal-kit@ create < ``` It generates the site from the reference site, writes `.env` (fresh `PAYLOAD_SECRET`), installs from the shipped lockfile, runs `ipal-skills`, `ipal-tokens`, `generate:types`, `generate:importmap`, `typecheck` (and `ipal-doctor ---strict` when shipped), checks for secrets and makes the first commit. **Check:** `git log --oneline` = 1 commit, +--strict --offline` when shipped), checks for secrets and makes the first commit. **Check:** `git log --oneline` = 1 commit, `git status` clean, `AGENTS.md` → "Project decisions" holds every answer, `pnpm typecheck` passes. Then go to stage 11. **Turn off / override:** it stops (nothing written) for **single-language sites** and **a default language other than `pl`** (not supported yet), sites without `en`, URLs without a prefix and @@ -204,7 +204,7 @@ One language: one entry in `locales`, no `[locale]` folder (i18n.md). **Check.** `pnpm payload generate:importmap` (whiteLabel adds admin components) and `pnpm generate:types` without errors (the import map lists `@intecion/ipal-kit/admin#TotpRedirectProvider`); `pnpm dev`, `/admin`: first-user screen → after saving, TOTP setup is enforced (`/admin/setup-totp?back=%2Fadmin`, QR, no reloading); -the panel shows Site settings, Site integrations, Cookie banner, Notifications, the Forms group, Consent records. +the panel shows Site settings, Site integrations, Cookies, Form messages, the Forms group, Consent records. `curl -s -o /dev/null -w '%{http_code}' -X POST localhost:3000/api/ipal/consent -H 'content-type: application/json' -d '{"id":"0123456789abcdef","version":1,"state":{"necessary":true,"functional":false,"analytics":false,"marketing":false}}'` → `201`. @@ -511,7 +511,7 @@ Cookies → Cookie list; on the cookie policy page a block with `` the same list appears in the `settings="detailed"` dialog (labels: Cookies → Settings window → Cookie list headings, every language). **Check.** Panel → Forms: the seeded form; a submission on `/pl` → an entry in Form Submissions + 2 emails (SMTP: -Site integrations → SMTP → Send test); with Turnstile test keys the widget is visible, without a token the submission is rejected; +Site integrations → E-mail sending → Send test); with Turnstile test keys the widget is visible, without a token the submission is rejected; `node .agents/skills/ipal-consent-check/scripts/consent-check.mjs http://localhost:3000/pl` = 0 errors; after a choice in the banner a new record in Consent records. diff --git a/docs/analytics.md b/docs/analytics.md index d40d688..1a984db 100644 --- a/docs/analytics.md +++ b/docs/analytics.md @@ -233,7 +233,7 @@ Container ID and keep GA4 alone, to rule out the container as a variable. - **Extend:** other scripts → `ConsentScript` ([consent.md](./consent.md)); low-level `loadMetaPixel` / `loadClarity` / `loadLinkedIn` / `loadTikTok`, `pushDataLayer` from `/client`; `setDefaultConsent` / `updateConsent` from the root; your own fields in Site integrations via - `ipalKit({ integrationsFields })` (*Custom* tab). + `ipalKit({ integrationsFields })` (*More* tab). ## Meta Pixel via GTM diff --git a/docs/consent.md b/docs/consent.md index 25daa6e..562355a 100644 --- a/docs/consent.md +++ b/docs/consent.md @@ -414,7 +414,7 @@ to add the hook to a config. Nothing to migrate. | Option | `consentLog?: boolean \| { retentionDays?: number; collectionOverrides?: CollectionOverride }` (type `ConsentLogOptions`) | | `retentionDays` | default `1095` (3 years) | | `collectionOverrides` | changes `consent-records`: an object merges `access` / `admin` / `hooks` key by key (your keys win), other keys replace; a function `(collection) => collection` takes over (keep the slug — the endpoint writes to it) | -| Collection | `consent-records` (`CONSENT_LOG_SLUG`), group *Settings*; fields `consentId` (index), `version`, `choices.{necessary,functional,analytics,marketing}`, `createdAt` | +| Collection | `consent-records` (`CONSENT_LOG_SLUG`), group *Privacy*; fields `consentId` (index), `version`, `choices.{necessary,functional,analytics,marketing}`, `createdAt` | | Collection access | `read` / `delete` — admin (without `access`, i.e. no roles: any logged-in account — narrow it with `collectionOverrides`); `create` / `update` — nobody through the API (written only by the endpoint, `overrideAccess`) | | Endpoint | `POST /api/ipal/consent`, public (no login) | | Body | `{ id: string (hex 16–64), version: int ≥ 1, state: { necessary, functional, analytics, marketing: boolean } }` | diff --git a/docs/construction.md b/docs/construction.md index 8297978..dfcaa1c 100644 --- a/docs/construction.md +++ b/docs/construction.md @@ -9,8 +9,8 @@ subpages (e.g. a brief), and everything else is blocked — no code changes, one | Field | Meaning | |---|---| -| Site under construction | turns the mode on | -| Pages still available | pages that still open; **the home page is always available** | +| Maintenance mode | turns the mode on | +| Available pages | pages that still open; **the home page is always available** | | Notice title / text / Close button label | popup content (per language); empty button → `×` with a screen-reader name in the page language ("Close" / "Zamknij") | Fields in the SiteSettings global: group `construction` → `enabled`, `allowedPages` (relationship to the pages diff --git a/docs/cookie-scanner.md b/docs/cookie-scanner.md index a45c619..7105aec 100644 --- a/docs/cookie-scanner.md +++ b/docs/cookie-scanner.md @@ -237,7 +237,7 @@ API route; the admin view is at `COOKIE_APPROVAL_VIEW_PATH` (`/cookie-approval`) ## Collection `cookie-review` -`COOKIE_REVIEW_SLUG`, group *Settings*. Fields: `name`, `storage` (`cookie` / `localStorage` / +`COOKIE_REVIEW_SLUG`, group *Privacy* (with the default `adminLayout: 'combined'` it is out of the navigation and shown as the *Review and approve* tab of *Cookies*). Fields: `name`, `storage` (`cookie` / `localStorage` / `sessionStorage`), `category`, `vendor`, `domain`, `purpose` (localized), `retention` (localized), `setBeforeConsent`, `status` (`draft` / `accepted` / `rejected`), `needsDescription` (set when an unknown cookie is approved without a purpose; cleared when a purpose is written), and read-only diff --git a/docs/deployment.md b/docs/deployment.md index c7a0ea5..5336c9f 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -77,6 +77,7 @@ URLs point at that domain. Outside production, `R2_PUBLIC_URL` alone → read-on | `INDEXNOW_KEY` | ⬜ | SEO | IndexNow key (takes precedence over the key from the panel) | | `IPAL_COOKIE_SCAN_URL`, `IPAL_COOKIE_SCAN_TOKEN` | ⬜ (✅ prod with `ipalEnvRules({ cookieCrawl: true })`) | consent | cookie crawl (`cookieScanner.crawl`): the shared scanner service's URL and this site's token ([cookie-scanner.md](./cookie-scanner.md#browser-crawl)) | | `IPAL_NOINDEX` | ⬜ | SEO | `1`/`true`/`yes` **on staging only** — the whole site is noindex (robots, meta, `X-Robots-Tag`) | +| `IPAL_DOCTOR_TOKEN` | ⬜ | ops | ≥ 32 characters turns on the `ipal-doctor` status endpoint `GET /api/ipal/doctor` (404 without it) — [doctor.md](./doctor.md) | "✅ prod" = required by `ipalEnvRules({ storage: true })` / `({ ipHeader: true })` with `NODE_ENV=production` — as long as the project runs the validation (env.md). The plugin itself does not stop diff --git a/docs/dev/PROGRAMISTA.md b/docs/dev/PROGRAMISTA.md index 03fdb1d..8885aa3 100644 --- a/docs/dev/PROGRAMISTA.md +++ b/docs/dev/PROGRAMISTA.md @@ -119,7 +119,7 @@ layout under `[locale]` (because `` must know the language). ``` Run `pnpm ipal:skills` after install and after every ipal-kit update; commit `.agents/skills/`. (`ipal-skills` is the package `bin` — without the script: `pnpm exec ipal-skills`; options -`--dest `, `--dry-run`, `--no-pointer`.) +`--dest `, `--dry-run`, `--no-pointer`, `--external [ext-a,ext-b]`.) The command also adds to `AGENTS.md` a `…` block with a pointer to AGENT.md and the `ipal-reference` / `ipal-setup` skills, and creates a missing `CLAUDE.md` with the line `@AGENTS.md`. On later runs it replaces only the text between the @@ -555,7 +555,7 @@ Test without a database: `DATABASE_URI=mongodb://invalid-host:27017/x pnpm build ### 4.6 Email — SMTP or Graph Client on M365/Exchange → Graph (SMTP AUTH is often turned off). Own SMTP/Gmail → -SMTP. The switch is in the admin panel (Site integrations → SMTP → Email Transport). +SMTP. The switch is in the admin panel (Site integrations → E-mail sending → Sending method). Graph, one-time: App registration in Azure, the `Mail.Send` application permission + **Grant admin consent**, the `GRAPH_*` variables. `from.address` always = `GRAPH_SENDER` (otherwise `ErrorSendAsDenied`); sender name from the admin panel; the @@ -620,8 +620,8 @@ Do one item at a time, build, check. Order by importance: | 15j | the form front end sends `fetch('/api/form-submissions')` (from this version REST returns 403 for anonymous users) | rewrite as a server action + `submitForm` (skill `ipal-form`) | forms.md | | 15k | Turnstile secret saved by code (`updateGlobal` in `onInit` / an action) or own `verify` without `remoteip` | delete the workaround: secret in the admin panel or env `TURNSTILE_SECRET_KEY`; the plugin does not send `remoteip` and logs the rejection reason | turnstile.md | | 15l | a Turnstile outage blocked forms | nothing in the project: on an error on our side the plugin accepts the submission and shows an alert in the admin panel; `generate:importmap`, Postgres: `migrate:create` | turnstile.md | -| 15m | own plugin moving Notifications into a group; `formOverrides`/`formSubmissionOverrides` only for labels and the admin group | delete — the plugin itself puts Form messages → Settings, and forms → the "Forms" group with labels (`forms.adminGroup`) | forms.md | -| 15n | mail errors visible only in logs | nothing in the project: `mailAdapter()` shows the send error on the dashboard and in Site integrations → SMTP; `generate:importmap`, Postgres: `migrate:create` | email.md | +| 15m | own plugin moving Notifications into a group; `formOverrides`/`formSubmissionOverrides` only for labels and the admin group | delete — the plugin itself puts Form messages in the "Forms" group, and forms → the "Forms" group with labels (`forms.adminGroup`) | forms.md | +| 15n | mail errors visible only in logs | nothing in the project: `mailAdapter()` shows the send error on the dashboard and in Site integrations → E-mail sending; `generate:importmap`, Postgres: `migrate:create` | email.md | | 16 | Hard-coded 404 | 404 role in System pages + `getNotFoundPage` | pages.md | | 16a | `privacyPolicy: { label: 'Polityka prywatności', … }` in the layout | delete the whole parameter; enter the text in Cookies → Privacy link label | consent.md | | 17 | **AI/GEO (mandatory since 1.9.0)** | llms.txt + llms-full.txt, the `/md/…` route, `markdownAlternate: true`, `prefersMarkdown` in the proxy, `/api/mcp`, `buildSummaryField`, AI bots allowed — AGENT.md §0b | content.md, seo.md, mcp.md | @@ -745,9 +745,9 @@ a missing export in `src/index.ts` (`is not a function` in the project), `pnpm a dev is running. `dist/` **is not in git** (`.gitignore`). `prepublishOnly` runs `pnpm clean && pnpm build && -pnpm test:int` before every `npm publish`, so you cannot release a stale dist or a -version with red tests (`pnpm clean && pnpm build` above is only a grep check before the -commit). `prepare` (`pnpm build`) builds the package on install from git and on `pnpm install` in the repo. +pnpm build:starter && pnpm test:int && pnpm starter:gate` before every `npm publish`, so you cannot release a stale +dist, a version with red tests or a starter that does not produce a working site +(docs/project-starter.md; `pnpm clean && pnpm build` above is only a grep check before the commit). `prepare` (`pnpm build`) builds the package on install from git and on `pnpm install` in the repo. `typecheck` and `lint` are **not** in `prepublishOnly` — before a commit: `pnpm typecheck && pnpm lint && pnpm test:int` (CI in `.gitea/workflows/ci.yml` runs typecheck, lint, test:int and build on push and PR). @@ -794,7 +794,8 @@ an empty project (only errors) and a complete one (0 errors). CI (`.gitea/workfl typecheck, lint, tests and build on every push. ### 8.2 Plugin package.json -- `"files": ["dist", "docs", "bin"]` — **the docs and the `ipal-skills` command ship in the package**; agents in projects +- `"files": ["dist", "docs", "bin", "src/modules/block-library"]` — **the docs and the `ipal-skills` command ship in the package** + (the block-library source is what `ipal-blocks eject` copies); agents in projects read `node_modules/@intecion/ipal-kit/docs/agent/AGENT.md`. Without `docs` they have nothing. - One `exports` block, all paths to `./dist/` (not `./src/`). - `payload`, `@payloadcms/*`, `next`, `react` → **`peerDependencies`** diff --git a/docs/email.md b/docs/email.md index 0519a82..912100a 100644 --- a/docs/email.md +++ b/docs/email.md @@ -276,7 +276,7 @@ import { mailAdapter } from '@intecion/ipal-kit' email: mailAdapter() ``` -Panel → Site integrations → SMTP → **Email Transport** (SMTP / Microsoft Graph). +Panel → Site integrations → E-mail sending → **Sending method** (SMTP / Microsoft Graph). The dispatcher reads this choice per send. Guard: if Graph is selected but the secrets are missing in .env → log + fallback to SMTP (no silent failure). @@ -299,7 +299,7 @@ Save your changes before the test — the endpoint reads from the database, not `mailAdapter()` stores the send result in Site integrations (at most once per 10 min while an error persists, immediately when the state changes). When sending fails: - **Dashboard** — a red alert with the cause and a link to Site integrations, -- **Site integrations → SMTP** — a banner with the error (e.g. `SMTP: connect ECONNREFUSED …`, +- **Site integrations → E-mail sending** — a banner with the error (e.g. `SMTP: connect ECONNREFUSED …`, `SMTP: SMTP is not configured…`, `SMTP: Invalid login: 535 …`, `Microsoft Graph: Graph sendMail failed (403).`) and the time. diff --git a/docs/forms.md b/docs/forms.md index 999f7a3..0f4127f 100644 --- a/docs/forms.md +++ b/docs/forms.md @@ -578,7 +578,7 @@ type SubmitFormResult = | { success: true; submissionId: string | number } | { success: false; reason: 'rate_limited' } | { success: false; reason: 'turnstile' } - | { success: false; reason: 'validation'; field?: string; kind?: 'invalid_format' | 'required' | 'too_long' | 'unknown_fields' | 'file_too_large' | 'file_type' | 'file_refused' | 'file_count'; file?: string; max?: number; types?: string; optional?: boolean } + | { success: false; reason: 'validation'; field?: string; kind?: 'invalid_format' | 'required' | 'too_long' | 'unknown_fields' | 'file_too_large' | 'file_type' | 'file_refused' | 'file_count'; label?: string; file?: string; max?: number; types?: string; optional?: boolean } | { success: false; reason: 'delivery'; field?: string; file?: string; optional?: boolean; submissionId?: string | number } // the file could not be e-mailed | { success: false; reason: 'not_found' } | { success: false; reason: 'consent'; field?: string } diff --git a/docs/frontend.md b/docs/frontend.md index 841a864..459ff63 100644 --- a/docs/frontend.md +++ b/docs/frontend.md @@ -161,6 +161,7 @@ It does not mount `AlternateLinksProvider` (i18n.md) — add it yourself if you | `cookieMap` | — | extra cookies per category to clean up after consent is withdrawn | | `jsonLd` | `[]` | extra JSON-LD nodes | | `lightbox` | off | `true` / `{ texts, classNames, icons, loop, unstyled }` → one `` for the site; texts from `shell.lightboxTexts` (Form messages → Image viewer) — lightbox.md | +| `nonce` | — | CSP nonce (`(await headers()).get('x-nonce')` with `createProxy({ csp })`) for the theme script and the analytics tags — security.md | | `preconnect` | `true` | `` to the media origin | | `stats` | off | `true`/props → `` (stats.md) | | `theme` | `false` | `` before the first paint (theme.md) | diff --git a/docs/i18n.md b/docs/i18n.md index 178c745..52c7904 100644 --- a/docs/i18n.md +++ b/docs/i18n.md @@ -101,7 +101,8 @@ archive (when you pass `prefix`, e.g. `/en/articles`), otherwise `/{locale}` (ro instead of a dead end on 404. Both functions take `homeSlug` (default `'home'`, a string or a per-language map) and `prefix` (the archive page slugs per language → `/en/articles/my-post`). `buildLocalizedPath` returns `undefined` when the slug -(or prefix) is missing in a language. +(or prefix) is missing in a language. The fallback paths (archive, `/{locale}`) always carry the +locale prefix, also on a single-language site — a switcher is only for two or more languages. Others: `getDefaultLocale(config)`, `getLocaleDefinition(code, config)`, `negotiateLocale({ config, cookieLocale, acceptLanguage })`, @@ -288,6 +289,8 @@ export const dynamic = 'force-dynamic' ``` Links (`resolveLink`, `resolveNav`, `getSystemLinks`), sitemap, canonical, llms.txt and MCP produce URLs without `/pl` by themselves — the number of languages in `i18n.config.ts` decides, not the folder structure. +Exception: links to content-collection entries (`buildEntryPath`, `buildArchivePath`) always get `/{locale}` +(content.md, links.md). (The `md/[locale]/[[...slug]]` route on a single-language site also serves subpages, but not `/md` — hence `md/[[...slug]]` here.) diff --git a/docs/integrations.md b/docs/integrations.md index c803f13..064344e 100644 --- a/docs/integrations.md +++ b/docs/integrations.md @@ -13,10 +13,10 @@ Currently always added by the plugin. Tabs (unnamed — flat data, e.g. `ga4Meas | Tab | Fields | |---|---| | Analytics | `ga4MeasurementId`, `gtmContainerId`, `metaPixelId`, `clarityProjectId`, `linkedInPartnerId`, `tiktokPixelId` | -| Turnstile | `turnstileSiteKey`, `turnstileSecretKey`, hidden `turnstileStatus` + banner | -| SMTP | `emailTransport` (`smtp` / `graph`), `smtpHost`, `smtpPort`, `smtpUser`, `smtpPassword`, `smtpFromAddress`, `smtpFromName`, test button, hidden `emailStatus` + banner | +| Spam protection | `turnstileSiteKey`, `turnstileSecretKey`, hidden `turnstileStatus` + banner | +| E-mail sending | `emailTransport` (`smtp` / `graph`), `smtpHost`, `smtpPort`, `smtpUser`, `smtpPassword`, `smtpFromAddress`, `smtpFromName`, test button, hidden `emailStatus` + banner | | IndexNow | `indexNowKey` (generated on first save) | -| Custom | fields from the `integrationsFields` option — only when given | +| More | fields from the `integrationsFields` option — only when given | Access: read and write only for the `admin` role (secrets) — anonymous users and editors get nothing over REST/GraphQL. On the server, read through the Local API: @@ -26,7 +26,7 @@ import { getSiteIntegrations } from '@intecion/ipal-kit' const integrations = await getSiteIntegrations(payload) // overrideAccess — do not send the whole thing to the browser ``` -The "Send test" button (SMTP) calls `POST /api/ipal/test-email` (endpoint currently always added). +The "Send test" button (E-mail sending tab) calls `POST /api/ipal/test-email` (endpoint currently always added). ## Integration status — dashboard alert and tab banner @@ -79,5 +79,6 @@ The dashboard `IntegrationAlerts` checks only `emailStatus` and `turnstileStatus are **currently always added** — there is no option to turn them off. Workaround: a project plugin wired after `ipalKit()` that removes / replaces the entry in `config.globals`, `config.endpoints` or `admin.components.beforeDashboard`. -- Extension: `integrationsFields` (the *More* tab). The plugin's tabs, access and labels cannot - currently be overridden with an option. +- Extension: `integrationsFields` (the *More* tab). Access, hooks, labels and tabs: override with + `ipalKit({ globalOverrides: { 'site-integrations': … } })` (an object merges `access` / `admin` / `hooks`, + a function gets the whole global — hooks.md). diff --git a/docs/lightbox.md b/docs/lightbox.md index 2b9de6e..d937ec6 100644 --- a/docs/lightbox.md +++ b/docs/lightbox.md @@ -53,7 +53,7 @@ The provider renders nothing until an image is opened. ipalKit({ …, lightbox: true }) ``` -Adds the **Lightbox** group to **Settings → Notifications**: trigger name ("Enlarge image"), dialog +Adds the **Image viewer** group (`lightbox`) to **Forms → Form messages** (`notifications`): trigger name ("Enlarge image"), dialog name ("Image viewer"), Previous, Next, Close and the counter (`{current} / {total}`) — localized per language. `getNotificationTexts(...).lightbox` reads them; an empty field falls back to English (`LIGHTBOX_FALLBACK`). On Postgres this adds columns: run `pnpm payload migrate:create` and commit the diff --git a/docs/links.md b/docs/links.md index 6605815..f5e3d73 100644 --- a/docs/links.md +++ b/docs/links.md @@ -27,7 +27,7 @@ fields: [ | `required` | `false` | target and label fields are required | | `interfaceName` | `CmsLink` / `CmsLinkPlain` / `CmsLinkNoLabel` / `CmsLinkPlainNoLabel` | type name in `payload-types.ts` | | `maxRows` | `2` | `buildLinksField` only | -| `labels` | `{ singular: 'Button', plural: 'Buttons' }` | `buildLinksField` only — admin panel: "Add Button"; a list of links: `{ singular: 'Link', plural: 'Links' }` | +| `labels` | `{ singular: { en: 'Button', pl: 'Przycisk' }, plural: { en: 'Buttons', pl: 'Przyciski' } }` | `buildLinksField` only — admin panel: "Add Button"; a list of links: `{ singular: 'Link', plural: 'Links' }` (a string or `{ en, pl }`) | `buildLinksField` has a built-in `rowLabel`: a collapsed row shows the button label ("Contact us"), not "Button 01". It needs an importMap entry — diff --git a/docs/mcp.md b/docs/mcp.md index 738b611..4ec1459 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -21,7 +21,7 @@ no `next/server` import. | Tool | Arguments | Returns | |-----------|-----------|--------| | `get_site_info` | `locale?` | site name and description (Site settings), languages, home page and sitemap URLs | -| `list_pages` | `locale?`, `limit?` (default 50, max 200) | published pages **and archive-collection entries** (e.g. blog): title, URL, description (a table of contents). The source is the same index as llms.txt (`collectSiteIndex`), which reads at most 1000 documents per collection | +| `list_pages` | `locale?`, `limit?` (default 50, max 200) | published pages **and archive-collection entries** (e.g. blog): title, URL, description (a table of contents). The source is the same index as llms.txt (`collectSiteIndex`); `list_pages` reads it with `limit: 1000` (at most 1000 documents per collection; llms.txt reads them all) | | `search_content` | `query` (required), `locale?`, `limit?` (default 10, max 50) | list of pages (only the `collection` collection): title, URL, description (or `summaryField`) | | `get_page` | `path` (e.g. `/pl/o-nas`; without a language prefix → default language) | the page as clean Markdown | diff --git a/docs/notifications.md b/docs/notifications.md index e3cc599..4d55327 100644 --- a/docs/notifications.md +++ b/docs/notifications.md @@ -13,8 +13,8 @@ This way no message is hardcoded — everything goes through the panel. ## Config -No options — the **Notifications** global (slug `notifications`, panel group *Settings*) is always built. The editor manages -the texts in the panel (Notifications tab), grouped per context. Group `form`: +No options — the **Notifications** global (slug `notifications`, shown in the panel as **Form messages**, group *Forms*) is always built. The editor manages +the texts in the panel (Form messages), grouped per context. Group `form`: `success`, `error`, `rateLimited`, `turnstile`, `validation`, `consent`, `notFound` and the multi-step form buttons: `next` ("Next"), `back` ("Back"), `stepOf` ("Step {current} of {total}"). Every empty field → the built-in default in the page language @@ -80,12 +80,13 @@ these keys falls back to `validation` / `error`. The result carries `field`, so ## {field} interpolation -The `validation` text may contain `{field}` — it is replaced with the **technical name** of the field with -the error (`name`, not the label), only the first `{field}` occurrence; no name → empty string: +The `validation` text may contain `{field}` — it is replaced with the **label** of the field with +the error in the page language (the technical `name` only when the field has no label), only the first `{field}` occurrence; +no field at fault → the generic `error` text instead: ``` Panel: "Sprawdź pole {field} i spróbuj ponownie." -Result: "Sprawdź pole email i spróbuj ponownie." +Result: "Sprawdź pole E-mail i spróbuj ponownie." ``` ## Adding new contexts diff --git a/docs/pages.md b/docs/pages.md index f7b0d18..68a8bb0 100644 --- a/docs/pages.md +++ b/docs/pages.md @@ -303,7 +303,7 @@ else skip it — otherwise you lose SSG and SEO. ## Turn off, override, extend - Turn off: omit the `pages` option — the System pages and Maintenance tabs disappear (and `content` stops working). -- `roles` limits the set of role fields; field labels and descriptions are currently fixed (in English). -- You cannot add your own roles with the `pages` option — add extra SiteSettings fields with `siteSettingsFields` (the "Custom" tab, payload-helpers.md), but then call the helpers (`getSystemPagePath`, `getSystemLinks`) by hand: `getSystemPagePath({ page: settings.myRole, … })`, `getSystemLinks(locale, ['myRole'])`. +- `roles` limits the set of role fields; field labels and descriptions are fixed (English and Polish, set by the plugin); to change them, override the field through `globalOverrides` (hooks.md). +- You cannot add your own roles with the `pages` option — add extra SiteSettings fields with `siteSettingsFields` (the "More" tab, payload-helpers.md), but then call the helpers (`getSystemPagePath`, `getSystemLinks`) by hand: `getSystemPagePath({ page: settings.myRole, … })`, `getSystemLinks(locale, ['myRole'])`. - 404: `createNotFoundPage` (`load` / `blocks` / `fallback` / `blockProps`) or a fully custom `not-found.tsx` (above). - Catch-all page: `createPageRoute` with `render`, `onMissing`, `homeAlias: false` — or your own page on `resolveRoute`. diff --git a/docs/payload-helpers.md b/docs/payload-helpers.md index ef23f2a..db50167 100644 --- a/docs/payload-helpers.md +++ b/docs/payload-helpers.md @@ -7,19 +7,19 @@ the plugin never calls `getPayload` itself. ## Config The `site-settings` (`SITE_SETTINGS_SLUG`), `site-integrations` (`SITE_INTEGRATIONS_SLUG`), -`cookie-settings` and `notifications` globals are **currently always added** by the plugin (when -`enabled !== false`) — there is no option to skip them or change their slug. +`cookie-settings` and `notifications` globals are **currently always added** by the plugin (also with +`enabled: false`, which keeps the schema) — there is no option to skip them or change their slug. | `ipalKit()` option | What it does | |---|---| -| `siteSettingsFields?: Field[]` | extra SiteSettings fields in a separate **"Custom"** tab (flat data: `settings.myField`) | -| `integrationsFields?: Field[]` | extra SiteIntegrations fields in the "Custom" tab | +| `siteSettingsFields?: Field[]` | extra SiteSettings fields in a separate **"More"** tab (flat data: `settings.myField`) | +| `integrationsFields?: Field[]` | extra SiteIntegrations fields in the "More" tab | SiteSettings tabs (unnamed — flat data): **General** (`siteName`, `siteDescription`, `titleOrder`, `titleSeparator`, `logo`, `defaultShareImage`, `sameAs`, `favicon`, …), **Theme** (`defaultTheme`, `allowThemeToggle`, `themeToggleLabel`), **System pages** -(from `pages` / `content`), **E-mails** (from `forms.emailLayout`), **Maintenance** -(from `pages`), **Custom** (from `siteSettingsFields`). +(from `pages` / `content`), **Search engines** (on by default; `searchSettings: false` removes it, seo.md), **E-mails** (from `forms.emailLayout`), +**Maintenance** (from `pages`), **More** (from `siteSettingsFields`). **Access:** SiteSettings has `read: () => true` — **the whole global, including fields from `siteSettingsFields`, is public** over REST/GraphQL (`/api/globals/site-settings`). @@ -78,7 +78,7 @@ const data = await getGlobal(payload, 'my-global', { locale: 'pl', depth ## Turn off, override, extend -- The plugin's globals are currently always added (no option to turn them off / change slugs); `enabled: false` removes the whole plugin, including them. -- Extension: `siteSettingsFields` / `integrationsFields` (the "Custom" tab); the shape of the existing tabs is fixed. -- You can change a global's access, hooks and fields only by overriding it in the config after `ipalKit` (your own plugin mapping `config.globals`, example in hooks.md). +- The plugin's globals are currently always added (no option to turn them off / change slugs); `enabled: false` keeps them (schema unchanged) and only drops the plugin's endpoints, `onInit` work and admin components. +- Extension: `siteSettingsFields` / `integrationsFields` (the "More" tab). +- Change a global's access, hooks, labels or fields with `ipalKit({ globalOverrides: { 'site-settings': … } })` — an object merges `access` / `admin` / `hooks` key by key, a function gets the whole global (hooks.md "Turn off, override, extend"). - `getGlobal(payload, slug, { locale, depth })` works with any project global. diff --git a/docs/project-starter.md b/docs/project-starter.md index 1f43ace..ec4661a 100644 --- a/docs/project-starter.md +++ b/docs/project-starter.md @@ -180,7 +180,7 @@ compiled code with source maps, docs — is ~340 KB unpacked (~4 % of 7.96 MB) a `_dev` database (MongoDB in its own Docker container) → `pnpm generate:types && pnpm build` → `SEED_ONLY="pages:kontakt" [SEED_DRY_RUN=1] pnpm seed` in production mode → a full seed in production refused (the guard's "full seed refused" message is required; a run where Payload never initialized is inconclusive and retried, up to 3) → -`pnpm start` with `/api/health`, `/pl`, report-only CSP, no `X-Powered-By`, `/llms.txt` → `ipal-doctor --strict` +`pnpm start` with `/api/health`, `/pl`, report-only CSP, no `X-Powered-By`, `/llms.txt` → `ipal-doctor --strict --offline` (when shipped) → with the `nixpacks` CLI on PATH, the same seed inside the Nixpacks image. Each run packs to a new file name and calls `dlx` with `--config.dlx-cache-max-age=0` (pnpm's dlx cache is keyed by the spec, so a reused path would run the previous build), then checks the new site's `.ipal/starter.json` → `source` (the bundle's sha256 and the diff --git a/docs/seeding.md b/docs/seeding.md index d50ce03..d73579e 100644 --- a/docs/seeding.md +++ b/docs/seeding.md @@ -223,7 +223,7 @@ links to a page or form) passes validation: | `upsertBySlug(collection, data \| data[], { slugField })` | matches by the default-locale slug (`slugField`, default `slug`). With an array, missing records are created first (references to existing records resolved, links to pages later in the call filled in pass 2; a required one waits for its page), then every record gets its full content, so pages can link to each other in any order. Unknown targets and required cycles: error, nothing written | | `upsertBy(collection, key, data)` | matches by other natural keys, e.g. `{ title: 'Contact form' }` (all keys must match, default locale) | | `fillGlobal(slug, data)` | fills only the global's empty fields (the default locale decides). A choice — select, radio, checkbox, number, date — still at the field's `defaultValue` counts as empty (Payload stores defaults on the first save, so `defaultTheme: 'system'` can be seeded over `light`); text is never treated so, even when it equals a default. A field that already holds exactly the seeded value is not written (`skip (exists)`), so re-running a seed of defaults changes nothing. With `update` and an untouched global: every seeded field | -| `summary()` | prints the summary and returns `{ created, skipped, updated, skippedEdited, errors }` | +| `summary()` | prints the summary and returns `{ created, skipped, updated, skippedEdited, notListed, errors }` | Each method prints one line per record (see [Running a seed](#running-a-seed)) and returns `{ status, label, id, note }`. A failed write is reported as `error` and the run goes on; exit diff --git a/docs/seo.md b/docs/seo.md index c50136d..977897d 100644 --- a/docs/seo.md +++ b/docs/seo.md @@ -317,7 +317,7 @@ What the sitemap contains: Skips: drafts (`_status !== 'published'`) and documents with `meta.noindex`. When **Site settings → Maintenance** is on — everything except the pages that -stay open (home page + "Pages still available"), because the rest redirects to the +stay open (home page + "Available pages"), because the rest redirects to the notice and a crawler would index that instead of the content. `llms.txt` does the same. Large collections (1.13): documents are read in batches of 500 (`SITEMAP_BATCH_SIZE`), only diff --git a/docs/theme.md b/docs/theme.md index 43e0ca5..ec81777 100644 --- a/docs/theme.md +++ b/docs/theme.md @@ -119,4 +119,4 @@ redraws the widget (the token must be obtained again). A fixed theme: `turnstile - **Extend:** your own switcher on `useTheme()`; `themeScript()` as script text for your own tag; `themeConfigFrom(settings)` to read the settings. Your own fields in Site settings (e.g. extra tokens) — `ipalKit({ siteSettingsFields })`, they go to the - *Custom* tab. + *More* tab. diff --git a/docs/turnstile.md b/docs/turnstile.md index 438c804..1a42430 100644 --- a/docs/turnstile.md +++ b/docs/turnstile.md @@ -97,7 +97,7 @@ and for `degraded` (a problem on our side, see below) — depending on On `degraded` the panel shows the problem: - **Dashboard** — a red "Integration problem…" alert with a link to Site integrations (`admin.components.beforeDashboard`, wired by the plugin automatically), -- **Site integrations → Turnstile** — a banner with the cause, code and time. +- **Site integrations → Spam protection** — a banner with the cause, code and time. The server saves the status when it verifies a form (no cron), at most once per 10 min while the error lasts, and at once when the state changes. Saving new keys in the panel diff --git a/reference/.agents/skills/ipal-audit/scripts/polish-literals.mjs b/reference/.agents/skills/ipal-audit/scripts/polish-literals.mjs index 1aeb061..3aebbdb 100644 --- a/reference/.agents/skills/ipal-audit/scripts/polish-literals.mjs +++ b/reference/.agents/skills/ipal-audit/scripts/polish-literals.mjs @@ -4,7 +4,7 @@ // Reads the syntax tree (the project's TypeScript), so comments never count and multi-line forms work. // Not reported: the panel's own labels (AGENT.md §6.5a), only in a schema file — a .ts file under // collections/, globals/, fields/ or blocks/, or one importing Payload's schema types; never a .tsx file: -// - adminText('Title', 'Tytuł') from @intecion/ipal-kit +// - adminText('Title', 'Tytuł') from @intecion/ipal-kit/blocks // - { en: 'Title', pl: 'Tytuł' } as the value of label, singular, plural, description, placeholder or group // - rowLabel('title', { en: 'Item', pl: 'Pozycja' }) from @intecion/ipal-kit // - const TITLE: AdminText = { en: 'Title', pl: 'Tytuł' } diff --git a/reference/.agents/skills/ipal-form/SKILL.md b/reference/.agents/skills/ipal-form/SKILL.md index 5a2dc9a..70828d8 100644 --- a/reference/.agents/skills/ipal-form/SKILL.md +++ b/reference/.agents/skills/ipal-form/SKILL.md @@ -175,7 +175,7 @@ Details the seed already covers, which you check after every manual change in th - [ ] unticked consent → a message from Notifications (not the English fallback); - [ ] 6 quick submissions → `rate_limited`; - [ ] Turnstile with keys → widget visible; submitting without solving the widget → `turnstile`; - wrong secret → the form goes through, and the panel (dashboard + Site integrations → Turnstile) shows a red alert; + wrong secret → the form goes through, and the panel (dashboard + Site integrations → Spam protection) shows a red alert; - [ ] Turnstile without keys → no widget, the form goes through; - [ ] second language → labels and messages in that language; - [ ] GTM Preview → an event with the name from the panel after success; diff --git a/reference/.agents/skills/ipal-reference/SKILL.md b/reference/.agents/skills/ipal-reference/SKILL.md index 1d9b900..ff62320 100644 --- a/reference/.agents/skills/ipal-reference/SKILL.md +++ b/reference/.agents/skills/ipal-reference/SKILL.md @@ -14,7 +14,7 @@ description: Complete map of everything @intecion/ipal-kit provides — every ip - **The plugin helps, never limits:** every module can be turned off, every default can be overridden, the project config wins, the building blocks (`build*`, `create*`) are exported — compose your own version from them. - Missing option / behaviour that does not match the docs → skill **ipal-plugin-gap** (report). Never patch `node_modules`. -- Described per the 1.12.x code. "currently always" = no option to turn it off today (gap → ipal-plugin-gap). +- Described per the current code (checked against 1.16.3). "currently always" = no option to turn it off today (gap → ipal-plugin-gap). ## 1. `ipalKit({...})` options (`IpalOptions`, `dist/types.d.ts`) @@ -59,7 +59,6 @@ description: Complete map of everything @intecion/ipal-kit provides — every ip | `seo.generateTitle` / `generateDescription` | plugin-seo | preview / generation in the panel | your own function `({ doc }) => string` | | `seo.searchSettings` | tab on (the tab exists with or without `seo`) | Site settings → **Search engines** tab: `searchVerification.google/bing/yandex` (→ `` via `generatePageMetadata`), `aiCrawlers.policy` + `aiCrawlers.rules[]` (→ robots.txt via `getRobots`), localized `llmsIntro` (→ top of `/llms.txt`); empty fields change nothing. Postgres: `migrate:create` after upgrading | `false` = no tab, but this key exists only inside `seo` (which needs `collections`); without `seo` use the top-level `searchSettings: false`. When both are set, the top-level `searchSettings` wins; `(fields) => fields` = your own set (keep the names `searchVerification`, `aiCrawlers`, `llmsIntro` or read your own fields in your routes) | | `searchSettings` | tab on | same tab and values as `seo.searchSettings`, but a top-level option: works **with or without `seo`**; read as `searchSettings ?? seo.searchSettings`, so it wins when both are set | `false` = no tab; `(fields) => fields` = your own set | -| — (no option) | `uploadsCollection: 'media'` | meta image from the `media` collection | currently always `media` (gap) | | `forms` | none | `@payloadcms/plugin-form-builder`: `forms`, `form-submissions` collections | omit | | `forms.adminGroup` | `'Forms'` | sidebar group | `false` = Payload default; `admin.group` in overrides wins | | `forms.fields.*` | on: `checkbox`, `checkboxGroup`, `country`, `date`, `email`, `message`, `number`, `radio`, `select`, `state`, `step`, `text`, `textarea`, `time`; off: `payment` | block types in the builder (all with "Show only when") | `: false`; a block object replaces it; `payment: true` **does nothing** (filtered out) — pass a block object | @@ -89,8 +88,8 @@ description: Complete map of everything @intecion/ipal-kit provides — every ip | `stats.retentionDays` / `timeZone` / `dashboard` | 90 / `'Europe/Warsaw'` / `true` | retention, day boundary, `StatsWidget` | `dashboard: false` hides the chart | | `indexNow` | `false` | `afterChange` hook (publish → IndexNow, production + https only) in the `pages.slug ?? 'pages'` collection and each one from `content` | `true` + `indexnow-key.txt` route | | `lightbox` | `false` | **Image viewer** group in the Form messages global (`notifications`) (image viewer labels: open, dialog, previous, next, close, counter — localized); read by `getNotificationTexts(...).lightbox` / `getSiteShell().lightboxTexts`. Postgres: `migrate:create` | omit = English fallbacks + the `texts` prop; `lightboxNotificationFields` for your own global; `globalOverrides.notifications` | -| `siteSettingsFields` | none | **Custom** tab in Site settings | `Field[]` | -| `integrationsFields` | none | **Custom** tab in Site integrations | `Field[]` | +| `siteSettingsFields` | none | **More** tab in Site settings | `Field[]` | +| `integrationsFields` | none | **More** tab in Site integrations | `Field[]` | | `globalOverrides` | none | changes the plugin's globals (`site-settings`, `site-integrations`, `cookie-settings`, `notifications`): an object merges `access` / `admin` / `hooks` key by key (your keys win, your hooks run after the plugin's), other keys replace; a function `(global) => global` takes over | e.g. `{ notifications: { access: { update: authenticated } } }`; the way to change the plugin globals' access or hooks | | `revalidatePath` | none | `revalidatePath` from `next/cache` (injected): saving any plugin global revalidates the whole layout (`buildGlobalRevalidateHook`) | omit = globals change after the ISR window; once: `context: { disableRevalidate: true }` | | `enabled` | `true` | `false` → collections, globals and fields stay (schema and migrations unchanged), but no plugin endpoints (`/api/ipal/*`), no `onInit` work and no admin components; `i18n` is validated anyway | `false`; check: `payload migrate:create` after switching produces no DROP TABLE | @@ -139,7 +138,7 @@ description: Complete map of everything @intecion/ipal-kit provides — every ip | `IntegrationAlerts` | `beforeDashboard` | **currently always** (renders nothing when everything works) | | `IntegrationStatusBanner` | UI field in the Site integrations tabs | always (with the global) | | `MaskedField` | SMTP / Turnstile secrets | always | -| `TestEmailButton` | Site integrations → SMTP | always | +| `TestEmailButton` | Site integrations → E-mail sending | always | | `MetaDescriptionCheck` | below `meta.description` | `seo` and `descriptionCheck !== false` | | `FaviconCheck` | below Site settings → Site icon (`afterInput`) | always (with the global); remove with a `globalOverrides['site-settings']` function | | `RowLabel` | array row labels (Cookie banner categories and cookie list; your own `rowLabel(...)`) | always | @@ -178,11 +177,11 @@ Mandatory set: AGENT.md §0b, skill **ipal-setup**; checks: **ipal-audit**, **ip | image lightbox (optional) | layout + blocks | `lightbox: true` in `ipalKit`; ``; `` around the thumbnail (`/client`); `` | keyboard: Tab to a thumbnail, Enter → dialog with focus on Close, ←/→, Esc → focus back; Network: a resized file on a phone | lightbox.md | | image on the frontend | `Media` primitive | ``, video `videoProps` | blur before load | media.md | | storage | `payload.config.ts` | `buildR2Storage(['media'], { s3Storage })` — always (without `R2_*` = local disk) | upload → URL from `R2_PUBLIC_URL` | storage.md | -| e-mail | `payload.config.ts` | `email: mailAdapter()` (SMTP from the panel / Graph from env; also `panelSmtpAdapter`, `graphAdapter`, `sendEmail` from `/server`) | Site integrations → SMTP → **Send test** | email.md | +| e-mail | `payload.config.ts` | `email: mailAdapter()` (SMTP from the panel / Graph from env; also `panelSmtpAdapter`, `graphAdapter`, `sendEmail` from `/server`) | Site integrations → E-mail sending → **Send test** | email.md | | forms — action | `app/(frontend)/[locale]/actions.ts` | `'use server'`; `export const sendForm = createSubmitAction({ getCachedPayload, headers })` (`/server`) | submit → document in Form Submissions + e-mails | forms.md, skill **ipal-form** | | forms — files | config + panel | `forms: { attachments: true }`; a **File** field on the form; an e-mail with fixed recipients in Forms → E-mails; `mailAdapter({ graph: { largeAttachments } })` when Graph must stay under 3 MB; Azure: `Mail.ReadWrite` limited to the forms mailbox for files of 3 MB and more over Graph | Test e-mail with "Attach a 10 MB test file" arrives; a submission with a PDF arrives with the attachment; nothing in Media | forms.md "Files", email.md "Attachments" | | forms — render | form block | `` (`/rsc`) | form from the panel, Turnstile, message from Notifications | forms.md | -| Turnstile | panel / env | `SiteProviders` wires `TurnstileProvider`; keys in Site integrations → Turnstile or env; server: `verifyTurnstile` (`/server`) | widget in the form; dashboard alert on a bad key | turnstile.md | +| Turnstile | panel / env | `SiteProviders` wires `TurnstileProvider`; keys in Site integrations → Spam protection or env; server: `verifyTurnstile` (`/server`) | widget in the form; dashboard alert on a bad key | turnstile.md | | consent | layout + policy page | banner via `SiteProviders`; table `` (`/rsc`) from `getCookieTable` | `ipal-consent-check`; delete the consent cookie → the banner comes back | consent.md | | cookie crawl | config + env + service | `cookieScanner: { crawl: true }`, `IPAL_COOKIE_SCAN_URL` / `IPAL_COOKIE_SCAN_TOKEN`, site in the service's `IPAL_CRAWLER_SITES`; optional Coolify scheduled task `curl -X POST -H "Authorization: Bearer $IPAL_COOKIE_SCAN_TOKEN" $U/api/ipal/cookie-crawl` | **Check site** → "Last crawl …: N pages, N violations"; *Privacy → Cookie check* | cookie-scanner.md → Browser crawl | | cookie list | config | `cookieScanner: true` (+ `declarations` for embeds/chat), `generate:importmap`, `migrate:create` | *Cookie review* → **Scan cookies** → **Review and approve** → **Approve and add** → Cookies → Cookie list; `` and `` list it | cookie-scanner.md | @@ -238,7 +237,7 @@ and what throws without `i18n`: frontend.md. `SiteProviders` props: `shell`, `ba | `R2_BUCKET`, `R2_ENDPOINT`, `R2_ACCESS_KEY_ID`, `R2_SECRET_ACCESS_KEY` | `storage: true` + production, or when at least one is set (all or none) | local disk (in prod files disappear on redeploy); incomplete set → warning | env | | `R2_PUBLIC_URL` | optional; required only with `ipalEnvRules({ storage: { requirePublicUrl: true } })` (then like the other `R2_*`); absolute URL in prod when set | empty (default) → media served by the app at `/api/media/file/…` (Media needs `access.read: () => true`); set it only for a media domain on Cloudflare (storage.md); `R2_PUBLIC_URL` alone in dev = media read-only; `/media` allowed outside prod; also used by `buildImagesConfig`, `MediaPreconnect`, CSP | env | | `GRAPH_TENANT_ID`, `GRAPH_CLIENT_ID`, `GRAPH_CLIENT_SECRET`, `GRAPH_SENDER` | `emailGraph: true` / Graph transport in the panel | `mailAdapter` falls back to SMTP from the panel (logged) | env (agency Exchange) | -| `NEXT_PUBLIC_TURNSTILE_SITE_KEY`, `TURNSTILE_SECRET_KEY` | `turnstile: true` (names: `siteKeyVar`/`secretVar`) | fallback for keys from Site integrations → Turnstile; neither set → Turnstile off | panel (takes precedence) or env | +| `NEXT_PUBLIC_TURNSTILE_SITE_KEY`, `TURNSTILE_SECRET_KEY` | `turnstile: true` (names: `siteKeyVar`/`secretVar`) | fallback for keys from Site integrations → Spam protection; neither set → Turnstile off | panel (takes precedence) or env | | `INDEXNOW_KEY` | no | key from Site integrations → IndexNow (generated) | env or panel | | `IPAL_IP_HEADER` | `ipHeader: true` + production | rate limit trusts any IP header (spoofing) + warning in prod | env: `cf-connecting-ip` (Cloudflare) / `x-forwarded-for` (Traefik/nginx) | | `IPAL_COOKIE_SCAN_URL`, `IPAL_COOKIE_SCAN_TOKEN` | `cookieScanner.crawl` (`ipalEnvRules({ cookieCrawl: true })` requires both in production; token ≥ 16 chars) | **Check site** disabled, the box names the missing variable | env; the token also goes into the scanner service's `IPAL_CRAWLER_SITES` as `host=token` | diff --git a/reference/.agents/skills/ipal-reference/resources/api.md b/reference/.agents/skills/ipal-reference/resources/api.md index c0f46d9..193313e 100644 --- a/reference/.agents/skills/ipal-reference/resources/api.md +++ b/reference/.agents/skills/ipal-reference/resources/api.md @@ -567,7 +567,7 @@ Server only (`pnpm payload run`); never import it from client code, the Payload | `upsertBySlug(collection, data \| data[], { slugField? })` | (method of `createSeeder`) | Matches by the default-locale slug; an array creates missing records first, so `{ $page: 'slug' }` links work in any order; `{ $form: 'title' }` = the form's id (`formsCollection`, default `forms`). A required field (layout) with references is written complete in the first write; a link to a page later in the same call waits for it; required cycles and unknown targets are an error with nothing written; the dry run reports the same. | | `upsertBy(collection, key, data)` | (method) | Matches by other keys, e.g. a form by `{ title }`. | | `fillGlobal(slug, data)` | (method) | Fills only empty fields of a global — a choice (select, radio, checkbox, number, date) still at its `defaultValue` counts as empty, text never does; a field already holding the seeded value is skipped (all seeded fields with `update` when untouched). | -| `summary()` | (method) | Prints and returns `{ created, skipped, updated, skippedEdited, errors }`; exit 1 when `errors`. | +| `summary()` | (method) | Prints and returns `{ created, skipped, updated, skippedEdited, notListed, errors }`; exit 1 when `errors`. | | `guardSeedExit({ label?, log?, process? })`, `activeSeedExitGuard()` | `@intecion/ipal-kit/seed` | Call first in a seed script: a run that ends before Payload initializes or before `summary()` (Node exiting through an empty event loop under `payload run`) prints `[seed] ended before …` and exits 1 instead of a silent 0. `createSeeder` / `summary()` report to it; `dispose()` stops it. | | `isLocalDatabase(url, { localHosts? })` | `@intecion/ipal-kit/seed` | `true` for SQLite files, Unix sockets, localhost / 127.0.0.1 / ::1 (+ `SEED_LOCAL_HOSTS`). | | `writeLocales(payload, target, data, { context?, draft? })` | `@intecion/ipal-kit/seed` | Writes seed values (`{ pl, en }` per field, or a whole array per locale) to `{ collection, id }` or `{ global }`: default locale first, then every other locale with `fallbackLocale: false` onto the same row ids (shared rows of non-localized arrays and blocks; a `localized: true` field keeps rows per locale). | diff --git a/reference/.agents/skills/ipal-seo-check/SKILL.md b/reference/.agents/skills/ipal-seo-check/SKILL.md index e054b99..054d205 100644 --- a/reference/.agents/skills/ipal-seo-check/SKILL.md +++ b/reference/.agents/skills/ipal-seo-check/SKILL.md @@ -31,7 +31,7 @@ Checks the **running** app, not the code — exactly what Googlebot gets. | no JSON-LD structured data | no `` / `` in `[locale]/layout.tsx`, or an empty name in Site settings | | `/llms.txt` / `/llms-full.txt` → 404 | no route (`export { llmsRoute as GET }` / `llmsFullRoute` from `lib/content`) | | Markdown version `/md/…` → 404 | no `src/app/md/[locale]/[[...slug]]/route.ts`; the page is noindex/draft | -| `sitemap.xml → 503` | database unreachable while building the sitemap (`sitemapRoute` returns 503 + Retry-After instead of an empty one) — check `DATABASE_URL` / database health | +| `sitemap.xml → 503` | database unreachable while building the sitemap (`sitemapRoute` returns 503 + Retry-After instead of an empty one) — check `DATABASE_URI` / database health | | sitemap index parts not 200 | site > `maxUrls` (10 000) → `/sitemap.xml` is an index; the `?part=N` parts must answer 200 — your own route without `part` handling, or a CDN cache with an old part count | | MCP not answering initialize | no `src/app/api/mcp/route.ts`, or Cloudflare Access without a Bypass (mcp.md) | diff --git a/reference/.agents/skills/ipal-seo-check/scripts/seo-check.mjs b/reference/.agents/skills/ipal-seo-check/scripts/seo-check.mjs index 56cec8a..59c7189 100644 --- a/reference/.agents/skills/ipal-seo-check/scripts/seo-check.mjs +++ b/reference/.agents/skills/ipal-seo-check/scripts/seo-check.mjs @@ -228,7 +228,7 @@ if (issues.noLinks.length) report('WARNING', 'pages without internal links', 'li if (!skipped('jsonld') && issues.jsonLd.length) report('ERROR', 'no JSON-LD structured data', ' WebSite + Organization in [locale]/layout.tsx (AGENT.md §0b.4)', issues.jsonLd.slice(0, 5)) if (!skipped('markdown') && issues.mdAlt.length) report('WARNING', 'no text/markdown alternate link in head', 'createContentHelpers({ markdownAlternate: true }) (AGENT.md §0b.6)', issues.mdAlt.slice(0, 3)) -// --- 4b. Search Console / Bing verification tags (Site Settings → Search & AI) ---- +// --- 4b. Search Console / Bing verification tags (Site Settings → Search engines) ---- // INFO only: domain (DNS) verification — the recommended route — leaves the tags empty. if (!skipped('verification') && sample.length) { const page = await get(sample[0]).catch(() => null) @@ -236,7 +236,7 @@ if (!skipped('verification') && sample.length) { const missing = [['google-site-verification', 'Google Search Console'], ['msvalidate.01', 'Bing Webmaster Tools']] .filter(([name]) => !new RegExp(`]+name="${name}"`, 'i').test(head)) .map(([, label]) => label) - if (missing.length) report('INFO', 'no verification meta tag (fine with DNS / domain verification)', 'only for URL-prefix verification: paste the code in Site Settings → Search & AI', missing) + if (missing.length) report('INFO', 'no verification meta tag (fine with DNS / domain verification)', 'only for URL-prefix verification: paste the code in Site Settings → Search engines', missing) } // --- 5. 404 --------------------------------------------------------------- diff --git a/reference/.agents/skills/ipal-setup/SKILL.md b/reference/.agents/skills/ipal-setup/SKILL.md index adf2e1a..cbf4f77 100644 --- a/reference/.agents/skills/ipal-setup/SKILL.md +++ b/reference/.agents/skills/ipal-setup/SKILL.md @@ -74,7 +74,7 @@ pnpm --config.auto-install-peers=false dlx @intecion/ipal-kit@ create < ``` It generates the site from the reference site, writes `.env` (fresh `PAYLOAD_SECRET`), installs from the shipped lockfile, runs `ipal-skills`, `ipal-tokens`, `generate:types`, `generate:importmap`, `typecheck` (and `ipal-doctor ---strict` when shipped), checks for secrets and makes the first commit. **Check:** `git log --oneline` = 1 commit, +--strict --offline` when shipped), checks for secrets and makes the first commit. **Check:** `git log --oneline` = 1 commit, `git status` clean, `AGENTS.md` → "Project decisions" holds every answer, `pnpm typecheck` passes. Then go to stage 11. **Turn off / override:** it stops (nothing written) for **single-language sites** and **a default language other than `pl`** (not supported yet), sites without `en`, URLs without a prefix and @@ -204,7 +204,7 @@ One language: one entry in `locales`, no `[locale]` folder (i18n.md). **Check.** `pnpm payload generate:importmap` (whiteLabel adds admin components) and `pnpm generate:types` without errors (the import map lists `@intecion/ipal-kit/admin#TotpRedirectProvider`); `pnpm dev`, `/admin`: first-user screen → after saving, TOTP setup is enforced (`/admin/setup-totp?back=%2Fadmin`, QR, no reloading); -the panel shows Site settings, Site integrations, Cookie banner, Notifications, the Forms group, Consent records. +the panel shows Site settings, Site integrations, Cookies, Form messages, the Forms group, Consent records. `curl -s -o /dev/null -w '%{http_code}' -X POST localhost:3000/api/ipal/consent -H 'content-type: application/json' -d '{"id":"0123456789abcdef","version":1,"state":{"necessary":true,"functional":false,"analytics":false,"marketing":false}}'` → `201`. @@ -511,7 +511,7 @@ Cookies → Cookie list; on the cookie policy page a block with `` the same list appears in the `settings="detailed"` dialog (labels: Cookies → Settings window → Cookie list headings, every language). **Check.** Panel → Forms: the seeded form; a submission on `/pl` → an entry in Form Submissions + 2 emails (SMTP: -Site integrations → SMTP → Send test); with Turnstile test keys the widget is visible, without a token the submission is rejected; +Site integrations → E-mail sending → Send test); with Turnstile test keys the widget is visible, without a token the submission is rejected; `node .agents/skills/ipal-consent-check/scripts/consent-check.mjs http://localhost:3000/pl` = 0 errors; after a choice in the banner a new record in Consent records.