Skip to content
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

Guided Tours: exploratory selectors-based tour triggering #6146

Closed
wants to merge 12 commits into from

Conversation

mcsf
Copy link
Member

@mcsf mcsf commented Jun 20, 2016

Based on #5933.

Try a significantly different approach to triggering Guided Tours — particularly, when to trigger and which tours to trigger — and which not to.

TODO: elaborate

Test live: https://calypso.live/?branch=try/guided-tours-trigger-logging

mcsf and others added 10 commits June 14, 2016 23:57
- Listening to GUIDED_TOUR_* actions in the trigger logger reducer _may_
  be handy later to detect whether user has already seen
  (completed/dimissed) a tour.
should fix design layout show/hiding not updating preview state
- add relevant triggers
- bump up tourTriggers array slice to 50 (so we capture enough actions,
  hmm)
- add getStep in GT selector, which will recursively look at whether to
  'skip' showing a step, e.g. if the step's showInContext returns false,
  or `continueIf` returns true

the themes tour mostly works, although i notice a flash of a step, which
didn't happen with the middleware approach
So that the action, which will be caught by the `tourTriggers` reducer,
can later inform the GT selectors on _which_ tours the user has seen or
dismissed.
- 'themes' may be triggered by navigating to Theme Showcase
- 'main' may be triggered by navigating anywhere, as long as 'tour=main'
   query arg is found.
- Rename to 'action log' and rephrase module semantics accordingly
- Move from `state.ui.tourTriggers` to `state.currentUser.actionLog`
- Split log into two branches: `.permanent` and `.temporary`
- Listen to `ACTION_LOG_RECEIVE` to permanently store arbitrary actions
- `actions#quitGuidedTour`: add `finished` to dispatched object
@mcsf
Copy link
Member Author

mcsf commented Jun 21, 2016

Proof of concept: remembering which tours have been seen — client-side, via localForage:

https://cloudup.com/cR-TJ9rBwA6 (screencast w/ audio)

@ehg
Copy link
Member

ehg commented Jul 11, 2016

@mcsf can we close this one now?

@mcsf
Copy link
Member Author

mcsf commented Jul 11, 2016 via email

@mcsf mcsf closed this Jul 11, 2016
@lancewillett lancewillett deleted the try/guided-tours-trigger-logging branch September 2, 2016 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants