domaino/app-admin/src/lib
agent 971efebcdb Customers page: export, correct and erase personal data; automatic retention
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
2026-10-24 10:44:45 +00:00
..
admin Privacy policy link in the footer and checkout, notes hint, and a policy draft 2026-10-24 10:44:45 +00:00
assets moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00
server Customers page: export, correct and erase personal data; automatic retention 2026-10-24 10:44:45 +00:00
basket.svelte.ts moved shared code to the shared package 2026-08-19 19:18:10 +02:00
calendar.ts moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00
customers.ts Customers page: export, correct and erase personal data; automatic retention 2026-10-24 10:44:45 +00:00
email.ts added mailing through Brevo and node mailer, also a email editor, with 2026-09-28 19:25:19 +02:00
exportImport.ts Export/import: fix lost images and malformed-file crashes 2026-10-06 10:46:24 +00:00
pb.ts fixed image upload 2026-09-28 19:52:24 +02:00
scrollReveal.ts moved shared code to the shared package 2026-08-19 19:18:10 +02:00
slots.ts Slots: bulk generate, copy week and clear, with a preview step 2026-10-24 07:41:17 +00:00
stripe-client.ts moved shared code to the shared package 2026-08-19 19:18:10 +02:00
types.ts moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00