IAPL rename: docs, agent guide, skills, reference site and starter on the new names; changelog draft
- docs, AGENT.md, the 16 skills, PROGRAMISTA and README use the preferred names (scripted, same list of forms); past CHANGELOG entries and the proposals in docs/dev are not rewritten - AGENT.md: 'Names: IAPL and ipal-kit' — old name, new name, state in 1.x; what is not renamed; storageNames - iapl-upgrade '→ 1.17.0', PROGRAMISTA §6 item 72, CHANGELOG 1.17.0 (draft): nothing required - env.md, doctor.md (legacy-names, storage-names), stats.md, security.md, project-starter.md, iapl-reference, iapl-setup - skill scripts read ipal-audit-skip and IPAL_IP_HEADER too; audit rule ids stay what they were - reference site: iapl(), iapl-doctor.json, iapl-* skills, storageNames: 'iapl'; INDEX.md regenerated Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
425fac14fb
commit
b91984fbcd
+11
-11
@@ -9,7 +9,7 @@ Default look in plain Tailwind, overridable.
|
||||
## Dependency
|
||||
|
||||
The banner uses an icon from `lucide-react` — a regular `dependencies` entry of
|
||||
the package (`^0.400.0`), installed together with ipal-kit; you add nothing in the
|
||||
the package (`^0.400.0`), installed together with IAPL; you add nothing in the
|
||||
project.
|
||||
|
||||
## Config
|
||||
@@ -20,7 +20,7 @@ built. Tabs: *Banner*, *Settings window*, *Categories*, *Cookie list*; with the
|
||||
[cookie-scanner.md → Admin layout](./cookie-scanner.md#admin-layout)). Public read (`read: () => true` — the banner reads it for anonymous
|
||||
visitors); `update` is limited to the `admin` and `editor` roles (`adminOrEditor` —
|
||||
consent texts are legal copy, not for plain `user` accounts). To change it:
|
||||
`ipalKit({ globalOverrides: { 'cookie-settings': { access: { update } } } })`.
|
||||
`iapl({ globalOverrides: { 'cookie-settings': { access: { update } } } })`.
|
||||
The only plugin option in this module is `consentLog` (below). The editor manages
|
||||
the banner content (message, buttons, categories, settingsTitle) in the panel,
|
||||
localized. The privacy policy link comes from system pages (`privacyPolicy`), not
|
||||
@@ -267,8 +267,8 @@ window width `max-w-4xl` — change it with `classNames.dialog`.
|
||||
|
||||
Which mode to choose: the project design decides. If the brief is silent → `'detailed'` (at the moment of
|
||||
consent the user sees which cookies are set and by whom — full information where the decision is made),
|
||||
provided the Cookies list is filled from a scan (`ipalKit({ cookieScanner: true })` → *Cookie review* → **Scan cookies** → *Approve cookies* → **Approve and add**,
|
||||
[cookie-scanner.md](./cookie-scanner.md), or `ipal-consent-check` → cookie-scan); an empty list = a
|
||||
provided the Cookies list is filled from a scan (`iapl({ cookieScanner: true })` → *Cookie review* → **Scan cookies** → *Approve cookies* → **Approve and add**,
|
||||
[cookie-scanner.md](./cookie-scanner.md), or `iapl-consent-check` → cookie-scan); an empty list = a
|
||||
window without expandable lists, then `'modal'` is enough. Record the decision in `AGENTS.md` →
|
||||
"Project decisions".
|
||||
|
||||
@@ -292,7 +292,7 @@ Texts from the panel (**Cookies**, per language) — empty field = the element i
|
||||
New fields in the global = a migration in projects on Postgres/SQLite (`payload migrate:create`); MongoDB unchanged.
|
||||
|
||||
The elements also have stable `data-ipal` handles for CSS and e2e tests (used by
|
||||
`ipal-consent-check`): `banner`, `cookie-button` and the buttons `settings`, `reject`,
|
||||
`iapl-consent-check`): `banner`, `cookie-button` and the buttons `settings`, `reject`,
|
||||
`accept`, `back`, `save`; in modal mode also `consent-overlay`, `consent-dialog`, `close`; in detailed mode
|
||||
additionally `category-<category>` (card) and `cookies` (expandable list).
|
||||
|
||||
@@ -392,15 +392,15 @@ to add the hook to a config. Nothing to migrate.
|
||||
- **Equal choice:** `<CookieBanner equalChoice />` — "Reject" looks like "Accept all"
|
||||
(UODO/EDPB requirement: refusing must be as easy as consenting). Off by default so the look of
|
||||
existing sites does not change; **turn it on in new projects**.
|
||||
- **Consent log (proof of consent, GDPR Art. 7(1)):** `ipalKit({ consentLog: true })` or
|
||||
`ipalKit({ consentLog: { retentionDays: 730 } })` + `<ConsentProvider logEndpoint="/api/ipal/consent">`
|
||||
- **Consent log (proof of consent, GDPR Art. 7(1)):** `iapl({ consentLog: true })` or
|
||||
`iapl({ consentLog: { retentionDays: 730 } })` + `<ConsentProvider logEndpoint="/api/ipal/consent">`
|
||||
(or `SiteProviders logEndpoint`). It stores a random identifier (the same as in the cookie), the
|
||||
choices, the policy version and the time — **no IP and no user agent**. *Consent records* collection
|
||||
(admin only), automatic cleanup after `retentionDays` (default 1095). Details below. Postgres:
|
||||
`migrate:create`.
|
||||
- **Cookie table** for the policy page: Cookies → *Cookie list* + `getCookieTable` + `<CookieTable>` from `/rsc`.
|
||||
Fill the list from the panel with the cookie scanner (`cookieScanner` option — one approval adds every cookie found to the list, the table and the detailed window,
|
||||
[cookie-scanner.md](./cookie-scanner.md)) and check the real site with `ipal-consent-check` → cookie-scan.
|
||||
[cookie-scanner.md](./cookie-scanner.md)) and check the real site with `iapl-consent-check` → cookie-scan.
|
||||
- Consent cookie: `cookie-consent` (`CONSENT_COOKIE`), JSON `{ id, state, timestamp, version }`,
|
||||
`max-age` 180 days (`CONSENT_MAX_AGE`), `samesite=lax`, `Secure` on HTTPS. Consent with another
|
||||
policy version is treated as no decision.
|
||||
@@ -428,7 +428,7 @@ from `@intecion/ipal-kit`.
|
||||
Narrow who reads the records (e.g. a project without roles, only the data protection officer):
|
||||
|
||||
```ts
|
||||
ipalKit({
|
||||
iapl({
|
||||
consentLog: {
|
||||
collectionOverrides: { access: { read: ({ req }) => req.user?.email === '[email protected]' } },
|
||||
},
|
||||
@@ -444,9 +444,9 @@ ipalKit({
|
||||
the layout with the props `order`, `settings`, `controls`, `settingsActions`, `equalChoice`, `icon`;
|
||||
the log's `retentionDays`; `privacyPolicy` / `settingsSlug` in `getConsentTexts`. The `cookie-settings`
|
||||
global (write access is `admin` + `editor` by default, hooks, admin options):
|
||||
`ipalKit({ globalOverrides: { 'cookie-settings': { access: { update } } } })` — your access rules win,
|
||||
`iapl({ globalOverrides: { 'cookie-settings': { access: { update } } } })` — your access rules win,
|
||||
your hooks run after the plugin's; a function gets the plugin's global and returns the one to use.
|
||||
- **Cookie list from the panel:** `ipalKit({ cookieScanner: true })` — opt-in: scan, then one **Approve and add**
|
||||
- **Cookie list from the panel:** `iapl({ cookieScanner: true })` — opt-in: scan, then one **Approve and add**
|
||||
on the *Approve cookies* page puts every cookie found into the cookie list (and so into `<CookieTable>` and the
|
||||
detailed window); `cookieScanner: { approval: false }` keeps per-entry review. See
|
||||
[cookie-scanner.md](./cookie-scanner.md) (off, overrides and building blocks there).
|
||||
|
||||
Reference in New Issue
Block a user