-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Add/35126 ces exit prompt settings #35761
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
Test Results SummaryCommit SHA: ca490e7
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
049815d to
a8ee37c
Compare
d5e0075 to
8779640
Compare
9ebe306 to
104a1e3
Compare
8779640 to
91fcc50
Compare
|
While testing I noticed some behaviors:
Screen.Recording.2022-12-13.at.10.30.55.mov
|
|
@nathanss thanks for the review.
I was not able to reproduce this, and I am not sure if this would be related to this PR as we use the notices for a lot of other things as well. Did you test this in a specific browser? Also maybe check if your build ran fine? It could be that some stylesheets didn't get applied correctly.
In theory it's ok, its been like that as well, but it makes sense for us to add tracks for that as well. So I added a This should be good for a re-review if you have time. |
nathanss
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.
Great @louwie17, I think I've seen that notice not appearing correctly issue before, so I definitely agree it's not specific to this PR. I hope this doesn't happen in production, as it's almost guaranteed that the user won't see it in that case.
As for the other suggestions, they all look great. I'll approve it! Thanks a lot for implementing the tests.
* Add exit settings page tracker * Add exception for when user hits the save button * Update settings and add icon support * Add changelog * Add dismiss track for when user dismisses CES modal * Add changelog * Add tests for staticFormDataToObject function * Fix imports of test file
All Submissions:
Changes proposed in this Pull Request:
Add's an exit prompt tracking script to the WooCommerce setting pages that will trigger a CES notice if users exit the setting page while having made changes, without saving them.
Part of #35126 .
How to test the changes in this Pull Request:
new-product-management-experiencefeature flag enabled (you can do so using the latest version of the Beta tester within the mono repo).⚙️ Did you find the right setting?wcadmin_ces_snackbar_view,wcadmin_ces_view, andwcadmin_ces_feedbackinclude theces_locationprop with theoutsidevalue.We noticed you started changing store settings, then left. How was it? Your feedback will help create a better experience for thousands of merchants like you.You may also want to try dismissing the notice and see if the prop has been added to
wcadmin_ces_snackbar_dismisswoocommerce_ces_shown_for_actionsoption and disable tracking under WooCommerce > Settings > Advanced > Woocommerce.comcustomer-effort-score-exit-pagein local storage does not get updated, but stays empty.Other information:
pnpm --filter=<project> changelog add?FOR PR REVIEWER ONLY: