Skip to content

fix: handle missing Mailchimp API key in auth status#3873

Merged
miguelpeixe merged 1 commit into
trunkfrom
fix/wizard-mailchimp-missing-api-key
Mar 31, 2025
Merged

fix: handle missing Mailchimp API key in auth status#3873
miguelpeixe merged 1 commit into
trunkfrom
fix/wizard-mailchimp-missing-api-key

Conversation

@miguelpeixe

@miguelpeixe miguelpeixe commented Mar 31, 2025

Copy link
Copy Markdown
Member

All Submissions:

Changes proposed in this Pull Request:

Updated the auth status endpoint for the Mailchimp API to return an empty response when no API key is provided, and added error handling to return a specific error code if the API key is missing.

Fixes an issue with the Newspack -> Settings wizard presenting an invalid key error when Mailchimp has not yet been configured:

image

How to test the changes in this Pull Request:

  1. While on trunk start a fresh site and navigate to Newspack -> Settings
  2. Confirm you get the "Invalid Mailchimp API Key." as above
  3. Checkout this branch and confirm the error is gone
  4. Connect an invalid Mailchimp API key and confirm the error renders
  5. Connect a valid key and confirm you're connected and no errors are thrown

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@miguelpeixe miguelpeixe added the [Status] Needs Review The issue or pull request needs to be reviewed label Mar 31, 2025
@miguelpeixe miguelpeixe self-assigned this Mar 31, 2025
@miguelpeixe miguelpeixe requested a review from a team as a code owner March 31, 2025 13:27

@laurelfulford laurelfulford left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Confirmed that this fixes the initial error, and that I still get an error when I actually have an invalid key. Thanks @miguelpeixe! 🙌

@github-actions github-actions Bot added [Status] Approved The pull request has been reviewed and is ready to merge and removed [Status] Needs Review The issue or pull request needs to be reviewed labels Mar 31, 2025
@miguelpeixe miguelpeixe merged commit 6df6fda into trunk Mar 31, 2025
@miguelpeixe miguelpeixe deleted the fix/wizard-mailchimp-missing-api-key branch March 31, 2025 16:56
@github-actions

Copy link
Copy Markdown

Hey @miguelpeixe, good job getting this PR merged! 🎉

Now, the needs-changelog label has been added to it.

Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label.

If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label.

Thank you! ❤️

matticbot pushed a commit that referenced this pull request Mar 31, 2025
# [6.2.0-alpha.7](v6.2.0-alpha.6...v6.2.0-alpha.7) (2025-03-31)

### Bug Fixes

* handle missing Mailchimp API key in auth status ([#3873](#3873)) ([81a6e51](81a6e51))
* remove Mailchimp for WooCommerce from wizard ([#3876](#3876)) ([4353a98](4353a98))
dkoo added a commit that referenced this pull request Mar 31, 2025
* feat(my-account): disable WC password nag

* feat(woo-member-commenting): optional module for member commenting (#3783)

* feat(woo-member-commenting): optional module for member commenting

* feat(woo-comments): use a constant array for settings

* Remove punctuation

Co-authored-by: Derrick Koo <dkoo@users.noreply.github.com>

---------

Co-authored-by: Derrick Koo <dkoo@users.noreply.github.com>

* fix: update paths to share button, social CSS in Perfmatters (#3810)

* feat(media): enable setting a default image for 404 images (#3811)

* fix(ga): check if post is not null before reading properties (#3817)

* feat(rss-feed): add feed enhancements for republication tracker; Atom feed URL (#3801)

* feat: add Lite sites feature (#3807)

* feat: add Lite sites feature

* feat: add lite site settings page

* feat(lite-site): update style

* fix: a few tweaks

* fix: i18n

* fix: option name

* feat: add hook to allow styles customizations

* fix: a few tweaks to the UI

* feat: i18n for strings

---------

Co-authored-by: Thomas Guillot <thomas@automattic.com>

* Fix: Guest Contributors Role Init for CLI and PHPUnit (#3828)

* fix: guest contributors role init for CLI (non-admin)

* fix: guest contributors role init: move line

* fix: guest contributors role init: phpcs cleanup

* Revert "refactor(corrections): remove corrections feature flag (#3797)" (#3825)

This reverts commit 7776957.

* feat: enable email change for newspack users (#3824)

* feat: enable email change for newspack users

* fix: check ff for non-a12s

* test: update JS tests (#3818)

* deps: update testing-library

* refator: prevent react warnings

* test: fix test failing after testing-library update

* feat(corrections-location): integrate Correction location logic (#3829)

* refactor(corrections): remove customizer settings for corrections location

* feat(corrections): add location metadata to corrections and update modal

* feat(corrections): separate corrections by location and update markup generation

* fix(tests): update correction tests

* refactor(corrections): simplify location check

* feat: update button label

* fix: clear empty space

* docs: update docs

* refactor: remove unused corrections active meta key

* feat: remove shortcode

* refactor: remove obsolete corrections shortcode tests

---------

Co-authored-by: Leo Germani <leogermani@automattic.com>

* fix(modal-checkout): endpoint to refresh newsletter lists via REST (#3841)

This PR fixes an issue where the newsletters modal was incorrectly showing all premium newsletters. We fix this by refreshing the newsletters lists post checkout.

* test: fix corrections test

* fix(reader-revenue): fatal when using woocommerce-paypal-payments@3.0.0 (#3848)

* feat(memberships): status reevaluation (#3845)

* feat(memberships): status reevaluation

* chore: fix linting

* chore(release): 6.2.0-alpha.1 [skip ci]

# [6.2.0-alpha.1](v6.1.1...v6.2.0-alpha.1) (2025-03-20)

### Bug Fixes

* **ga:** check if post is not null before reading properties ([#3817](#3817)) ([9dfa47a](9dfa47a))
* **modal-checkout:** endpoint to refresh newsletter lists via REST ([#3841](#3841)) ([79ea458](79ea458))
* **reader-revenue:** fatal when using woocommerce-paypal-payments@3.0.0 ([#3848](#3848)) ([1d73e17](1d73e17))
* update paths to share button, social CSS in Perfmatters ([#3810](#3810)) ([eb2ca7e](eb2ca7e))

### Features

* add Lite sites feature ([#3807](#3807)) ([cbd3e61](cbd3e61))
* **corrections-location:** integrate Correction location logic ([#3829](#3829)) ([6a7cd45](6a7cd45))
* enable email change for newspack users ([#3824](#3824)) ([1bfb458](1bfb458))
* **media:** enable setting a default image for 404 images ([#3811](#3811)) ([465928e](465928e))
* **memberships:** status reevaluation ([#3845](#3845)) ([ba4bea9](ba4bea9))
* **my-account:** disable WC password nag ([a22e756](a22e756))
* **rss-feed:** add feed enhancements for republication tracker; Atom feed URL ([#3801](#3801)) ([719983f](719983f))
* **woo-member-commenting:** optional module for member commenting ([#3783](#3783)) ([262f8bf](262f8bf))

### Reverts

* Revert "refactor(corrections): remove corrections feature flag (#3797)" (#3825) ([f5f6a5c](f5f6a5c)), closes [#3797](#3797) [#3825](#3825)

* feat: add custom check for media visibility (#3823)

* feat(corrections-modal): Improve Corrections Modal UX (#3835)

* feat(corrections-modal): enhance corrections modal UX with notices and card layout

* feat(corrections-modal): replace success notice with snackbar

* refactor(corrections-modal): replaced contained notice with global notice

* feat(corrections-modal): reorganise panels

* feat(corrections-modal): enforce correction saving

---------

Co-authored-by: Thomas Guillot <thomas@automattic.com>

* feat(corrections-modal): fix modal action buttons & state handling (#3852)

* feat(correction): Add Priority setting & refactor Block (#3844)

* feat(corrections): update correction box to have location settings

* feat(corrections-blocks): add variations for top and bottom correction box

* feat(correction-box): change default location to 'all' in block attributes

* feat(correction-box): upgrade variations and update icons

* refactor(corrections): change location meta to priority and update related logic

* refactor(correction-box): rename location setting to priority & update its logic & remove variations

* refactor(corrections-modal): rename location to priority and update related logic

* docs: update docs

---------

Co-authored-by: Leo Germani <leogermani@automattic.com>

* chore(release): 6.2.0-alpha.2 [skip ci]

# [6.2.0-alpha.2](v6.2.0-alpha.1...v6.2.0-alpha.2) (2025-03-25)

### Bug Fixes

* **reader-revenue:** fatal when using woocommerce-paypal-payments@3.0.0 ([#3848](#3848)) ([a3f6d6a](a3f6d6a))
* **woocommerce-email:** fix the subscription cancellation email ([fc1cc8c](fc1cc8c))

* fix: add check if product before gating content (#3850)

* chore(release): 6.2.0-alpha.3 [skip ci]

# [6.2.0-alpha.3](v6.2.0-alpha.2...v6.2.0-alpha.3) (2025-03-26)

### Bug Fixes

* **esp-sync:** account for wp errors in email change sync ([#3860](#3860)) ([d5d576d](d5d576d))

* feat: update custom bylines data structure (#3863)

* feat: information architecture (#3857)

Co-authored-by: Jared Rethman <jaredrethman@gmail.com>
Co-authored-by: Ron Chambers <116242607+ronchambers@users.noreply.github.com>
Co-authored-by: Derrick Koo <dkoo@users.noreply.github.com>
Co-authored-by: Rasmy Nguyen <raz@automattic.com>
Co-authored-by: Thomas Guillot <thomasguillot@users.noreply.github.com>
Co-authored-by: Laurel <laurel.fulford@automattic.com>

* feat: add canonical url to lite site single posts (#3865)

* chore(release): 6.2.0-alpha.4 [skip ci]

# [6.2.0-alpha.4](v6.2.0-alpha.3...v6.2.0-alpha.4) (2025-03-26)

### Bug Fixes

* add check if product before gating content ([#3850](#3850)) ([b9e385d](b9e385d))

### Features

* add canonical url to lite site single posts ([#3865](#3865)) ([471ad81](471ad81))
* add custom check for media visibility ([#3823](#3823)) ([c1d81dc](c1d81dc))
* **correction:** Add Priority setting & refactor Block ([#3844](#3844)) ([9232750](9232750))
* **corrections-modal:** fix modal action buttons & state handling ([#3852](#3852)) ([220d5d6](220d5d6))
* **corrections-modal:** Improve Corrections Modal UX ([#3835](#3835)) ([afc9844](afc9844))
* information architecture ([#3857](#3857)) ([6fb5951](6fb5951))
* update custom bylines data structure ([#3863](#3863)) ([9b66c1f](9b66c1f))

* fix(ia): render all emails on reset (#3867)

This fixes an issue where resetting an email template in Newspack > Settings > Emails would only render Woo templates on success.

* chore(release): 6.2.0-alpha.5 [skip ci]

# [6.2.0-alpha.5](v6.2.0-alpha.4...v6.2.0-alpha.5) (2025-03-27)

### Bug Fixes

* **ia:** render all emails on reset ([#3867](#3867)) ([519890f](519890f))

* fix(image-404-handling): handle 404 from other sites

* chore(release): 6.2.0-alpha.6 [skip ci]

# [6.2.0-alpha.6](v6.2.0-alpha.5...v6.2.0-alpha.6) (2025-03-31)

### Bug Fixes

* **image-404-handling:** handle 404 from other sites ([51998b8](51998b8))

* test: fix unit tests based on dates relative to "now" (#3875)

* fix: handle missing Mailchimp API key in auth status (#3873)

* fix: remove Mailchimp for WooCommerce from wizard (#3876)

* chore(release): 6.2.0-alpha.7 [skip ci]

# [6.2.0-alpha.7](v6.2.0-alpha.6...v6.2.0-alpha.7) (2025-03-31)

### Bug Fixes

* handle missing Mailchimp API key in auth status ([#3873](#3873)) ([81a6e51](81a6e51))
* remove Mailchimp for WooCommerce from wizard ([#3876](#3876)) ([4353a98](4353a98))

* fix(notices): fix PHP notice (#3872)

---------

Co-authored-by: matticbot <sysops+ghmatticbot@automattic.com>
Co-authored-by: Adam Cassis <adam.cassis@automattic.com>
Co-authored-by: Camilla Krag Jensen <naxoc@users.noreply.github.com>
Co-authored-by: Laurel <laurel.fulford@automattic.com>
Co-authored-by: Adam Cassis <adam@adamcassis.com>
Co-authored-by: Eddie Carrasco <eddies.code.shop@gmail.com>
Co-authored-by: Takshil Kunadia <71006004+Takshil-Kunadia@users.noreply.github.com>
Co-authored-by: leogermani <leogermani@automattic.com>
Co-authored-by: Thomas Guillot <thomas@automattic.com>
Co-authored-by: Ron Chambers <116242607+ronchambers@users.noreply.github.com>
Co-authored-by: Rasmy Nguyen <raz@automattic.com>
Co-authored-by: matticbot <semantic-release-bot@martynus.net>
Co-authored-by: Miguel Peixe <miguel.peixe@automattic.com>
Co-authored-by: Jared Rethman <jaredrethman@gmail.com>
Co-authored-by: Thomas Guillot <thomasguillot@users.noreply.github.com>
matticbot pushed a commit that referenced this pull request Mar 31, 2025
# [6.2.0](v6.1.3...v6.2.0) (2025-03-31)

### Bug Fixes

* add check if product before gating content ([#3850](#3850)) ([b9e385d](b9e385d))
* **ga:** check if post is not null before reading properties ([#3817](#3817)) ([9dfa47a](9dfa47a))
* handle missing Mailchimp API key in auth status ([#3873](#3873)) ([81a6e51](81a6e51))
* **ia:** render all emails on reset ([#3867](#3867)) ([519890f](519890f))
* **image-404-handling:** handle 404 from other sites ([51998b8](51998b8))
* **modal-checkout:** endpoint to refresh newsletter lists via REST ([#3841](#3841)) ([79ea458](79ea458))
* **notices:** fix PHP notice ([#3872](#3872)) ([9cda1ca](9cda1ca))
* **reader-revenue:** fatal when using woocommerce-paypal-payments@3.0.0 ([#3848](#3848)) ([1d73e17](1d73e17))
* remove Mailchimp for WooCommerce from wizard ([#3876](#3876)) ([4353a98](4353a98))
* update paths to share button, social CSS in Perfmatters ([#3810](#3810)) ([eb2ca7e](eb2ca7e))

### Features

* add canonical url to lite site single posts ([#3865](#3865)) ([471ad81](471ad81))
* add custom check for media visibility ([#3823](#3823)) ([c1d81dc](c1d81dc))
* add Lite sites feature ([#3807](#3807)) ([cbd3e61](cbd3e61))
* **correction:** Add Priority setting & refactor Block ([#3844](#3844)) ([9232750](9232750))
* **corrections-location:** integrate Correction location logic ([#3829](#3829)) ([6a7cd45](6a7cd45))
* **corrections-modal:** fix modal action buttons & state handling ([#3852](#3852)) ([220d5d6](220d5d6))
* **corrections-modal:** Improve Corrections Modal UX ([#3835](#3835)) ([afc9844](afc9844))
* enable email change for newspack users ([#3824](#3824)) ([1bfb458](1bfb458))
* information architecture ([#3857](#3857)) ([6fb5951](6fb5951))
* **media:** enable setting a default image for 404 images ([#3811](#3811)) ([465928e](465928e))
* **memberships:** status reevaluation ([#3845](#3845)) ([ba4bea9](ba4bea9))
* **my-account:** disable WC password nag ([a22e756](a22e756))
* **rss-feed:** add feed enhancements for republication tracker; Atom feed URL ([#3801](#3801)) ([719983f](719983f))
* update custom bylines data structure ([#3863](#3863)) ([9b66c1f](9b66c1f))
* **woo-member-commenting:** optional module for member commenting ([#3783](#3783)) ([262f8bf](262f8bf))

### Reverts

* Revert "refactor(corrections): remove corrections feature flag (#3797)" (#3825) ([f5f6a5c](f5f6a5c)), closes [#3797](#3797) [#3825](#3825)
@matticbot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 6.3.0-hotfix-just-to-test-ci-changes.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

miguelpeixe added a commit that referenced this pull request Apr 4, 2025
* fix: path to autoload (#3808)

* fix(ia): render all emails on reset (#3867)

This fixes an issue where resetting an email template in Newspack > Settings > Emails would only render Woo templates on success.

* refactor(corrections): remove feature flag (#3866)

* feat: custom byline interface (#3746)

* feat: modify textarea to RichText and add TagInlineBlock with dummy authors

* feat: fetch authors from co-authors plus and set tokens on BylinesSettingsPanel

* chore: improve inline documentation

* feat: [WIP] add author tokens on click

* feat: append users to the end of the byline

* feat: add author tokens to custom byline

* feat: handling tokens with vanilla JS (WIP)

* feat: useRef to manage tokens in use

* chore: improve inline docs

* feat: check custom byline after DOM ready

* chore: addEventListener trough ref instead of DOM directly

Also adds the return of a function on useEffect to allow React cleanup on unmount

* feat: display icons on tokens (plus to insert and close to remove)

* feat: add mutation observer to remove tokens on erasing with backspace/delete

* chore: enhance inline documentation

* fix: stylize tokens according to FormTokenField

* fix: remove token when characterData changes

* fix: improved mutation observer callback logic to update data correctly

* fix: initilize only on DOM ready and main byline element ready

* fix: properly add the mutation observer after child component is ready

* fix: implement setTokensInUse function to better reuse code

* fix: split byline "textarea" and tokens to avoid unwanted re-rendering

* feat: parse meta with <Author> before rendering byline

* feat: store byline meta according to the expected format

* chore: refacot bylineParser function

* feat: make custom bylines to work without co-author plus activated

* feat: make custom byline field to be displayed on a modal

* fix: mystype newspackByline.is_co_authors_plus_active

* fix: adding space after token insertion at the end of byline

* fix: improve byline innerHTML assignment

* fix: typo isTokensdReady

* docs: update docs

* fix: remove non used authors query

* fix: cubic-bezier transition typo

* fix: remove updateBylineMeta from click on x/removal callback event

* fix: remove unnecessary "backwards" compatibility since it's new feature

* refactor: replace MutationObserver with event listeners

Replaced the MutationObserver with an event listener, replaced some of
the DOM interaction with a useRef element, and tried to refactor some of
the data getters and setters.

* fix: update effect registration so it only runs on mounting

* refactor: remove unneded "remove token" handler

* fix: look up the byline meta on mount, not just on initial render

* fix: set contenteditable="false" on token spans

Prevents editing the content in these spans, and makes it so that
deleting (with backspace) will remove the whole span at once rather than
editing within the span.

* chore: add some missing docblocks and fix some lint issues

* fix: set default insert location to end of editable field

Updates the "cursorPos" variable logic to use the end of the line if
there's no cursor position set yet, and to add a non-breaking space at
the end of the text if necessary. Also updates the white-space styling
of the editable area, to ensure that users can select any point in the
text they may need to.

* fix: remove margin from last token to prevent confusion with whitespace

* feat: add preview to sidebar interface

* fix: rename panel to Byline

* fix: make modal width fixed

* feat: add function to parse meta for preview

* feat: default custom byline on first toggle

* feat: set default custom byline meta on toggle

* feat: update styles to match new designs

* feat: update styles to match designs

* chore: cleanup, comments, organization

---------

Co-authored-by: Leo Germani <leogermani@automattic.com>
Co-authored-by: goldenapples <goldenapplesdesign@gmail.com>
Co-authored-by: Joeleen Kennedy <joeleen@humanmade.com>

* feat: frontend display of bylines (#3856)

* feat: modify textarea to RichText and add TagInlineBlock with dummy authors

* feat: fetch authors from co-authors plus and set tokens on BylinesSettingsPanel

* chore: improve inline documentation

* feat: [WIP] add author tokens on click

* feat: append users to the end of the byline

* feat: add author tokens to custom byline

* feat: handling tokens with vanilla JS (WIP)

* feat: useRef to manage tokens in use

* chore: improve inline docs

* feat: check custom byline after DOM ready

* chore: addEventListener trough ref instead of DOM directly

Also adds the return of a function on useEffect to allow React cleanup on unmount

* feat: display icons on tokens (plus to insert and close to remove)

* feat: add mutation observer to remove tokens on erasing with backspace/delete

* chore: enhance inline documentation

* fix: stylize tokens according to FormTokenField

* fix: remove token when characterData changes

* fix: improved mutation observer callback logic to update data correctly

* fix: initilize only on DOM ready and main byline element ready

* fix: properly add the mutation observer after child component is ready

* fix: implement setTokensInUse function to better reuse code

* fix: split byline "textarea" and tokens to avoid unwanted re-rendering

* feat: parse meta with <Author> before rendering byline

* feat: store byline meta according to the expected format

* chore: refacot bylineParser function

* feat: make custom bylines to work without co-author plus activated

* feat: make custom byline field to be displayed on a modal

* fix: mystype newspackByline.is_co_authors_plus_active

* fix: adding space after token insertion at the end of byline

* fix: improve byline innerHTML assignment

* docs: update docs

* fix: typo isTokensdReady

* fix: remove non used authors query

* fix: cubic-bezier transition typo

* fix: remove updateBylineMeta from click on x/removal callback event

* fix: remove unnecessary "backwards" compatibility since it's new feature

* feat: add byline output to pre_newspack_posted_by hook

* Tried to simplify some things

Replaced the MutationObserver with an event listener, replaced some of
the DOM interaction with a useRef element, and tried to refactor some of
the data getters and setters.

* Update effects on mounting

* Remove unneded remove handler.

* Look up the byline on mount, not just on initial render.

* feat: modify textarea to RichText and add TagInlineBlock with dummy authors

* feat: fetch authors from co-authors plus and set tokens on BylinesSettingsPanel

* chore: improve inline documentation

* feat: [WIP] add author tokens on click

* feat: append users to the end of the byline

* feat: add author tokens to custom byline

* feat: handling tokens with vanilla JS (WIP)

* feat: useRef to manage tokens in use

* chore: improve inline docs

* feat: check custom byline after DOM ready

* chore: addEventListener trough ref instead of DOM directly

Also adds the return of a function on useEffect to allow React cleanup on unmount

* feat: display icons on tokens (plus to insert and close to remove)

* feat: add mutation observer to remove tokens on erasing with backspace/delete

* chore: enhance inline documentation

* fix: stylize tokens according to FormTokenField

* fix: remove token when characterData changes

* fix: improved mutation observer callback logic to update data correctly

* fix: initilize only on DOM ready and main byline element ready

* fix: properly add the mutation observer after child component is ready

* fix: implement setTokensInUse function to better reuse code

* fix: split byline "textarea" and tokens to avoid unwanted re-rendering

* feat: parse meta with <Author> before rendering byline

* feat: store byline meta according to the expected format

* chore: refacot bylineParser function

* feat: make custom bylines to work without co-author plus activated

* feat: make custom byline field to be displayed on a modal

* fix: mystype newspackByline.is_co_authors_plus_active

* fix: adding space after token insertion at the end of byline

* fix: improve byline innerHTML assignment

* fix: typo isTokensdReady

* docs: update docs

* fix: remove non used authors query

* fix: cubic-bezier transition typo

* fix: remove updateBylineMeta from click on x/removal callback event

* fix: remove unnecessary "backwards" compatibility since it's new feature

* refactor: replace MutationObserver with event listeners

Replaced the MutationObserver with an event listener, replaced some of
the DOM interaction with a useRef element, and tried to refactor some of
the data getters and setters.

* fix: update effect registration so it only runs on mounting

* refactor: remove unneded "remove token" handler

* fix: look up the byline meta on mount, not just on initial render

* fix: set contenteditable="false" on token spans

Prevents editing the content in these spans, and makes it so that
deleting (with backspace) will remove the whole span at once rather than
editing within the span.

* chore: add some missing docblocks and fix some lint issues

* fix: set default insert location to end of editable field

Updates the "cursorPos" variable logic to use the end of the line if
there's no cursor position set yet, and to add a non-breaking space at
the end of the text if necessary. Also updates the white-space styling
of the editable area, to ensure that users can select any point in the
text they may need to.

* fix: remove margin from last token to prevent confusion with whitespace

* feat: add preview to sidebar interface

* fix: rename panel to Byline

* fix: make modal width fixed

* feat: add function to parse meta for preview

* feat: default custom byline on first toggle

* feat: set default custom byline meta on toggle

* feat: replace author shortcodes on output

* feat: update styles to match new designs

* feat: update styles to match designs

* chore: cleanup, comments, organization

* feat: return an array of coauthors plus authors object, for authors in use in the byline

* chore: few tweaks and linting

---------

Co-authored-by: Leo Germani <leogermani@automattic.com>
Co-authored-by: goldenapples <goldenapplesdesign@gmail.com>
Co-authored-by: Joeleen Kennedy <joeleen@humanmade.com>

* fix: handle missing Mailchimp API key in auth status (#3873)

* fix: remove Mailchimp for WooCommerce from wizard (#3876)

* fix(notices): fix PHP notice (#3872)

* chore: remove unused `react-daterange-picker` package (#3879)

* chore: prevent PHP notice with is_singular (#3874)

* fix(guest-contributors): return them in authors query

* fix: remove the Design link from the Appearance menu (#3878)

* feat(esp-sync): add constant contact support (#3832)

* fix: add constant contact list id setting

* fix: add constant contact to Sync settings

* fix: add constant contact to reader activation settings

* chore: refactor esp settings component

* fix: regressions

---------

Co-authored-by: dkoo <derrick.koo@automattic.com>

* ci: build distributable after release

---------

Co-authored-by: Ron Chambers <116242607+ronchambers@users.noreply.github.com>
Co-authored-by: Rasmy Nguyen <raz@automattic.com>
Co-authored-by: Takshil Kunadia <71006004+Takshil-Kunadia@users.noreply.github.com>
Co-authored-by: Allyson <2000638+allysonsouza@users.noreply.github.com>
Co-authored-by: Leo Germani <leogermani@automattic.com>
Co-authored-by: goldenapples <goldenapplesdesign@gmail.com>
Co-authored-by: Joeleen Kennedy <joeleen@humanmade.com>
Co-authored-by: Camilla Krag Jensen <naxoc@users.noreply.github.com>
Co-authored-by: matticbot <sysops+ghmatticbot@automattic.com>
Co-authored-by: Adam Cassis <adam@adamcassis.com>
Co-authored-by: Adam Cassis <adam.cassis@automattic.com>
Co-authored-by: Laurel <laurel.fulford@automattic.com>
Co-authored-by: dkoo <derrick.koo@automattic.com>
matticbot pushed a commit that referenced this pull request Apr 4, 2025
# [6.3.0-alpha.1](v6.2.2...v6.3.0-alpha.1) (2025-04-04)

### Bug Fixes

* **guest-contributors:** return them in authors query ([3703559](3703559))
* handle missing Mailchimp API key in auth status ([#3873](#3873)) ([6df6fda](6df6fda))
* **ia:** render all emails on reset ([#3867](#3867)) ([c6a71c0](c6a71c0))
* **notices:** fix PHP notice ([#3872](#3872)) ([cc928b2](cc928b2))
* path to autoload ([#3808](#3808)) ([97fa24a](97fa24a))
* remove Mailchimp for WooCommerce from wizard ([#3876](#3876)) ([f6b2484](f6b2484))
* remove the Design link from the Appearance menu ([#3878](#3878)) ([e24f147](e24f147))

### Features

* custom byline interface ([#3746](#3746)) ([289f55e](289f55e))
* **esp-sync:** add constant contact support ([#3832](#3832)) ([8198956](8198956))
* frontend display of bylines ([#3856](#3856)) ([9feeba8](9feeba8))
@matticbot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 6.3.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Apr 9, 2025
# [6.4.0-alpha.1](v6.3.0...v6.4.0-alpha.1) (2025-04-09)

### Bug Fixes

* **guest-contributors:** return them in authors query ([3703559](3703559))
* handle missing Mailchimp API key in auth status ([#3873](#3873)) ([6df6fda](6df6fda))
* **ia:** render all emails on reset ([#3867](#3867)) ([c6a71c0](c6a71c0))
* **notices:** fix PHP notice ([#3872](#3872)) ([cc928b2](cc928b2))
* path to autoload ([#3808](#3808)) ([97fa24a](97fa24a))
* remove Mailchimp for WooCommerce from wizard ([#3876](#3876)) ([f6b2484](f6b2484))
* remove the Design link from the Appearance menu ([#3878](#3878)) ([e24f147](e24f147))

### Features

* custom byline interface ([#3746](#3746)) ([289f55e](289f55e))
* **esp-sync:** add constant contact support ([#3832](#3832)) ([8198956](8198956))
* frontend display of bylines ([#3856](#3856)) ([9feeba8](9feeba8))
@matticbot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 6.4.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Apr 14, 2025
# [6.4.0](v6.3.1...v6.4.0) (2025-04-14)

### Bug Fixes

* **guest-contributors:** return them in authors query ([3703559](3703559))
* handle missing Mailchimp API key in auth status ([#3873](#3873)) ([6df6fda](6df6fda))
* **ia:** render all emails on reset ([#3867](#3867)) ([c6a71c0](c6a71c0))
* **notices:** fix PHP notice ([#3872](#3872)) ([cc928b2](cc928b2))
* path to autoload ([#3808](#3808)) ([97fa24a](97fa24a))
* remove Mailchimp for WooCommerce from wizard ([#3876](#3876)) ([f6b2484](f6b2484))
* remove the Design link from the Appearance menu ([#3878](#3878)) ([e24f147](e24f147))

### Features

* custom byline interface ([#3746](#3746)) ([289f55e](289f55e))
* **esp-sync:** add constant contact support ([#3832](#3832)) ([8198956](8198956))
* frontend display of bylines ([#3856](#3856)) ([9feeba8](9feeba8))
@matticbot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 6.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants