-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Add product page spotlight tour #33268
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
Conversation
4ebe1d5 to
a87fac9
Compare
37b2f65 to
d8747dd
Compare
3e76178 to
d8747dd
Compare
eb92b43 to
3c4aff8
Compare
71df711 to
2d4a28c
Compare
|
📊 Test reports for this pull request have been published and are accessible through the following links:
Latest commit referenced in the reports: Visit the WooCommerce Test Reports homepage to view all published reports. See the FAQs page if you're having problems accessing them. |
ilyasfoo
left a comment
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 for the excellently crafted PR, @chihsuan!
I've tested "digital product" and it seems to also trigger spotlight. I think historically we're using tutorial=true query for the old guide, I think it's better to use a different query parameter for spotlight, perhaps additional one. Maybe combination of tutorial=true and spotlight=true for now? If we decide to deploy after the experiment, we can just remove spotlight parameter and enable spotlight by default.
7016169 to
1028f4f
Compare
Thanks @ilyasfoo Sounds good to me! Updated in 6700aba. I also added the auto-focus feature in 1028f4f. (I found we could directly implement it in our component.) |
ilyasfoo
left a comment
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.
Good catch. It's a bit tricky because editors are in iframes (we cannot use focus-within) and they don't have a blue border when it gets focused. I have to use JS to control it. Updated in a571be9 |
…editor is focused
68969cf to
225ba85
Compare
|
@ilyasfoo I've added focus support for the HTML text editor. I also refactored the code since it has too many lines. It should work fine now. product-tour-editor-focus-fixed.mov |
ilyasfoo
left a comment
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.
Excellent find, @chihsuan! I've tested this, LGTM! 🚢 🚢
|
e2e is failing but seemingly unrelated issue |
I re-ran the tests and it passed this time. 😃 |
|
Hi @chihsuan, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:
|

All Submissions:
Changes proposed in this Pull Request:
Closes #32421.
Acceptance criteria:
To be done in follow-up PRs:
Enable the focus state to nudge the user to interact and take actionHow to test the changes in this Pull Request:
pnpm installpnpm nx start woocommerce-adminexperimental-product-tourfeature flag via WooCommerce Admin Test HelperWoocommerce > HomeAdd my productstaskdesign: cJQeyyhx9PraQrY3YAtCGM-fi-1104%3A127916
Other information:
pnpm nx changelog <project>?FOR PR REVIEWER ONLY: