Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
epic: consolidate newsletter editor data and UI (#1658)
* feat: make "Send To" UI autocomplete instead of dropdowns (#1577) * 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]> * fix(editor): render notice on sync error (#1606) * fix(mailchimp): improve sync error messages (#1619) * fix(activecampaign): default message on request error (#1618) * feat: cross-ESP send-lists * refactor: move API namespace and permission callback to main class * feat: support send lists in provider classes * feat: refactor editor JS to use new standardized data * fix: ensure Newsletters plugin blocks are grouped under Newspack category (#1630) * feat: send list classes (#1629) * 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: support send lists in ESP classes (#1631) * 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 * fix: return Send_List objects as arrays from provider methods * fix: avoid unnecessary send-list API requests * chore: remove unneeded methods * fix: fatal error due to get_send_lists returning Send_List arrays instead of objects * Revert "fix: fatal error due to get_send_lists returning Send_List arrays instead of objects" This reverts commit 3ff1e65. * fix: allow get_send_list methods to return either Send_List[] or arrays * fix: correct type for supportedESPs fallback value * fix(mc): subscriber send count in pre-send modal summary * fix: formatting error * fix: ensure supported_esps is an array, not an object * fix: missed callable * fix: cc error handling * fix: better error handling for retrieve/sync request errors * refactor: unify retrieve error handling across all ESPs * refactor: throw error for missing MC creds, too * test: update expected exception message * refactor: consolidate ESP data getters into Redux store * docs: update inline docs for Redux store * fix: move SendTo to Sidebar component; avoid parallel retrieve requests * refactor: always prefetch sublists on list select * fix: account for missing selected list or sublist info * fix: default sender/send-to for saved layouts * fix: campaign_defaults meta field name * fix: don't overwrite fetched lists/sublists info on retrieve * fix: force release * feat: add link to campaign in provider (#1661) * fix: parse legacy layout defaults (#1663) * fix: handle legacy layout defaults for MC * fix: legacy layout defaults for AC + CC * fix: senderName + senderEmail for AC --------- Co-authored-by: leogermani <[email protected]> Co-authored-by: Miguel Peixe <[email protected]> Co-authored-by: Miguel Peixe <[email protected]>
- Loading branch information