Merge claude/performance-2026-12-36a376: fewer queries per render, no 'use client' on the /client barrels, budgets, the doctor's performance and growth groups

Conflicts kept both sides: the doctor status (twoFactorConfirm with growth and media), its key test, e2e:built (the 2FA
enrolment spec and the performance budgets), the reference index (regenerated). Reference skill copies synced
(iapl-performance added, iapl-audit and iapl-reference updated).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 14:58:44 +01:00
co-authored by Claude Opus 5.5
77 changed files with 5841 additions and 80 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ export const Pages: CollectionConfig = {
{ name: 'layout', type: 'blocks', blocks: pageBlocks, minRows: 1 },
buildSummaryField(), // aiSummary — GEO (llms.txt, MCP)
buildNoindexField(),
{ name: 'slugHistory', type: 'array', admin: { components: rowLabel('slug', 'Old address'), readOnly: true }, fields: [{ name: 'slug', type: 'text' }], labels: { plural: 'Old addresses', singular: 'Old address' } },
{ name: 'slugHistory', type: 'array', admin: { components: rowLabel('slug', 'Old address'), readOnly: true }, fields: [{ name: 'slug', type: 'text', index: true }], labels: { plural: 'Old addresses', singular: 'Old address' } },
],
hooks: {
afterChange: [revalidate.afterChange],
+1 -1
View File
@@ -24,7 +24,7 @@ export async function Header({ header, locale, settings, themeLabel }: Props) {
<header className="sticky top-0 z-header border-b border-border bg-surface-raised/95 backdrop-blur">
<Container className="flex items-center justify-between gap-6 py-4">
<Link className="flex items-center gap-3 font-heading text-h4 text-fg-strong" href={home}>
{logo ? <Media alt="" className="h-8 w-auto" Image={Image} priority resource={logo} sizes="160px" /> : null}
{logo ? <Media alt="" className="h-8 w-auto" eager Image={Image} resource={logo} sizes="160px" /> : null}
<span>{typeof settings?.siteName === 'string' ? settings.siteName : null}</span>
</Link>
<nav aria-label={header.menuLabel ?? undefined} className="hidden md:block">
+4 -4
View File
@@ -2,9 +2,8 @@ import { faqItemsFromLayout } from '@intecion/ipal-kit/blocks'
// @starter:if localBusiness
import { buildLocalBusinessJsonLd, createContentHelpers } from '@intecion/ipal-kit'
import { getPayload } from 'payload'
import { contentConfig } from '@/content.config'
import { i18nConfig, type Locale } from '@/i18n.config'
import { i18nConfig } from '@/i18n.config'
// @starter:else
//: import { createContentHelpers } from '@intecion/ipal-kit'
//:
@@ -65,8 +64,9 @@ export const {
// @starter:if localBusiness
// LocalBusiness from the Company global (replaces the default WebSite + Organization from Site settings)
siteJsonLd: async ({ baseUrl, locale }) => {
const payload = await getPayload({ config })
const company = await payload.findGlobal({ slug: 'company', locale: locale as Locale })
// the layout's cached getter: one Company read per request, not two (docs/performance.md → server)
const { getCompany } = await import('./globals')
const company = await getCompany(locale)
return [
buildLocalBusinessJsonLd({
address: { city: company.address?.city ?? undefined, country: company.address?.country ?? 'PL', postalCode: company.address?.postalCode ?? undefined, street: company.address?.street ?? undefined },