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
Comments
@ragesoss hey! I'd like to look into this |
@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? |
@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 |
Hello, I'll be working on this issue. |
Has this issue been resolved @ragesoss ? |
@Ritesh17rb no, this is still open. |
Working on this |
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 thereact_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).The text was updated successfully, but these errors were encountered: