-
Notifications
You must be signed in to change notification settings - Fork 367
Order Service Form conversion from Angular to React #8911
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
base: master
Are you sure you want to change the base?
Conversation
2aaf016 to
3f7bd2a
Compare
bdae559 to
c1b944d
Compare
aa19d2b to
23c6a0a
Compare
1054bc7 to
02345fc
Compare
Screen.Recording.2023-09-21.at.11.38.00.AM.mov |
c787208 to
d94c5c1
Compare
app/javascript/oldjs/controllers/dialog_user/dialog_user_controller.js
Outdated
Show resolved
Hide resolved
f26a618 to
4e72c17
Compare
d06f9dd to
e2000d9
Compare
|
Used in -
Screen.Recording.2024-07-03.at.7.37.59.PM.mov |
|
Update on July 4th, 2024 Screen.Recording.2024-07-04.at.2.48.01.PM.mov |
0b6abdc to
1131752
Compare
6161da0 to
38ada32
Compare
|
Hey @GilbertCherrie , @Fryguy , @agrare , When you find time, could you please review this PR? I rebased with I went through a lot of conditions and I guess I have handled all known features to me. But, am unsure if I missed any combinations of the field options we set in the dialog editor. Also, I am not sure of the status @DavidResende0 's PR on reconfigure form conversion. That can be handled in another PR. |
38ada32 to
b09af1d
Compare
cc6fc74 to
2009602
Compare
72a9200 to
80e710e
Compare
0fa4952 to
c9d4bee
Compare
|
Checked commit jeffbonson@c9d4bee with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.51.0, and yamllint app/helpers/miq_request_helper.rb
app/views/miq_ae_customization/_dialog_sample.html.haml
app/views/miq_request/_st_prov_show.html.haml |
|
This pull request is not mergeable. Please rebase and repush. |
|
This pull request has been automatically marked as stale because it has not been updated for at least 3 months. If these changes are still valid, please remove the |
2 similar comments
|
This pull request has been automatically marked as stale because it has not been updated for at least 3 months. If these changes are still valid, please remove the |
|
This pull request has been automatically marked as stale because it has not been updated for at least 3 months. If these changes are still valid, please remove the |
Continuing work started by @GilbertCherrie in #8484
3 Pages have been converted to react using a single component named
<Service ..>- 90% completed1. Order Service Form page
app/views/shared/dialogs/_dialog_user.html.hamlServices / Catalogs / Service Catalogs / Select an items / Order Service/api/service_dialogs/:idto fetch the information on the page load.submitandcancelevents.RefreshFieldto render the refresh-button and a loader.RefreshFieldin theDialogFieldusing component-mapper.RefreshFieldnear the right side of the field.context providersto pass the state data across components within the form.Servicecomponent for 3 cases (OrderServiceForm, ServiceDialog, Dialog Summary).Before

After

2. Service dialogs View page
ServiceDialog.app/views/miq_ae_customization/_dialog_sample.html.haml.Automation / Embedded automate / Customisation / Service Dialogs / Select an item / Sample tabrecordIdandfrom=customizationas props./api/service_dialogs/${recordId}.refresh-button.OrderServiceFormsubmit, reset, cancelbuttons.readOnlyand change events are not needed.Before

After

3. Request Show page
Service.app/views/miq_request/_st_prov_show.html.haml.Service / Request / Click on the list item / Dialog Options.dialogId, from=request, initialValuesas props.Before

After

