From 81e864bde9508e459218d0dca01f1d4a528f8cc5 Mon Sep 17 00:00:00 2001 From: rasm-its Date: Fri, 16 Oct 2026 11:52:29 +0200 Subject: [PATCH] =?UTF-8?q?Docs=20for=201.9.2:=20import=20instead=20of=20c?= =?UTF-8?q?ode;=20docs=E2=86=94code=20consistency=20test;=20audit=20accept?= =?UTF-8?q?s=20one-line=20routes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AGENT.md: §7 full capability catalog (need → import), §0b/§3/§6 on RenderForm, SiteProviders, createPageRoute, re-exported routes, plugin section fields, resolveLink/resolveNav - PROGRAMISTA §2.4, §2.7–2.8 rewritten; §6 items 28–33 (28: FormRenderer leaked the Emails tab) - forms, links, blocks, pages, consent, turnstile, notifications, seo, mcp, i18n, deployment docs - ipal-form: RenderForm block, formClasses, CustomForm example (FormRenderer template removed), seed template handles steps and option labels per language - ipal-nav, ipal-block, ipal-setup, ipal-upgrade, ipal-seo-check, ipal-consent-check, vibe.md - ipal-audit: re-export routes and SiteProviders satisfy the mandatory set; flags form-engine copies, project section fields / navigation, server entries in client components - test/docsConsistency: docs imports exist in code; every public export is documented - CHANGELOG 1.9.2 Co-Authored-By: Claude Opus 5.5 --- dev/payload-types.ts | 279 +++++++++++++++--- docs/CHANGELOG.md | 51 ++++ docs/agent/AGENT.md | 197 ++++++++----- docs/agent/skills/ipal-audit/scripts/audit.sh | 44 ++- docs/agent/skills/ipal-block/SKILL.md | 10 +- .../skills/ipal-block/resources/kod-sekcji.md | 93 ++---- docs/agent/skills/ipal-consent-check/SKILL.md | 2 +- docs/agent/skills/ipal-form/SKILL.md | 83 +++--- .../resources/CustomForm.example.tsx | 50 ++++ .../skills/ipal-form/resources/FormBlock.tsx | 51 ++-- .../ipal-form/resources/FormRenderer.tsx | 138 --------- .../skills/ipal-form/resources/formClasses.ts | 29 ++ .../ipal-form/resources/seed-form.template.ts | 34 ++- docs/agent/skills/ipal-nav/SKILL.md | 9 +- .../ipal-nav/resources/kod-nawigacji.md | 47 +-- docs/agent/skills/ipal-seo-check/SKILL.md | 4 +- docs/agent/skills/ipal-setup/SKILL.md | 20 +- docs/agent/skills/ipal-upgrade/SKILL.md | 8 + docs/blocks.md | 17 ++ docs/consent.md | 8 + docs/deployment.md | 2 +- docs/dev/PROGRAMISTA.md | 175 +++++------ docs/dev/vibe.md | 39 ++- docs/forms.md | 68 ++++- docs/i18n.md | 4 + docs/links.md | 52 +++- docs/mcp.md | 3 + docs/notifications.md | 6 +- docs/pages.md | 21 +- docs/seo.md | 11 +- docs/turnstile.md | 3 + test/docsConsistency.test.ts | 111 +++++++ test/links.test.ts | 2 +- 33 files changed, 1073 insertions(+), 598 deletions(-) create mode 100644 docs/agent/skills/ipal-form/resources/CustomForm.example.tsx delete mode 100644 docs/agent/skills/ipal-form/resources/FormRenderer.tsx create mode 100644 docs/agent/skills/ipal-form/resources/formClasses.ts create mode 100644 test/docsConsistency.test.ts diff --git a/dev/payload-types.ts b/dev/payload-types.ts index 46dd43d..652173e 100644 --- a/dev/payload-types.ts +++ b/dev/payload-types.ts @@ -73,6 +73,7 @@ export interface Config { media: Media; forms: Form; 'form-submissions': FormSubmission; + 'consent-records': ConsentRecord; 'payload-kv': PayloadKv; 'payload-locked-documents': PayloadLockedDocument; 'payload-preferences': PayloadPreference; @@ -86,6 +87,7 @@ export interface Config { media: MediaSelect | MediaSelect; forms: FormsSelect | FormsSelect; 'form-submissions': FormSubmissionsSelect | FormSubmissionsSelect; + 'consent-records': ConsentRecordsSelect | ConsentRecordsSelect; 'payload-kv': PayloadKvSelect | PayloadKvSelect; 'payload-locked-documents': PayloadLockedDocumentsSelect | PayloadLockedDocumentsSelect; 'payload-preferences': PayloadPreferencesSelect | PayloadPreferencesSelect; @@ -172,46 +174,15 @@ export interface User { export interface Page { id: number; title?: string | null; - meta?: { - title?: string | null; - description?: string | null; - /** - * Maximum upload file size: 12MB. Recommended file size for images is <500KB. - */ - image?: (number | null) | Media; - /** - * Use this exact text as the browser-tab title — no site name, no separator. Leave empty to compose the title automatically. - */ - titleOverride?: string | null; - }; - updatedAt: string; - createdAt: string; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "media". - */ -export interface Media { - id: number; - updatedAt: string; - createdAt: string; - url?: string | null; - thumbnailURL?: string | null; - filename?: string | null; - mimeType?: string | null; - filesize?: number | null; - width?: number | null; - height?: number | null; - focalX?: number | null; - focalY?: number | null; -} -/** - * This interface was referenced by `Config`'s JSON-Schema - * via the `definition` "posts". - */ -export interface Post { - id: number; - title?: string | null; + slug?: string | null; + layout?: + | { + form?: (number | null) | Form; + id?: string | null; + blockName?: string | null; + blockType: 'formBlock'; + }[] + | null; meta?: { title?: string | null; description?: string | null; @@ -341,6 +312,70 @@ export interface Form { blockName?: string | null; blockType: 'textarea'; } + | { + /** + * Technical name, e.g. "services" — no spaces. + */ + name: string; + label?: string | null; + width?: number | null; + required?: boolean | null; + options?: + | { + label: string; + value: string; + id?: string | null; + }[] + | null; + /** + * Empty = no minimum (Required = at least one). + */ + minSelected?: number | null; + /** + * Empty = no limit. + */ + maxSelected?: number | null; + id?: string | null; + blockName?: string | null; + blockType: 'checkboxGroup'; + } + | { + name: string; + label?: string | null; + width?: number | null; + required?: boolean | null; + defaultValue?: string | null; + id?: string | null; + blockName?: string | null; + blockType: 'date'; + } + | { + name: string; + label?: string | null; + width?: number | null; + defaultValue?: string | null; + options?: + | { + label: string; + value: string; + id?: string | null; + }[] + | null; + required?: boolean | null; + id?: string | null; + blockName?: string | null; + blockType: 'radio'; + } + | { + /** + * Starts a new step: the fields below it (until the next Step) are shown together, with Next / Back buttons. Leave the form without Steps for a single-screen form. + */ + title?: string | null; + description?: string | null; + id?: string | null; + blockName?: string | null; + blockType: 'step'; + } )[] | null; submitButtonLabel?: string | null; @@ -392,6 +427,46 @@ export interface Form { updatedAt: string; createdAt: string; } +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "media". + */ +export interface Media { + id: number; + updatedAt: string; + createdAt: string; + url?: string | null; + thumbnailURL?: string | null; + filename?: string | null; + mimeType?: string | null; + filesize?: number | null; + width?: number | null; + height?: number | null; + focalX?: number | null; + focalY?: number | null; +} +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "posts". + */ +export interface Post { + id: number; + title?: string | null; + meta?: { + title?: string | null; + description?: string | null; + /** + * Maximum upload file size: 12MB. Recommended file size for images is <500KB. + */ + image?: (number | null) | Media; + /** + * Use this exact text as the browser-tab title — no site name, no separator. Leave empty to compose the title automatically. + */ + titleOverride?: string | null; + }; + updatedAt: string; + createdAt: string; +} /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "form-submissions". @@ -409,6 +484,25 @@ export interface FormSubmission { updatedAt: string; createdAt: string; } +/** + * Proof of cookie consent: random id (also in the visitor cookie), choices, policy version, time. No personal data. + * + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "consent-records". + */ +export interface ConsentRecord { + id: number; + consentId: string; + version: number; + choices?: { + necessary?: boolean | null; + functional?: boolean | null; + analytics?: boolean | null; + marketing?: boolean | null; + }; + updatedAt: string; + createdAt: string; +} /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-kv". @@ -456,6 +550,10 @@ export interface PayloadLockedDocument { | ({ relationTo: 'form-submissions'; value: number | FormSubmission; + } | null) + | ({ + relationTo: 'consent-records'; + value: number | ConsentRecord; } | null); globalSlug?: string | null; user: { @@ -529,6 +627,18 @@ export interface UsersSelect { */ export interface PagesSelect { title?: T; + slug?: T; + layout?: + | T + | { + formBlock?: + | T + | { + form?: T; + id?: T; + blockName?: T; + }; + }; meta?: | T | { @@ -683,6 +793,62 @@ export interface FormsSelect { id?: T; blockName?: T; }; + checkboxGroup?: + | T + | { + name?: T; + label?: T; + width?: T; + required?: T; + options?: + | T + | { + label?: T; + value?: T; + id?: T; + }; + minSelected?: T; + maxSelected?: T; + id?: T; + blockName?: T; + }; + date?: + | T + | { + name?: T; + label?: T; + width?: T; + required?: T; + defaultValue?: T; + id?: T; + blockName?: T; + }; + radio?: + | T + | { + name?: T; + label?: T; + width?: T; + defaultValue?: T; + options?: + | T + | { + label?: T; + value?: T; + id?: T; + }; + required?: T; + id?: T; + blockName?: T; + }; + step?: + | T + | { + title?: T; + description?: T; + id?: T; + blockName?: T; + }; }; submitButtonLabel?: T; confirmationType?: T; @@ -723,6 +889,24 @@ export interface FormSubmissionsSelect { updatedAt?: T; createdAt?: T; } +/** + * This interface was referenced by `Config`'s JSON-Schema + * via the `definition` "consent-records_select". + */ +export interface ConsentRecordsSelect { + consentId?: T; + version?: T; + choices?: + | T + | { + necessary?: T; + functional?: T; + analytics?: T; + marketing?: T; + }; + updatedAt?: T; + createdAt?: T; +} /** * This interface was referenced by `Config`'s JSON-Schema * via the `definition` "payload-kv_select". @@ -986,6 +1170,18 @@ export interface Notification { */ consent?: string | null; notFound?: string | null; + /** + * Step-by-step forms: button to the next step. + */ + next?: string | null; + /** + * Step-by-step forms: button to the previous step. + */ + back?: string | null; + /** + * Progress — {current} and {total} are replaced. + */ + stepOf?: string | null; }; updatedAt?: string | null; createdAt?: string | null; @@ -1112,6 +1308,9 @@ export interface NotificationsSelect { validation?: T; consent?: T; notFound?: T; + next?: T; + back?: T; + stepOf?: T; }; updatedAt?: T; createdAt?: T; diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 8bab531..2f9fc9e 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +8,57 @@ wersji naraz przejdź po kolei wszystkie sekcje „Wymaga zmian w projekcie” o wersji, którą masz. Nowe wydanie = nowa sekcja na górze; najstarsze usuwamy dopiero powyżej 20. +## 1.9.2 + +Import zamiast kodu: to, co każdy projekt pisał tak samo, jest w pluginie — logika i +szkielet. Wygląd zostaje w projekcie (klasy, własny markup na hookach). Wszystko opcjonalne: +dotychczasowy kod projektów działa bez zmian. + +### Wymaga zmian w projekcie +- **Bezpieczeństwo — własny `FormRenderer`:** szablon z `ipal-form` przekazywał do komponentu + klienckiego cały dokument formularza. Local API czyta z `overrideAccess`, więc w HTML/RSC + lądowała zakładka **Emails** (adresy firmy, szablony). Zamień blok na `` (niżej) albo + przekazuj do klienta tylko pola, etykiety i potwierdzenie. PROGRAMISTA §6 poz. 28. +- **Postgres:** `pnpm payload migrate:create` — nowe typy pól formularza (Step, Checkbox group, + Radio, Date) i teksty `next` / `back` / `stepOf` w Notifications. MongoDB/SQLite (push) bez zmian. + +### Nowe +- **Formularze z panelu w jednej linii:** `` (`/rsc`) — + rich text, wiązanie akcji, redirect, tylko publiczna część formularza w przeglądarce. Pod spodem + `BuilderForm` (`/client`, czysty dostępny HTML bez stylów, `classNames`, `renderField`) i + `useBuilderForm` (cała logika dla własnego markupu). Szablony: `ipal-form/resources/FormBlock.tsx`, + `formClasses.ts`, `CustomForm.example.tsx` (stary `FormRenderer.tsx` usunięty). +- **Formularze krokowe i listy wyboru:** w panelu bloki **Step** (podział na ekrany, tytuł i opis per + język), **Checkbox group** (wiele wyborów, min/max), **Radio**, **Date** — domyślnie włączone + (`forms.fields.: false` wyłącza). Serwer sprawdza wartości z panelu, liczbę wyborów i daty; + wybory zapisane czytelnie („www, seo”). Dalej waliduje bieżący krok, błąd z serwera wraca na krok z + polem, fokus na nowym kroku. Teksty: Notifications → `next`, `back`, `stepOf`. +- **Layout:** `getSiteShell(locale)` (zgoda, analityka, klucz Turnstile, teksty formularzy, JSON-LD + WebSite + Organization, Site Settings) + `` (`/rsc`) — providery, baner, + przycisk cookies, Analytics, JSON-LD i preconnect w dobrej kolejności; każda część do podmiany + albo wyłączenia. `siteJsonLd` w `createContentHelpers` dla LocalBusiness. +- **Strona i 404:** `createPageRoute(content, { blocks, notFound, permanentRedirect, blockProps, render })` + i `createNotFoundPage(content, { blocks, fallback })` (`/rsc`). +- **Trasy z jednej linii:** `createContentHelpers` zwraca `llmsRoute`, `llmsFullRoute`, + `markdownRoute`, `mcpGET`/`mcpPOST`, `healthRoute`, `indexNowKeyRoute`, `manifest`; opcje + `summaryField`, `mcp`, `markdown`, `redirectCollections` raz w `lib/content.ts`. +- **Linki i menu:** `resolveLink` (href, `internal`, `targetProps`, `appearance`), `resolveNav` + (dowolna głębokość, martwe linki pominięte), `homeSlugFrom`; w `lib/content`: `resolveLink(link, locale)`, + `resolveNav(items, locale)`, `getLinkOptions`, `getHomeSlug`, `resolvePageRedirect`, `getFormTexts`. +- **Pola sekcji:** `buildSectionHeaderField`, `buildSectionSettingsField({ backgrounds, anchor, fields })` + — ten sam kształt danych co dawne `src/fields/section*.ts` (bez migracji). +- `useOptionalTurnstile()` — bez providera zwraca `enabled: false` zamiast rzucać. + +### Dokumentacja i audyt +- AGENT.md §7 to pełny katalog „potrzeba → import”; §0b, §3, §6 i PROGRAMISTA §2.7–2.8, §6 + (poz. 28–33) opisują nowy sposób; skille ipal-form, ipal-nav, ipal-block, ipal-setup, ipal-upgrade + zaktualizowane. +- `ipal-audit` przyjmuje trasy-re-eksporty i `SiteProviders`; nowe reguły: kopia silnika formularza, + `src/fields/section*.ts` / `lib/navigation.ts` (WARNING), import roota / `/rsc` / `/server` w + komponencie klienckim (ERROR). +- Test `docsConsistency`: każdy import z dokumentacji istnieje w kodzie, każdy publiczny eksport jest opisany. +- Sandbox (`dev/`) ma front zbudowany na tych importach (formularz krokowy na `/pl/kontakt`). + ## 1.9.1 ### Wymaga zmian w projekcie diff --git a/docs/agent/AGENT.md b/docs/agent/AGENT.md index 67fb361..51957c2 100644 --- a/docs/agent/AGENT.md +++ b/docs/agent/AGENT.md @@ -52,20 +52,20 @@ strona), **P** = test w panelu. Pełny kod: PROGRAMISTA.md §2. | # | Obszar | Co musi być (plik) | API pluginu | Kontrola | |---|---|---|---|---| -| 1 | i18n + routing | `src/proxy.ts`, `[locale]/[[...slug]]/page.tsx` z ISR + `generateStaticParams`, `not-found.tsx` | `createProxy`, `createContentHelpers`, `resolveRoute`, `resolveRedirect` | A, S | +| 1 | i18n + routing | `src/proxy.ts`, `[locale]/[[...slug]]/page.tsx` = `createPageRoute(content, {…})` + literał `revalidate`, `not-found.tsx` = `createNotFoundPage(content, {…})` | `createProxy`, `createContentHelpers`, `createPageRoute`, `createNotFoundPage` (`/rsc`) | A, S | | 2 | **SEO** — meta | `generateMetadata` w każdej trasie stron; favicon i OG z Site Settings; `htmlLimitedBots` w `next.config.ts`; tab SEO + `buildNoindexField` w Pages | `generatePageMetadata`, `buildIconsMetadata`, `buildNoindexField` | A, S | -| 3 | **SEO** — mapy | `src/app/sitemap.xml/route.ts`, `src/app/robots.ts`, `src/app/manifest.ts` (wszystkie z `force-dynamic` poza robots) | `sitemapRoute`, `robots`, `createManifestHandler` | A, S | -| 4 | **SEO** — dane strukturalne | layout: `` z `WebSite` + `Organization` (`sameAs: sameAsUrls(settings)`) lub `LocalBusiness` (`type`, godziny tekstem z panelu → `formatOpeningHours`) + nawigacja `buildNavigationJsonLd(header)`; strona: `` (WebPage/BlogPosting, okruszki, FAQ) | `build*JsonLd`, `getPageJsonLd`, `JsonLdGraph` (`/rsc`) | A, S | -| 5 | **GEO** — llms | `src/app/llms.txt/route.ts` i `src/app/llms-full.txt/route.ts` (`full: true`); pole `buildSummaryField()` w Pages, `summaryField: 'aiSummary'` w trasach AI | `createLlmsTxtRoute`, `buildSummaryField` | A, S | -| 6 | **GEO** — Markdown | `src/app/md/[locale]/[[...slug]]/route.ts` = `export const { GET } = createMarkdownRoute({…})`; `createContentHelpers({ markdownAlternate: true })` (link w ``); `createProxy(…, { NextResponse, markdown: true })` (bez tego `/md/…` dostaje redirect na język) | `createMarkdownRoute`, `markdownAlternate`, `createProxy({ markdown })` | A, S | -| 7 | **GEO** — MCP | `src/app/api/mcp/route.ts` (publiczny — AI przegląda stronę: `get_site_info`, `list_pages`, `search_content`, `get_page`) | `createMcpRoute` | A, S | -| 8 | **GEO** — boty AI + IndexNow | robots **wpuszcza** boty AI (domyślne `aiBots: 'allow'`; blokada tylko z decyzji klienta); `ipalKit({ indexNow: true })` + `src/app/indexnow-key.txt/route.ts` (publikacja → Bing/ChatGPT Search w minuty) | `buildRobots`, `createIndexNowKeyRoute` | A, S | +| 3 | **SEO** — mapy | `src/app/sitemap.xml/route.ts`, `src/app/robots.ts`, `src/app/manifest.ts` — każdy to re-eksport z `lib/content` (`sitemapRoute`, `robots`, `manifest`) + `force-dynamic` poza robots | `sitemapRoute`, `robots`, `manifest` | A, S | +| 4 | **SEO** — dane strukturalne | layout: `` daje `WebSite` + `Organization` (`sameAs`) z Site Settings; firma lokalna → `createContentHelpers({ siteJsonLd })` z `buildLocalBusinessJsonLd` (`type`, godziny → `formatOpeningHours`); nawigacja: ``; strona: `createPageRoute` dokłada `getPageJsonLd` (WebPage/BlogPosting, okruszki, FAQ — `pageJsonLd: { faq }`) | `getSiteShell`, `SiteProviders`, `build*JsonLd`, `getPageJsonLd` | A, S | +| 5 | **GEO** — llms | `src/app/llms.txt/route.ts` (`llmsRoute`) i `src/app/llms-full.txt/route.ts` (`llmsFullRoute`) z `lib/content`; pole `buildSummaryField()` w Pages, `summaryField: 'aiSummary'` w `createContentHelpers` | `llmsRoute`, `llmsFullRoute`, `buildSummaryField` | A, S | +| 6 | **GEO** — Markdown | `src/app/md/[locale]/[[...slug]]/route.ts` = `export { markdownRoute as GET } from '@/lib/content'`; `createContentHelpers({ markdownAlternate: true })` (link w ``); `createProxy(…, { NextResponse, markdown: true })` (bez tego `/md/…` dostaje redirect na język) | `markdownRoute`, `markdownAlternate`, `createProxy({ markdown })` | A, S | +| 7 | **GEO** — MCP | `src/app/api/mcp/route.ts` = `export { mcpGET as GET, mcpPOST as POST } from '@/lib/content'` (publiczny — AI przegląda stronę: `get_site_info`, `list_pages`, `search_content`, `get_page`); nazwa: `createContentHelpers({ mcp: { serverName } })` | `mcpGET`, `mcpPOST` | A, S | +| 8 | **GEO** — boty AI + IndexNow | robots **wpuszcza** boty AI (domyślne `aiBots: 'allow'`; blokada tylko z decyzji klienta); `ipalKit({ indexNow: true })` + `src/app/indexnow-key.txt/route.ts` (`indexNowKeyRoute`; publikacja → Bing/ChatGPT Search w minuty) | `buildRobots`, `indexNowKeyRoute` | A, S | | 9 | **Media / R2 / szybkość** | `Media` z `focalPoint`, `normalizeFilenameHook`, `buildOptimizeUploadHook`, `buildMediaPlaceholderHook` + pole; **zawsze** `buildR2Storage(['media'], { s3Storage })` + `@payloadcms/storage-s3`; `R2_*` w `.env.example`; ``; `images: buildImagesConfig()` i `buildUploadSecurityHeaders()` w `next.config.ts`; `` projektu przez `mediaImageProps`/`videoProps` (§6.11b) | `buildR2Storage`, `mediaImageProps`, `videoProps`, `buildImagesConfig` | A, S | -| 10 | **Formularze** | każdy formularz z **seeda** (`scripts/seed-form-*.ts`: pola, potwierdzenie, mail do firmy **i** potwierdzenie do klienta, każdy język); jeden `FormRenderer`; `actions.ts` = `createSubmitAction({ getCachedPayload, headers })`; `forms: {…}` w `ipalKit`; `email: mailAdapter()` | `createSubmitAction`, `useForm`, `mailAdapter` | A, P | -| 11 | **Turnstile** | `` w `[locale]/layout.tsx`, `siteKey` z `getTurnstileConfig(payload)`; widget w `FormRenderer` (`useTurnstile`); klucze w Site Integrations | `getTurnstileConfig`, `TurnstileProvider`, `useTurnstile` | A, P | -| 12 | Zgoda + analityka | `ConsentProvider` (`logEndpoint` przy `consentLog: true`), `CookieBanner equalChoice`, `CookieButton`, `Analytics` w layoutcie; ID narzędzi w panelu; lista ciasteczek ze skanu (cookie-scan → import) + `` na stronie polityki cookies | consent.md, analytics.md | A, `ipal-consent-check` | +| 10 | **Formularze** | każdy formularz z **seeda** (`scripts/seed-form-*.ts`: pola, potwierdzenie, mail do firmy **i** potwierdzenie do klienta, każdy język); blok z `` + `formClasses.ts` (wygląd, raz); `actions.ts` = `createSubmitAction({ getCachedPayload, headers })`; `forms: {…}` w `ipalKit`; `email: mailAdapter()` | `RenderForm` (`/rsc`), `createSubmitAction`, `mailAdapter` | A, P | +| 11 | **Turnstile** | `` w `[locale]/layout.tsx` (wpina `TurnstileProvider` z kluczem z panelu); widget renderuje `RenderForm`; klucze w Site Integrations | `SiteProviders`, `getTurnstileConfig`, `TurnstileProvider` | A, P | +| 12 | Zgoda + analityka | `}>` (ConsentProvider, baner, CookieButton, Analytics w dobrej kolejności); ID narzędzi w panelu; lista ciasteczek ze skanu (cookie-scan → import) + `` na stronie polityki cookies | consent.md, analytics.md | A, `ipal-consent-check` | | 13 | Bezpieczeństwo | `buildSecurityHeaders` w `next.config.ts`; `twoFactor: { issuer, plugin: payloadTotp }`; CSP `report-only` → `enforce`; `IPAL_IP_HEADER` na produkcji | security.md, forms.md | A | -| 14 | Operacje | `src/app/api/health/route.ts`; `src/instrumentation.ts` z `assertEnv(ipalEnvRules({ storage: true, ipHeader: true }))`; staging z `IPAL_NOINDEX=1`; testy smoke (§8a) | `createHealthRoute`, `assertEnv`, `ipalEnvRules` | A | +| 14 | Operacje | `src/app/api/health/route.ts` (`healthRoute`); `src/instrumentation.ts` z `assertEnv(ipalEnvRules({ storage: true, ipHeader: true }))`; staging z `IPAL_NOINDEX=1`; testy smoke (§8a) | `healthRoute`, `assertEnv`, `ipalEnvRules` | A | | 15 | Strony systemowe | Site Settings → System Pages: homepage, 404, polityka prywatności, cookies; linki prawne w stopce przez rolę | `getSystemPagePath`, `getNotFoundPage` | P | | 16 | **Zero hardkodów** | każdy tekst, link, obraz, plik, dane firmy z panelu; domeny i klucze z `.env` (§2) | — | A, P | | 17 | **Treść** | jedno h1, odpowiedź na początku sekcji, fakty, linki wewnętrzne, FAQ z prawdziwych pytań, `aiSummary`, sameAs, spójne dane firmy (§0c) | — | S, P | @@ -83,7 +83,7 @@ Nie warunkujesz providera ani widgetu w kodzie — wpinasz zawsze. | Zamiast pluginu | Dlaczego nie | Użyj | |---|---|---| -| własny formularz z polami w JSX, `react-hook-form`, `formik` | klient nie zmieni pól; brak Turnstile, rate limitu, zgody RODO | builder w panelu + `FormRenderer` + `submitForm` | +| własny formularz z polami w JSX, `react-hook-form`, `formik`, własny renderer formularzy | klient nie zmieni pól; brak Turnstile, rate limitu, zgody RODO; kopia silnika przekazuje adresy z zakładki Emails do HTML | builder w panelu + `` (wygląd: `formClasses`, nietypowe: `useBuilderForm`) | | własna trasa `api/contact` / `api/send` / `api/form`, `nodemailer` / `resend` / `@sendgrid` w projekcie | omija walidację i bramki `submitForm`, drugi transport maili | server action `sendForm` → `submitForm`, maile z Forms → Emails przez `mailAdapter()` | | reCAPTCHA, hCaptcha, własna captcha | drugi mechanizm, brak statusu w panelu | Turnstile z pluginu | | ręczny `