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
+60
-59
@@ -1,4 +1,4 @@
|
||||
# PROGRAMISTA.md — install, new project, deployment, ipal-kit development
|
||||
# PROGRAMISTA.md — install, new project, deployment, IAPL development
|
||||
|
||||
> **Who it is for:** a human — a developer at the agency. Rules for writing code (for AI and
|
||||
> for humans) are in [AGENT.md](../agent/AGENT.md); module APIs are in the module files (map in
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
## 0. MAIN RULE — the plugin helps, never limits
|
||||
|
||||
ipal-kit is a plugin: it helps projects, it never limits them.
|
||||
IAPL is a plugin: it helps projects, it never limits them.
|
||||
- Every module / feature can be turned off on its own.
|
||||
- Every default (access rules, fields, hooks, labels, routes, collections, globals) can be
|
||||
overridden — **the project config wins**.
|
||||
@@ -22,11 +22,11 @@ Where the code does not meet this yet, the module docs say so plainly ("currentl
|
||||
|
||||
Contents: 0. Main rule · 1. Install · 2. New project · 3. Environment variables · 4. Deployment
|
||||
(Coolify) · 5. Compliance · 6. Updating an old project · 7. Troubleshooting ·
|
||||
8. ipal-kit development and publishing · 9. Git and Gitea
|
||||
8. IAPL development and publishing · 9. Git and Gitea
|
||||
|
||||
---
|
||||
|
||||
## 1. INSTALLING ipal-kit IN A PROJECT
|
||||
## 1. INSTALLING IAPL IN A PROJECT
|
||||
|
||||
**`.npmrc` in the project root (commit it — it holds no secret):**
|
||||
```ini
|
||||
@@ -42,7 +42,7 @@ pnpm add @payloadcms/plugin-seo @payloadcms/plugin-form-builder # peer depende
|
||||
pnpm add @clocklimited/[email protected] # 2FA (optional peer, but required unless twoFactor: false)
|
||||
pnpm add @payloadcms/storage-s3 # optional peer — only when media live in R2
|
||||
pnpm add tailwindcss @tailwindcss/postcss
|
||||
pnpm exec ipal-skills # agent skills + pointer to the guide in AGENTS.md / CLAUDE.md (§2.1a)
|
||||
pnpm exec iapl-skills # agent skills + pointer to the guide in AGENTS.md / CLAUDE.md (§2.1a)
|
||||
```
|
||||
`nodemailer`, `lucide-react` (`^0.400.0` = only `0.400.x`), `slugify`, `server-only` are regular
|
||||
`dependencies` of the plugin — they install with it, do not add them. The other peers (`payload`,
|
||||
@@ -114,20 +114,20 @@ layout under `[locale]` (because `<html lang>` must know the language).
|
||||
```json
|
||||
// project package.json
|
||||
"scripts": {
|
||||
"ipal:skills": "ipal-skills"
|
||||
"iapl:skills": "iapl-skills"
|
||||
}
|
||||
```
|
||||
Run `pnpm ipal:skills` after install and after every ipal-kit update; commit `.agents/skills/`.
|
||||
(`ipal-skills` is the package `bin` — without the script: `pnpm exec ipal-skills`; options
|
||||
Run `pnpm iapl:skills` after install and after every IAPL update; commit `.agents/skills/`.
|
||||
(`iapl-skills` is the package `bin` — without the script: `pnpm exec iapl-skills`; options
|
||||
`--dest <dir>`, `--dry-run`, `--no-pointer`, `--external [ext-a,ext-b]`.)
|
||||
The command also adds to `AGENTS.md` a `<!-- ipal-kit:start -->…<!-- ipal-kit:end -->` block
|
||||
with a pointer to AGENT.md and the `ipal-reference` / `ipal-setup` skills, and creates a missing
|
||||
The command also adds to `AGENTS.md` a `<!-- iapl:start -->…<!-- iapl:end -->` block
|
||||
with a pointer to AGENT.md and the `iapl-reference` / `iapl-setup` skills, and creates a missing
|
||||
`CLAUDE.md` with the line `@AGENTS.md`. On later runs it replaces only the text between the
|
||||
markers. This way an agent that opens the project lands on the full guide right away —
|
||||
without a `postinstall` script (the package has none and never will).
|
||||
**Project `tsconfig.json`: `"exclude": ["node_modules", ".agents"]`** — the skills contain
|
||||
`.ts`/`.tsx` templates; without the exclusion `tsc` and `next build` check them as project code and fail
|
||||
(`ipal-skills` and `ipal-audit` warn about it). In the root, `AGENTS.md` follows the template from [AGENT.md §13](../agent/AGENT.md).
|
||||
(`iapl-skills` and `iapl-audit` warn about it). In the root, `AGENTS.md` follows the template from [AGENT.md §13](../agent/AGENT.md).
|
||||
List of skills: AGENT.md §14.
|
||||
|
||||
### 2.2 Locale — one source
|
||||
@@ -150,7 +150,7 @@ Do not add `[locale]` "just in case" with one language — links would be withou
|
||||
### 2.3 payload.config.ts
|
||||
```ts
|
||||
import { buildConfig } from 'payload'
|
||||
import { buildR2Storage, ipalKit, mailAdapter } from '@intecion/ipal-kit'
|
||||
import { buildR2Storage, iapl, mailAdapter } from '@intecion/ipal-kit'
|
||||
import { payloadTotp } from '@clocklimited/payload-2fa'
|
||||
import { s3Storage } from '@payloadcms/storage-s3'
|
||||
import { i18nConfig } from '@/i18n.config'
|
||||
@@ -159,10 +159,10 @@ import { Pages } from '@/collections/Pages'
|
||||
import { Media } from '@/collections/Media'
|
||||
|
||||
export default buildConfig({
|
||||
collections: [Pages, Media], // ipalKit adds users (your own only for extra fields)
|
||||
collections: [Pages, Media], // iapl adds users (your own only for extra fields)
|
||||
email: mailAdapter(), // without it form-builder emails are not sent
|
||||
plugins: [
|
||||
ipalKit({
|
||||
iapl({
|
||||
i18n: i18nConfig,
|
||||
access: { authCollection: 'users' },
|
||||
pages: { slug: 'pages' }, // System pages (homepage, 404, policies)
|
||||
@@ -194,7 +194,7 @@ The mandatory feature set (SEO, GEO, R2, Turnstile, forms…) and how to check i
|
||||
settings (`buildSectionHeaderField`, `buildSectionSettingsField` — blocks.md). The project holds only
|
||||
the visual UI primitives in `src/components/ui/` (CMSLink on `resolveLink`, Button, Media, Section,
|
||||
SectionHeader) and `src/components/forms/formClasses.ts` — ready code in
|
||||
`agent/skills/ipal-block/resources/section-code.md` and `ipal-form/resources/`, rules in AGENT.md §6.
|
||||
`agent/skills/iapl-block/resources/section-code.md` and `iapl-form/resources/`, rules in AGENT.md §6.
|
||||
Create them **before** the first block.
|
||||
|
||||
### 2.5 Tailwind
|
||||
@@ -230,7 +230,7 @@ Colors of the plugin's components: `--ipal-primary`, `--ipal-radius` (consent.md
|
||||
|
||||
**Design-token standard (1.15.0, [design-tokens.md](../design-tokens.md)) — new sites:** `styles.css` imports
|
||||
`fluid-wide.css`, `tokens.css`, `tailwind.css` and `../../design/tokens.css` (instead of the `@theme inline` above);
|
||||
the brand is `src/design/tokens.ts` → `pnpm exec ipal-tokens`; next/font variables `--font-family-body` /
|
||||
the brand is `src/design/tokens.ts` → `pnpm exec iapl-tokens`; next/font variables `--font-family-body` /
|
||||
`--font-family-heading`. Components use the preset's utilities (`bg-surface`, `text-fg`, `py-section`).
|
||||
|
||||
### 2.6 Proxy (NOT middleware.ts)
|
||||
@@ -428,7 +428,7 @@ export default withPayload({
|
||||
})
|
||||
```
|
||||
CSP (`buildCsp`) — first `report-only`, then `enforce` after checking the console
|
||||
(security.md). `src/instrumentation.ts`: `assertEnv(ipalEnvRules({...}))` from **`@intecion/ipal-kit/env`**, only when `NEXT_RUNTIME === 'nodejs'` (env.md).
|
||||
(security.md). `src/instrumentation.ts`: `assertEnv(iaplEnvRules({...}))` from **`@intecion/ipal-kit/env`**, only when `NEXT_RUNTIME === 'nodejs'` (env.md).
|
||||
|
||||
### 2.10 Generate and start
|
||||
```bash
|
||||
@@ -443,7 +443,7 @@ pnpm dev
|
||||
3. **Pages** — the homepage with a title **in every language** (empty EN slug = 404 on `/en`).
|
||||
4. **Site settings → System pages** — Homepage (without it `/pl` → 404), 404,
|
||||
policies; archives of content collections.
|
||||
5. **Cookies** — banner texts per language; **Cookies** (list from the scan, `ipal-consent-check`) and **Detail
|
||||
5. **Cookies** — banner texts per language; **Cookies** (list from the scan, `iapl-consent-check`) and **Detail
|
||||
labels** (captions of the list in the `settings="detailed"` window) — also in every language.
|
||||
6. **Notifications** — form messages per language.
|
||||
7. **Site integrations** — SMTP/Graph (From Name, From Address), Turnstile, analytics/pixel
|
||||
@@ -460,16 +460,16 @@ pnpm dev
|
||||
| Variable | Required | Description |
|
||||
|---|---|---|
|
||||
| `DATABASE_URI` | ✅ | Postgres / Mongo (dev can use SQLite) |
|
||||
| `PAYLOAD_SECRET` | ✅ | random, ≥32 characters, different in production — `ipalEnvRules` checks the length in production (`secretMinLength`, default 32, `0` = off) |
|
||||
| `PAYLOAD_SECRET` | ✅ | random, ≥32 characters, different in production — `iaplEnvRules` checks the length in production (`secretMinLength`, default 32, `0` = off) |
|
||||
| `NEXT_PUBLIC_SERVER_URL` | ✅ | public URL (canonical, hreflang, OG); without it links are relative |
|
||||
| `GRAPH_TENANT_ID`, `GRAPH_CLIENT_ID`, `GRAPH_CLIENT_SECRET`, `GRAPH_SENDER` | ⬜ | email through Microsoft Graph |
|
||||
| `R2_BUCKET`, `R2_ENDPOINT`, `R2_ACCESS_KEY_ID`, `R2_SECRET_ACCESS_KEY` | ✅ prod | media in Cloudflare R2 — always in production (missing → container disk, files vanish on redeploy without a volume); in dev they can be empty (storage.md) |
|
||||
| `R2_PUBLIC_URL` | ⬜ | **empty by default** — media served through the app (`/api/media/file/…`); a media domain whose zone is on Cloudflare only for media-heavy sites (storage.md, deployment.md §6); in dev alone = read-only media |
|
||||
| `NODE_ENV` | ⬜ | `development` / `production` / `test` — `production` tightens the `ipalEnvRules` rules (R2, `IPAL_IP_HEADER`) |
|
||||
| `IPAL_NOINDEX` | ⬜ | `1` **only on staging / preview** — the whole site out of Google (robots, meta, header) |
|
||||
| `NODE_ENV` | ⬜ | `development` / `production` / `test` — `production` tightens the `iaplEnvRules` rules (R2, `IAPL_IP_HEADER`) |
|
||||
| `IAPL_NOINDEX` | ⬜ | `1` **only on staging / preview** — the whole site out of Google (robots, meta, header) |
|
||||
| `INDEXNOW_KEY` | ⬜ | IndexNow key, when not set in the admin panel (Site integrations → IndexNow generates one itself) |
|
||||
| `IPAL_IP_HEADER` | ✅ prod | header with the real IP for the rate limit: `cf-connecting-ip` behind Cloudflare, `x-forwarded-for` behind plain Traefik/nginx (forms.md) |
|
||||
| `NEXT_PUBLIC_TURNSTILE_SITE_KEY`, `TURNSTILE_SECRET_KEY` | ⬜ | fallback when the Turnstile keys are not in the admin panel (`ipalEnvRules({ turnstile: true })` makes them required) |
|
||||
| `IAPL_IP_HEADER` | ✅ prod | header with the real IP for the rate limit: `cf-connecting-ip` behind Cloudflare, `x-forwarded-for` behind plain Traefik/nginx (forms.md) |
|
||||
| `NEXT_PUBLIC_TURNSTILE_SITE_KEY`, `TURNSTILE_SECRET_KEY` | ⬜ | fallback when the Turnstile keys are not in the admin panel (`iaplEnvRules({ turnstile: true })` makes them required) |
|
||||
|
||||
Full list and validation at startup: env.md, deployment.md.
|
||||
|
||||
@@ -583,7 +583,7 @@ the policies and terms — we are not a law firm. Put this in the contract.
|
||||
|
||||
---
|
||||
|
||||
## 6. UPDATING AN OLD PROJECT TO THE LATEST ipal-kit
|
||||
## 6. UPDATING AN OLD PROJECT TO THE LATEST IAPL
|
||||
|
||||
**One rule:** when the plugin provides something the project has written by hand —
|
||||
**delete the local version**. Two versions = everything runs twice.
|
||||
@@ -614,10 +614,10 @@ Do one item at a time, build, check. Order by importance:
|
||||
| 15d | no limits for oversized images / video in Media | `buildOptimizeUploadHook()` + `buildOptimizeUploadField()`, field migration | media.md |
|
||||
| 15e | "Add Row" arrays, "Item 01" rows, `cta1`/`cta2`, PL labels in the admin panel | `labels` + `rowLabel()` on arrays, slots → array (with a migration!), EN labels — AGENT.md §6.5a; after updating the plugin **`pnpm payload generate:importmap`** (buildLinksField uses `RowLabel`) | links.md |
|
||||
| 15f | `public/sitemap.css` + own route / `app/sitemap.ts` | `app/sitemap.xml/route.ts`: `export { sitemapRoute as GET } from '@/lib/content'` + `force-dynamic`; delete `public/sitemap.css` and `app/sitemap.ts` | seo.md |
|
||||
| 15g | `instrumentation.ts` imports from the root (Edge/Turbopack crash: `fileTypeFromFile`) | `import { assertEnv, ipalEnvRules } from '@intecion/ipal-kit/env'` + `if (process.env.NEXT_RUNTIME !== 'nodejs') return`; remove the dynamic `await import` | env.md |
|
||||
| 15g | `instrumentation.ts` imports from the root (Edge/Turbopack crash: `fileTypeFromFile`) | `import { assertEnv, iaplEnvRules } from '@intecion/ipal-kit/env'` + `if (process.env.NEXT_RUNTIME !== 'nodejs') return`; remove the dynamic `await import` | env.md |
|
||||
| 15h | `<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(…) }}>` | `<JsonLdGraph schemas={[…]} />` from `@intecion/ipal-kit/rsc` (escapes `<` — without it `</script>` in the admin panel = XSS) | seo.md |
|
||||
| 15i | own `clamp()` formulas in `styles.css` | `@import "@intecion/ipal-kit/fluid.css"` + mapping in `@theme` (§2.5) | — |
|
||||
| 15j | the form front end sends `fetch('/api/form-submissions')` (from this version REST returns 403 for anonymous users) | rewrite as a server action + `submitForm` (skill `ipal-form`) | forms.md |
|
||||
| 15j | the form front end sends `fetch('/api/form-submissions')` (from this version REST returns 403 for anonymous users) | rewrite as a server action + `submitForm` (skill `iapl-form`) | forms.md |
|
||||
| 15k | Turnstile secret saved by code (`updateGlobal` in `onInit` / an action) or own `verify` without `remoteip` | delete the workaround: secret in the admin panel or env `TURNSTILE_SECRET_KEY`; the plugin does not send `remoteip` and logs the rejection reason | turnstile.md |
|
||||
| 15l | a Turnstile outage blocked forms | nothing in the project: on an error on our side the plugin accepts the submission and shows an alert in the admin panel; `generate:importmap`, Postgres: `migrate:create` | turnstile.md |
|
||||
| 15m | own plugin moving Notifications into a group; `formOverrides`/`formSubmissionOverrides` only for labels and the admin group | delete — the plugin itself puts Form messages in the "Forms" group, and forms → the "Forms" group with labels (`forms.adminGroup`) | forms.md |
|
||||
@@ -627,14 +627,14 @@ Do one item at a time, build, check. Order by importance:
|
||||
| 17 | **AI/GEO (mandatory since 1.9.0)** | llms.txt + llms-full.txt, the `/md/…` route, `markdownAlternate: true`, `prefersMarkdown` in the proxy, `/api/mcp`, `buildSummaryField`, AI bots allowed — AGENT.md §0b | content.md, seo.md, mcp.md |
|
||||
| 18 | **1.9.0** — `TurnstileProvider siteKey` from `getSiteIntegrations(…).turnstileSiteKey` | `getTurnstileConfig(payload).siteKey`. Note: with both keys set `submitForm` **requires** a token — a form without the widget will be rejected | turnstile.md |
|
||||
| 19 | **1.9.0** — `twoFactor: { issuer }` without `plugin` | add `plugin: payloadTotp` (the fallback with a dynamic import was removed — startup fails with an error) | security.md |
|
||||
| 20 | **1.9.0** — IP in the form action computed by hand from `x-forwarded-for` | `clientIp(await headers())` + `IPAL_IP_HEADER` in the production env | forms.md |
|
||||
| 20 | **1.9.0** — IP in the form action computed by hand from `x-forwarded-for` | `clientIp(await headers())` + `IAPL_IP_HEADER` in the production env | forms.md |
|
||||
| 21 | **1.9.0** — media without R2 in production / no `buildR2Storage` | wire `buildR2Storage(['media'], { s3Storage })`, set `R2_*` | storage.md |
|
||||
| 22 | **1.9.1** — hand-written `actions.ts` / `md` route / no form seed | `createSubmitAction`, `createMarkdownRoute`, seed from `ipal-form` (mail to the company + to the visitor) | forms.md, content.md |
|
||||
| 22 | **1.9.1** — hand-written `actions.ts` / `md` route / no form seed | `createSubmitAction`, `createMarkdownRoute`, seed from `iapl-form` (mail to the company + to the visitor) | forms.md, content.md |
|
||||
| 23 | **1.9.1** — `createProxy` without `markdown: true` | add it — otherwise `/md/…` redirects to `/pl/md/…` | content.md |
|
||||
| 24 | **1.9.1** — page JSON-LD assembled by hand | `getPageJsonLd`, `buildNavigationJsonLd`, `sameAsUrls`, `formatOpeningHours` | seo.md |
|
||||
| 25 | **1.9.1** — consent: version, log, table | Cookies → Policy version; `consentLog: true` + `logEndpoint`; `<CookieBanner equalChoice>`; scan + `<CookieTable>`; Postgres: `migrate:create` | consent.md |
|
||||
| 26 | **1.9.1** — media: `priority`, no placeholders, `images` in next.config | `<Media>` through `mediaImageProps`/`videoProps`, `buildMediaPlaceholderHook`, `buildImagesConfig`, `buildUploadSecurityHeaders` | media.md, storage.md |
|
||||
| 27 | **1.9.1** — staging indexed | `IPAL_NOINDEX=1` in the staging env | seo.md |
|
||||
| 27 | **1.9.1** — staging indexed | `IAPL_NOINDEX=1` in the staging env | seo.md |
|
||||
| 28 | **1.9.2** — own `FormRenderer` (a copy of the engine on `useForm`) | **security:** it passed the whole form document, including the Emails tab, to the browser (company addresses in the HTML). Block → `<RenderForm form action locale texts classNames>`, styling into `formClasses.ts`, delete `FormRenderer.tsx`; unusual form → `useBuilderForm` | forms.md |
|
||||
| 29 | **1.9.2** — multi-step forms / choice lists built in code | admin panel: the **Step**, **Radio**, **Checkbox group**, **Date** blocks; Form messages → next / back / stepOf; Postgres: `migrate:create` | forms.md |
|
||||
| 30 | **1.9.2** — layout assembled by hand (ConsentProvider, TurnstileProvider, Analytics, JsonLdGraph, MediaPreconnect) | `<SiteProviders shell={await getSiteShell(locale)} …>` — the same options (banner, analytics, jsonLd, logEndpoint) | PROGRAMISTA §2.8 |
|
||||
@@ -644,7 +644,7 @@ Do one item at a time, build, check. Order by importance:
|
||||
| 34 | **1.11.0** — a copy of `publicForm`, own field renderer with a variant / context | `RenderForm values` or `prepareBuilderForm` + `<BuilderForm values>`; delete the copy | forms.md |
|
||||
| 35 | **1.11.0** — extra "categories" relations next to links, links to entries as URLs | `buildLinkField({ relationTo: ['pages', 'categories'] })` (link data migration) | links.md |
|
||||
| 36 | **1.11.0** — product / category JSON-LD assembled in the project, `jsonLd: false` | `pageJsonLd.entries` + `buildProductJsonLd`, `jsonLd` back on in `createPageRoute` | seo.md |
|
||||
| 37 | **1.11.0** — own RenderBlocks in the page route only for the first section's `h1`; `storage` in `ipalEnvRules` conditional on NODE_ENV; hand-written `remotePatterns` / `dangerouslyAllowLocalIP` for localhost | `isFirst` from `createPageRoute`; `ipalEnvRules({ storage: true })`; `buildImagesConfig()` | pages.md, env.md, storage.md |
|
||||
| 37 | **1.11.0** — own RenderBlocks in the page route only for the first section's `h1`; `storage` in `iaplEnvRules` conditional on NODE_ENV; hand-written `remotePatterns` / `dangerouslyAllowLocalIP` for localhost | `isFirst` from `createPageRoute`; `iaplEnvRules({ storage: true })`; `buildImagesConfig()` | pages.md, env.md, storage.md |
|
||||
| 38 | **1.11.1** — `revalidatePath` wrapped in a `process.env.NEXT_RUNTIME` condition (seed / `payload run` failed) | delete the condition — the hook skips revalidation outside Next itself; on purpose: `context: { disableRevalidate: true }` | hooks.md |
|
||||
| 39 | **1.11.1** — focus guard around `RenderForm` (the page scrolled to the form on return) | delete — `BuilderForm` moves focus only when the step changes | forms.md |
|
||||
| 40 | **1.11.1** — own `ThemeScript` / theme switcher / `useSyncExternalStore` on `data-theme` | `<SiteProviders theme>` (or `<ThemeScript {...shell.theme}>`), `<ThemeSwitcher label={shell.theme.toggleLabel}>`, `useTheme`; the same `ipal-theme` key — visitors' choice is kept. Postgres: `migrate:create` (`system`, `themeToggleLabel`) | theme.md |
|
||||
@@ -655,32 +655,33 @@ 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 Cookies → 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 | **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 |
|
||||
| 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 | `iapl({ 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`, `IAPL_COOKIE_SCAN_URL` / `IAPL_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 |
|
||||
| 50 | **1.14.1** — `X-Powered-By: Next.js, Payload` in responses, no CSP or a hand-written one | `withPayload(withSecurityConfig(nextConfig))`; `buildSecurityHeaders({ csp: { mode: 'report-only', reportUri: '/api/csp-report', …flags } })` + `buildAdminCspHeaders` on `/admin/:path*` + `export const POST = createCspReportRoute()`; after clean reports `mode: 'enforce'`; nonces (`createProxy({ csp })` + `<SiteProviders nonce>`) only for dynamic sites | security.md, CHANGELOG 1.14.1 |
|
||||
| 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.6** (1.14.5 never published) — `/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.6 + 1.14.5, seo.md, theme.md, white-label.md, consent.md |
|
||||
| 55 | **1.15.0** — a production seed runs everything; no design tokens / block library; no site check | `SEED_ONLY` for production seeds (full seed refused, `IPAL_SEED_ALLOW_FULL=1` with the owner's OK); optional tokens.css + the block library (block by block, `migrate:create`); CookieButton above the footer (`avoid={false}`); `pnpm ipal:skills`; `pnpm exec ipal-doctor` (`--url`); new sites with `ipal-kit create` | CHANGELOG 1.15.0, seeding.md, design-tokens.md, block-library.md, doctor.md, project-starter.md |
|
||||
| 56 | **1.15.1** — a seed in Coolify's Terminal ends with exit 0 and no output (it stopped before Payload started) | `guardSeedExit()` first in every seed script, `seed.summary()` at the end; check `echo $?` after a seed; `pnpm ipal:skills` | CHANGELOG 1.15.1, seeding.md |
|
||||
| 57 | **1.15.2** — ipal-doctor reports missing routes for a site whose pages live in `app/(site)` (not `(frontend)`), or a `notFoundView.tsx` | nothing to change; remove the temporary `layout-required` silence; two candidates → `layout.frontend` in `ipal-doctor.json`; `pnpm ipal:skills` | CHANGELOG 1.15.2, doctor.md |
|
||||
| 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 |
|
||||
| 54 | **1.14.6** (1.14.5 never published) — `/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 iapl:skills` (`--external` optional) | CHANGELOG 1.14.6 + 1.14.5, seo.md, theme.md, white-label.md, consent.md |
|
||||
| 55 | **1.15.0** — a production seed runs everything; no design tokens / block library; no site check | `SEED_ONLY` for production seeds (full seed refused, `IAPL_SEED_ALLOW_FULL=1` with the owner's OK); optional tokens.css + the block library (block by block, `migrate:create`); CookieButton above the footer (`avoid={false}`); `pnpm iapl:skills`; `pnpm exec iapl-doctor` (`--url`); new sites with `iapl create` | CHANGELOG 1.15.0, seeding.md, design-tokens.md, block-library.md, doctor.md, project-starter.md |
|
||||
| 56 | **1.15.1** — a seed in Coolify's Terminal ends with exit 0 and no output (it stopped before Payload started) | `guardSeedExit()` first in every seed script, `seed.summary()` at the end; check `echo $?` after a seed; `pnpm iapl:skills` | CHANGELOG 1.15.1, seeding.md |
|
||||
| 57 | **1.15.2** — iapl-doctor reports missing routes for a site whose pages live in `app/(site)` (not `(frontend)`), or a `notFoundView.tsx` | nothing to change; remove the temporary `layout-required` silence; two candidates → `layout.frontend` in `iapl-doctor.json`; `pnpm iapl:skills` | CHANGELOG 1.15.2, doctor.md |
|
||||
| 58 | **1.15.3** — iapl-audit / iapl-doctor report `adminText()` or `{ en, pl }` panel labels as hardcoded Polish text | `pnpm iapl:skills`; remove a temporary `i18n-literals` silence added for such labels; public text is still reported | CHANGELOG 1.15.3, iapl-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` + `IAPL_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, `<input type="file">` 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" |
|
||||
| 62 | **1.16.1** — `pnpm dev` warns "Next.js 16.4.3 is affected by a known security vulnerability"; ipal-doctor `next-min` error below 16.4.5 (GHSA-mfr8-8qww-v76h) | `pnpm add [email protected] [email protected]`, `rm -rf .next`, build, commit the lockfile, redeploy on Coolify; `pnpm ipal:skills`; no option, migration or import map change | CHANGELOG 1.16.1, AGENT.md §4 item 11 |
|
||||
| 63 | **1.16.2** — `pnpm audit --prod` shows `mongoose` (critical, via `@payloadcms/db-mongodb`) or `happy-dom` (high, via `@payloadcms/richtext-lexical`); ipal-doctor `transitive-min` | `pnpm.overrides`: `"mongoose@>=8 <8.24.7": "~8.24.10"` (MongoDB sites) and `"happy-dom@<21.0.4": "^21.0.4"`; `pnpm install`, build, commit the lockfile, redeploy on Coolify; `pnpm ipal:skills`; no migration | CHANGELOG 1.16.2, AGENT.md §4 item 12 |
|
||||
| 64 | **1.16.3** — the reference site and the starter run Payload 3.94.1; the site is still on 3.90–3.93, or `node -v` (locally or in the Coolify app's Terminal) is below 22.23.5 | Recommended, not required (the plugin still accepts `^3.90.2`). First make sure Node is 22.23.5 or later everywhere, Coolify included (Nixpacks picks the patch: check `node -v`, update Coolify if lower). Then every `payload` / `@payloadcms/*` 3.94.1 (in `dependencies` and `pnpm.overrides`), `react` / `react-dom` 19.3.1, `"engines": { "node": ">=22.23.5 <23" }`; overrides: keep `dompurify` and `happy-dom`, drop `mongoose`, `undici` and `graphql-scalars`; `pnpm install`, `generate:types`, `generate:importmap`, `rm -rf .next`, build, redeploy; Postgres/SQLite: `migrate:create`; `pnpm ipal:skills` | CHANGELOG 1.16.3, AGENT.md §4 items 11–12, ipal-upgrade "Every upgrade — Payload" |
|
||||
| 65 | **1.16.4 — security** — with 2FA on, a login with the password only gets `200` from `/api/globals/site-integrations` or `/api/form-submissions`; or the project has a second auth collection (`customers`) | Upgrade and redeploy (no config change with one auth collection). With the owner: change the SMTP password and the Turnstile secret, review Site settings / Site integrations / each form's Emails tab for values nobody set. Second auth collection: `admin: { user }` in `buildConfig`, `adminOrSelfIn('<slug>')`, `access.staffCollections` only for a second STAFF collection. Every account must have 2FA set up (`ipal-doctor --url` → 0 without). Own endpoints: `secondFactorPassed(req)`; own `overrideAccess: false` calls: `user` from `payload.auth()`. `pnpm ipal:skills`; no migration | CHANGELOG 1.16.4, security.md "What the second factor covers", access.md "Who is staff" |
|
||||
| 66 | **1.16.4** — production `PAYLOAD_SECRET` shorter than 32 characters (the site would stop at `assertEnv`) | Before deploying 1.16.4, check the length in Coolify (`node -e 'console.log(process.env.PAYLOAD_SECRET.length)'`). Shorter: a random 32+ character secret (logs everyone out, asks for 2FA again, breaks stored API keys), or `ipalEnvRules({ secretMinLength: 0 })` for now | CHANGELOG 1.16.4, deployment.md "PAYLOAD_SECRET — length and changing it" |
|
||||
| 67 | **1.16.5 — security** — with 2FA on, `/admin/verify-totp?back=https%3A%2F%2Fexample.com%2F` sends the user to example.com after the code (and `back=javascript:…` runs script in the panel) | Upgrade and, **in ONE deploy**, `pnpm payload generate:importmap` (adds `@intecion/ipal-kit/admin#SafeTotpView`), commit `importMap.js`, `rm -rf .next`, redeploy on Coolify — with the old map the 2FA screens have no code form and nobody can sign in (run `pnpm exec ipal-doctor` before deploying; the start log says so too); check: the link above ends on `/admin`. `pnpm ipal:skills`. No option, env or migration; off / own rule: `twoFactor.safeBack` | CHANGELOG 1.16.5, security.md "The `back` link of the 2FA screens" |
|
||||
| 68 | **1.16.6 — 2FA setup required** (not a routine patch: a new default that can lock accounts out) — an account that has not set 2FA up still reads data over the API with its password; or after the upgrade an account "can do nothing" / is blocked | Before upgrading: `ipal-doctor --url` → accounts without 2FA set it up or are removed; one admin (better two) must have 2FA; deploy day agreed with the owner. Then, in ONE deploy: update, `generate:types`, `generate:importmap` (`TwoFactorStatusField`, `TwoFactorAlert`), **Postgres/SQLite: `migrate:create` and the migration applied in the same deploy when the new container starts — `prodMigrations` or `pnpm payload migrate && pnpm start`, never a pre-deployment command (deployment.md §4.3) — (column `totp_setup_from`); without it every login answers 500**, build, redeploy. Existing accounts get 72 h from the first start; blocked later → admin: account page → "Reopen setup". Password-login integrations: API key or `requireSetup.exempt`. `pnpm ipal:skills` | CHANGELOG 1.16.6, security.md "Setup required" |
|
||||
| 69 | **1.16.7 — hardening** (not a routine patch: stricter defaults) — an account with only the role `user` sees "Unauthorized" in the panel; or the API returns `"smtpPassword":"********"`; or a form with a File field is refused while Turnstile is misconfigured; or "The password must have at least 12 characters."; or "Enter the password again…" on the SMTP password; or `403` "Not allowed from this origin." on the 2FA code | Update, `generate:types`, redeploy; no import map, schema or migration. Every slug in `access.staffCollections` must be an auth collection (otherwise Payload does not start: `/api/health` 503, the old container keeps serving). Set `serverURL` (a proxy that rewrites `Host` otherwise blocks the 2FA code; the log names the origin). Read the start log (`N account(s) … cannot open the admin panel`) and give panel users `editor`. Own code that read the two secrets over the API → Local API on the server. `TURNSTILE_SECRET_KEY` is deprecated: with the owner move the key into the panel. Own staff collection without rules: an admin (update: or the account itself; roles only by an admin; read by staff only) where the roles are the plugin's, accounts of that collection where they are the project's own — write that collection's own rules. Existing short passwords keep working. Switches: `accounts`, `secrets`, `forms.turnstileOnConfigError`, `twoFactor.sameOrigin`, `dashboardAlerts`. `pnpm ipal:skills` | CHANGELOG 1.16.7, access.md "Account rules", security.md "Stored secrets", turnstile.md |
|
||||
| 61 | **1.16.0 — files on forms** — a CV / drawing field built by hand (own upload collection, bucket, `<input type="file">` 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 iapl:skills` | CHANGELOG 1.16.0, forms.md "Files", email.md "Attachments", deployment.md "Form files" |
|
||||
| 62 | **1.16.1** — `pnpm dev` warns "Next.js 16.4.3 is affected by a known security vulnerability"; iapl-doctor `next-min` error below 16.4.5 (GHSA-mfr8-8qww-v76h) | `pnpm add [email protected] [email protected]`, `rm -rf .next`, build, commit the lockfile, redeploy on Coolify; `pnpm iapl:skills`; no option, migration or import map change | CHANGELOG 1.16.1, AGENT.md §4 item 11 |
|
||||
| 63 | **1.16.2** — `pnpm audit --prod` shows `mongoose` (critical, via `@payloadcms/db-mongodb`) or `happy-dom` (high, via `@payloadcms/richtext-lexical`); iapl-doctor `transitive-min` | `pnpm.overrides`: `"mongoose@>=8 <8.24.7": "~8.24.10"` (MongoDB sites) and `"happy-dom@<21.0.4": "^21.0.4"`; `pnpm install`, build, commit the lockfile, redeploy on Coolify; `pnpm iapl:skills`; no migration | CHANGELOG 1.16.2, AGENT.md §4 item 12 |
|
||||
| 64 | **1.16.3** — the reference site and the starter run Payload 3.94.1; the site is still on 3.90–3.93, or `node -v` (locally or in the Coolify app's Terminal) is below 22.23.5 | Recommended, not required (the plugin still accepts `^3.90.2`). First make sure Node is 22.23.5 or later everywhere, Coolify included (Nixpacks picks the patch: check `node -v`, update Coolify if lower). Then every `payload` / `@payloadcms/*` 3.94.1 (in `dependencies` and `pnpm.overrides`), `react` / `react-dom` 19.3.1, `"engines": { "node": ">=22.23.5 <23" }`; overrides: keep `dompurify` and `happy-dom`, drop `mongoose`, `undici` and `graphql-scalars`; `pnpm install`, `generate:types`, `generate:importmap`, `rm -rf .next`, build, redeploy; Postgres/SQLite: `migrate:create`; `pnpm iapl:skills` | CHANGELOG 1.16.3, AGENT.md §4 items 11–12, iapl-upgrade "Every upgrade — Payload" |
|
||||
| 65 | **1.16.4 — security** — with 2FA on, a login with the password only gets `200` from `/api/globals/site-integrations` or `/api/form-submissions`; or the project has a second auth collection (`customers`) | Upgrade and redeploy (no config change with one auth collection). With the owner: change the SMTP password and the Turnstile secret, review Site settings / Site integrations / each form's Emails tab for values nobody set. Second auth collection: `admin: { user }` in `buildConfig`, `adminOrSelfIn('<slug>')`, `access.staffCollections` only for a second STAFF collection. Every account must have 2FA set up (`iapl-doctor --url` → 0 without). Own endpoints: `secondFactorPassed(req)`; own `overrideAccess: false` calls: `user` from `payload.auth()`. `pnpm iapl:skills`; no migration | CHANGELOG 1.16.4, security.md "What the second factor covers", access.md "Who is staff" |
|
||||
| 66 | **1.16.4** — production `PAYLOAD_SECRET` shorter than 32 characters (the site would stop at `assertEnv`) | Before deploying 1.16.4, check the length in Coolify (`node -e 'console.log(process.env.PAYLOAD_SECRET.length)'`). Shorter: a random 32+ character secret (logs everyone out, asks for 2FA again, breaks stored API keys), or `iaplEnvRules({ secretMinLength: 0 })` for now | CHANGELOG 1.16.4, deployment.md "PAYLOAD_SECRET — length and changing it" |
|
||||
| 67 | **1.16.5 — security** — with 2FA on, `/admin/verify-totp?back=https%3A%2F%2Fexample.com%2F` sends the user to example.com after the code (and `back=javascript:…` runs script in the panel) | Upgrade and, **in ONE deploy**, `pnpm payload generate:importmap` (adds `@intecion/ipal-kit/admin#SafeTotpView`), commit `importMap.js`, `rm -rf .next`, redeploy on Coolify — with the old map the 2FA screens have no code form and nobody can sign in (run `pnpm exec iapl-doctor` before deploying; the start log says so too); check: the link above ends on `/admin`. `pnpm iapl:skills`. No option, env or migration; off / own rule: `twoFactor.safeBack` | CHANGELOG 1.16.5, security.md "The `back` link of the 2FA screens" |
|
||||
| 68 | **1.16.6 — 2FA setup required** (not a routine patch: a new default that can lock accounts out) — an account that has not set 2FA up still reads data over the API with its password; or after the upgrade an account "can do nothing" / is blocked | Before upgrading: `iapl-doctor --url` → accounts without 2FA set it up or are removed; one admin (better two) must have 2FA; deploy day agreed with the owner. Then, in ONE deploy: update, `generate:types`, `generate:importmap` (`TwoFactorStatusField`, `TwoFactorAlert`), **Postgres/SQLite: `migrate:create` and the migration applied in the same deploy when the new container starts — `prodMigrations` or `pnpm payload migrate && pnpm start`, never a pre-deployment command (deployment.md §4.3) — (column `totp_setup_from`); without it every login answers 500**, build, redeploy. Existing accounts get 72 h from the first start; blocked later → admin: account page → "Reopen setup". Password-login integrations: API key or `requireSetup.exempt`. `pnpm iapl:skills` | CHANGELOG 1.16.6, security.md "Setup required" |
|
||||
| 69 | **1.16.7 — hardening** (not a routine patch: stricter defaults) — an account with only the role `user` sees "Unauthorized" in the panel; or the API returns `"smtpPassword":"********"`; or a form with a File field is refused while Turnstile is misconfigured; or "The password must have at least 12 characters."; or "Enter the password again…" on the SMTP password; or `403` "Not allowed from this origin." on the 2FA code | Update, `generate:types`, redeploy; no import map, schema or migration. Every slug in `access.staffCollections` must be an auth collection (otherwise Payload does not start: `/api/health` 503, the old container keeps serving). Set `serverURL` (a proxy that rewrites `Host` otherwise blocks the 2FA code; the log names the origin). Read the start log (`N account(s) … cannot open the admin panel`) and give panel users `editor`. Own code that read the two secrets over the API → Local API on the server. `TURNSTILE_SECRET_KEY` is deprecated: with the owner move the key into the panel. Own staff collection without rules: an admin (update: or the account itself; roles only by an admin; read by staff only) where the roles are the plugin's, accounts of that collection where they are the project's own — write that collection's own rules. Existing short passwords keep working. Switches: `accounts`, `secrets`, `forms.turnstileOnConfigError`, `twoFactor.sameOrigin`, `dashboardAlerts`. `pnpm iapl:skills` | CHANGELOG 1.16.7, access.md "Account rules", security.md "Stored secrets", turnstile.md |
|
||||
| 70 | **1.16.7** — `next build --webpack`: `'server-only' cannot be imported from a Client Component module`, from a `'use client'` file that imports `isAdmin`, `isEditor` or `hasMinimumRole` | Import them from `@intecion/ipal-kit/client` in client components, keep the second argument (`isAdmin(user, config)`); `import type` may stay on the main entry | CHANGELOG 1.16.7, access.md |
|
||||
| 71 | **1.16.8 — security** — a site built with Turbopack (`next build` without `--webpack`) serves `/_next/static/media/package.<hash>.json`; or the project has a staff collection of its own without access rules; or a plugin listed after ipalKit copies a staff collection or sets `admin.user`; or the start log says `No staff account holds the role "admin", so NOBODY can …` | Update, `pnpm ipal:skills`, `rm -rf .next`, rebuild; no option, schema, migration or import map. Turbopack: `find .next/static -name 'package*.json'` empty, purge a CDN. Own staff collection: a `roles` list that can hold `editor` / `admin` → only an admin manages its accounts (write own rules otherwise; one account must hold `admin`); a single select with only `user` / `editor` / `admin` → its accounts manage each other again (own rules if your code goes by the value). A copy: `access.update: adminOrSelfIn('copy')`, or `custom.ipal.accountRules: false` | CHANGELOG 1.16.8, access.md "Account rules" |
|
||||
| 71 | **1.16.8 — security** — a site built with Turbopack (`next build` without `--webpack`) serves `/_next/static/media/package.<hash>.json`; or the project has a staff collection of its own without access rules; or a plugin listed after iapl copies a staff collection or sets `admin.user`; or the start log says `No staff account holds the role "admin", so NOBODY can …` | Update, `pnpm iapl:skills`, `rm -rf .next`, rebuild; no option, schema, migration or import map. Turbopack: `find .next/static -name 'package*.json'` empty, purge a CDN. Own staff collection: a `roles` list that can hold `editor` / `admin` → only an admin manages its accounts (write own rules otherwise; one account must hold `admin`); a single select with only `user` / `editor` / `admin` → its accounts manage each other again (own rules if your code goes by the value). A copy: `access.update: adminOrSelfIn('copy')`, or `custom.ipal.accountRules: false` | CHANGELOG 1.16.8, access.md "Account rules" |
|
||||
| 72 | **1.17.0 — the plugin is called IAPL** — you see `iapl()`, `iapl-doctor`, `IAPL_IP_HEADER`, `iapl-doctor.json`, `[iapl]` in docs and logs and wonder whether the project must change | No. Every old name works through 1.x (`ipalKit`, `ipal-*` commands, `IPAL_*` env, `ipal-doctor.json`, `ipal-audit-skip`, the old pointer block); the package is still `@intecion/ipal-kit`. Run `pnpm exec iapl-skills` (or the project's `ipal:skills` script) and commit; change a log filter on `[ipal]` to `[iapl]`. Rename the rest only when the owner asks (`iapl-upgrade` "→ 1.17.0", AGENT.md "Names: IAPL and ipal-kit"). Never set `storageNames: 'iapl'` on an existing site |
|
||||
|
||||
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
|
||||
After updating the package: `pnpm iapl: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`.
|
||||
|
||||
---
|
||||
@@ -693,8 +694,8 @@ After updating the package: `pnpm ipal:skills` (new skill versions), `pnpm paylo
|
||||
| `PayloadComponent not found in importMap` | `pnpm payload generate:importmap` |
|
||||
| `Cannot destructure property 'config'` | duplicate `@payloadcms/ui` in the plugin — `ls node_modules/@intecion/ipal-kit/node_modules/@payloadcms/ui` |
|
||||
| `Cannot find module '@clocklimited/payload-2fa'` | inject `plugin: payloadTotp` in `twoFactor` (`serverExternalPackages` does not help) |
|
||||
| `TS2322` on `plugin: payloadTotp` / `ipal-skills: command not found` | ipal-kit ≤ 1.8.13 — update |
|
||||
| `[ipal] R2 storage: … adapter was not injected` | `pnpm add @payloadcms/storage-s3` + `buildR2Storage(['media'], { s3Storage })` |
|
||||
| `TS2322` on `plugin: payloadTotp` / `iapl-skills: command not found` | IAPL ≤ 1.8.13 — update |
|
||||
| `[iapl] R2 storage: … adapter was not injected` | `pnpm add @payloadcms/storage-s3` + `buildR2Storage(['media'], { s3Storage })` |
|
||||
| Images 403 for visitors (`/api/media/file/…`) | the Media collection has no public read — `access: { read: () => true }` (storage.md) |
|
||||
| `R2_PUBLIC_URL is required but missing` in production | media through the app — make the rule optional (env.md) |
|
||||
| New deploy never goes live / old version keeps serving | the health check fails (migration error, database unreachable) — Coolify deployment log (deployment.md §4.4) |
|
||||
@@ -716,7 +717,7 @@ at startup) → save in the admin panel → duplicate dependency → importmap
|
||||
|
||||
---
|
||||
|
||||
## 8. ipal-kit DEVELOPMENT AND PUBLISHING
|
||||
## 8. IAPL DEVELOPMENT AND PUBLISHING
|
||||
|
||||
### 8.1 Change chain
|
||||
Pre-release checks are the tests in `test/` (also run by `prepublishOnly`):
|
||||
@@ -767,7 +768,7 @@ done until the reference site uses it. Before `npm version`:
|
||||
|
||||
- [ ] Everything new or changed in this release is used in `reference/` — a new option set, a route wired, a block or
|
||||
variant shown (the Blocks page picks up new blocks and variants from `blockLibraryManifest` by itself).
|
||||
- [ ] `reference/` upgraded the way `ipal-upgrade` tells client projects; the upgrade notes are tried here first.
|
||||
- [ ] `reference/` upgraded the way `iapl-upgrade` tells client projects; the upgrade notes are tried here first.
|
||||
- [ ] Local run green: `pnpm build` (plugin) → `pnpm --dir reference install --ignore-workspace` (refreshes the injected
|
||||
copy) → in `reference/`: `pnpm generate:types && pnpm generate:importmap` (no diff), `pnpm typecheck`,
|
||||
`pnpm seed` on a throwaway MongoDB, `pnpm build`, `ALLOW_LOCAL_MEDIA=1 PORT=3100 pnpm start`,
|
||||
@@ -788,7 +789,7 @@ done until the reference site uses it. Before `npm version`:
|
||||
when the constant differs from package.json.
|
||||
- [ ] `pnpm reference:index` → `docs/agent/reference-site/INDEX.md` committed (`test/referenceIndex.test.ts` fails otherwise;
|
||||
a new file in `reference/` needs its line in `scripts/reference-index.mjs` → `DESCRIPTIONS`).
|
||||
- [ ] CI job `reference` green (`.gitea/workflows/ci.yml`), the starter check included once `ipal-kit create` ships.
|
||||
- [ ] CI job `reference` green (`.gitea/workflows/ci.yml`), the starter check included once `iapl create` ships.
|
||||
- [ ] Tag `v<version>` pushed — the index links to `reference/` at that tag, and `git diff v<old> v<new> -- reference/` is
|
||||
the upgrade guide for projects.
|
||||
|
||||
@@ -817,8 +818,8 @@ an empty project (only errors) and a complete one (0 errors). CI (`.gitea/workfl
|
||||
typecheck, lint, tests and build on every push.
|
||||
|
||||
### 8.2 Plugin package.json
|
||||
- `"files": ["dist", "docs", "bin", "src/modules/block-library"]` — **the docs and the `ipal-skills` command ship in the package**
|
||||
(the block-library source is what `ipal-blocks eject` copies); agents in projects
|
||||
- `"files": ["dist", "docs", "bin", "src/modules/block-library"]` — **the docs and the `iapl-skills` command ship in the package**
|
||||
(the block-library source is what `iapl-blocks eject` copies); agents in projects
|
||||
read `node_modules/@intecion/ipal-kit/docs/agent/AGENT.md`. Without `docs` they have nothing.
|
||||
- One `exports` block, all paths to `./dist/` (not `./src/`).
|
||||
- `payload`, `@payloadcms/*`, `next`, `react` → **`peerDependencies`**
|
||||
@@ -836,7 +837,7 @@ typecheck, lint, tests and build on every push.
|
||||
|
||||
```bash
|
||||
grep -c '"exports"' package.json # 1
|
||||
grep -c "git+https.*ipal-kit" package.json # 0
|
||||
grep -c "git+https.*IAPL" package.json # 0
|
||||
grep '"import"' package.json | head -1 # ./dist/
|
||||
```
|
||||
|
||||
@@ -859,10 +860,10 @@ ls node_modules/@intecion/ipal-kit/docs/agent/AGENT.md
|
||||
|---|---|
|
||||
| `Cannot find module …/src/…ts` | `exports` points to `src` |
|
||||
| "Module not found" although the file exists | two `exports` blocks |
|
||||
| `ENOENT …ipal-kit.tgz` | self-reference in `dependencies` |
|
||||
| `ENOENT …IAPL.tgz` | self-reference in `dependencies` |
|
||||
| old code despite reinstalling | version not bumped; `pnpm store prune` + `rm -rf .next node_modules/@intecion` |
|
||||
|
||||
Versions: 1.x = Payload 3. Moving to Payload 4 → ipal-kit 2.0.
|
||||
Versions: 1.x = Payload 3. Moving to Payload 4 → IAPL 2.0.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# admin-ux.md — wording and layout of the admin panel
|
||||
|
||||
> **Who it is for:** anyone (person or agent) who adds or changes a collection,
|
||||
> global, field, admin view, button or default text in ipal-kit — or in a project
|
||||
> global, field, admin view, button or default text in IAPL — or in a project
|
||||
> built on it. Projects can override every label and description the plugin ships;
|
||||
> this guide is what the defaults follow, and what new fields in projects should follow.
|
||||
|
||||
@@ -18,7 +18,7 @@ not the code. Every screen must be clear to them without a developer at hand.
|
||||
"Rendered via buildIconsMetadata".
|
||||
- **No developer words** in labels, descriptions, placeholders, toasts or errors:
|
||||
no function, component, hook, file, skill or env-var names (`<CookieTable>`,
|
||||
`buildIconsMetadata`, `ipal-consent-check`, `SMTP_HOST`), no `camelCase`, no
|
||||
`buildIconsMetadata`, `iapl-consent-check`, `SMTP_HOST`), no `camelCase`, no
|
||||
`settings="detailed"`, no arrows like `Empty →`.
|
||||
Developer notes belong in code comments and `docs/`.
|
||||
- **Product names stay** when the editor must find that product: Google Analytics,
|
||||
@@ -27,7 +27,7 @@ not the code. Every screen must be clear to them without a developer at hand.
|
||||
- **Errors say what to do:** "Enter a full address, e.g. https://example.com" — not "Invalid URL".
|
||||
Errors an editor can see never name env vars, config files or packages; the developer
|
||||
detail goes to the server log.
|
||||
- **No package or vendor names** (ipal-kit, Intecion) in labels, descriptions, test e-mails
|
||||
- **No package or vendor names** (IAPL, Intecion) in labels, descriptions, test e-mails
|
||||
or messages. "Ask your administrator" instead of "configured by Intecion". The one exception is
|
||||
the vendor credit under the navigation (`whiteLabel.credit`), which exists to name the vendor.
|
||||
|
||||
|
||||
@@ -290,7 +290,7 @@ In the guide and skills of 1.17.0:
|
||||
name, state in 1.17.0 (renamed with alias / unchanged until 2.0 / unchanged). It is the only place old
|
||||
aliases are listed.
|
||||
- Everywhere else the guide uses **the name that is preferred on 1.17.0**: `iapl()`, `iapl-doctor`,
|
||||
`IAPL_IP_HEADER`, `iapl-doctor.json`, and still `@intecion/ipal-kit/...`, `/api/ipal/...`, `--ipal-*`,
|
||||
`IAPL_IP_HEADER`, `iapl-doctor.json`, and still the `@intecion/ipal-kit` import paths, `/api/ipal/` routes, `--ipal-*`,
|
||||
`data-ipal`. The guide never shows a name that does not work on the installed version.
|
||||
- A rule for existing projects: **do not rename on your own.** Old names work; a project moves to the new
|
||||
ones only when its owner asks, with the `iapl-upgrade` skill's "→ 1.17.0" section, which lists the optional
|
||||
|
||||
+34
-34
@@ -11,26 +11,26 @@
|
||||
|
||||
The agent works like an independent contractor (AGENT.md §0a): it asks once, in one list,
|
||||
only for missing data; it makes technical decisions itself; it checks its own
|
||||
work; it speaks up only with the final report (or when ipal-kit has a bug).
|
||||
work; it speaks up only with the final report (or when IAPL has a bug).
|
||||
|
||||
```
|
||||
/ipal-site <brief: client, industry, pages and sections, languages, forms — or a path to a brief file>
|
||||
/iapl-site <brief: client, industry, pages and sections, languages, forms — or a path to a brief file>
|
||||
```
|
||||
You: answer the list of questions (or don't — it will use the defaults), and at the end
|
||||
read the report: what was done, check results, `[TO FILL]` placeholders,
|
||||
reports to ipal-kit. The steps below are **guided mode** — for when you want to
|
||||
reports to IAPL. The steps below are **guided mode** — for when you want to
|
||||
control each stage or fix one thing.
|
||||
|
||||
| Need | Prompt |
|
||||
|---|---|
|
||||
| new section / section fix | `/ipal-block <Name> — <description/screenshot>` |
|
||||
| form | `/ipal-form <which form, where, who receives submissions>` |
|
||||
| new language | `/ipal-locale-add <code> — <who translates>` |
|
||||
| change fields that have content in the database | `/ipal-migrate-fields <what to what>` |
|
||||
| something does not work | `/ipal-debug <symptom / message>` |
|
||||
| SEO / Google does not see it | `/ipal-seo-check <url>` |
|
||||
| GDPR / pixels before consent | `/ipal-consent-check <url>` |
|
||||
| before handover | `/ipal-audit` |
|
||||
| new section / section fix | `/iapl-block <Name> — <description/screenshot>` |
|
||||
| form | `/iapl-form <which form, where, who receives submissions>` |
|
||||
| new language | `/iapl-locale-add <code> — <who translates>` |
|
||||
| change fields that have content in the database | `/iapl-migrate-fields <what to what>` |
|
||||
| something does not work | `/iapl-debug <symptom / message>` |
|
||||
| SEO / Google does not see it | `/iapl-seo-check <url>` |
|
||||
| GDPR / pixels before consent | `/iapl-consent-check <url>` |
|
||||
| before handover | `/iapl-audit` |
|
||||
|
||||
---
|
||||
|
||||
@@ -48,9 +48,9 @@ control each stage or fix one thing.
|
||||
6. When the agent breaks a rule — use the repair prompts at the end of this file; do not explain
|
||||
it again from scratch.
|
||||
|
||||
**Skills instead of long prompts.** When the project has the ipal-kit skills
|
||||
(`pnpm exec ipal-skills`, AGENT.md §14), most steps are one short
|
||||
prompt, e.g. `/ipal-block Hero — <description/screenshot>`. The prompts below also work
|
||||
**Skills instead of long prompts.** When the project has the IAPL skills
|
||||
(`pnpm exec iapl-skills`, AGENT.md §14), most steps are one short
|
||||
prompt, e.g. `/iapl-block Hero — <description/screenshot>`. The prompts below also work
|
||||
without skills; the short version is given at each step.
|
||||
|
||||
**Prefix for every prompt** (paste it at the start if the agent does not read
|
||||
@@ -79,7 +79,7 @@ buildLinksField/CMSLink, minimum collections. If not — tell it to read again.
|
||||
|
||||
## STEP 1 — Skeleton and installation
|
||||
|
||||
Short version: `/ipal-setup` (walks through steps 1–8, stage by stage).
|
||||
Short version: `/iapl-setup` (walks through steps 1–8, stage by stage).
|
||||
|
||||
|
||||
```
|
||||
@@ -114,7 +114,7 @@ Do not copy rules from AGENT.md — only a link.
|
||||
```
|
||||
Create src/i18n.config.ts (as const satisfies I18nConfig) with languages <…>
|
||||
and payload.config.ts according to PROGRAMISTA.md §2.3:
|
||||
ipalKit with i18n, access, pages (slug 'pages'), seo, forms,
|
||||
iapl with i18n, access, pages (slug 'pages'), seo, forms,
|
||||
twoFactor with INJECTED payloadTotp (issuer: '<client name>'), whiteLabel: true,
|
||||
email: mailAdapter(). Do not add content collections yet.
|
||||
Plan first.
|
||||
@@ -153,7 +153,7 @@ Before this: `/impeccable init` and `/impeccable document` → `PRODUCT.md`, `DE
|
||||
Based on DESIGN.md, create src/app/(frontend)/styles.css according to AGENT.md §6.11:
|
||||
@theme with tokens (primary, background, foreground, muted + fonts), @source for the plugin,
|
||||
mapping of --ipal-primary / --ipal-radius. Fonts through next/font.
|
||||
Then the primitives 1:1 from node_modules/@intecion/ipal-kit/docs/agent/skills/ipal-block/resources/section-code.md:
|
||||
Then the primitives 1:1 from node_modules/@intecion/ipal-kit/docs/agent/skills/iapl-block/resources/section-code.md:
|
||||
components/ui/CMSLink.tsx,
|
||||
Button.tsx, Media.tsx, Section.tsx, SectionHeader.tsx, and components/icons according to §6.10.
|
||||
Zero hex values in components — tokens only.
|
||||
@@ -189,7 +189,7 @@ Do this according to PROGRAMISTA.md §2.8–2.9 and seo.md:
|
||||
- next.config.ts: htmlLimitedBots, buildSecurityHeaders,
|
||||
- page metadata through generatePageMetadata from lib/content (shared cache), favicon through buildIconsMetadata,
|
||||
- JSON-LD: Organization + WebSite come from SiteProviders using Site settings; local business → siteJsonLd in createContentHelpers (seo.md),
|
||||
- src/instrumentation.ts with assertEnv(ipalEnvRules(...)) imported from @intecion/ipal-kit/env (env.md).
|
||||
- src/instrumentation.ts with assertEnv(iaplEnvRules(...)) imported from @intecion/ipal-kit/env (env.md).
|
||||
No CSP yet — that comes in step 14.
|
||||
Plan first.
|
||||
```
|
||||
@@ -199,17 +199,17 @@ Check: `curl -A "Googlebot" http://localhost:3000/pl | grep canonical` — in `<
|
||||
|
||||
## STEP 8 — Header, Footer, company data
|
||||
|
||||
Short version: `/ipal-nav <menu items, footer columns, market>`.
|
||||
Short version: `/iapl-nav <menu items, footer columns, market>`.
|
||||
|
||||
|
||||
```
|
||||
Do this according to AGENT.md §6.8, code from node_modules/@intecion/ipal-kit/docs/agent/skills/ipal-nav/resources/nav-code.md:
|
||||
Do this according to AGENT.md §6.8, code from node_modules/@intecion/ipal-kit/docs/agent/skills/iapl-nav/resources/nav-code.md:
|
||||
- globals/Header.ts, Footer.ts (code from §6.8),
|
||||
- globals/Company.ts for market <PL/AU/…>: name, address, <NIP/ABN/…>, phone, email —
|
||||
all localized where it is text,
|
||||
- menu through resolveNav from lib/content (plugin, NOT lib/navigation.ts), components/layout/Header.tsx, Footer.tsx, MobileNav.tsx,
|
||||
- legal links in the footer from System pages roles, NOT by hand,
|
||||
- the project's own globals (Header, Footer, Company) get buildGlobalRevalidateHook (afterChange); plugin globals refresh through ipalKit({ revalidatePath }).
|
||||
- the project's own globals (Header, Footer, Company) get buildGlobalRevalidateHook (afterChange); plugin globals refresh through iapl({ revalidatePath }).
|
||||
Wire it into [locale]/layout.tsx. a11y labels from the admin panel.
|
||||
Plan first.
|
||||
```
|
||||
@@ -230,7 +230,7 @@ Goal: as few blocks as possible, each reusable. Do not write code.
|
||||
|
||||
**9b. One block:**
|
||||
|
||||
Short version: `/ipal-block <Name> — <fields from 9a>, <appearance description / screenshot>`.
|
||||
Short version: `/iapl-block <Name> — <fields from 9a>, <appearance description / screenshot>`.
|
||||
|
||||
```
|
||||
Build the <name> block according to AGENT.md §6 (layer 3):
|
||||
@@ -249,11 +249,11 @@ Check with the checks from AGENT.md §11 (grep for `ctaLabel`, `href="/`, `<img`
|
||||
|
||||
## STEP 10 — Forms, Turnstile, email
|
||||
|
||||
Short version: `/ipal-form <form, who receives submissions>`.
|
||||
Short version: `/iapl-form <form, who receives submissions>`.
|
||||
|
||||
```
|
||||
Do this according to forms.md, turnstile.md, email.md:
|
||||
- form block: <RenderForm> from @intecion/ipal-kit/rsc + formClasses.ts (ipal-form skill) — fields, steps,
|
||||
- form block: <RenderForm> from @intecion/ipal-kit/rsc + formClasses.ts (iapl-form skill) — fields, steps,
|
||||
select options and texts from the admin panel, no custom renderer,
|
||||
- consent checkbox (GDPR consent) with a link to the policy through getSystemPagePath,
|
||||
- Turnstile from SiteProviders in the layout — without passing siteKey to the block,
|
||||
@@ -282,7 +282,7 @@ pings to Google); only non-Google pixels are blocked until consent (analytics.md
|
||||
|
||||
## STEP 12 — Content collections (only when the client needs them)
|
||||
|
||||
Short version: `/ipal-collection <what the client needs>`.
|
||||
Short version: `/iapl-collection <what the client needs>`.
|
||||
|
||||
|
||||
```
|
||||
@@ -301,7 +301,7 @@ Plan first.
|
||||
|
||||
```
|
||||
Check according to hooks.md that these are wired:
|
||||
buildRevalidateHook (a collection hook: Pages + content collections; plugin globals: ipalKit({ revalidatePath }); the project's own globals: buildGlobalRevalidateHook, as in step 8), trackSlugHistoryHook + resolveRedirect,
|
||||
buildRevalidateHook (a collection hook: Pages + content collections; plugin globals: iapl({ revalidatePath }); the project's own globals: buildGlobalRevalidateHook, as in step 8), trackSlugHistoryHook + resolveRedirect,
|
||||
buildCrossLocaleFieldSync (languages from the config), buildPreventDeleteSystemPage, buildValidateUniqueRole.
|
||||
Show a test: change a page's slug → the old URL returns 308 to the new one.
|
||||
```
|
||||
@@ -335,8 +335,8 @@ a hex value instead of a token, a new field with a forbidden name, or a file >80
|
||||
|
||||
## STEP 16 — Audit before handover
|
||||
|
||||
Short version: `/ipal-audit` (script), on the built app `/ipal-seo-check http://localhost:3000`
|
||||
and `/ipal-consent-check http://localhost:3000/<locale>`, then the editor test and compliance by hand.
|
||||
Short version: `/iapl-audit` (script), on the built app `/iapl-seo-check http://localhost:3000`
|
||||
and `/iapl-consent-check http://localhost:3000/<locale>`, then the editor test and compliance by hand.
|
||||
|
||||
|
||||
```
|
||||
@@ -372,14 +372,14 @@ Move <what> to a field in <block/global> and show the diff.
|
||||
**Zoo of CTA fields / monolithic section:**
|
||||
```
|
||||
Stop. AGENT.md §6.5–6.6: CTA = buildLinksField() + CMSLink, image = media + Media,
|
||||
max ~80 lines of JSX. Refactor <block> according to §6.7. If there is content in the database — run /ipal-migrate-fields first.
|
||||
max ~80 lines of JSX. Refactor <block> according to §6.7. If there is content in the database — run /iapl-migrate-fields first.
|
||||
```
|
||||
|
||||
**Unreadable admin panel (cta1/cta2, dozens of fields, "Item 01", Polish labels):**
|
||||
```
|
||||
Stop. AGENT.md §6.5a: repeated items = an array with labels + rowLabel ("+ Add …"), zero numbered
|
||||
fields and spare fields, EN labels of 1–3 words, descriptions ≤ 80 characters, settings in the sidebar.
|
||||
Fix <block> (with content in the database → /ipal-migrate-fields) and run the empty block test.
|
||||
Fix <block> (with content in the database → /iapl-migrate-fields) and run the empty block test.
|
||||
```
|
||||
|
||||
**The agent writes something the plugin already has:**
|
||||
@@ -389,7 +389,7 @@ already has it (AGENT.md §1.1, §7). If it does — remove your code and use th
|
||||
```
|
||||
|
||||
**The plugin is missing something / the plugin has a bug:**
|
||||
Short version: `/ipal-plugin-gap <what does not work>`.
|
||||
Short version: `/iapl-plugin-gap <what does not work>`.
|
||||
```
|
||||
Do not patch it silently. Write a report according to AGENT.md §1.3 (problem, proposed API, why it is universal)
|
||||
in docs/plugin-requests/, tell me, and wait for my decision on that part — no workaround on your own.
|
||||
@@ -403,7 +403,7 @@ If it is a block or a global — rework it.
|
||||
|
||||
**"Done" without proof:**
|
||||
```
|
||||
Run /ipal-audit (without --quick) and show the full output. Without it the step is not finished.
|
||||
Run /iapl-audit (without --quick) and show the full output. Without it the step is not finished.
|
||||
```
|
||||
|
||||
**The agent lost the rules (long conversation):**
|
||||
@@ -414,9 +414,9 @@ and check your recent changes against §0 (compass). List the violations.
|
||||
|
||||
---
|
||||
|
||||
## EXISTING PROJECT — upgrade to the latest ipal-kit
|
||||
## EXISTING PROJECT — upgrade to the latest IAPL
|
||||
|
||||
Short version: `/ipal-upgrade`.
|
||||
Short version: `/iapl-upgrade`.
|
||||
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user