domaino/app-admin/src/lib/server
agent 338aef9e01 Bundles: keep parts from being deleted out from under them
Bundle parts are JSON, so deleting a service left bundles pointing at
nothing (shown as "Item" in the shop). An onRecordDelete hook on items
now refuses while a bundle contains it or a usable code still has
sessions of it to book. A bundle with an inactive part is no longer sold
or issued; the admin items list marks it "Not on sale" and shows how many
codes are waiting on an inactive service.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
2026-10-26 09:04:35 +00:00
..
actions.ts Admin server actions: handled errors, timezone-correct times, safer writes 2026-10-06 10:46:24 +00:00
customers.ts Admin: bundles under Services & products, Vouchers & codes page 2026-10-25 21:39:51 +00:00
email.ts added mailing through Brevo and node mailer, also a email editor, with 2026-09-28 19:25:19 +02:00
pages.ts Admin server actions: handled errors, timezone-correct times, safer writes 2026-10-06 10:46:24 +00:00
passes.ts Bundles: keep parts from being deleted out from under them 2026-10-26 09:04:35 +00:00
slots.ts Admin: lengths and prices per service; windows and group sessions on /slots 2026-10-25 20:12:46 +00:00