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:
Radosław Smoliński
2026-11-25 17:36:09 +01:00
co-authored by Claude Fable 5.2
parent 425fac14fb
commit b91984fbcd
149 changed files with 1930 additions and 1747 deletions
+5 -5
View File
@@ -69,7 +69,7 @@ take the archives from Site settings themselves (`archives: { categories: 'kateg
(the link does not render). The entry path is built by `buildEntryPath`, which **always**
adds `/{locale}` — on a single-language site a link to an entry gets a needless `/pl/…` prefix
(`src/modules/links/resolveLinkHref.ts` ~94). Changing `relationTo` to an array changes the data shape (`page` → `{ relationTo, value }`):
existing links must be migrated (ipal-migrate-fields).
existing links must be migrated (iapl-migrate-fields).
## href
@@ -124,13 +124,13 @@ export async function CMSLink({ link, locale, className, children }: { link: Cms
```
**Do not write your own version** (`resolveHref`, `getHref`, `` `/${slug}` ``, `slug === 'home'`): it loses the language
prefix, the home page from Site settings, the `javascript:` filter and dead links. `ipal-audit` reports it as an
prefix, the home page from Site settings, the `javascript:` filter and dead links. `iapl-audit` reports it as an
ERROR. A field in a different shape (e.g. `page` + `url`) is mapped onto the plugin's shape instead of computing the href:
`resolveLink(url?.trim() ? { type: 'external', url } : { type: 'internal', page }, locale)`.
Highlight, color, item variant = **a style from the admin panel** (`appearances`), mapped to classes in the project
(`l.appearance === 'highlight'` → class). Never logic based on content (`label === 'Tesla'`) — the editor renames
it and the style disappears; `ipal-audit` reports it as an ERROR.
it and the style disappears; `iapl-audit` reports it as an ERROR.
## Legal links — `getSystemLinks`
@@ -156,7 +156,7 @@ const items = await resolveNav(header.navItems, locale) // from lib/c
Any depth, configurable item shape (`linkField`, `childrenField`), items with a dead
link or no label are skipped (instead of `href="#"`). The result is plain data — it goes straight to
the client `MobileNav`. Menu markup (Header, Footer, MobileNav) stays in the project:
[nav-code.md](./agent/skills/ipal-nav/resources/nav-code.md).
[nav-code.md](./agent/skills/iapl-nav/resources/nav-code.md).
`homeSlugFrom(settings)` — the home page slug from `SiteSettings.homepage` (lib/content: `getHomeSlug(locale)`,
and the full link option set: `getLinkOptions(locale)` — also for `RenderForm linkOptions`).
@@ -176,7 +176,7 @@ migration is needed**:
## Turn off, override, extend
- The module has no option in `ipalKit()` — you use the fields and resolvers in your collections or you don't.
- The module has no option in `iapl()` — you use the fields and resolvers in your collections or you don't.
- Fields: `name`, `relationTo` (a string or an array), `uploadTo`, `appearances` (your own names or `false`), `disableLabel`, `required`, `interfaceName`; `buildLinksField` also `maxRows`, `labels`.
- Link types (`internal` / `external` / `file`) and the allowed URL schemes are currently fixed; map a field of a different shape onto `LinkValue` before `resolveLink`.
- Building blocks for your own rendering: `resolveLinkHref`, `resolveLink`, `resolveNav` (`linkField`, `childrenField`), `resolveSystemLinks` (`roles`), `homeSlugFrom`, `safeHref`.