Admin /customers finds a customer by name, email, phone or notes (orders and unpaid checkouts), exports everything stored as JSON, corrects details on every record, and erases them — anonymising orders (amounts, services and dates stay for the accounts) and deleting unpaid checkouts. A daily cron (and PocketBase start) deletes unpaid checkouts after N days and, when set, anonymises orders after M months, skipping orders with a booking ahead. A paid basket's copy of the details is cleared when its order is created. All writes are in pocketbase/pb_hooks/privacy (orders and baskets are superuser-only); migration 1793000000 makes orders.email optional and adds orders.anonymisedAt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VaXE9U7AmW3dfD2w6cbLfk
- Migrate all DaisyUI 4 form markup (form-control, label-text, *-bordered —
removed in v5) to v5 fieldset/legend; labels sat inline beside inputs
and inputs fell back to a fixed 20rem width.
- One Modal component (native <dialog>: Escape, focus trap) for page,
event, item and slot editors; destructive actions confirmed everywhere.
The page Delete confirm was ignored — returning false from onsubmit
doesn't cancel — so Cancel still deleted the page.
- Block editor follows the background-picker style throughout:
SegmentedControl rows (title-cased options, clearer selected state) and
a new ColorField row with reset; image position is Left/Right like the
alignment controls.
- Globals keep their layout; readable field labels, save feedback without
reload, hints wrap.
- Pages list: fixed broken Preview link (VITE_PUBLIC_SITE_URL was
undefined → "undefined/slug"), shown for published pages only; action
column no longer breaks row alignment; empty states on all tables.
- Items: image picker instead of a raw media-id field, upload errors shown
(were swallowed), prices in the shop currency instead of hard-coded EUR.
- Slots/orders/calendar: times shown in the site timezone with a fixed
locale (server and browser render the same text).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KgF3Kf47LjPGHKQHszpUAv