-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Navigation tweaks #11256
Navigation tweaks #11256
Conversation
…neration. Clean up non-constant references.
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.
i've read through the code and have been clicking around and almost everything is looking good to me. and kudos to @pcenov for finding that redundant navigation problem!
the only small issue i noticed was while i was testing out that scenario of clicking on the same sidenav link twice. afterwards, the page gave the appearance of perpetual loading, with the top loading bar running continuously
perpetual-loading.mov
Seems like this was happening because we always set the global loading state to true before entering any route in coach. Have resolved it for now by turning it off when the class param required guard returns true. Ultimately, my suggestion elsewhere has been that we should only use the core loading state to show navigation is still in progress and control it entirely from navigation guards in the core of the app - but that's for another day! |
a1f137c
to
1ad998e
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.
Thanks @rtibbles and @thanksameeelian - no extra issues uncovered while regression testing, good to go!
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.
looks great to me!
Summary
next
rather thanrouter.replace
for synchronous navigation guardsReferences
Fixes #11253
Reviewer guidance
Are all the behaviours working as one might expect?
Did I miss any instances where Home, Reports, or Plan links are being generated without a classId (now that the parameter is optional, it does not automatically get supplied by the
getRoute
method.New side nav behaviour - only does the toggle behaviour when navigating within an SPA, otherwise it looked a bit janky:
Screencast from 09-15-2023 04:03:30 PM.webm
Bug fix for back route:
Screencast from 09-15-2023 04:00:21 PM.webm
No redundant navigation errors:
Screencast from 09-15-2023 04:01:35 PM.webm
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)