Add a first-visit tour of the site - #51
Merged
Merged
Conversation
On a first visit a short tour spotlights the modules, the avatar, streak and points, the reference tools, the Continue button, the Where to? helper and the R status, one step at a time, with Back, Next and Skip tour on every step. Steps whose target is not on screen are left out, so a phone gets the Lessons button instead of the hidden sidebar. It is shown once per browser and can be started again from the helper.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: a new student landed on the home page with no pointers to the avatar, the reference tools or the helper.
After: on a first visit a short tour dims the page and spotlights each part in turn: the modules, the avatar, streak and points, the reference tools, the Continue button, the Where to? helper and the R status. Every step has Back, Next and Skip tour, and Escape skips too. On a phone it points at the Lessons button instead of the hidden sidebar. It shows once per browser, and "Show me around the site" in the helper starts it again.
How: steps whose target is missing or off screen are left out, so one list works on every page and screen size. The e2e config marks the tour as seen so the other specs are unaffected; a new tour spec tests it, including an axe scan of the tour card.