assignable coach should only have learner access to facility if nothing is assigned to them
Observed behavior
when an ASSIGNABLE_COACH has nothing assigned to them and is not a COACH type, when they log in to kolibri they are confronted with an unusable Coach plugin UI - a table that displays nothing, an inability to access Reports, and a blank screen if they navigate to Plan, with related console errors.
addressing this may involve changes to the definition of isCoach within session.js in addition to a backend change in views.py, and/or can be addressed through alteration of nav-components.
for clarity, an ASSIGNABLE_COACH may or may not have anything assigned to them, their name simply reflects the ability to assign something to them if desired. if an ASSIGNABLE_COACH is assigned a class, that user will then have both ASSIGNABLE_COACH and COACH in their list of user kinds. a coach user will not be a COACH in the code unless they have something assigned to them.
Errors and logs
screen recording of user experience on develop
https://github.com/learningequality/kolibri/assets/43046460/f73a623e-6a24-42e7-9141-da3afe1f61e5
Expected behavior
if a coach has not been assigned anything, they should only have learner access to kolibri and be able to see relevant content within their facility
User-facing consequences
ASSIGNABLE_COACHes are shown coach options but not able to access or use any of them
Steps to reproduce
- as a superadmin, create a class coach user
- log out & log in as the new class coach user
- try to access options in the coach plugin, which you are automatically navigated to
Hi! I'm interested in contributing to this issue. I noticed that it is currently unassigned. Could you please let me know if it would be available for a community contribution?
Hi! 👋
Thanks so much for your interest! This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.
We really appreciate your willingness to help. 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.