-
Notifications
You must be signed in to change notification settings - Fork 31
Make wizard stepping more robust #1169
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
Conversation
Changes the code surrounding the wizard stepper (the circle at the top of e.g. the create event modal) to rely on string literals instead of indices. This should make it harder to accidentally break anything when making changes to the code. Also fixes web console errors pertaining to "React.Fragment" in the WizardStepper component (did not cause any functional errors). Also fixes opencast#1098.
Use Run test server using develop.opencast.org as backend:
Specify a different backend like stable.opencast.org:
It may take a few seconds for the interface to spin up. |
This pull request is deployed at test.admin-interface.opencast.org/1169/2025-05-14_07-27-11/ . |
This pull request has conflicts ☹ |
This pull request has conflicts ☹ |
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.
Functionality and code looks good.
Only comment is the Add User should probably also use the Wizard for consistency but that is a separate issue.
Changes the code surrounding the wizard stepper (the circle at the top of e.g. the create event modal1) to rely on string literals instead of indices. This should make it harder to accidentally break anything when making changes to the code.
Also fixes web console errors "Invalid prop
index
supplied toReact.Fragment
." in the WizardStepper component (they did not cause any functional errors).Also fixes #1098.
How to test this
Can be tested as usual. Check that modal navigation in every modal where the wizard stepper is used still functions as expected, especially that the user cannot skip any steps they are not supposed to.
(1 The Wizard Stepper)
