mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
The history rail + /coach/conversations armed a row on the first tap and only disarmed on a successful delete — no timeout, no outside-click reset — so a row armed minutes earlier deleted on a later stray tap, and there was no way back once it fired. Replace it with the same delayed-commit delete-with-undo the Documents surface already uses: one tap hides the row and schedules the real DELETE a few seconds out; the toast's Undo cancels it. Centralised in useDeleteCoachConversationWithUndo so both surfaces, which carried byte-identical arm/confirm logic, share one implementation.