-
Notifications
You must be signed in to change notification settings - Fork 713
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
coach routing - handle lesson creation and deletion #11283
coach routing - handle lesson creation and deletion #11283
Conversation
Build Artifacts
|
a4d6c5b
to
0abd546
Compare
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.
These look like the correct code changes to me. Will merge when manual QA confirms the fix.
Tested all possible permutations of the scenarios for both superadmin-as-coach (1 and 2 classes in a single and multi-facility), and and a native coach user (1 and 2 classes in a single facility): navigation for lesson creation & deletion works as expected, ending in Lesson Summary and class's Plan > Lessons page, respectively 👏🏽 When creating a quiz, slow 3G throttling properly displays the loader within the question component on the Preview quiz page, no loader present below the top bar 👍🏽 Tested in Chrome/Chromium and Firefox on Ubuntu 20.04 |
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.
Manual QA passes, good to go! 💯 🎉
Summary
this PR addresses:
classId
optional - it should only be optional in the baseCoach
routes but other URLs were also initially (& unintentionally) effectedCoach
>Plan
>Quiz
> [resource selection] > Quiz Preview (final step before a new quiz is saved)References
Quiz preview before (no throttling)
note loading bar running perpetually while on quiz preview page, but very quickly resolved on other pages
loading-quiz-preview.mov
Quiz preview after (throttled to Slow 3G)
note loading bar runs during page transitions (including when transitioning from Quiz preview to the Quiz page upon saving)
loading-bar-and-spinner.mov
Reviewer guidance
📌 the existence of more than one class in a facility (or more than one facility assigned to the user) means that URLs for page links & buttons are constructed a bit differently behind the scenes and user-facing behavior differs.
behind the scenes, the
facility_id
andclassId
potentially needed for a URL are determined and applied differently in the different cases. UX-wise, a single facility user with one class will go directly to that class's details when clicking on a sidenavCoach
subtopic, while a multi-facility user will first land on the "All Facilities" page and, if they select a facility with multiple classes, will next land on that facility's "All Classes" page, and information about the initially-selected subtopic should persist and ultimately be automatically navigated to only upon making that class selection.with these differences in mind, please consider the 4 potential cases when testing: multi-facility user in facility with 1 class, multi-facility user in facility with 2+ classes, single facility user with 1 class, and single facility user with 2+ classes. 📌
Lesson creation & deletion
Coach
>Plan
>New Lesson
> [enter details] >Save changes
to the new lesson'sLesson Summary
pageLesson Summary
page,Options
>Delete
and automatic navigation to the containing class'sPlan
>Lessons
pageQuiz Preview loading state
Coach
>Plan
>Quizzes
>New Quiz
>Create Quiz
> [select resources] >Continue
, check "Preview Quiz" page top bar to confirm it is no longer constant loadingTesting checklist
Critical user journeys are covered by Gherkin storiesCritical and brittle code paths are covered by unit testsPR process
If this is an important user-facing change, PR or related issue has a 'changelog' labelIf this includes an internal dependency change, a link to the diff is providedReviewer checklist
yarn
andpip
)