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

[OPIK-700] [FE] Rule modal validation #1120

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

andriidudar
Copy link
Contributor

Details

image
image
image
image

Issues

Resolves #

Testing

Documentation

@andriidudar andriidudar requested a review from a team as a code owner January 23, 2025 12:55
Copy link
Collaborator

@aadereiko aadereiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work! The work on validations is always painful and you managed to do it readable

className="absolute bottom-24 right-7 z-10 cursor-pointer rounded bg-white shadow-xl"
onClick={() => setShowValidation(false)}
<Form {...form}>
<form
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at first glance, it looks a bit weird to have a form inside a Form. Maybe keeping it as a FormProvider is more readable. Up to you

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also dont like it but I decided to follow the instructions from shadcn library - https://ui.shadcn.com/docs/components/input#form

@ferc ferc merged commit 8c3dc6a into main Jan 23, 2025
1 check passed
@ferc ferc deleted the andriidudar/OPIK-700-rule-modal-validation branch January 23, 2025 15:33
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.

3 participants