-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat(feature tour): FF for hero #1508
Conversation
690775a
to
de72219
Compare
edb5f56
to
830334f
Compare
3659d00
to
8db214a
Compare
return ( | ||
<Box | ||
padding="1.5rem" | ||
alignItems="center" | ||
maxW="100%" | ||
w="18rem" | ||
w="20rem" |
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.
Confirmed wit Design to standardise this already
{isLastStep ? ( | ||
<Button {...primaryProps} title="Done"> | ||
Done | ||
Got it |
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.
Confirmed wit Design to standardise this already
!run chromatic |
0aaf863
to
1072914
Compare
!run chromatic |
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.
Overall looks okay, need to make sure the design comments are addressed in Chromatic!
@kishore03109 unable to replicate blocker. Might want to de-prio if this is not happening on staging build |
Problem
We are releasing new homepage features. figma link
Closes [insert issue #]
Solution
This PR implements the feature tour + storybooks for this. Feature tour is only shown if feature flag for using the new
HOMEPAGE_TEMPLATES
are enabledBreaking Changes
Yes - this PR contains breaking changes
No - this PR is backwards compatible
While API contract for feature tour changed, i preserved the default behaviour of the components.
Screenshots
Screen.Recording.2023-09-20.at.4.37.45.PM.mov
Blocker (potential chrome bug in local machine only)
For some weird reason, the spotlight offsets to create this weird effect. Notice that the tooltip renders properly, but not the spotlight. I did find a related issue here, but the issue was fixed so it seems unlikely to be the cause. NOTE: This was only reproducible in chrome, and only in my local machine. :sadge:
Interestingly, after hot refreshes, the spotlight magically renders to the correct location. I thought this is suggestive of the need to render the spotlight AFTER the render of the Text, but somehow using a useEffect did not solve this :(
Tests
/homepage
site.New dependencies:
dependency
: react-intersection-observerWe need to to check if an element is in view. Else feature tour doesnt work, with this error thrown in the console.