Detailed cookie settings window (CookieBanner settings="detailed")
A third settings mode next to 'inline' and 'modal': a large dialog where every consent category is a card with its on/off control, description and an expandable list of the cookies it covers (name, provider, purpose, duration), taken from Cookie Settings → Cookies — the same rows as <CookieTable>. The developer picks the mode with one prop; the component default stays 'inline', so existing sites are unchanged. Cookie Settings gets a localized detailLabels group (list labels, English fallback); getConsentTexts passes texts.cookies and texts.details, sharing the row mapping with getCookieTable. New classNames slots and data-ipal handles for the cards and lists. Docs for devs and agents: consent.md (modes compared, which to pick — new projects default to 'detailed' when the cookie list is filled), AGENT.md, PROGRAMISTA §2.8/§2.11/§6, skills ipal-setup, ipal-site, ipal-upgrade, ipal-locale-add, ipal-consent-check. Postgres/SQLite projects need migrate:create for the new fields. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
1413e96731
commit
6b4336f961
@@ -286,6 +286,12 @@ zmienisz albo wyłączysz: `banner={<CookieBanner classNames={…} />}` / `false
|
||||
`analytics={{ defer: true }}` / `false`, `jsonLd={[buildNavigationJsonLd(…)]}`, `cookieMap`,
|
||||
`preconnect={false}`. Zupełnie własny układ: te same dane z `shell` do providerów (consent.md).
|
||||
|
||||
Okno ustawień zgody wybierasz propem `settings` banera: `'inline'` (domyślnie — kategorie w pasku),
|
||||
`'modal'` (małe okno na środku) albo `'detailed'` (duże okno: każda kategoria z przełącznikiem, opisem i
|
||||
rozwijaną listą ciasteczek z Cookie Settings → Cookies). Przykład:
|
||||
`banner={<CookieBanner equalChoice controls="switch" settings="detailed" />}` — opis: consent.md → „Duże okno ze
|
||||
szczegółami”.
|
||||
|
||||
```tsx
|
||||
// src/app/(frontend)/[locale]/[[...slug]]/page.tsx — PODWÓJNE nawiasy
|
||||
import { notFound, permanentRedirect } from 'next/navigation'
|
||||
@@ -402,7 +408,8 @@ pnpm dev
|
||||
3. **Pages** — strona główna z tytułem **w każdym języku** (pusty slug EN = 404 na `/en`).
|
||||
4. **Site Settings → System Pages** — Homepage (bez tego `/pl` → 404), 404,
|
||||
polityki; archiwa kolekcji treści.
|
||||
5. **Cookie Settings** — teksty banera per język.
|
||||
5. **Cookie Settings** — teksty banera per język; **Cookies** (lista ze skanu, `ipal-consent-check`) i **Detail
|
||||
labels** (podpisy listy w oknie `settings="detailed"`) — też w każdym języku.
|
||||
6. **Notifications** — komunikaty formularzy per język.
|
||||
7. **Site Integrations** — SMTP/Graph (From Name, From Address), Turnstile, ID
|
||||
analityki/pikseli.
|
||||
@@ -577,6 +584,7 @@ Rób po jednej pozycji, buduj, sprawdzaj. Kolejność wg wagi:
|
||||
| 43 | **1.11.1** — `<Media>` ustawia kolor tła tylko dla JPEG | usuń warunek — `mediaImageProps` robi to sam (`placeholderColor`) | storage.md |
|
||||
| 44 | **1.11.1** — `CmsLink['appearance']` zastąpione własnym typem, bo typ zależał od kolejności pól | typy per kształt: `CmsLink`, `CmsLinkPlain`, `CmsLinkNoLabel`; `pnpm generate:types` i popraw importy | links.md |
|
||||
| 45 | **1.11.1** — opis formatu w etykiecie pola formularza / godzina jako tekst | pole **Placeholder** w panelu, typ **Time**; Postgres: `migrate:create` | forms.md |
|
||||
| 46 | **1.12.3** — własne okno ustawień cookies / lista ciasteczek w banerze pisana w projekcie | `<CookieBanner settings="detailed">` (lista z Cookie Settings → Cookies, podpisy: Detail labels); usuń własną wersję; Postgres: `migrate:create` | consent.md |
|
||||
| 33 | **1.9.2** — `src/fields/sectionHeader.ts`, `sectionSettings.ts`, `lib/navigation.ts`, ręczne `resolveLinkHref` w `CMSLink` | `buildSectionHeaderField`, `buildSectionSettingsField` (ten sam kształt danych — bez migracji), `resolveNav`, `resolveLink` z `lib/content` | blocks.md, links.md |
|
||||
|
||||
Po aktualizacji pakietu: `pnpm ipal:skills` (nowe wersje skilli), `pnpm payload generate:importmap`, `rm -rf .next`, restart dev, grep nowego symbolu w
|
||||
|
||||
Reference in New Issue
Block a user