Skip to content

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

Merged
merged 3 commits into from
May 14, 2025

Conversation

Arnei
Copy link
Member

@Arnei Arnei commented Mar 27, 2025

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 to React.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)
Bildschirmfoto vom 2025-03-27 14-11-55

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.
@Arnei Arnei added type:bug Something isn't working type:code-enhancement Internal improvements to the codebase labels Mar 27, 2025
Copy link
Contributor

Use docker or podman to test this pull request locally.

Run test server using develop.opencast.org as backend:

podman run --rm -it -p 127.0.0.1:3000:3000 ghcr.io/opencast/opencast-admin-interface:pr-1169

Specify a different backend like stable.opencast.org:

podman run --rm -it -p 127.0.0.1:3000:3000 -e PROXY_TARGET=https://stable.opencast.org ghcr.io/opencast/opencast-admin-interface:pr-1169

It may take a few seconds for the interface to spin up.
It will then be available at http://127.0.0.1:3000.
For more options you can pass on to the proxy, take a look at the README.md.

Copy link
Contributor

github-actions bot commented Mar 27, 2025

This pull request is deployed at test.admin-interface.opencast.org/1169/2025-05-14_07-27-11/ .
It might take a few minutes for it to become available.

Copy link
Contributor

github-actions bot commented Apr 2, 2025

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

Copy link
Contributor

github-actions bot commented May 5, 2025

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@JamesUoM JamesUoM self-requested a review May 14, 2025 09:28
Copy link
Contributor

@JamesUoM JamesUoM left a 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.

@Arnei Arnei merged commit 655820d into opencast:main May 14, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:low type:bug Something isn't working type:code-enhancement Internal improvements to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

You can skip the stepper by clicking on the steps, at least for the events:
2 participants