domaino/app-admin
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
..
src Customers page: export, correct and erase personal data; automatic retention 2026-10-24 10:44:45 +00:00
static moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00
.npmrc moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00
Dockerfile moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00
package-lock.json No third-party requests on page load: bundle the fonts, load Stripe.js at Pay 2026-10-24 10:44:45 +00:00
package.json No third-party requests on page load: bundle the fonts, load Stripe.js at Pay 2026-10-24 10:44:45 +00:00
svelte.config.js moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00
tsconfig.json moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00
vite.config.ts moved page rendering to a different service and access is now behind 2026-08-19 17:58:19 +02:00