Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: color palette adjustments #1487

Merged
merged 7 commits into from
Apr 26, 2024

Conversation

chickenn00dle
Copy link
Contributor

@chickenn00dle chickenn00dle commented Apr 23, 2024

All Submissions:

Changes proposed in this Pull Request:

This PR is paired with the following Plugin PR: Automattic/newspack-plugin#3083

This makes the newsletter color palette a bit more flexible to work with by:

  • Adding a new helper method for updating the newsletters palette option
  • Adding a new social icons class/color palette variable to allow for more flexible social icon coloring in emails.

How to test the changes in this Pull Request:

These changes should not change any of the existing behavior of newsletters.

  • Smoke test the newsletter editor, confirming there are no errors when creating a new newsletter, and saving
  • Smoke test sending a newsletter with social icons. There should be no changes to any of the default social icon selections

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?

@chickenn00dle chickenn00dle force-pushed the feat/add-newsletter-palette-update-functionality branch from 1e8c12e to 30c1581 Compare April 25, 2024 14:40
const PUBLIC_POST_ID_META = 'newspack_nl_public_post_id';
const NEWSPACK_NEWSLETTERS_CPT = 'newspack_nl_cpt';
const EMAIL_HTML_META = 'newspack_email_html';
const NEWSPACK_NEWSLETTERS_PALETTE = 'newspack_newsletters_color_palette';
Copy link
Member

Choose a reason for hiding this comment

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

Nit: just to be clear that the variable holds a meta key name and not "a color palette".

Suggested change
const NEWSPACK_NEWSLETTERS_PALETTE = 'newspack_newsletters_color_palette';
const NEWSPACK_NEWSLETTERS_PALETTE_META_KEY = 'newspack_newsletters_color_palette';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 346714c

@chickenn00dle chickenn00dle merged commit 2b0ecac into trunk Apr 26, 2024
5 checks passed
@chickenn00dle chickenn00dle deleted the feat/add-newsletter-palette-update-functionality branch April 26, 2024 18:41
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.15.0-hotfix-tracking-logfile-fatals-and-mc-interests.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request May 20, 2024
# [2.15.0-alpha.4](v2.15.0-alpha.3...v2.15.0-alpha.4) (2024-05-20)

### Bug Fixes

* respect buttons alignment and sizing ([#1492](#1492)) ([0a63a5a](0a63a5a))

### Features

* **layouts:** save sender and audience in the layout ([#1461](#1461)) ([aec7bce](aec7bce))
* newsletters color palette adjustments ([#1487](#1487)) ([2b0ecac](2b0ecac))
* **ras-acc:** add helper method to identify premium lists ([#1502](#1502)) ([2473ea7](2473ea7))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.15.0-alpha.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request May 28, 2024
# [2.15.0](v2.14.4...v2.15.0) (2024-05-28)

### Bug Fixes

* bad auto-merge ([fdfe15f](fdfe15f))
* **newsletter-editor:** tag/segment selection ([2589d3a](2589d3a))
* respect buttons alignment and sizing ([#1492](#1492)) ([0a63a5a](0a63a5a))

### Features

* **layouts:** save sender and audience in the layout ([#1461](#1461)) ([aec7bce](aec7bce))
* newsletters color palette adjustments ([#1487](#1487)) ([2b0ecac](2b0ecac))
* notify site admin on campaign send failure ([#1434](#1434)) ([4e95283](4e95283))
* **ras-acc:** add helper method to identify premium lists ([#1502](#1502)) ([2473ea7](2473ea7))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.15.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