1.14.3
Version bump and CHANGELOG entry: Approve cookies page with one Approve and add, New/Changed/Needs description/No longer found markers, unknownCategory, dashboard and e-mail reminders, approval: false, new exports, the lookup change for hand-typed rows, and what projects with cookieScanner update. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5f4f2a07ab
commit
44598bbef2
@@ -8,6 +8,56 @@ versions at once, go through every "Requires project changes" section in order,
|
||||
version you have. A new release = a new section at the top; we remove the oldest ones only
|
||||
once there are more than 20.
|
||||
|
||||
## 1.14.3
|
||||
|
||||
One approval for everything the cookie scanner finds: editors tick the cookies and add them all to the cookie list
|
||||
at once, instead of opening every review entry. Only for projects with `cookieScanner`.
|
||||
|
||||
### New
|
||||
- **Approve cookies** page (`/admin/cookie-approval`, `CookieApprovalView`; linked from the scan box on Privacy →
|
||||
Cookie review and from the dashboard): the cookies a scan or crawl found,
|
||||
grouped by category, with one **Approve and add** button for every ticked cookie. They go into Cookie banner →
|
||||
Cookies in every locale. Nothing reaches the cookie list until an editor approves it. The approve and list endpoints
|
||||
are for editors and up by default (`cookieScanner.access`).
|
||||
- **Markers** on each review entry (new `change` and `needsDescription` fields): **New**, **Changed** (a scan changed
|
||||
its suggested values), **Needs description** (no purpose yet; cleared when an editor writes one) and **No longer
|
||||
found** (a scan or crawl no longer sees it). A cookie that is no longer found is flagged for review only; neither the
|
||||
review entry nor the list row is deleted.
|
||||
- **Never overwrites, never duplicates:** an existing list row (same name, or a pattern such as `_ga_*` that covers
|
||||
it) only gets its empty texts filled; editor text is kept, and no second row is added.
|
||||
- **Unknown cookies** that no integration or database knows go to `cookieScanner.approval.unknownCategory` (default
|
||||
`marketing`, so they need consent until an editor describes them).
|
||||
- **Reminders:** a dashboard notice while cookies wait (`CookieCrawlAlert`; `approval.dashboard: false` hides it), and
|
||||
the crawl e-mail says how many cookies wait, with a link to the approval page.
|
||||
- **`cookieScanner.approval: false`** keeps the old review, entry by entry.
|
||||
- New exports: `approveCookies`, `loadCookieApproval`, `countPendingCookies`, `flagGoneEntries`, `nextChange`,
|
||||
`sameCookie`, `buildCookieApprovalEndpoints`, `COOKIE_APPROVAL_PATH`, `COOKIE_APPROVAL_VIEW_PATH`,
|
||||
`DEFAULT_UNKNOWN_CATEGORY`, `PENDING_WHERE`; `CookieApprovalView`, `CookieApprovalForm` (`/admin`); types
|
||||
`CookieApprovalOptions`, `CookieApprovalItem`, `CookieApprovalList`, `CookieApprovalResult`, `CookieChange`.
|
||||
|
||||
### Changed
|
||||
- **Hand-typed cookie list rows:** a scan looks a row up (database, integrations) only while it has no review entry.
|
||||
Once it has one, the review entry and the approval page are the place to change it.
|
||||
|
||||
### Known issue
|
||||
- `pnpm audit --prod` still reports one **low** advisory: `deepmerge` 4.2.0–4.3.1 (GHSA-gcqx-w48m-w2h4), reached
|
||||
through `payload`. No patched version exists yet; nothing to do in projects.
|
||||
|
||||
### What projects must update
|
||||
- **Projects with `cookieScanner`:**
|
||||
1. `pnpm payload generate:importmap` — adds `@intecion/ipal-kit/admin#CookieApprovalView` and
|
||||
`@intecion/ipal-kit/admin#CookieCrawlAlert` (the dashboard reminder now uses it even without `crawl`); commit
|
||||
`importMap.js`.
|
||||
2. Postgres/SQLite: `pnpm payload migrate:create` → `migrate` — the `cookie-review` collection gets `change` (an
|
||||
enum column with an index) and `needs_description` (boolean). Only new columns; nothing is dropped or renamed.
|
||||
MongoDB: nothing.
|
||||
3. Tell editors: after a scan, open **Approve cookies** (from the scan box on Privacy → Cookie review, or the
|
||||
dashboard), tick and **Approve and add**. Fill in the cookies
|
||||
marked **Needs description**. **Check:** run a scan → the new cookies appear on `/admin/cookie-approval`; approve
|
||||
one → it is in Cookie banner → Cookies in every language.
|
||||
4. Keep the old review instead: `cookieScanner: { approval: false }`.
|
||||
- Projects without `cookieScanner`: nothing.
|
||||
|
||||
## 1.14.2
|
||||
|
||||
### Fixed
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@intecion/ipal-kit",
|
||||
"version": "1.14.2",
|
||||
"version": "1.14.3",
|
||||
"description": "Intecion Payload Advanced Library — a Payload CMS 3 plugin: i18n, SEO, forms, consent, analytics, blog/archives.",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user