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

webui: clean up some code around AnacondaWizard component #5248

Merged
merged 5 commits into from
Oct 16, 2023

Conversation

KKoukiou
Copy link
Contributor

No description provided.

Reuse the isHidden existing logic instead of doing this with the spread
operator and conditional.
For the Web UI we need to keep three exception notifications types:

* Critical Error; this opens the 'Report' modal and blocks the
installation. It must be used for unexpected Exceptions from the
Backend, for example when fetching state data.

* Per page notifications; these should be created as a result of
submission of some configuration which is not accepted by the backend; the user
should be able to react to the error by changing their choices.

* Inline errors; these are feedback to the user from cheap sanity checks
for the validity of the forms.

The dropped 'onAddErrorNotification' method was adding `Toast Alerts` centrally on
the app, which does not fall under any of these categories. Replace the
two occurances of its usage with the per-page notifications.

Additionally keep the functionality of displaying per-page notifications
in the AnacondaPage component so that the code can be shared between all
pages.
…nents

In order to cleanup a bit the AnacondaWizard from keeping the per-step
knowledge.
Copy link
Contributor

@rvykydal rvykydal left a comment

Choose a reason for hiding this comment

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

Looks good to me, nice cleanup, thank you.

@KKoukiou
Copy link
Contributor Author

/kickstart-test --waive webui only

@KKoukiou KKoukiou merged commit ae50381 into rhinstaller:master Oct 16, 2023
16 checks passed
@KKoukiou KKoukiou deleted the webui-cleanup-code branch October 16, 2023 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants