docs: document cookie consent lifecycle event API#50076
Conversation
|
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
|
Symphony AI is leaving this unchanged because this scoped GitHub session does not expose PR label management. The PR already includes the required description, testing instructions, data/privacy answer, and changelog entry, and it remains a draft for human review handoff. |
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. 🤷 |
|
Symphony AI is leaving this unchanged because this is an automated coverage summary and does not request a code change. The PR intentionally keeps the implementation scope unchanged; validation and the added event-contract test coverage remain recorded in the Linear workpad. |
Fixes WOOA7S-1598
Proposed changes
wp_consent_savedas the public Cookie Consent lifecycle event, including the stableevent.detail.eventTypeandevent.detail.choicesshape.wp_has_consent/wp_listen_for_consent_change) rather than a Cookie Consent-specific lifecycle event.wp_consent_type_definedremains internal, and add Jest coverage for the publicwp_consent_savedpayload contract.Related product discussion/links
Does this pull request change what data or activity we track or use?
No. This documents an existing lifecycle event and adds test coverage for its payload; it does not change tracking behavior or collected data.
Testing instructions
?preview_cookie_consent=1.wp_consent_savedthat logsevent.detail.projects/packages/cookie-consent/README.md, especially thePublic APIssection.eventTypematching the user action andchoiceskeyed by Cookie Consent category keys such asanalyticsandadvertising.wp_consent_type_definedas internal.