Skip to content
This repository was archived by the owner on Nov 2, 2026. It is now read-only.

fix: require newsletter consent during registration - #359

Merged
chubes4 merged 1 commit into
mainfrom
fix-registration-consent-358
Aug 22, 2026
Merged

chubes4 merged 1 commit into
mainfrom
fix-registration-consent-358

Conversation

@chubes4

@chubes4 chubes4 commented Aug 22, 2026

Copy link
Copy Markdown
Member

Summary

  • 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.

Merge Order

  1. Merge fix: forward registration newsletter consent extrachill-api#164 first so both REST adapters accept and forward the choice.
  2. Merge this Users PR second.

Verification

  • 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.

Closes #358

@homeboy-ci

homeboy-ci Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Homeboy Results — extrachill-users

Review lint

✅ review lint — passed

ℹ️ Auto-fix: homeboy refactor extrachill-users --path /home/runner/work/extrachill-users/extrachill-users --changed-since 88ca070 --from lint --write
ℹ️ Some issues may require manual fixes
ℹ️ Full options: homeboy self docs commands/lint
ℹ️ Save lint baseline: homeboy review lint extrachill-users --baseline
Deep dive: homeboy review lint extrachill-users --changed-since 88ca070

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-extrachill-users-review-lint-homeboy-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-extrachill-users-review-lint-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>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/extrachill-users/actions/runs/32573959214

Review test

⚠️ review test — baseline red

  • 107 failed out of 407 total
  • 3 skipped

ℹ️ 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>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/extrachill-users/actions/runs/32573959214
Tooling versions
  • Homeboy CLI: homeboy 0.352.0+1959d62faa37
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 49c25105
  • Action: Extra-Chill/homeboy-action@v2

@chubes4
chubes4 merged commit 30af310 into main Aug 22, 2026
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Require explicit newsletter consent during registration

1 participant