Consent compliance: docs, agent guide, skills, changelog, shared behaviour spec, browser check, reference e2e

- docs/consent.md: compliance defaults, Global Privacy Control, withdrawal, consent log on by default and the SQL
  migration; no more "UODO requirement" or "GPC not needed". docs/analytics.md: what Consent Mode advanced sends.
- docs/consent-behaviour-spec.md: the behaviour IAPL and IAWL share, with the 13-item test list.
- CHANGELOG 1.17.0: the SQL migration first, a before → after table for an existing site.
- AGENT.md, iapl-setup / iapl-upgrade / iapl-reference / iapl-consent-check, PROGRAMISTA item 78; reference skills copy.
- iapl-consent-check: Global Privacy Control, equal prominence and withdrawal runs; Google asset warnings.
- Reference site uses the new defaults; e2e for GPC, a stale grant, equal prominence, withdrawal; e2e:built runs every
  consent test in both bundlers. YouTubeEmbed warns in development without a poster.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 13:48:19 +01:00
co-authored by Claude Opus 5.5
parent 99036eb70c
commit f5c53e4523
33 changed files with 821 additions and 112 deletions
+4 -2
View File
@@ -141,7 +141,7 @@ import { SiteProviders } from '@intecion/ipal-kit/rsc'
import { getSiteShell } from '@/lib/content'
<body>
<SiteProviders shell={await getSiteShell(locale)} logEndpoint="/api/ipal/consent">
<SiteProviders shell={await getSiteShell(locale)}>
<Header /><main>{children}</main><Footer />
</SiteProviders>
</body>
@@ -154,7 +154,9 @@ It does not mount `AlternateLinksProvider` (i18n.md) — add it yourself if you
| Prop | Default | What it does |
|---|---|---|
| `shell` | — (required) | result of `getSiteShell(locale)` |
| `logEndpoint` | — | consent log endpoint (`consentLog`) |
| `logEndpoint` | `shell.consentLogEndpoint` | consent log endpoint (on by default since 1.17.0); `false` = decisions not posted |
| `gpc` | `'honour'` | Global Privacy Control: `'honour'`, `'ask'`, `false` (consent.md) |
| `maxAgeDays` | `180` | days a choice is kept before the banner asks again |
| `banner` | `<CookieBanner />` | your own banner or `false` |
| `cookieButton` | `<CookieButton />` | your own button or `false` |
| `consentCookie` | — | optional server read of the consent cookie (`(await cookies()).get(CONSENT_COOKIE)?.value ?? null`): exact HTML, but the pages become dynamic. Left out (default): pages stay static and the banner decides before the first paint with an inline script — consent.md → "First paint" |