Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wizard: refactor HookValidatedInput component #2922

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mgold1234
Copy link
Collaborator

this commit split HookValidatedInput to 3 functions:
useValidationState - manages validation state (isPristine, validated).
TextAndTextAreaInput - use useValidationState and renders the TextInput or TextArea.
ErrorMessage - displays validation error messages.

check this split in userName filed

@mgold1234 mgold1234 force-pushed the refactor_fun branch 2 times, most recently from 40810b0 to f385aea Compare February 20, 2025 13:53
…e field

this commit split HookValidatedInput to 3 functions:
useValidationState - manages validation state (isPristine, validated).
TextAndTextAreaInput - use useValidationState and renders the TextInput or TextArea.
ErrorMessage: displays validation error messages.
Copy link

codecov bot commented Feb 20, 2025

Codecov Report

Attention: Patch coverage is 91.34615% with 9 lines in your changes missing coverage. Please review.

Project coverage is 82.13%. Comparing base (06f4ce4) to head (57b3ca3).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rc/Components/CreateImageWizard/ValidatedInput.tsx 91.00% 9 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2922      +/-   ##
==========================================
+ Coverage   82.09%   82.13%   +0.03%     
==========================================
  Files         207      207              
  Lines       23291    23392     +101     
  Branches     2285     2306      +21     
==========================================
+ Hits        19120    19212      +92     
- Misses       4144     4153       +9     
  Partials       27       27              
Files with missing lines Coverage Δ
...eateImageWizard/steps/Users/component/UserInfo.tsx 95.68% <100.00%> (ø)
src/Components/CreateImageWizard/validators.ts 93.91% <100.00%> (+0.10%) ⬆️
...rc/Components/CreateImageWizard/ValidatedInput.tsx 91.26% <91.00%> (-0.24%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06f4ce4...57b3ca3. Read the comment docs.

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