Survicate: suppress surveys while Help Center is open#48110
Survicate: suppress surveys while Help Center is open#48110
Conversation
Close any visible Survicate survey when the Help Center opens in wp-admin, mirroring the suppression logic added to wp-calypso in wp-calypso#109989. Subscribes to the automattic/help-center @wordpress/data store and calls window._sva.closeSurvey() on open-transition, with graceful degradation when the store is unavailable. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 🔴 Action required: We would recommend that you add a section to the PR description to specify whether this PR includes any changes to data or privacy, like so: Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |
Summary
automattic/help-center@wordpress/datastore and callswindow._sva.closeSurvey()when the Help Center transitions to openwp.datais unavailable (try/catch + null checks)Testing instructions
survey.survicate.comin network tab)window._sva.showSurvey()if available)Related PRs
🤖 Generated with Claude Code