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
+30
View File
@@ -0,0 +1,30 @@
import { libraryBlocks, type LibraryBlocksOptions } from '@intecion/ipal-kit/blocks'
/**
* Every library block is on, because the reference site shows all of them (the Blocks showcase page).
* A client site turns on only what its site map needs (docs/block-library.md "Setup").
*/
export const blockOptions = {
contact: true,
cta: true,
entryList: {
collections: [
{ label: { en: 'Blog posts', pl: 'Wpisy' }, value: 'posts' },
{ label: { en: 'Case studies', pl: 'Realizacje' }, value: 'caseStudies' },
],
},
faq: true,
featureGrid: true,
gallery: true,
hero: true,
logos: true,
pricing: true,
richText: true,
stats: true,
steps: true,
team: true,
testimonials: true,
textMedia: true,
} satisfies LibraryBlocksOptions
export const pageBlocks = [...libraryBlocks(blockOptions)]
+31
View File
@@ -0,0 +1,31 @@
import { createBlockRegistry } from '@intecion/ipal-kit/blocks/rsc'
import Image from 'next/image'
import Link from 'next/link'
import { sendForm } from '@/app/(frontend)/[locale]/actions'
import { formClasses } from '@/components/forms/formClasses'
import * as content from '@/lib/content'
import { getCompany } from '@/lib/globals'
/** Contact details beside the contact form — from the Company global, never from code. */
async function contactDetails(locale: string) {
const company = await getCompany(locale)
const labels = locale === 'pl' ? { address: 'Adres', email: 'E-mail', hours: 'Godziny', phone: 'Telefon' } : { address: 'Address', email: 'E-mail', hours: 'Hours', phone: 'Phone' }
const address = [company.address?.street, [company.address?.postalCode, company.address?.city].filter(Boolean).join(' ')].filter(Boolean).join(', ')
return [
...(company.phone ? [{ href: `tel:${company.phone.replace(/[^\d+]/g, '')}`, label: labels.phone, value: company.phone }] : []),
...(company.email ? [{ href: `mailto:${company.email}`, label: labels.email, value: company.email }] : []),
...(address ? [{ label: labels.address, value: address }] : []),
...(company.hours ? [{ label: labels.hours, value: company.hours }] : []),
]
}
/** blockType → component for every library block, bound to lib/content (docs/block-library.md "The registry"). */
export const blockRegistry = createBlockRegistry(content, {
contactDetails,
formClassNames: formClasses,
Image,
Link,
noSnippet: ['cta'], // the same call to action closes most pages
sendForm,
})