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: consolidate newsletter editor data and UI #1658

Open
wants to merge 52 commits into
base: trunk
Choose a base branch
from

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
@dkoo dkoo self-assigned this Sep 13, 2024
@dkoo dkoo requested a review from a team as a code owner September 13, 2024 22:06
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

Attention: Patch coverage is 13.36371% with 1141 lines in your changes missing coverage. Please review.

Project coverage is 21.10%. Comparing base (9980aac) to head (44f3118).
Report is 3 commits behind head on trunk.

Files with missing lines Patch % Lines
...mailchimp/class-newspack-newsletters-mailchimp.php 1.36% 289 Missing ⚠️
...ct/class-newspack-newsletters-constant-contact.php 5.62% 235 Missing ⚠️
...ign/class-newspack-newsletters-active-campaign.php 2.85% 204 Missing ⚠️
...or/class-newspack-newsletters-campaign-monitor.php 3.24% 149 Missing ⚠️
includes/class-newspack-newsletters.php 1.49% 66 Missing ⚠️
includes/class-send-lists.php 23.94% 54 Missing ⚠️
...ass-newspack-newsletters-mailchimp-cached-data.php 1.85% 53 Missing ⚠️
...lass-newspack-newsletters-constant-contact-sdk.php 0.00% 26 Missing ⚠️
...wspack-newsletters-service-provider-controller.php 0.00% 17 Missing ⚠️
includes/class-send-list.php 90.00% 14 Missing ⚠️
... and 8 more
Additional details and impacted files
@@             Coverage Diff              @@
##              trunk    #1658      +/-   ##
============================================
+ Coverage     20.82%   21.10%   +0.27%     
- Complexity     2401     2626     +225     
============================================
  Files            46       48       +2     
  Lines          9010     9630     +620     
============================================
+ Hits           1876     2032     +156     
- Misses         7134     7598     +464     

☔ 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.

🎉 🚢 🚀 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Approved Ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants