Cookies: fill empty languages, and one Cookies entry in the admin

Every language filled (fillEmptyLocales, default on): text saved in one
language goes to every language where the same field is still empty, never
over a language's own text. Applies to the cookie list (purpose, duration)
and the cookie review (purpose, duration). Scanner and approval writes give
a language without its own text the default language's text. Building
blocks: buildFillEmptyLocalesGlobalHook / CollectionHook, fillEmptyLocales,
withFillLocales.

One Cookies entry (cookieScanner.adminLayout, default combined): the
Cookie banner global is now labelled Cookies and gets Review and approve
(scan box and approval list inline) and Site check tabs, built from ui
fields. Cookie review and Cookie check leave the navigation
(admin.group false) but keep their pages, data and API. This is
presentation only: no schema change and no migration, only
generate:importmap. adminLayout separate keeps the old layout.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-28 22:55:11 +01:00
co-authored by Claude Opus 5.5
parent a9e1adc03b
commit b10c2dc0e3
34 changed files with 812 additions and 96 deletions
+5
View File
@@ -159,6 +159,11 @@ Rules:
`Ustawienia`, `Prywatność`, `Statystyki`). Settings holds configuration only; logs and records
(consent log, visits) go to their own group. A nav link or view the user cannot open is
hidden, never shown with "You do not have access".
- **One entry per feature.** Screens that serve one feature become tabs of one global, not
separate navigation entries: *Cookies* holds the banner texts, the cookie list, *Review and
approve* and *Site check*. Supporting collections and globals leave the navigation with
`admin.group: false` (their pages and API stay, links still open them) and appear as `ui`-field
tabs. Logs stay separate (*Consent log*).
- A global or collection is named for what the editor finds in it ("Form messages"), not
for the mechanism behind it ("Notifications"). Renaming the visible label never changes
the slug.