Convert the Cloud Subnet Form to DDF and get rid of react-ui-components #210
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This form is accessible from a Nuage Network Router's summary screen:
![Screenshot from 2020-04-30 13-42-24](https://user-images.githubusercontent.com/649130/80706345-751b7180-8ae8-11ea-9c01-23c632554597.png)
The look & feel should be the same, a lot of things got simplified, I used the FirmwareRegistryForm from the ui-classic as an inspiration. There's a piece of error handling that I changed. If the API returns an error while fetching the network router's data, I am displaying it as a flash message instead of printing it on the modal. The reason for this is because there's already a modal when an API error occurs.
Before:
![Screenshot from 2020-04-30 13-53-32](https://user-images.githubusercontent.com/649130/80707273-ff180a00-8ae9-11ea-9ea2-1da8f8305dc7.png)
After:
![Screenshot from 2020-04-30 13-46-40](https://user-images.githubusercontent.com/649130/80707226-e9a2e000-8ae9-11ea-8840-544344c29e83.png)
Except of this minor change, everything should behave the same.
This change allowed me to get rid of the
react-ui-components
dependency in this repo, which resolves one more checkbox in ManageIQ/manageiq-ui-classic#6716 (comment)@miq-bot add_reviewer @himdel
@miq-bot add_label react, cleanup