Skip to content

Conversation

@jstcki
Copy link
Contributor

@jstcki jstcki commented Jan 13, 2026

Adds all the bits and pieces necessary for turning BaB into a newsletter format. In addition to these code changes, make sure to:

  • Add the interest env var to API prod and staging
  • Add the campaign config to API prod and staging
  • Update the format meta with "newsletter": { "free": true, "name": "BAB" }, "sendAsEmail": true,

Testing:

  • Subscribing/unsubscribing via format page and newsletter settings (as logged in user)
  • Subscribing via format page as logged out user
  • Subscribed users are in the correct MailChimp audience and segment

@vercel
Copy link

vercel bot commented Jan 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
www-republik-love Ready Ready Preview Jan 14, 2026 10:13am
2 Skipped Deployments
Project Deployment Review Updated (UTC)
admin-republik-ch Skipped Skipped Jan 14, 2026 10:13am
publikator-republik-ch Skipped Skipped Jan 14, 2026 10:13am

@vercel vercel bot temporarily deployed to Preview – publikator-republik-ch January 13, 2026 13:32 Inactive
@vercel vercel bot temporarily deployed to Preview – www-republik-love January 13, 2026 13:32 Inactive
@vercel vercel bot temporarily deployed to Preview – docs January 13, 2026 13:32 Inactive
@vercel vercel bot temporarily deployed to Preview – admin-republik-ch January 13, 2026 13:32 Inactive
@jstcki jstcki temporarily deployed to api-republik-love January 13, 2026 13:55 Inactive
@vercel vercel bot temporarily deployed to Preview – publikator-republik-ch January 13, 2026 16:25 Inactive
@vercel vercel bot temporarily deployed to Preview – docs January 13, 2026 16:25 Inactive
@vercel vercel bot temporarily deployed to Preview – admin-republik-ch January 13, 2026 16:25 Inactive
@jstcki jstcki requested a review from annatraussnig January 14, 2026 09:35
@vercel vercel bot temporarily deployed to Preview – admin-republik-ch January 14, 2026 10:10 Inactive
@vercel vercel bot temporarily deployed to Preview – publikator-republik-ch January 14, 2026 10:10 Inactive
@vercel vercel bot temporarily deployed to Preview – docs January 14, 2026 10:10 Inactive
Copy link
Contributor

@annatraussnig annatraussnig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am left scratching my head a bit, mostly regarding the inner working of our tests and the absence of an ALL_OUR_NEWSLETTERS array somewhere, which we could refer too when doing similar operations on all our newsletters.
Neither of which is your fault or your responsibility.

'MAILCHIMP_INTEREST_NEWSLETTER_CLIMATE',
MAILCHIMP_INTEREST_NEWSLETTER_WDWWW: 'MAILCHIMP_INTEREST_NEWSLETTER_WDWWW',
MAILCHIMP_INTEREST_NEWSLETTER_SUNDAY: 'MAILCHIMP_INTEREST_NEWSLETTER_SUNDAY',
MAILCHIMP_INTEREST_NEWSLETTER_BAB: 'MAILCHIMP_INTEREST_NEWSLETTER_BAB',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need aaaaall the newsletters in a test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the real question is: why are newsletter subscriptions tracked as consents 🥲

'MAILCHIMP_INTEREST_NEWSLETTER_CLIMATE',
MAILCHIMP_INTEREST_NEWSLETTER_WDWWW: 'MAILCHIMP_INTEREST_NEWSLETTER_WDWWW',
MAILCHIMP_INTEREST_NEWSLETTER_SUNDAY: 'MAILCHIMP_INTEREST_NEWSLETTER_SUNDAY',
MAILCHIMP_INTEREST_NEWSLETTER_BAB: 'MAILCHIMP_INTEREST_NEWSLETTER_BAB',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need aaaaall the newsletters in a test?

'NEWSLETTER_PROJECTR',
'NEWSLETTER_WDWWW',
'NEWSLETTER_SUNDAY',
'NEWSLETTER_BAB',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would refactor into having a standalone NEWSLETTERS_POLICIES array, which we merge in. small change, but still

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why we need one template per NL type.

'MAILCHIMP_INTEREST_NEWSLETTER_CLIMATE',
MAILCHIMP_INTEREST_NEWSLETTER_WDWWW: 'MAILCHIMP_INTEREST_NEWSLETTER_WDWWW',
MAILCHIMP_INTEREST_NEWSLETTER_SUNDAY: 'MAILCHIMP_INTEREST_NEWSLETTER_SUNDAY',
MAILCHIMP_INTEREST_NEWSLETTER_BAB: 'MAILCHIMP_INTEREST_NEWSLETTER_BAB',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-tests. i feel like a good test should check the mechanism by which we do xxx. This doesn't make any sense to me (obv not for you to fix now).

@jstcki
Copy link
Contributor Author

jstcki commented Jan 15, 2026

Thanks for the review, we actually agree on all the points 😅 I'll look into maybe improving some of the things because we'll soon be adding another NL, and it would actually be nice to have a (slightly) improved setup process, maybe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants