-
-
Notifications
You must be signed in to change notification settings - Fork 427
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: condition domain certificate field #267
feat: condition domain certificate field #267
Conversation
@Siumauricio, what is this extension doing exactly? It never shows relevant information, and I found it quite confusing. Should we maybe add an issue template instead? What do you think? |
@lorenzomigliorero in theory it should give some suggestions about the code and better practices, but is more the unnecesary comments |
Yeah, I found it very confusing. Eventually, we can make the biome rules more strict and add a PR template. |
Hey @Siumauricio, I worked a bit on this form, and I made several improvements.
This is a big improvement because it avoids many duplications, and it should be the standard for all APIs/forms. |
All looks good @lorenzomigliorero thank you so much for this refactor I just remove the flushsync due to this suggestion of react docs Ref The form reset wasn't working because we wasn't reset the form properly since the recommend way to reset a form is inside a useEffect Ref and also added the refetch only when we have a domainId specified |
Steps taken
Merge add-domain and update-domain in one component
There were a lot of duplications before, and the only difference between the files was the create vs update mutation. One file is easier to manage, and we're sure they share now the same validation rules (before they weren't).
Add a condition to show certificate field when HTTPS is true
Close modal on either success or fail
I see a PR for it, but I'm starting adding the fix here
Summary by CodeRabbit
New Features
UI Improvements
Bug Fixes
Chores