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

epic: consolidate newsletter editor data and UI #1658

Merged
merged 54 commits into from
Oct 14, 2024
Merged

Conversation

dkoo
Copy link
Contributor

@dkoo dkoo commented Sep 13, 2024

All Submissions:

Changes proposed in this Pull Request:

This PR contains changes from #1629, #1630, #1631, and #1632 which were already tested and code reviewed, so it should only require a quick review of the changeset instead of a full code review.

How to test the changes in this Pull Request:

If anything, just ensure that the newsletter editor loads correctly and lets you select/save sender and send list info without any fatals.

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?

dkoo and others added 30 commits August 2, 2024 10:16
* feat: autocomplete "Send To" UI for CC + AC

* fix: sent post statuses for AC

* feat: autocomplete send-to UI for Mailchimp

* fix: support _n() contacts in AC + CC

* refactor: standardize "sent" status checks for all ESPs

* fix: function name for CC

* fix: set list_type for audiences

* fix: extra parentheses for AC

* feat: show suggestions on focus

* style: move external "Manage" links to button

* feat: design updates for autocomplete UI

* fix: send to summary

* fix: contact counts in send to summary

* fix: mailchimp and selected list styles

* fix: remove ID from AC segments

* fix: logic for contact count in send to summary

* fix: parse contact counts as int to avoid "1 contacts" output

* fix: translation strings for contact counts in summaries

* refactor: standardize use of renderSelectedSummary functions

* fix: translatable send-to summaries

* fix: allow 0 to be shown

* fix: grammar

* Update src/service-providers/active_campaign/ProviderSidebar.js

Co-authored-by: leogermani <[email protected]>

* Update src/service-providers/active_campaign/ProviderSidebar.js

Co-authored-by: leogermani <[email protected]>

* Update src/service-providers/constant_contact/ProviderSidebar.js

Co-authored-by: leogermani <[email protected]>

* Update src/service-providers/constant_contact/ProviderSidebar.js

Co-authored-by: leogermani <[email protected]>

* Update src/service-providers/mailchimp/ProviderSidebar.js

Co-authored-by: leogermani <[email protected]>

* Update src/service-providers/mailchimp/ProviderSidebar.js

Co-authored-by: leogermani <[email protected]>

* fix: translatable strings in SendTo component’s selected item label

---------

Co-authored-by: leogermani <[email protected]>
* feat: cross-ESP send-lists

* refactor: move API namespace and permission callback to main class

* refactor: feedback from code review

* fix: add missing get/set methods for count and parent_id

* refactor: more consistent naming for set_count method

* refactor: maintain exception but with WP_Error handling

* docs: add more explanation about Send_Lists

Co-authored-by: leogermani <[email protected]>

* test: improve tests for matching methods

* refactor: set values on protected $config var

* docs: tweak wording of explanation

---------

Co-authored-by: leogermani <[email protected]>
* feat: cross-ESP send-lists

* refactor: move API namespace and permission callback to main class

* feat: support send lists in provider classes

* fix: use getter methods for Send_List classes

* chore: clean up register_rest_route configs and permission callbacks

* fix: improve error handling for get_send_list methods

* fix: add error handling to send-lists API handler
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

Attention: Patch coverage is 12.57143% with 1224 lines in your changes missing coverage. Please review.

Project coverage is 20.89%. Comparing base (bcf221f) to head (25a9e2d).
Report is 10 commits behind head on trunk.

Files with missing lines Patch % Lines
...mailchimp/class-newspack-newsletters-mailchimp.php 1.30% 303 Missing ⚠️
...ct/class-newspack-newsletters-constant-contact.php 5.32% 249 Missing ⚠️
...ign/class-newspack-newsletters-active-campaign.php 2.70% 216 Missing ⚠️
...or/class-newspack-newsletters-campaign-monitor.php 3.24% 149 Missing ⚠️
includes/class-newspack-newsletters.php 1.47% 67 Missing ⚠️
includes/class-send-lists.php 23.94% 54 Missing ⚠️
...ass-newspack-newsletters-mailchimp-cached-data.php 1.85% 53 Missing ⚠️
includes/class-newspack-newsletters-layouts.php 0.00% 43 Missing ⚠️
...lass-newspack-newsletters-constant-contact-sdk.php 0.00% 26 Missing ⚠️
...wspack-newsletters-service-provider-controller.php 0.00% 17 Missing ⚠️
... and 8 more
Additional details and impacted files
@@             Coverage Diff              @@
##              trunk    #1658      +/-   ##
============================================
+ Coverage     20.74%   20.89%   +0.14%     
- Complexity     2410     2660     +250     
============================================
  Files            46       48       +2     
  Lines          9075     9757     +682     
============================================
+ Hits           1883     2039     +156     
- Misses         7192     7718     +526     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@miguelpeixe miguelpeixe left a comment

Choose a reason for hiding this comment

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

🎉 🚢 🚀 🎉

@dkoo dkoo mentioned this pull request Sep 20, 2024
6 tasks
@leogermani leogermani changed the title feat: consolidate newsletter editor data and UI epic: consolidate newsletter editor data and UI Sep 25, 2024
dkoo and others added 2 commits October 9, 2024 10:28
* fix: handle legacy layout defaults for MC

* fix: legacy layout defaults for AC + CC

* fix: senderName + senderEmail for AC
@dkoo dkoo removed the DO NOT MERGE label Oct 14, 2024
@dkoo dkoo merged commit 0ae5cc5 into trunk Oct 14, 2024
9 checks passed
@dkoo dkoo deleted the epic/update-editor-uis branch October 14, 2024 17:53
@matticbot
Copy link
Contributor

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

The release is available on GitHub release

Your semantic-release bot 📦🚀

@matticbot
Copy link
Contributor

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

4 participants