Skip to content

fix(forms): Add Contact closes on save, New Template keeps its error (QA FORM-01, FORM-06) - #35

Merged
NCHILLC merged 3 commits into
mainfrom
fix/qa-form-01-06-silent-saves
Oct 13, 2026
Merged

NCHILLC merged 3 commits into
mainfrom
fix/qa-form-01-06-silent-saves

Conversation

@NCHILLC

@NCHILLC NCHILLC commented Oct 13, 2026

Copy link
Copy Markdown
Owner

What

  • FORM-01: ContactModal read the previous submission's result inside onSubmit, so a first successful save never closed the dialog. It now closes on the fetcher's busy -> idle transition with ok:true.
  • FORM-06: the New Template dialog closed on click, so the API's refusal of an over-long name rendered into a dialog that was already gone. It now stays open until the action answers; maxLength={100} matches the API.

One commit per finding, plus the fork-log rows.

Checked

  • Upstream: git fetch upstream (435b24ec); keyword and file greps. 793a4161 touched ContactModal (busy latch) and left the stale read; no upstream fix for either.
  • Each new spec proven red with its fix stashed, green with it.
  • npm run lint:gates-full 80 of 80 (after lint:eol --fix); pre-commit passed on all three commits.

Not done

No "Contact added" toast and no character counter (new strings in both locales); see the fork-log rows. Not seen in the pane.

🤖 Generated with Claude Code

NCHILLC and others added 3 commits October 13, 2026 15:13
…(QA sweep FORM-01)

ContactModal read fetcherOk inside onSubmit, i.e. the previous submission's
result, so a first successful save never closed the dialog. Close in an effect
on the fetcher's busy -> idle transition with ok:true; the modal stays mounted
so an earlier ok:true is still in fetcher.data and the value alone is not a
trigger.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…swers (QA sweep FORM-06)

handleCreate closed the dialog and cleared the name on click, so the API's
refusal of an over-long name rendered into a dialog that was already gone and
the click looked like a no-op. Stay open: success navigates to the editor,
failure shows the error in place. maxLength=100 on the field matches the API.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@NCHILLC
NCHILLC merged commit 01b0347 into main Oct 13, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant