ipal-upgrade: one "→ 1.14.5" section with the 7 steps (replaces the two unversioned notes). PROGRAMISTA §6: item 54. seo.md points at 1.14.5. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
53f9010910
commit
838a2f70b2
@@ -160,12 +160,22 @@ Cookies in every language; the dashboard shows the reminder while cookies wait.
|
||||
**Check:** one **Cookies** entry in the admin navigation; its tabs list the review entries and the site check;
|
||||
type a cookie purpose in one language and save → the other languages show it, and a language with its own text keeps it.
|
||||
|
||||
**→ panel link preview (`adminMeta`, `agency`):** remove a hand-written `admin.meta` that only set
|
||||
the panel title, description, `openGraph` or `robots: noindex` — the plugin now fills them from Site settings
|
||||
(keep any key you really want: your `admin.meta` keys win). The credit reads "Technology support: Intecion.com".
|
||||
Check: `curl -s $URL/admin/login | grep -E 'og:|robots'` and paste an `/admin` link in Slack.
|
||||
|
||||
**→ title separator / GraphQL fix (CHANGELOG Unreleased, item 5):** Site settings → Title separator now stores
|
||||
**→ 1.14.5 (PROGRAMISTA §6, item 54; CHANGELOG 1.14.5 "What projects must update" — do all 7, in order):**
|
||||
1. **Cookie storage type (Postgres/SQLite):** `pnpm payload migrate:create cookie-storage-type` → `migrate` (only adds
|
||||
`cookie_settings_cookies.storage`, default `cookie`, and `cookie_settings_locales.detail_labels_storage`). Existing
|
||||
rows become *Cookie*: set the type of local/session-storage rows by hand. MongoDB: nothing.
|
||||
2. **Theme key:** code that reads `localStorage.getItem('ipal-theme')` → `THEME_STORAGE_KEY` /
|
||||
`documentThemeStorageKey()`; a project that also runs next-themes and wants separate keys →
|
||||
`ipalKit({ theme: { storageKey } })`. Visitors keep their choice (moved before first paint).
|
||||
3. **Cookie list:** after the next **Scan cookies**, approve the new *theme* entry; remove an old *ipal-theme* row.
|
||||
4. **Panel link preview (`adminMeta`, `agency`):** nothing required. Remove a hand-written `admin.meta` that only set
|
||||
the panel title, description, `openGraph` or `robots: noindex` (your `admin.meta` keys still win). The credit reads
|
||||
"Technology support: Intecion.com" — `agency: false` or `whiteLabel: { credit: false }` to remove it.
|
||||
**Check:** `curl -s $URL/admin/login | grep -E 'og:|robots'`, open `$URL/api/ipal/admin-og`, paste an `/admin` link
|
||||
in Slack.
|
||||
5. **Dependency advisories:** the "Every upgrade — dependency advisories" step above, now with the
|
||||
`graphql-scalars` override; Node.js 22 recommended with it.
|
||||
6. **Title separator / GraphQL fix:** Site settings → Title separator now stores
|
||||
names (`pipe`, `endash`, `hyphen`, `middot`, `slash`) instead of `|`, `–`… (which broke `/api/graphql` with 500).
|
||||
**Postgres:** `pnpm payload migrate:create title-separator`, then in the generated file add
|
||||
`${sql.raw(titleSeparatorSql())}` right after the first `ALTER TABLE "site_settings" ALTER COLUMN "title_separator"
|
||||
@@ -175,6 +185,9 @@ for enum` and rolls back. **SQLite / MongoDB:** nothing required. Old values kee
|
||||
at start. A project with its own separator options (`globalOverrides`): use values matching `/^[_A-Za-z][_A-Za-z0-9]*$/`.
|
||||
Check: `curl -s -X POST $URL/api/graphql -H 'content-type: application/json' -d '{"query":"{ SiteSetting { titleSeparator } }"}'` → 200,
|
||||
and the browser tab shows the same separator.
|
||||
Project code that reads `settings.titleSeparator` itself now gets a name: use `titleSeparatorChar()`.
|
||||
7. `pnpm ipal:skills` (new agent rules: architecture questions first, ipal-kit first). Optional with the owner's
|
||||
consent: `pnpm exec ipal-skills --external`.
|
||||
|
||||
## 2. Inventory (no code changes)
|
||||
For **every** item in the PROGRAMISTA §6 table show evidence (grep / file) of whether
|
||||
|
||||
@@ -651,6 +651,7 @@ Do one item at a time, build, check. Order by importance:
|
||||
| 51 | **1.14.2** — a new admin stuck on `/admin/setup-totp?back=null` (the page keeps redirecting to itself), or an own `x-pathname` rule on `/admin` added as a workaround | `pnpm payload generate:importmap` (`TotpRedirectProvider`), commit `importMap.js`, redeploy; delete the workaround; own redirect rules → `twoFactor.provider` | security.md → "The redirect to the 2FA screens", CHANGELOG |
|
||||
| 52 | **1.14.3** — editors open every Cookie review entry one by one to accept it | with `cookieScanner`: `pnpm payload generate:importmap` (`CookieApprovalView`, `CookieCrawlAlert`), Postgres/SQLite `migrate:create` (`change`, `needs_description`); editors use Approve cookies (`/admin/cookie-approval`, linked from Privacy → Cookie review); old flow: `cookieScanner: { approval: false }` | cookie-scanner.md, CHANGELOG 1.14.3 |
|
||||
| 53 | **1.14.4** — cookie texts retyped in every language; three cookie entries in the admin navigation | `pnpm payload generate:importmap` (`CookieReviewTab`, `CookieSiteCheckTab`); empty languages fill themselves (`fillEmptyLocales: false` to keep them empty); with `cookieScanner` one **Cookies** entry with tabs (`cookieScanner: { adminLayout: 'separate' }` for the old entries); Cookie banner is now called Cookies — update editor instructions; no migration | consent.md, cookie-scanner.md, hooks.md, CHANGELOG 1.14.4 |
|
||||
| 54 | **1.14.5** — `/api/graphql` answers 500; graphql-scalars high advisory; theme stored as `ipal-theme`; hand-written `admin.meta` for the panel preview | Postgres: `migrate:create` for the title separator **plus `${sql.raw(titleSeparatorSql())}` after the first `SET DATA TYPE text;`**, and the cookie storage type; `graphql-scalars` override (Node 22 recommended); `THEME_STORAGE_KEY` instead of `'ipal-theme'`; `titleSeparatorChar()` for a raw `settings.titleSeparator`; remove hand-written panel `admin.meta`; `pnpm ipal:skills` (`--external` optional) | CHANGELOG 1.14.5, seo.md, theme.md, white-label.md, consent.md |
|
||||
|
||||
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`.
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ valid one. Up to 1.14.4 the character itself was stored, which made `/api/graphq
|
||||
still understood. For a custom title builder, `titleSeparatorChar(settings.titleSeparator)` returns the character
|
||||
(`TITLE_SEPARATORS` is the map; any other value is used literally, so a project can add its own options with
|
||||
GraphQL-safe values). For the Postgres upgrade, the migration needs `titleSeparatorSql()`: see the CHANGELOG
|
||||
(Unreleased → What projects must update).
|
||||
(1.14.5 → What projects must update).
|
||||
|
||||
### Where the "Title" comes from (source priority)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user