trainUs/docs
David a6b4723ac6 F4: Delete confirms show usage; no more session_item orphans
session_item.item_id is polymorphic (no FK), so deleting an exercise or
combo used in a session left orphaned rows that the INNER JOIN in
getItems silently hid. Exercise/combo deletes now also remove their
session_item rows in one transaction. Delete confirmations on the
exercise/combo/session detail views now include usage counts (sessions/
combos using an exercise, sessions using a combo, collections containing
a session) via new count helpers and deleteConfirmUsage keys (EN/FR/DA).
Confirm stays informative, not blocking, consistent with the existing
history warning.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-09 15:30:52 +02:00
..
code-review-remediation-plan.md Add some stats + plan after code review 2026-07-07 16:20:16 +02:00
decisions-log.md F4: Delete confirms show usage; no more session_item orphans 2026-07-09 15:30:52 +02:00
plan.md Add some stats + plan after code review 2026-07-07 16:20:16 +02:00
release-procedure.md Initial commit 2026-06-18 13:06:57 +02:00