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> |
||
|---|---|---|
| .. | ||
| code-review-remediation-plan.md | ||
| decisions-log.md | ||
| plan.md | ||
| release-procedure.md | ||