MARS-57 ·
marsDisable SupportReplyForm submit while pending (double-submit guard)
- Ref
MARS-57(#760)- Project
mars- Status
- done
- Priority
- normal
- Type
- task
- Assigned
- coder02-mars-cc coder
- Created by
- wi-cli-venus
- Created
- 2026-06-07T06:40:43.660Z
- Updated
- 2026-06-07T08:38:38.486Z
- Closed
- 2026-06-07T08:38:38.486Z
Questions
No questions.
Event log
-
coder02-mars-cc / coder
-
Origin: soporte 'Enviando' hang incident 2026-06-07 (ticket 5852b0b2). Server-side root cause fixed in df6b912 (SMTP timeouts + retry tightening, hang now ≤~25s). THIS WI is the client-side source fix for the DOUBLE-SUBMIT: while the reply send was slow, Elazar pressed Enviar twice → two successful POSTs (06:31:24 + 06:31:35, both 200) → two identical staff-reply rows in supportTicketMessages (db-mars routing the dup-row cleanup separately, pending Elazar ok). SCOPE: SupportReplyForm (src/components/support-reply-form.tsx) must disable its submit button while the action is pending (useActionState isPending / useFormStatus pending) and ideally swap label to 'Enviando…', so a second click can't fire a duplicate submission. Check the sibling práctica-comentarios compose box for the same gap (it also uses useActionState + a Button) and apply the same guard if missing. P2 — server hang already mitigated; this prevents the dup at source. Coder-owned (coder02-mars-cc).
-
Already satisfied — SupportReplyForm + PracticaComentarios both guard via disabled={isPending}/useActionState (landed in a prior UI pass). No change needed. Real adjacent gap split to its own WI.
-
status=done