You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 2, 2026. It is now read-only.
Repository navigation
fix: require newsletter consent during registration - #359
add an explicit unchecked newsletter choice to registration and share it across password and Google sign-up
default every registration service to no subscription when consent is omitted or false
persist a versioned user-meta consent receipt before delegating opted-in delivery to Extra Chill Newsletter
remove implicit subscription from the wp-native bridge and record its currently unavailable registration surface as default-off
Consent Ownership
Extra Chill Users owns the account-registration decision and stores the bounded receipt with consent state, timestamp, registration source, registration method, source URL, policy identity, and delivery status. It does not implement newsletter delivery. Affirmative registrations continue through Newsletter's existing extrachill_network_subscribe() wrapper and canonical extrachill/subscribe ability.
Payload Compatibility
newsletter_consent is optional and defaults off in every service. Existing clients that omit it continue to register successfully but no longer create a marketing subscription. The paired API adapter adds and forwards the optional boolean without changing existing response shapes.
Failure Semantics
The consent receipt is persisted before delivery. A missing Newsletter runtime, persistence problem, or Sendy failure is logged but never rolls back or fails account creation. Successful and already-subscribed outcomes are recorded, and repeated processing of the same versioned consent receipt does not issue another request.
Accessibility And Copy
The control is a native checkbox, unchecked by default, with an explicit associated label: “Email me the Extra Chill newsletter.” The plain opt-in wording avoids bundling account terms with marketing consent and remains keyboard/screen-reader accessible without custom interaction code.
full Users JavaScript suite: 10/10 passed, including omitted/false/true password payloads, checked Google payload, unchecked default, and label association
npm run build: passed for all blocks
differential Homeboy lint: PHPCS, PHPStan, and ESLint gate passed
focused API companion tests: 5/5 passed
git diff --check and new PHP syntax checks: passed
The Users PHP sandbox gate could not execute because WP Codebox returned a parsed recipe with an empty execution ledger (PHPUNIT_ZERO_TESTS cause=recipe_run_no_executions) in runs 6fb5aac9-a5b2-4dc1-9c68-13710ff4c93d and a0a5608b-0dad-4b9c-8904-209168f83c8b. This infrastructure limitation is documented on Extra-Chill/homeboy#12784; the same host successfully executed the paired API PHPUnit tests.
The API full-suite baseline also has four independently confirmed unrelated failures on main, documented in Extra-Chill/extrachill-api#162 and #163.
ℹ️ Ignored a malformed test-failures sidecar (JSON error); the primary run result is preserved. Re-run with --analyze after the extension emits a valid sidecar for failure classification.
ℹ️ To run specific tests: homeboy review test extrachill-users -- --filter=TestName
ℹ️ Auto-fix lint issues: homeboy refactor extrachill-users --from lint --write
ℹ️ Collect coverage: homeboy review test extrachill-users --coverage
ℹ️ Save test baseline: homeboy review test extrachill-users --baseline
ℹ️ Analyze failures: homeboy review test extrachill-users --analyze
ℹ️ Pass args to test runner: homeboy review test -- [args]
ℹ️ Full options: homeboy self docs commands/test
Deep dive: homeboy review test extrachill-users --changed-since 88ca070
Artifacts and drill-down
CI results artifact: homeboy-ci-results-extrachill-users-review-test-homeboy-Linux-node24 contains immediate command JSON for this action invocation.
Observation artifact: homeboy-observations-extrachill-users-review-test-homeboy-Linux-node24 contains exported Homeboy run history for deeper queries.
Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consent Ownership
Extra Chill Users owns the account-registration decision and stores the bounded receipt with consent state, timestamp, registration source, registration method, source URL, policy identity, and delivery status. It does not implement newsletter delivery. Affirmative registrations continue through Newsletter's existing
extrachill_network_subscribe()wrapper and canonicalextrachill/subscribeability.Payload Compatibility
newsletter_consentis optional and defaults off in every service. Existing clients that omit it continue to register successfully but no longer create a marketing subscription. The paired API adapter adds and forwards the optional boolean without changing existing response shapes.Failure Semantics
The consent receipt is persisted before delivery. A missing Newsletter runtime, persistence problem, or Sendy failure is logged but never rolls back or fails account creation. Successful and already-subscribed outcomes are recorded, and repeated processing of the same versioned consent receipt does not issue another request.
Accessibility And Copy
The control is a native checkbox, unchecked by default, with an explicit associated label: “Email me the Extra Chill newsletter.” The plain opt-in wording avoids bundling account terms with marketing consent and remains keyboard/screen-reader accessible without custom interaction code.
Merge Order
Verification
npm run build: passed for all blocksgit diff --checkand new PHP syntax checks: passedThe Users PHP sandbox gate could not execute because WP Codebox returned a parsed recipe with an empty execution ledger (
PHPUNIT_ZERO_TESTS cause=recipe_run_no_executions) in runs6fb5aac9-a5b2-4dc1-9c68-13710ff4c93danda0a5608b-0dad-4b9c-8904-209168f83c8b. This infrastructure limitation is documented on Extra-Chill/homeboy#12784; the same host successfully executed the paired API PHPUnit tests.The API full-suite baseline also has four independently confirmed unrelated failures on
main, documented in Extra-Chill/extrachill-api#162 and #163.Closes #358