-
Notifications
You must be signed in to change notification settings - Fork 730
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
update coach routing #11224
update coach routing #11224
Conversation
Build Artifacts
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense so far - one question about the non-multi-facility case though!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nearly there - just one more thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All changes make sense, and manual testing checks out.
@radinamatic I had manually confirmed these fixes, so have merged, but feel free to check my working! |
Thanks @thanksameeelian I've also manually confirmed the fixes here and was able to identify just a couple of minor issues which I've reported separately here #11253 |
Summary
this PR updates routing in
Coach
, making it more parallel toFacility
in terms of its behavior upon subtopic selection in the sidenav.previously, if a user was working elsewhere in kolibri and selected a
Coach
subtopic from the sidenav, we'd only retain & apply that subtopic information if they had a single facility holding single class. otherwise, they'd be redirected toAll Facilities
orAll Classes
as appropriate and, once making the necessary selection, would be redirected to the class they wanted, but always to the home page regardless of their initially chosen subtopic.with the changes introduced here, now if a user selects a subtopic in the sidenav, that subtopic information will persist within the url as the user selects a facility and/or specific class, and once class selection is made the user is redirected to that selected subtopic, rather than the home page by default.
References
fixes #10650
fixes #10855
Reviewer guidance
there are four cases to be considered:
for each case,
Coach
subtopic -Plan
orReports
will show the changed behaviorTesting checklist
If there are any front-end changes, before/after screenshots are includedCritical user journeys are covered by Gherkin storiesCritical and brittle code paths are covered by unit testsPR process
Reviewer checklist
yarn
andpip
)