-
Notifications
You must be signed in to change notification settings - Fork 368
Provision Dialog Form conversion from HAML to React #9188
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
Provision Dialog Form conversion from HAML to React #9188
Conversation
|
Hey @liu-samuel , we would want to keep the PR's as simple as possible. So, If you can finish the summary conversion in one PR, so that it's easy to keep track of it at #8655 and, then go for the form conversions in another PR. Also, I know it's a WIP, but try to clean up the codes as you make commits. |
Sounds good, I will do that |
1029adc to
df23bdd
Compare
5ab3ec5 to
bab588b
Compare
|
Hey @liu-samuel , could you please update the description too. Also use the form's before and after screenshots. |
|
Hey @liu-samuel , Are there any dependent PRs or anything else needed to run this? I was just trying to add a new dialog and got 404 Error. Could you please check-
|
jeffibm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @liu-samuel , Great work on the first PR. I just put in for review comments for future reference.
The idea behind UI PR's is to reduce the number of line counts and make it readable. For smaller PR's try to finish the components between 150-200 lines if possible, else, move a few lines to a different component.
Also, there are few string translations to be done as well here.
Could you please test with the suggested changes and also have a look at the error during form submit.
Thanks for the review! I'll address all the comments you have. As for the 404 error, I tried again but it works fine for me. It seems like it might be a routes issue. Maybe restarting the server or running bin/update will fix it? I'm not exactly sure. Also for the string translation, which strings are you referring to? |
e6b7cd0 to
33aa381
Compare
something like this - |
33aa381 to
5a6971c
Compare
5a6971c to
9d26c33
Compare
a92d438 to
67fd29f
Compare
f75485b to
5947d4f
Compare
|
Checked commit liu-samuel@5947d4f with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.51.0, and yamllint app/controllers/miq_ae_customization_controller/old_dialogs.rb
app/views/miq_ae_customization/_old_dialogs_details.html.haml
|


Fixes: #6929
Automation / Embedded automate / Customization / Provisioning Dialogs
Converts the dialog form from a Ruby haml file to a React form.
Before


After

