[PR #2204] feat(signup): enable real-time validation for email and password fields #2120

Open
opened 2026-02-26 20:32:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/2204
Author: @tanushree-coder-girl
Created: 11/17/2025
Status: 🔄 Open

Base: mainHead: feat/2200-signup-realtime-validation


📝 Commits (6)

  • d9eb6d9 feat(signup): enable real-time validation for email and password fields
  • 5cf5c01 Merge branch 'main' into feat/2200-signup-realtime-validation
  • 730b11a Merge branch 'main' into feat/2200-signup-realtime-validation
  • b66b648 Merge branch 'main' into feat/2200-signup-realtime-validation
  • c1c90a5 Merge branch 'main' into feat/2200-signup-realtime-validation
  • a23bb93 Merge branch 'main' into feat/2200-signup-realtime-validation

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 apps/remix/app/components/forms/signup.tsx (+1 -1)

📄 Description

Description

This MR improves the real-time validation experience on the signup page.
Currently, both the email and password fields validate only on blur, causing users to continue seeing error messages even after correcting their input until they click outside the field.

This update switches the React Hook Form configuration from mode: 'onBlur' to mode: 'onChange', ensuring validations update immediately as the user types.
This results in a smoother and less confusing signup experience.

Fixes #2200

Changes Made

  • Updated React Hook Form configuration in the signup form from:
  • mode: 'onBlur' ➜ mode: 'onChange'
  • Ensures real-time validation for email and password fields
  • No schema or logic changes — only validation trigger updated

Testing Performed

  • Manually tested the signup page for:
  • Real-time password rule updates
  • Real-time email validation feedback
  • Error disappearance immediately after correcting input

Checklist

  • I have tested these changes locally and they work as expected.
  • I have added/updated tests that prove the effectiveness of these changes.
  • I have updated the documentation to reflect these changes, if applicable.
  • I have followed the project's coding style guidelines.
  • I have addressed the code review feedback from the previous submission, if applicable.

Additional Notes

This is a small UX-focused improvement; the validation schema remains unchanged.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/2204 **Author:** [@tanushree-coder-girl](https://github.com/tanushree-coder-girl) **Created:** 11/17/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/2200-signup-realtime-validation` --- ### 📝 Commits (6) - [`d9eb6d9`](https://github.com/documenso/documenso/commit/d9eb6d959e255d5301ca9a7151dba94802b6caa8) feat(signup): enable real-time validation for email and password fields - [`5cf5c01`](https://github.com/documenso/documenso/commit/5cf5c018a18dbdede29cc54bbf73179b74ead563) Merge branch 'main' into feat/2200-signup-realtime-validation - [`730b11a`](https://github.com/documenso/documenso/commit/730b11a7495bf014e9a145c2c1858a8e7fdbd0fb) Merge branch 'main' into feat/2200-signup-realtime-validation - [`b66b648`](https://github.com/documenso/documenso/commit/b66b6488ff1d46607693288486c485634945a411) Merge branch 'main' into feat/2200-signup-realtime-validation - [`c1c90a5`](https://github.com/documenso/documenso/commit/c1c90a5f28531bec36277aec434ad6a8e279e942) Merge branch 'main' into feat/2200-signup-realtime-validation - [`a23bb93`](https://github.com/documenso/documenso/commit/a23bb93db26cd36d0c547478b36ef91a72c0c0e8) Merge branch 'main' into feat/2200-signup-realtime-validation ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `apps/remix/app/components/forms/signup.tsx` (+1 -1) </details> ### 📄 Description ## Description This MR improves the real-time validation experience on the signup page. Currently, both the email and password fields validate only on blur, causing users to continue seeing error messages even after correcting their input until they click outside the field. This update switches the React Hook Form configuration from mode: 'onBlur' to mode: 'onChange', ensuring validations update immediately as the user types. This results in a smoother and less confusing signup experience. ## Related Issue Fixes #2200 ## Changes Made - Updated React Hook Form configuration in the signup form from: - mode: 'onBlur' ➜ mode: 'onChange' - Ensures real-time validation for email and password fields - No schema or logic changes — only validation trigger updated ## Testing Performed - Manually tested the signup page for: - Real-time password rule updates - Real-time email validation feedback - Error disappearance immediately after correcting input ## Checklist - [x] I have tested these changes locally and they work as expected. - [ ] I have added/updated tests that prove the effectiveness of these changes. - [x] I have updated the documentation to reflect these changes, if applicable. - [x] I have followed the project's coding style guidelines. - [x] I have addressed the code review feedback from the previous submission, if applicable. ## Additional Notes This is a small UX-focused improvement; the validation schema remains unchanged. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#2120
No description provided.