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

Add 'Get Help' button to training modules #5486

Open
ragesoss opened this issue Aug 22, 2023 · 7 comments · May be fixed by #5775
Open

Add 'Get Help' button to training modules #5486

ragesoss opened this issue Aug 22, 2023 · 7 comments · May be fixed by #5775

Comments

@ragesoss
Copy link
Member

Current Behavior:

For logged in users, in wiki_education mode, the 'Get Help' button appears in the Course navbar (whenever a user is on a course page). However, when a student launches a training module from their course page, the Course navbar is not part of the training interface and there is no 'Get Help' button.

Desired Behavior:

For logged in users, a 'Get Help' button should also appear when going through training modules.

Additional context:

Currently, the training navbar is rendered server-side (while the main navbar at the top is rendered in React on the nav_root element, and the training slides are rendered in React below the training navbar on the react_root element).

The best option will probably be to refactor the training pages so that the training navbar also renders in React.

The behavior of the 'Get Help' button might need to be a little different, because on Course pages, it shows different options depending on the staff roles assigned to the course. It should probably just default to sending alerts to the Wiki Expert for the user's course (which could either be inferred server-side based on the user and which courses they are part of, or a course ID could be supplied). One way to get the relevant course would be to extract the slug from the data-return-to property of the React root (which is included in the slide_view html).

@mapra99
Copy link
Contributor

mapra99 commented Sep 15, 2023

@ragesoss hey! I'd like to look into this

@justiceotuya
Copy link
Contributor

@ragesoss how do we navigate to the course page. cant seem to see that. also I have a training page that is not populated. is this the intended behaviour?

image

@ragesoss
Copy link
Member Author

ragesoss commented Oct 3, 2023

@justiceotuya see https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/docs/user_roles.md#loading-training-modules

To enable the Get Help button on a course page, you also need to be in wiki_education: true mode (via application.yml).

@sharon-odhiambo
Copy link
Contributor

Hello, I'll be working on this issue.

@Ritesh17rb
Copy link

Has this issue been resolved @ragesoss ?

@ragesoss
Copy link
Member Author

@Ritesh17rb no, this is still open.

@om-chauhan1
Copy link
Contributor

Working on this

@om-chauhan1 om-chauhan1 linked a pull request Apr 15, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants