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
@@ -1,5 +1,5 @@
'use server'
// ONE server action for every builder form: honeypot → client IP (IPAL_IP_HEADER) → submitForm
// ONE server action for every builder form: honeypot → client IP (IAPL_IP_HEADER) → submitForm
// (rate limit, Turnstile, validation, consent, save) → the message from Notifications.
import { createSubmitAction } from '@intecion/ipal-kit/server'
import { headers } from 'next/headers'
@@ -13,7 +13,7 @@ export default function DesignPage() {
return (
<Container className="grid gap-10 py-section">
<header className="grid gap-stack">
<p className="text-sm uppercase tracking-heading text-fg-muted">ipal-kit</p>
<p className="text-sm uppercase tracking-heading text-fg-muted">IAPL</p>
<h1 className="font-heading text-h1 leading-heading text-fg-strong">Design tokens</h1>
<p className="max-w-measure text-lead text-fg-muted">
src/design/tokens.ts → pnpm tokens → src/design/tokens.css. The panels set data-theme=&quot;light&quot; and data-theme=&quot;dark&quot;
+1 -1
View File
@@ -9,7 +9,7 @@ import { entryFields } from './entryFields'
const revalidate = buildRevalidateHook({ config: i18nConfig, revalidatePath })
/** The project's own archive collection (skill ipal-collection) — the library has no case-study type. */
/** The project's own archive collection (skill iapl-collection) — the library has no case-study type. */
export const CaseStudies: CollectionConfig = {
slug: 'caseStudies',
admin: { defaultColumns: ['title', 'publishedAt', 'updatedAt'], useAsTitle: 'title' },
@@ -1,7 +1,7 @@
import { buttonClass } from '@intecion/ipal-kit/blocks/rsc'
import { COLOR_DEFAULTS, FLUID_TOKENS, IPAL_TOKENS, type IpalTokenName, STATIC_DEFAULTS } from '@intecion/ipal-kit/tokens'
import { COLOR_DEFAULTS, FLUID_TOKENS, IAPL_TOKENS, type IaplTokenName, STATIC_DEFAULTS } from '@intecion/ipal-kit/tokens'
const COLORS = Object.keys(COLOR_DEFAULTS) as IpalTokenName[]
const COLORS = Object.keys(COLOR_DEFAULTS) as IaplTokenName[]
const TYPE = ['text-display', 'text-h1', 'text-h2', 'text-h3', 'text-h4', 'text-lead', 'text-base', 'text-sm', 'text-xs']
const RADII = ['rounded-sm', 'rounded-control', 'rounded-card', 'rounded-media', 'rounded-full']
const SHADOWS = ['shadow-sm', 'shadow-md', 'shadow-lg']
@@ -9,7 +9,7 @@ const SHADOWS = ['shadow-sm', 'shadow-md', 'shadow-lg']
type Props = { inverse?: boolean; theme?: 'dark' | 'light'; title: string }
/**
* One panel of the styleguide. Swatches read IPAL_TOKENS (`var(--ipal-…)` strings from the plugin), so a new
* One panel of the styleguide. Swatches read IAPL_TOKENS (`var(--ipal-…)` strings from the plugin), so a new
* token appears here with no code change. Inline styles are the one place raw vars are fine: this page shows them.
*/
export function TokenPanel({ inverse, theme, title }: Props) {
@@ -27,7 +27,7 @@ export function TokenPanel({ inverse, theme, title }: Props) {
<ul className="grid grid-cols-2 gap-3 sm:grid-cols-3">
{COLORS.map((name) => (
<li className="flex items-center gap-3" key={name}>
<span className="size-8 shrink-0 rounded-sm border border-border" style={{ background: IPAL_TOKENS[name] }} />
<span className="size-8 shrink-0 rounded-sm border border-border" style={{ background: IAPL_TOKENS[name] }} />
<code className="text-xs text-fg-muted">{name}</code>
</li>
))}
@@ -4,7 +4,7 @@ import { buttonClass } from '@intecion/ipal-kit/blocks/rsc'
const control =
'w-full rounded-control border border-border bg-surface px-3 py-2 text-fg placeholder:text-fg-muted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus'
/** The ONLY place panel forms are styled (ipal-form). Token utilities only — no hex, no dark:. */
/** The ONLY place panel forms are styled (iapl-form). Token utilities only — no hex, no dark:. */
export const formClasses: BuilderFormClassNames = {
actions: 'flex flex-wrap gap-3',
back: buttonClass('secondary'),
+1 -1
View File
@@ -14,7 +14,7 @@ import { MobileNav } from './MobileNav'
type Props = { header: HeaderData; locale: string; settings: null | Record<string, unknown>; themeLabel: null | string }
/** Site header: logo and name from Site settings, menu from the Header global (ipal-nav). */
/** Site header: logo and name from Site settings, menu from the Header global (iapl-nav). */
export async function Header({ header, locale, settings, themeLabel }: Props) {
const items = await resolveNav(header.navItems, locale)
const cta = header.links?.[0]?.link ? await resolveLink(header.links[0].link, locale) : null
@@ -4,7 +4,7 @@ import type { NavItem } from '@intecion/ipal-kit'
import Link from 'next/link'
import { useEffect, useState } from 'react'
/** Mobile menu: open state only, data via props (ipal-nav). Esc closes it. */
/** Mobile menu: open state only, data via props (iapl-nav). Esc closes it. */
export function MobileNav({ items, menuLabel }: { items: NavItem[]; menuLabel: string }) {
const [open, setOpen] = useState(false)
useEffect(() => {
+2 -2
View File
@@ -1,6 +1,6 @@
/*
* GENERATED by `ipal-tokens` from src/design/tokens.ts — do not edit; change src/design/tokens.ts and run
* `pnpm exec ipal-tokens`. Import it in styles.css after @intecion/ipal-kit/tokens.css (and tailwind.css).
* GENERATED by `iapl-tokens` from src/design/tokens.ts — do not edit; change src/design/tokens.ts and run
* `pnpm exec iapl-tokens`. Import it in styles.css after @intecion/ipal-kit/tokens.css (and tailwind.css).
*/
:root {
+1 -1
View File
@@ -3,7 +3,7 @@ import type { GlobalConfig } from 'payload'
import { buildGlobalRevalidateHook, buildLinkField, rowLabel } from '@intecion/ipal-kit'
import { revalidatePath } from 'next/cache'
/** ipal-nav: link columns and a note. Legal links come from System pages (getSystemLinks), not from here. */
/** iapl-nav: link columns and a note. Legal links come from System pages (getSystemLinks), not from here. */
export const Footer: GlobalConfig = {
slug: 'footer',
access: { read: () => true },
+1 -1
View File
@@ -3,7 +3,7 @@ import type { GlobalConfig } from 'payload'
import { buildGlobalRevalidateHook, buildLinkField, buildLinksField, rowLabel } from '@intecion/ipal-kit'
import { revalidatePath } from 'next/cache'
/** ipal-nav: menu with one submenu level, a CTA button, the mobile menu label. Logo comes from Site settings. */
/** iapl-nav: menu with one submenu level, a CTA button, the mobile menu label. Logo comes from Site settings. */
export const Header: GlobalConfig = {
slug: 'header',
access: { read: () => true },
+4 -4
View File
@@ -1,18 +1,18 @@
import { assertEnv, ipalEnvRules } from '@intecion/ipal-kit/env'
import { assertEnv, iaplEnvRules } from '@intecion/ipal-kit/env'
export function register() {
if (process.env.NEXT_RUNTIME !== 'nodejs') {return}
// storage: R2 is required in production. ALLOW_LOCAL_MEDIA=1 lets a production build run on local disk for
// local checks and CI only — never set it in Coolify.
// @starter:if crawl
// cookieCrawl: IPAL_COOKIE_SCAN_URL / IPAL_COOKIE_SCAN_TOKEN in production (cookieScanner.crawl, the shared service).
// cookieCrawl: IAPL_COOKIE_SCAN_URL / IAPL_COOKIE_SCAN_TOKEN in production (cookieScanner.crawl, the shared service).
// @starter:endif
// databaseName: DATABASE_URI must name example-studiopl_dev / example-studiopl_prod (databaseNamesFor).
// R2_PUBLIC_URL optional: media are served through the app by default (storage.md, env.md).
assertEnv(
ipalEnvRules({
iaplEnvRules({
// @starter:if crawl
cookieCrawl: true, // IPAL_COOKIE_SCAN_URL / IPAL_COOKIE_SCAN_TOKEN in production — the shared cookie-crawler service
cookieCrawl: true, // IAPL_COOKIE_SCAN_URL / IAPL_COOKIE_SCAN_TOKEN in production — the shared cookie-crawler service
// @starter:endif
databaseName: { domain: 'example-studio.pl' },
// @starter:if graph
+2 -2
View File
@@ -57,10 +57,10 @@ export const {
mcp: { serverName: 'example-studio-site' },
pageJsonLd: { faq: (doc) => faqItemsFromLayout(doc) }, // FAQ blocks → FAQPage rich results
// @starter:if aiBotsBlockTraining
//: robots: { aiBots: 'block-training' }, // client decision — AGENTS.md → Project decisions (ipal-audit-skip: aibots)
//: robots: { aiBots: 'block-training' }, // client decision — AGENTS.md → Project decisions (iapl-audit-skip: aibots)
// @starter:endif
// @starter:if aiBotsDisallow
//: robots: { aiBots: 'disallow' }, // client decision — AGENTS.md → Project decisions (ipal-audit-skip: aibots)
//: robots: { aiBots: 'disallow' }, // client decision — AGENTS.md → Project decisions (iapl-audit-skip: aibots)
// @starter:endif
// @starter:if localBusiness
// LocalBusiness from the Company global (replaces the default WebSite + Organization from Site settings)
+1 -1
View File
@@ -4,7 +4,7 @@ import type { Locale } from '@/i18n.config'
import { getCachedPayload } from './content'
/** Cached getters for the project's own globals — the layout passes them down as props (ipal-nav). */
/** Cached getters for the project's own globals — the layout passes them down as props (iapl-nav). */
export const getHeader = cache(async (locale: string) => (await getCachedPayload()).findGlobal({ slug: 'header', depth: 1, locale: locale as Locale }))
export const getFooter = cache(async (locale: string) => (await getCachedPayload()).findGlobal({ slug: 'footer', depth: 1, locale: locale as Locale }))
export const getCompany = cache(async (locale: string) => (await getCachedPayload()).findGlobal({ slug: 'company', locale: locale as Locale }))
+8 -5
View File
@@ -1,7 +1,7 @@
// @starter:if twoFactor
import { payloadTotp } from '@clocklimited/payload-2fa'
// @starter:endif
import { buildR2Storage, ipalKit, mailAdapter } from '@intecion/ipal-kit'
import { buildR2Storage, iapl, mailAdapter } from '@intecion/ipal-kit'
import { lexicalEditor } from '@payloadcms/richtext-lexical'
import { s3Storage } from '@payloadcms/storage-s3'
import { revalidatePath } from 'next/cache'
@@ -37,7 +37,7 @@ export default buildConfig({
},
// absolute URLs in form e-mails (logo, links)
serverURL: process.env.NEXT_PUBLIC_SERVER_URL,
// ipalKit injects `users` (roles + 2FA)
// iapl injects `users` (roles + 2FA)
collections: [
Pages,
// @starter:if posts
@@ -59,8 +59,11 @@ export default buildConfig({
// @starter:if demo
e2eEarlyStaff, // a test fixture, a no-op without E2E_LATE_STAFF=1 (e2e/late-staff-fixture.ts)
// @starter:endif
ipalKit({
iapl({
i18n: i18nConfig,
// a site made since 1.17.0: the 2FA counter key and the statistics cookie carry the new spelling (docs/stats.md);
// with `stats` on, the layout passes visitorCookie={IAPL_VISITOR_COOKIE} to match
storageNames: 'iapl',
// @starter:if demo
// (the staffCollections entry exists only for e2e/late-staff.spec.ts, with E2E_LATE_STAFF=1)
access: { authCollection: 'users', ...(E2E_LATE_STAFF ? { staffCollections: E2E_STAFF_SLUGS } : {}) },
@@ -89,7 +92,7 @@ export default buildConfig({
// @starter:if twoFactor
twoFactor: { issuer: 'Example Studio', plugin: payloadTotp },
// @starter:else
//: twoFactor: false, // turned off by the owner — AGENTS.md → Project decisions, ipal-doctor.json
//: twoFactor: false, // turned off by the owner — AGENTS.md → Project decisions, iapl-doctor.json
// @starter:endif
// @starter:if whiteLabel
whiteLabel: true,
@@ -105,7 +108,7 @@ export default buildConfig({
// @starter:endif
indexNow: true,
consentLog: true,
// Privacy → Cookie review: scan + approval; crawl needs IPAL_COOKIE_SCAN_URL / IPAL_COOKIE_SCAN_TOKEN
// Privacy → Cookie review: scan + approval; crawl needs IAPL_COOKIE_SCAN_URL / IAPL_COOKIE_SCAN_TOKEN
// @starter:if crawl
cookieScanner: { crawl: true },
// @starter:endif
+5 -5
View File
@@ -143,7 +143,7 @@ const CASES = [
const META: Record<string, { en: string; pl: string }> = {
'architektura-domow': tx('Projekty domów jednorodzinnych: analiza działki, koncepcja w trzech wariantach, projekt budowlany i wykonawczy. Example Studio, Warszawa.', 'Family house design: site analysis, a concept in three options, permit and construction drawings. Example Studio, Warsaw.'),
blog: tx('Blog pracowni Example Studio: jak wybrać działkę, ile trwa projekt domu, z czego budować. Odpowiedzi na pytania klientów, bez żargonu.', 'The Example Studio blog: choosing a plot, how long a house design takes, what to build with. Answers to clients’ questions, no jargon.'),
bloki: tx('Strona testowa biblioteki bloków ipal-kit: każdy blok w każdym wariancie, także na odwróconym tle. Niewidoczna dla wyszukiwarek.', 'The ipal-kit block library test page: every block in every variant, also on the inverted background. Hidden from search engines.'),
bloki: tx('Strona testowa biblioteki bloków IAPL: każdy blok w każdym wariancie, także na odwróconym tle. Niewidoczna dla wyszukiwarek.', 'The IAPL block library test page: every block in every variant, also on the inverted background. Hidden from search engines.'),
kontakt: tx('Napisz do Example Studio: odpowiadamy w ciągu jednego dnia roboczego. Pierwsza rozmowa o domu, wnętrzu albo nadzorze jest bezpłatna.', 'Write to Example Studio: we reply within one working day. The first conversation about a house, an interior or supervision is free.'),
'nadzor-autorski': tx('Nadzór autorski: cotygodniowe wizyty na budowie, odbiory etapów i raport ze zdjęciami po każdej wizycie. Example Studio.', 'Site supervision: weekly site visits, stage inspections and a photo report after every visit. Example Studio.'),
'nie-znaleziono': tx('Nie znaleziono strony w serwisie Example Studio. Przejdź na stronę główną albo skorzystaj z menu.', 'Page not found on the Example Studio site. Go to the home page or use the menu.'),
@@ -152,7 +152,7 @@ const META: Record<string, { en: string; pl: string }> = {
'polityka-prywatnosci': tx('Polityka prywatności Example Studio: kto przetwarza dane z formularzy, w jakim celu i jakie masz prawa.', 'The Example Studio privacy policy: who processes form data, for what purpose and what your rights are.'),
'projektowanie-wnetrz': tx('Projektowanie wnętrz mieszkań, domów i biur: układ, meble na wymiar, materiały z próbkami i wizualizacje każdego pomieszczenia.', 'Interior design for flats, houses and offices: layout, built-in furniture, materials from samples and renderings of every room.'),
realizacje: tx('Realizacje Example Studio: dom pod lasem, przebudowa kamienicy i kawiarnia z czytelnią — założenia, decyzje, materiały i czas realizacji.', 'Example Studio case studies: a house by the forest, a tenement conversion and a café with a reading room — brief, decisions, materials, timing.'),
regulamin: tx('Regulamin serwisu Example Studio — przykładowa treść strony referencyjnej ipal-kit.', 'Terms of service of the Example Studio site — sample text on the ipal-kit reference site.'),
regulamin: tx('Regulamin serwisu Example Studio — przykładowa treść strony referencyjnej IAPL.', 'Terms of service of the Example Studio site — sample text on the IAPL reference site.'),
start: tx('Example Studio — pracownia architektury i wnętrz z Warszawy. Projektujemy domy i wnętrza z naturalnych materiałów, które dobrze się starzeją.', 'Example Studio — an architecture and interior studio in Warsaw. We design houses and interiors in natural materials that age well.'),
uslugi: tx('Usługi Example Studio: projekty domów, projektowanie wnętrz i nadzór autorski. Zakres, proces i orientacyjne ceny.', 'Example Studio services: house design, interior design and site supervision. Scope, process and indicative prices.'),
wycena: tx('Poproś o wycenę projektu: trzy krótkie kroki, odpowiedź z wyceną i harmonogramem w ciągu trzech dni roboczych.', 'Ask for a project quote: three short steps, a reply with the price and schedule within three working days.'),
@@ -172,8 +172,8 @@ export async function seedDemoGlobals(seed: Seeder, media: Record<string, string
defaultTheme: 'system',
favicon: media['icon-example-studio'],
llmsIntro: tx(
'Example Studio to fikcyjna pracownia architektury i wnętrz z Warszawy, stworzona jako strona referencyjna ipal-kit. Projektuje domy jednorodzinne, wnętrza i prowadzi nadzór autorski.',
'Example Studio is a made-up architecture and interior studio from Warsaw, built as the ipal-kit reference site. It designs family houses and interiors and provides site supervision.',
'Example Studio to fikcyjna pracownia architektury i wnętrz z Warszawy, stworzona jako strona referencyjna IAPL. Projektuje domy jednorodzinne, wnętrza i prowadzi nadzór autorski.',
'Example Studio is a made-up architecture and interior studio from Warsaw, built as the IAPL reference site. It designs family houses and interiors and provides site supervision.',
),
siteDescription: tx('Pracownia architektury i wnętrz: domy, wnętrza, nadzór autorski. Projekty, które dobrze się starzeją.', 'Architecture and interior studio: houses, interiors, site supervision. Designs that age well.'),
siteName: 'Example Studio',
@@ -466,6 +466,6 @@ export async function seedDemoNavigation(seed: Seeder) {
{ heading: tx('Pracownia', 'Studio'), items: [link(tx('O nas', 'About'), 'o-nas'), link(tx('Realizacje', 'Case studies'), 'realizacje'), link(tx('Blog', 'Blog'), 'blog')] },
{ heading: tx('Kontakt', 'Contact'), items: [link(tx('Napisz do nas', 'Write to us'), 'kontakt'), link(tx('Wycena', 'Get a quote'), 'wycena')] },
],
note: tx('Strona referencyjna ipal-kit — firma i treści są fikcyjne.', 'ipal-kit reference site — the company and content are made up.'),
note: tx('Strona referencyjna IAPL — firma i treści są fikcyjne.', 'IAPL reference site — the company and content are made up.'),
})
}
+1 -1
View File
@@ -13,7 +13,7 @@ const consent = {
width: 100,
}
/** The two e-mails every form sends: a notification to the company and a confirmation to the sender (ipal-form). */
/** The two e-mails every form sends: a notification to the company and a confirmation to the sender (iapl-form). */
function emails(notifyTo: string, subject: Localized, confirmationSubject: Localized) {
return [
{ emailTo: notifyTo, message: rich(tx('Nowe zgłoszenie z formularza:\n\n{{*:table}}', 'New form submission:\n\n{{*:table}}')), replyTo: '{{email}}', subject },
+2 -2
View File
@@ -2,14 +2,14 @@
* Seeds of the reference site — rules: node_modules/@intecion/ipal-kit/docs/seeding.md.
*
* pnpm seed # the reference site: demo layer first (filled pages win), then the base layer;
* # a site made by `ipal-kit create`: the base layer only
* # a site made by `iapl create`: the base layer only
* pnpm seed:base # only what every new site keeps
* pnpm seed:demo # reference site only: the made-up company's content (needs the base forms)
* SEED_DRY_RUN=1 pnpm seed # print the plan, write nothing
*
* VERY IMPORTANT — after launch: never the whole seed again. Name the records the run may touch:
* SEED_ONLY="pages:kontakt" SEED_DRY_RUN=1 pnpm seed → Backup now (Coolify) → the same without SEED_DRY_RUN
* createSeeder refuses a run without SEED_ONLY on production or a non-local database (IPAL_SEED_ALLOW_FULL=1
* createSeeder refuses a run without SEED_ONLY on production or a non-local database (IAPL_SEED_ALLOW_FULL=1
* only with the owner's explicit OK). Pages are create-only; an edited record is skipped.
*/
import config from '@payload-config'