Commit 515d049
committed
feat: #399 form validation and error handling across all forms
- Add react-hook-form, zod, @hookform/resolvers dependencies
- Create frontend/src/lib/validations.ts with Zod schemas for
login, signup, and contact forms
- Create frontend/src/component/FormField.tsx with reusable components:
FormInput, FormTextarea, FormSelect, FormLabel, FieldError,
FieldSuccess, SubmitButton, FormSuccessBanner, FormErrorBanner
- Refactor login/page.tsx: inline validation, loading state, success/error banners
- Refactor signin/page.tsx: inline validation, password strength meter,
confirm password match, loading state, success/error banners
- Refactor contact/page.tsx: replace manual validate() with Zod schema,
use reusable form components throughout1 parent 9dbdf64 commit 515d049
File tree
7 files changed
+987
-517
lines changed- frontend
- src
- app
- contact
- login
- signin
- component
- lib
7 files changed
+987
-517
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
0 commit comments