Skip to content

feat(runtime): add reactive form validation with createForm()#6

Merged
wrxck merged 2 commits intomainfrom
feat/form-validation
Feb 11, 2026
Merged

feat(runtime): add reactive form validation with createForm()#6
wrxck merged 2 commits intomainfrom
feat/form-validation

Conversation

@wrxck
Copy link
Owner

@wrxck wrxck commented Feb 11, 2026

Summary

  • Adds createForm(config) — a signal-based reactive form primitive
  • Fields expose: value, set, error, errors, touched, touch, dirty, valid, reset
  • Form-level: valid, dirty, data(), handleSubmit(), reset()
  • Built-in validation rules: required, minLength, maxLength, min, max, email, pattern, validate
  • Full type inference from field config to data shape
  • 44 tests covering all rules and form behaviors

Test plan

  • All 512 tests pass (existing + 44 new)
  • Build succeeds cleanly

Matt Hesketh added 2 commits February 11, 2026 17:19
Signal-based form primitive with declarative validation, dirty/touched
tracking, and type-safe field access. Built-in rules: required, minLength,
maxLength, min, max, email, pattern, validate. 44 tests.
@wrxck wrxck merged commit 275137d into main Feb 11, 2026
4 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