From ba3d57a77ac718d9e9a6b711da6b4c5f7d336e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Smoli=C5=84ski?= Date: Fri, 13 Nov 2026 17:19:03 +0100 Subject: [PATCH] 1.16.0 upgrade notes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ipal-upgrade: "→ 1.16.0" section. PROGRAMISTA §6: item 61. Reference site: skills and the AGENTS.md pointer on 1.16.0; INDEX.md regenerated. Co-Authored-By: Claude Opus 5.5 --- docs/agent/reference-site/INDEX.md | 2 +- docs/agent/skills/ipal-upgrade/SKILL.md | 15 +++++++++++++++ docs/dev/PROGRAMISTA.md | 1 + reference/.agents/skills/ipal-upgrade/SKILL.md | 15 +++++++++++++++ reference/AGENTS.md | 2 +- 5 files changed, 33 insertions(+), 2 deletions(-) diff --git a/docs/agent/reference-site/INDEX.md b/docs/agent/reference-site/INDEX.md index e4d98cb..07a3c86 100644 --- a/docs/agent/reference-site/INDEX.md +++ b/docs/agent/reference-site/INDEX.md @@ -2,7 +2,7 @@ -The reference site is one complete client site on ipal-kit 1.15.5 ("Example Studio", made up) that uses +The reference site is one complete client site on ipal-kit 1.16.0 ("Example Studio", made up) that uses every convention in AGENT.md. It lives in the plugin repo (`reference/`, not in the npm package). Copy the PATTERN of the file you need; change only the project's content. Files up to 40 lines are below in full; open the rest in the repo at the tag of your plugin version: diff --git a/docs/agent/skills/ipal-upgrade/SKILL.md b/docs/agent/skills/ipal-upgrade/SKILL.md index eb12be6..1abc2f3 100644 --- a/docs/agent/skills/ipal-upgrade/SKILL.md +++ b/docs/agent/skills/ipal-upgrade/SKILL.md @@ -254,6 +254,21 @@ text in a `.tsx` component is still reported. 3. A "cycle of required links" error: make one of the two links optional, or seed one of the pages first. **Check:** `SEED_DRY_RUN=1 pnpm seed` reports 0 errors; the real run creates the same records. +**→ 1.16.0 (PROGRAMISTA §6, item 61; files on forms, e-mailed and never stored; forms.md "Files") — nothing required:** +1. `pnpm ipal:skills`. Existing forms need nothing; without `forms.attachments` nothing changes. No import map change. +2. Only if the site wants files on a form (ask the owner): `ipalKit({ forms: { attachments: true } })`, a **File** field on + the form (panel or seed — `ipal-form` skill), one e-mail of that form with a fixed recipient (no `{{field}}`), + `pnpm generate:types`; Postgres/SQLite: `pnpm payload migrate:create` (additive). Add the `formClasses` keys `file`, + `help`, `fileList`, `fileItem`, `fileRemove`; fill Form messages → Files for languages other than en/pl. +3. A hand-built upload path for a form (own collection, bucket, route): replace it with the File field and remove it + (after the owner confirms nothing else uses the stored files). +4. Deploy: a proxy body limit of at least 12 MB on `/api/ipal/forms/submit` (Coolify's Traefik: none by default; + nginx: `client_max_body_size 12m;`). Mail: Graph needs `Mail.ReadWrite` limited to the forms mailbox for files of + 3 MB and more, or SMTP settings in Site integrations; otherwise the limit is about 2.8 MB. +**Check:** Site integrations → "Send test e-mail" with the 10 MB file arrives; a form submission with a file arrives with +the attachment, and the submission shows **File delivery: Sent**; with Graph, no draft or Sent Items copy is left in the +sender mailbox a minute later. + ## 2. Inventory (no code changes) **What changed for projects** between your old and new plugin version is exactly the reference site's diff — `git diff v v -- reference/` in the ipal-kit repo (or the two `docs/agent/reference-site/INDEX.md` files): diff --git a/docs/dev/PROGRAMISTA.md b/docs/dev/PROGRAMISTA.md index 87d7036..df62f9e 100644 --- a/docs/dev/PROGRAMISTA.md +++ b/docs/dev/PROGRAMISTA.md @@ -668,6 +668,7 @@ Do one item at a time, build, check. Order by importance: | 58 | **1.15.3** — ipal-audit / ipal-doctor report `adminText()` or `{ en, pl }` panel labels as hardcoded Polish text | `pnpm ipal:skills`; remove a temporary `i18n-literals` silence added for such labels; public text is still reported | CHANGELOG 1.15.3, ipal-audit skill | | 59 | **1.15.4** — a seeded form / layout / global array shows only the last language (whole localized arrays) | nothing to change in the seed; repair: `SEED_UPDATE=1` locally, on production `SEED_ONLY` + `SEED_UPDATE=1` + `IPAL_SEED_ALLOW_PROD_UPDATE=1` after a backup; edited records and global arrays by hand | CHANGELOG 1.15.4, seeding.md | | 60 | **1.15.5** — a seeded page with a required layout linking to a page or form fails validation ("… > Layout") | nothing to change in the seed; run it again (dry run first); a missing `$form` / `$page` is now an error in the dry run too; a required link cycle: make one link optional | CHANGELOG 1.15.5, seeding.md | +| 61 | **1.16.0 — files on forms** — a CV / drawing field built by hand (own upload collection, bucket, `` posting to an own route), or "send the file by e-mail" asked for and refused | `forms: { attachments: true }` + a **File** field (panel or seed) + one e-mail with a fixed recipient; Postgres/SQLite `migrate:create`; `generate:types`; `formClasses` keys `file`, `help`, `fileList`, `fileItem`, `fileRemove`; proxy body limit (nginx `client_max_body_size 12m`); Graph: `Mail.ReadWrite` limited to the forms mailbox, or SMTP settings, or ~2.8 MB; test e-mail with the 10 MB file; delete the hand-built upload path; `pnpm ipal:skills` | CHANGELOG 1.16.0, forms.md "Files", email.md "Attachments", deployment.md "Form files" | After updating the package: `pnpm ipal:skills` (new skill versions), `pnpm payload generate:importmap`, `rm -rf .next`, restart dev, grep for the new symbol in `node_modules/@intecion/ipal-kit/dist`. diff --git a/reference/.agents/skills/ipal-upgrade/SKILL.md b/reference/.agents/skills/ipal-upgrade/SKILL.md index eb12be6..1abc2f3 100644 --- a/reference/.agents/skills/ipal-upgrade/SKILL.md +++ b/reference/.agents/skills/ipal-upgrade/SKILL.md @@ -254,6 +254,21 @@ text in a `.tsx` component is still reported. 3. A "cycle of required links" error: make one of the two links optional, or seed one of the pages first. **Check:** `SEED_DRY_RUN=1 pnpm seed` reports 0 errors; the real run creates the same records. +**→ 1.16.0 (PROGRAMISTA §6, item 61; files on forms, e-mailed and never stored; forms.md "Files") — nothing required:** +1. `pnpm ipal:skills`. Existing forms need nothing; without `forms.attachments` nothing changes. No import map change. +2. Only if the site wants files on a form (ask the owner): `ipalKit({ forms: { attachments: true } })`, a **File** field on + the form (panel or seed — `ipal-form` skill), one e-mail of that form with a fixed recipient (no `{{field}}`), + `pnpm generate:types`; Postgres/SQLite: `pnpm payload migrate:create` (additive). Add the `formClasses` keys `file`, + `help`, `fileList`, `fileItem`, `fileRemove`; fill Form messages → Files for languages other than en/pl. +3. A hand-built upload path for a form (own collection, bucket, route): replace it with the File field and remove it + (after the owner confirms nothing else uses the stored files). +4. Deploy: a proxy body limit of at least 12 MB on `/api/ipal/forms/submit` (Coolify's Traefik: none by default; + nginx: `client_max_body_size 12m;`). Mail: Graph needs `Mail.ReadWrite` limited to the forms mailbox for files of + 3 MB and more, or SMTP settings in Site integrations; otherwise the limit is about 2.8 MB. +**Check:** Site integrations → "Send test e-mail" with the 10 MB file arrives; a form submission with a file arrives with +the attachment, and the submission shows **File delivery: Sent**; with Graph, no draft or Sent Items copy is left in the +sender mailbox a minute later. + ## 2. Inventory (no code changes) **What changed for projects** between your old and new plugin version is exactly the reference site's diff — `git diff v v -- reference/` in the ipal-kit repo (or the two `docs/agent/reference-site/INDEX.md` files): diff --git a/reference/AGENTS.md b/reference/AGENTS.md index a875c14..4ba40cd 100644 --- a/reference/AGENTS.md +++ b/reference/AGENTS.md @@ -47,7 +47,7 @@ Write everything in this file in English. -## ipal-kit 1.15.5 — agent guide +## ipal-kit 1.16.0 — agent guide This project is built on `@intecion/ipal-kit` (a Payload CMS 3 plugin). Before you write code: