ipal-upgrade: the 1.14.0 section walks through the 8 "What projects must update" items. PROGRAMISTA §6: item 48 marked 1.14.0, new item 49. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
2051a01190
commit
771dda1c6f
@@ -89,17 +89,28 @@ the banner → `<CookieBanner settings="detailed">` and remove the copy. With `d
|
||||
**Every upgrade — dependency advisories** (AGENT.md §4 item 12): `pnpm audit --prod`; with `payload` 3.90.x add the
|
||||
`dompurify` and `undici` overrides, `pnpm install`, audit again. **Check:** no high or critical.
|
||||
|
||||
**→ after 1.13.0 (admin follow-ups):** `pnpm payload generate:importmap` — new panel component
|
||||
`@intecion/ipal-kit/admin#FaviconCheck` (hint under Site settings → Site icon). **Check:** pick a 32×32 PNG as the
|
||||
site icon → a warning appears under the field; saving still works. Nothing else to change: the statistics tab title,
|
||||
the cookie scanner's integration names and the maintenance notice's close button now follow the language by themselves
|
||||
(`<ConstructionNotice mode={await getConstructionMode(locale)} />` already passes it).
|
||||
|
||||
**→ after 1.13.0 (dependency advisories):** the plugin now brings `nodemailer` 10 (was 8), which needs **Node.js 20 or
|
||||
later** — check the Coolify build image and `.nvmrc` / `engines`. Remove `nodemailer` and `@types/nodemailer` from the
|
||||
project's own `package.json` if someone added them (the plugin's copy is the one `mailAdapter` uses). Then the audit step
|
||||
above. **Check:** Site integrations → E-mail sending → send a test e-mail over SMTP (and over Microsoft Graph when the
|
||||
project uses it); `pnpm audit --prod` → no high or critical.
|
||||
**→ 1.14.0 (PROGRAMISTA §6, items 48–49; CHANGELOG "What projects must update" — do all 8, in order):**
|
||||
1. `pnpm payload generate:importmap` — `@intecion/ipal-kit/admin#FaviconCheck` (hint under Site settings → Site icon)
|
||||
and the `RowLabel` entries are injected into every project; then `pnpm ipal:skills`, `rm -rf .next`. **Check:** pick
|
||||
a 32×32 PNG as the site icon → a warning appears under the field; saving still works.
|
||||
2. **Node.js 20.9 or later** (the plugin's `nodemailer` 10 needs it) — check the Coolify build image and `.nvmrc` /
|
||||
`engines`. Remove `nodemailer` and `@types/nodemailer` from the project's own `package.json` if someone added them
|
||||
(the plugin's copy is the one `mailAdapter` uses). **Check:** Site integrations → E-mail sending → send a test
|
||||
e-mail over SMTP (and over Microsoft Graph when the project uses it).
|
||||
3. **Next.js 16.4.1 or later** — the "Every upgrade — Next.js" step above (`next@^16.4.3`, `sharp@^0.35.5`).
|
||||
4. **Dependency advisories** — the "Every upgrade — dependency advisories" step above (`dompurify` / `undici` overrides
|
||||
on payload 3.90.x). **Check:** `pnpm audit --prod` → no high or critical.
|
||||
5. **Cookie list kept by hand** → offer `cookieScanner: true` (+ `crawl: true` with `IPAL_COOKIE_SCAN_URL`,
|
||||
`IPAL_COOKIE_SCAN_TOKEN` and the site in the service's `IPAL_CRAWLER_SITES`, cookie-scanner.md); an own image modal →
|
||||
`lightbox: true` + `<SiteProviders lightbox>` (PROGRAMISTA item 48). Turning either on → Postgres/SQLite
|
||||
`migrate:create` → `migrate`. Without them: no schema change.
|
||||
6. **Admin languages:** English and Polish by default when the project sets no `i18n.supportedLanguages`. Ask the
|
||||
client; English only → `i18n: { supportedLanguages: { en } }`. Own admin texts → `i18n.translations.<lang>.ipal`.
|
||||
7. **Frontend texts:** validator messages are full sentences and `pl` locales get Polish fallbacks — grep the
|
||||
project's tests and code for the old strings (`'required'`, `'invalid email'`) and update them.
|
||||
8. **Sidebar:** `roles` (users) and Cookie banner → Consent version moved to the sidebar — update editor instructions.
|
||||
Nothing else to change: the statistics tab title, the cookie scanner's integration names and the maintenance
|
||||
notice's close button follow the language by themselves.
|
||||
|
||||
## 2. Inventory (no code changes)
|
||||
For **every** item in the PROGRAMISTA §6 table show evidence (grep / file) of whether
|
||||
|
||||
@@ -645,7 +645,8 @@ Do one item at a time, build, check. Order by importance:
|
||||
| 45 | **1.11.1** — format description in a form field label / time as text | the **Placeholder** field in the admin panel, the **Time** type; Postgres: `migrate:create` | forms.md |
|
||||
| 46 | **1.12.3** — own cookie settings window / cookie list in the banner written in the project | `<CookieBanner settings="detailed">` (list from Cookie banner → Cookie list, captions: Detail labels); delete your own version; Postgres: `migrate:create` | consent.md |
|
||||
| 47 | **1.13.0** — staff access, Search engines, seed scripts, workarounds around plugin globals | without `access`: every logged-in account gets the staff features → `access` or `globalOverrides` / `formOverrides` / `formSubmissionOverrides` / `collectionOverrides`; with `access`: staff need `editor`/`admin`; Postgres: `migrate:create`; check `settingsDepth`, `sitemap()` throwing, 2FA slug, client IP; own seed code → `@intecion/ipal-kit/seed`; global hooks/access plugins → `revalidatePath` / `globalOverrides` | CHANGELOG 1.13.0, AGENT.md §7.1, seo.md, seeding.md |
|
||||
| 48 | **image lightbox** (release after 1.13.0) — own image modal (`useState(index)` + `div role="dialog"`), `glightbox` / other lightbox library, thumbnails linking to the raw file in a new tab | `ipalKit({ lightbox: true })` + Postgres `migrate:create`; `<SiteProviders lightbox>`; `<LightboxTrigger group image={lightboxImage(media, { size })}>` around the thumbnail; delete the old dialog and `pnpm remove glightbox`; old label fields → Form messages → Image viewer | lightbox.md → "Replacing a hand-made modal" |
|
||||
| 48 | **1.14.0 — image lightbox** — own image modal (`useState(index)` + `div role="dialog"`), `glightbox` / other lightbox library, thumbnails linking to the raw file in a new tab | `ipalKit({ lightbox: true })` + Postgres `migrate:create`; `<SiteProviders lightbox>`; `<LightboxTrigger group image={lightboxImage(media, { size })}>` around the thumbnail; delete the old dialog and `pnpm remove glightbox`; old label fields → Form messages → Image viewer | lightbox.md → "Replacing a hand-made modal" |
|
||||
| 49 | **1.14.0** — import map, Node, Next, audit, cookie list, admin languages | `pnpm payload generate:importmap` (`FaviconCheck`, `RowLabel`); Node 20.9+; `next@^16.4.3` + `sharp@^0.35.5` (Next ≤16.4.0 has two RCEs); `pnpm audit --prod` + `dompurify` / `undici` overrides on payload 3.90.x; hand-kept cookie list → `cookieScanner` (+ `crawl`, `IPAL_COOKIE_SCAN_URL` / `IPAL_COOKIE_SCAN_TOKEN`) + `migrate:create`; English-only admin → `i18n.supportedLanguages`; tests on validator strings → full sentences | CHANGELOG 1.14.0, cookie-scanner.md, i18n.md, AGENT.md §4 items 11–12 |
|
||||
|
||||
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`.
|
||||
|
||||
Reference in New Issue
Block a user