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

Replace Non-functional 'Back' Button with 'Cancel' Button on First Panel of 'Create a New Course' Modal #5982

Open
Abishekcs opened this issue Oct 6, 2024 · 5 comments · May be fixed by #5986
Labels

Comments

@Abishekcs
Copy link
Contributor

Abishekcs commented Oct 6, 2024

Issue Description

The Back button on the first panel of the Create a New Course modal serves no purpose and does not function at all. Since this is the first panel, it should not have a "Back" button. Instead, the button should be replaced with a "Cancel" button that allows the user to exit the modal if needed.

Steps to Reproduce

  1. Open the "Create a New Course" modal.
  2. Observe the "Back" button on the first panel.
  3. Notice that the "Back" button doesn't work or serve any meaningful purpose.

Refer to the recording below for further details (In case you don't have admin access, which is required to access the button as an instructor or as an admin at some level.):

2024-10-06.13-38-08.mp4

Expected Behaviour

  1. The first panel of the "Create a New Course" modal should display a Cancel button instead of a "Back" button.
  2. The "Back" button should only be present on subsequent panels, as it is irrelevant to have it on the first panel where there is no previous panel screen to return to.

Screenshots

Screenshot from 2024-10-06 13-29-55

System Information

  • OS: Ubuntu 22.04.5 LTS
  • Browser: Version 129.0.6668.89 (Official Build) (64-bit)
@Formasitchijoh
Copy link
Contributor

I am working on an issue concerning this form i will just fix this up before I proceed.

@Abishekcs Abishekcs changed the title Replace Non-functional 'Back' Button with 'Close' Button on First Panel of 'Create a New Course' Modal Replace Non-functional 'Back' Button with 'Cancel' Button on First Panel of 'Create a New Course' Modal Oct 7, 2024
@Abishekcs
Copy link
Contributor Author

@Formasitchijoh, regarding your doubts, I realized there were some mistakes in my previous description of the issue. Here’s the corrected explanation for future reference if the issue remains unresolved:

The options for creating a course or program vary depending on the user's role (admin, instructor, or Wiki Ed staff):

The issue needs to be addressed only when the user is an Instructor in the Wiki Education Dashboard:

When the user is only an instructor, the "Create a New Course" modal opens directly, without any prior panel. Therefore, a cancel button should be added here instead of a back button. However, the subsequent panel should include a back button, since it does have a previous panel to return to.

Only.Instrcutor.mp4

@Formasitchijoh
Copy link
Contributor

@Abishekcs Thank you for the clarification, i think i ensured this "When the user is only an instructor, the "Create a New Course" modal opens directly, without any prior panel. Therefore, a cancel button should be added here instead of a back button. However, the subsequent panel should include a back button, since it does have a previous panel to return to"
If you refer to the video i sent. I will have to verify this for a Normal user,

And also i have a blocker, my build hasn't been passing lately I have tried uninstalling my bundler installing a new one but it still does not solve it, I will appreciate you help if you have an idea on what i can do to fix this.

Screenshot 2024-10-07 at 14 34 55

@Abishekcs
Copy link
Contributor Author

Abishekcs commented Oct 7, 2024

@Abishekcs Thank you for the clarification, i think i ensured this "When the user is only an instructor, the "Create a New Course" modal opens directly, without any prior panel. Therefore, a cancel button should be added here instead of a back button. However, the subsequent panel should include a back button, since it does have a previous panel to return to" If you refer to the video i sent. I will have to verify this for a Normal user,

Yes, but if you look at your first After video, you implemented a close button where there should have been a back button (Which already exists and function as intended), since there is a previous panel. Which is used (back button) if the user wanted to go back to the previous panel.

Make sure you are only an Instructor and not Wiki Ed staff of any course on the Wiki Ed dashboard (Since this is the only part where the back button doesn't function, and where there should have been a Cancel button instead). Then, when you click the 'Create Course' button, the correct panel opens up as shown in the video in the issue.

@Formasitchijoh
Copy link
Contributor

I understand now,I will update that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants