Skip to content

fix: v2.1 improve recipient and template validation#32

Merged
JuliaKalder merged 1 commit into
mainfrom
fix/issue-17
Apr 16, 2026
Merged

fix: v2.1 improve recipient and template validation#32
JuliaKalder merged 1 commit into
mainfrom
fix/issue-17

Conversation

@JuliaKalder
Copy link
Copy Markdown
Owner

Summary

Improve input validation in the template editor to reduce invalid saved templates.

Changes

  • Validate recipient-like fields (to, cc, bcc) before save
  • Validate required fields with consistent inline error feedback
  • Add warning for empty/whitespace body in replace mode

Testing

  • All tests pass
  • Lint passes with 88 consistent keys across all locales

Fixes #17

Replaces the global error banner for field-level validation with inline
per-field errors so each issue is reported exactly once. Adds a
click-through body-empty warning in replace mode, resets on editor
lifecycle boundaries, and clears on input. Normalizes CRLF → LF on
options sources.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@JuliaKalder JuliaKalder merged commit da0766f into main Apr 16, 2026
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.

v2.1: Recipient and template validation improvements

1 participant