Reference site: Example Studio on ipal-kit (reference/), index for agents, CI job

reference/ is one complete client site on the plugin (made-up company, pl/en,
MongoDB, every library block and template, token standard light/dark, forms,
consent, SEO/GEO, enforced CSP, 2FA, base + demo seeds, Coolify runbook,
smoke tests). It uses the plugin as file:.. (injected) and is not shipped.

- docs/agent/reference-site/INDEX.md (generated by scripts/reference-index.mjs,
  kept current by test/referenceIndex.test.ts)
- AGENT.md section and pointers in ipal-site, ipal-setup, ipal-reference,
  ipal-upgrade, ipal-block; release steps in PROGRAMISTA §8.1b
- CI: reference (fast) on every push, reference-full on main; doctor steps
  wired, commented until ipal-doctor ships

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 15:17:11 +01:00
co-authored by Claude Opus 5.5
parent 8bb5ebd394
commit 8adac41f92
129 changed files with 18440 additions and 1 deletions
+37
View File
@@ -0,0 +1,37 @@
import type { GlobalConfig } from 'payload'
import { buildGlobalRevalidateHook } from '@intecion/ipal-kit'
import { revalidatePath } from 'next/cache'
/** Company data for a PL market site: footer, contact block details, LocalBusiness JSON-LD. */
export const Company: GlobalConfig = {
slug: 'company',
access: { read: () => true },
fields: [
{ name: 'name', type: 'text', required: true },
{ name: 'legalName', type: 'text' },
{ name: 'taxId', type: 'text', label: 'NIP' },
{
name: 'address',
type: 'group',
fields: [
{ name: 'street', type: 'text' },
{ name: 'postalCode', type: 'text' },
{ name: 'city', type: 'text' },
{ name: 'country', type: 'text', defaultValue: 'PL' },
],
},
{ name: 'phone', type: 'text' },
{ name: 'email', type: 'email' },
{ name: 'hours', type: 'text', localized: true, admin: { description: 'Shown next to the contact form, e.g. "Mon–Fri 9:00–17:00".' } },
{
name: 'socials',
type: 'array',
fields: [
{ name: 'label', type: 'text', required: true },
{ name: 'url', type: 'text', required: true },
],
},
],
hooks: { afterChange: [buildGlobalRevalidateHook({ revalidatePath })] },
}
+31
View File
@@ -0,0 +1,31 @@
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. */
export const Footer: GlobalConfig = {
slug: 'footer',
access: { read: () => true },
fields: [
{
name: 'columns',
type: 'array',
admin: { components: rowLabel('heading', 'Column'), initCollapsed: true },
fields: [
{ name: 'heading', type: 'text', localized: true },
{
name: 'items',
type: 'array',
admin: { components: rowLabel('link.label', 'Link'), initCollapsed: true },
fields: [buildLinkField({ appearances: false })],
labels: { plural: 'Links', singular: 'Link' },
},
],
labels: { plural: 'Columns', singular: 'Column' },
maxRows: 4,
},
{ name: 'note', type: 'textarea', localized: true },
],
hooks: { afterChange: [buildGlobalRevalidateHook({ revalidatePath })] },
}
+33
View File
@@ -0,0 +1,33 @@
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. */
export const Header: GlobalConfig = {
slug: 'header',
access: { read: () => true },
fields: [
{
name: 'navItems',
type: 'array',
admin: { components: rowLabel('link.label', 'Menu item'), initCollapsed: true },
fields: [
buildLinkField({ appearances: false }),
{
name: 'subItems',
type: 'array',
admin: { components: rowLabel('link.label', 'Submenu item'), initCollapsed: true },
fields: [buildLinkField({ appearances: false })],
labels: { plural: 'Submenu', singular: 'Submenu item' },
maxRows: 10,
},
],
labels: { plural: 'Menu items', singular: 'Menu item' },
maxRows: 8,
},
buildLinksField({ maxRows: 1 }),
{ name: 'menuLabel', type: 'text', admin: { description: 'Accessible label of the mobile menu button, e.g. "Menu".' }, localized: true },
],
hooks: { afterChange: [buildGlobalRevalidateHook({ revalidatePath })] },
}