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

feat(form): integrate Radix UI and React Hook Form for enhanced form #118

Merged
merged 14 commits into from
Dec 3, 2024

Conversation

AmirhoseinBrz
Copy link
Contributor

@AmirhoseinBrz AmirhoseinBrz commented Dec 1, 2024

feat(web) - form

This pull request includes several changes to the web package, primarily focusing on adding new dependencies and implementing form components using react-hook-form and @radix-ui/react-form. The most important changes include updating the package-lock.json and package.json files to add new dependencies, as well as creating new form components.

Dependency Updates:

  • Added @hookform/resolvers version 3.9.1 to dependencies in web/package-lock.json and web/package.json. [1] [2]
  • Added @radix-ui/react-form version 0.1.0 to dependencies in web/package-lock.json and web/package.json. [1] [2]
  • Added react-hook-form version 7.53.2 to dependencies in web/package-lock.json and web/package.json. [1] [2]
  • Added zod version 3.23.8 to dependencies in web/package-lock.json and web/package.json. [1] [2]

Form Components:

  • Created FormCheckbox component in web/src/components/form/form-checkbox.tsx using @radix-ui/react-form and react-hook-form.
  • Created FormInput component in web/src/components/form/form-input.tsx using @radix-ui/react-form and react-hook-form.
  • Created FormSelect component in web/src/components/form/form-select.tsx using @radix-ui/react-form and react-hook-form.
  • Created FormWrapper component in web/src/components/form/form-wrapper.tsx to wrap forms using react-hook-form and zod validation.

Utility Functions:

  • Added getNestedValue utility function in web/src/lib/helper.ts to retrieve nested values from objects.

Type Definitions:

  • Updated web/src/pages/helm-template/helm-template.types.ts to include zod validation schemas for form fields.
  • Added new type definitions for form components in web/src/types/form.types.ts.

@github-actions github-actions bot added the web-ui label Dec 1, 2024
@AmirhoseinBrz AmirhoseinBrz changed the title feat(form): integrate Radix UI and React Hook Form for enhanced form … feat(form): integrate Radix UI and React Hook Form for enhanced form Dec 1, 2024
@AmirhoseinBrz AmirhoseinBrz marked this pull request as draft December 2, 2024 14:26
@AmirhoseinBrz AmirhoseinBrz marked this pull request as ready for review December 3, 2024 16:13
…ge api_version type to string in helmTemplate schema
…fy class names in PodEnvironmentFields component
…tyling in FormInput and FormSelect components
… max height for pod expansion

feat(helm-template): enforce minimum length for host in ingress schema and update environment field styling
feat(env): add example environment configuration file
@MiladSadeghi
Copy link
Contributor

@AmirhoseinBrz Thanks!.

@mohammadll mohammadll merged commit 6a3d148 into devopshobbies:master Dec 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants