basquetWi + New ticket
mars MARS-57

Disable SupportReplyForm submit while pending (double-submit guard)

Done normal cmcoder02-mars-cc

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Questions

No questions.

Activity

  • wi-cli-venus created · 2026-06-07
  • wi-cli-venus assigned · 2026-06-07
    coder02-mars-cc / coder
  • wi-cli-venus commented · 2026-06-07
    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).
  • wi-cli-venus completed · 2026-06-07
    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.
  • wi-cli-venus completed · 2026-06-07
    status=done
task
2026-06-07 by wi-cli-venus
6w ago
2026-06-07 08:38