IAPL rename: docs, agent guide, skills, reference site and starter on the new names; changelog draft
- docs, AGENT.md, the 16 skills, PROGRAMISTA and README use the preferred names (scripted, same list of forms); past CHANGELOG entries and the proposals in docs/dev are not rewritten - AGENT.md: 'Names: IAPL and ipal-kit' — old name, new name, state in 1.x; what is not renamed; storageNames - iapl-upgrade '→ 1.17.0', PROGRAMISTA §6 item 72, CHANGELOG 1.17.0 (draft): nothing required - env.md, doctor.md (legacy-names, storage-names), stats.md, security.md, project-starter.md, iapl-reference, iapl-setup - skill scripts read ipal-audit-skip and IPAL_IP_HEADER too; audit rule ids stay what they were - reference site: iapl(), iapl-doctor.json, iapl-* skills, storageNames: 'iapl'; INDEX.md regenerated Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
425fac14fb
commit
b91984fbcd
@@ -22,7 +22,7 @@ the texts in the panel (Form messages), grouped per context. Group `form`:
|
||||
all exported from `@intecion/ipal-kit`). In `validation`, `{field}` is the field's label in the page language.
|
||||
For forms: `getFormTexts(locale)` from `lib/content` = the `form` group in the given language.
|
||||
|
||||
Group `lightbox` (only with `ipalKit({ lightbox: true })` — adds columns, run a migration on Postgres):
|
||||
Group `lightbox` (only with `iapl({ lightbox: true })` — adds columns, run a migration on Postgres):
|
||||
`open` ("Enlarge image"), `dialog` ("Image viewer"), `previous`, `next`, `close`, `counter`
|
||||
("{current} / {total}"). `getNotificationTexts(...).lightbox` always returns the full set (fallback
|
||||
`LIGHTBOX_FALLBACK`), and `getSiteShell(locale).lightboxTexts` carries it to `<SiteProviders lightbox>`.
|
||||
@@ -103,16 +103,16 @@ users), so the frontend reads them without a session. Write: `editor+` (`adminOr
|
||||
|
||||
## Turn off, override, extend
|
||||
|
||||
- **Turn off:** none — the `notifications` global is currently always added (also without the `forms` option). The `lightbox` group is opt-in (`ipalKit({ lightbox: true })`); `lightboxNotificationFields` puts it in your own global instead.
|
||||
- **Turn off:** none — the `notifications` global is currently always added (also without the `forms` option). The `lightbox` group is opt-in (`iapl({ lightbox: true })`); `lightboxNotificationFields` puts it in your own global instead.
|
||||
- **Override texts:** in the panel, per language; empty field → `notificationFallback(locale)` (Polish on `pl` pages, English otherwise).
|
||||
The fallbacks cannot be swapped with a plugin option — apply your own default texts in the project
|
||||
on the result of `getNotificationTexts` (e.g. `texts.form.error ||= '…'`).
|
||||
- **Override access / hooks / admin:** `ipalKit({ globalOverrides: { notifications: … } })` — an object merges
|
||||
- **Override access / hooks / admin:** `iapl({ globalOverrides: { notifications: … } })` — an object merges
|
||||
`access`, `admin` and `hooks` key by key over the plugin's (e.g. let any logged-in user edit:
|
||||
`{ notifications: { access: { update: authenticated } } }`), a function gets the global and returns the one to use.
|
||||
- **Override mapping:** `resolveFormMessage` is optional — you can map `result.reason`
|
||||
with your own switch.
|
||||
- **Extend:** the global's fields are fixed in the plugin (no `ipalKit` option to add groups / fields);
|
||||
- **Extend:** the global's fields are fixed in the plugin (no `iapl` option to add groups / fields);
|
||||
for a project-only extra, a `globalOverrides.notifications` function can append fields, but
|
||||
`getNotificationTexts` will not read them — a new shared context needs a change in the plugin
|
||||
(`globals/Notifications/fields.ts`, types, fallback).
|
||||
|
||||
Reference in New Issue
Block a user