Skip to content

feat(app-admin): subscribe admin user to newsletter after install#5240

Merged
adrians5j merged 6 commits into
nextfrom
sven/fix/install-newsletter
May 27, 2026
Merged

feat(app-admin): subscribe admin user to newsletter after install#5240
adrians5j merged 6 commits into
nextfrom
sven/fix/install-newsletter

Conversation

@SvenAlHamad
Copy link
Copy Markdown
Contributor

@SvenAlHamad SvenAlHamad commented May 22, 2026

What changed

The newsletter subscription logic has been extracted from the System Installer presenter into an injectable NewsletterSubscriptionService. The service now checks the telemetry enabled flag via EnvConfig instead of reading process.env directly, making it consistent with the rest of the application.

Changelog

Newsletter subscription refactored into an injectable service

The newsletter subscription during installation was previously handled as a private method inside the presenter. It is now a standalone injectable service, making it easier to test and reuse. The telemetry gating also now uses the application config instead of raw environment variables.

Squash Merge Commit

fix: extract newsletter subscription into injectable service (#5240)

After a successful system install, fire-and-forget POST the admin user's name + email (already collected in the AdminUserStep) to t.webiny.com/newsletter, which forwards to MailerLite. Skipped when
  REACT_APP_WEBINY_TELEMETRY=false or when the Cognito step did not run. Failures are swallowed so the wizard never blocks on the call.
@SvenAlHamad SvenAlHamad requested a review from Pavel910 May 22, 2026 13:40
@SvenAlHamad SvenAlHamad added this to the 6.4.0 milestone May 22, 2026
@adrians5j adrians5j merged commit f485fac into next May 27, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants