-
Notifications
You must be signed in to change notification settings - Fork 0
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
multi-stage gif integration #289
Conversation
✅ Deploy Preview for gertrude-site ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for gertrude-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for gertrude-parents ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
import assets from '../cdn-assets'; | ||
|
||
const HowToUseGifs: React.FC = () => ( | ||
<Onboarding.Centered className="space-x-12" direction="row"> |
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 really like how easy it is to make consistent, nice-looking screens going forward with our little ui library 👍
the most substantial part of these changes has to do with the timing of the multi-gifs. took me a while to realize it, but as originally implemented, all of the multi-gifs started playing and looping right when the onboarding flow rendered, and continued looping throughout. this was good for preloading the images, but meant that when a user got to a step that had a multi-gif, they might find that the were looking at the 3rd stage, which is kind of disorienting. so i made a special context that allowed the
ExpandableContent
to basically ask "am i the step being seen by the user right now", and delay kicking off the timing/looping until then, while still preloading.i also added two new steps, one for showing how to use the multi-stage gifs, and another to warn people about not clicking the wrong button in the system extension install flow (which is easy to do, and hard to recover from)