Commit Graph

19873 Commits

Author SHA1 Message Date
5b21b74794 Add acceptance test for sending preview
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
2b58bbd7b1 Add displaying error and success message
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
e5e04e63e2 Add sending email after click on button
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
98542966aa Introduce MailPoet store
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
de66b3fea1 Add JS variables for email editor
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
226317f55c Fix creating newsletter in EmailEditor
After removing temporary fix a hash was missing for newsletter created via EmailEditor.php
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
8ede5958b7 Add modal window with input for sending testing email
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
b1eb5ccb96 Add preview dropdown component to new email editor
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
65b6a129ae Add email preview URL to EmailApiController response
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
ea4f4b1003 Remove temporary fix for Newsletters
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
ed0417b819 Rename component NextButtonSlot to HeaderButtonSlot
I renamed this component because the name should be more universal for using other buttons.
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
17ca776189 Ensure that woocommerce is actually active
[MAILPOTE-5613]
2023-10-11 10:19:24 +02:00
cde2d6570b Fix displaying default condition when adding a segment
Whenever the user goes to add a new segment, MP displays `WordPress user
role` as the default condition. But there was a
bug that was preventing the default condition from being displayed, if
the user left the page by clicking in the back button, and then returned
clicking again on the `Create custom segment` button.

This bug was introduced in dba4ba4dfc.
It added code to unset the segment when the user left the segment
editing page. This was necessary as, in that PR, we started using the
same store for all the dynamic segment pages. The problem is that the
added code sets the segment to an empty array and actually we need to
restore the initial state which is a segment with the `WordPress user
role` selected as its single filter. This is what is done in this commit.

[MAILPOET-5614]
2023-10-10 17:55:21 +02:00
1ced9b69f6 Release 4.31.0 2023-10-10 14:13:29 +03:00
d2d465165d Remove double log entries before adding unique index
[MAILPOET-5630]
2023-10-09 13:20:20 +02:00
f5a9e6d582 Add tracking of .com ecommerce wpcom plan
[MAILPOET-5628]
2023-10-09 13:00:43 +02:00
0e4e5db1f1 Add tracking of .com ecommerce wpcom plan
[MAILPOET-5628]
2023-10-09 13:00:43 +02:00
ee199e95a8 Add tracking of .com ecommerce trial plan
[MAILPOET-5628]
2023-10-09 13:00:43 +02:00
e2d1543b47 Add tracking of .com business plan
[MAILPOET-5628]
2023-10-09 13:00:43 +02:00
9852148e33 Add tracking of .com essential plan
[MAILPOET-5628]
2023-10-09 13:00:43 +02:00
7143d7afb2 Add tracking of WooCommerce performance plan
[MAILPOET-5628]
2023-10-09 13:00:43 +02:00
1bc331760e Add also catching of other exceptions when running migrations
[MAILPOET-5627]
2023-10-09 12:24:15 +02:00
7d96cada42 Catch activation in progress exception when it runs on version check
[MAILPOET-5627]
2023-10-09 12:24:15 +02:00
ca40766c2f Allow null for WP_Block_Editor_Context in email editor callbacks
There are cases when the second parameter is null.
[MAILPOET-5624]
2023-10-09 11:33:11 +02:00
af32b36af2 Initialize editor hooks only if the new editor feature is active
[MAILPOET-5624]
2023-10-09 11:33:11 +02:00
ee892a667a use kebab case
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
a1e59d5f31 Fix bug: Ensure data['tags'] is normalized
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
f963332506 Fire mailpoet_subscriber_tag_removed after repository flush
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
ea21c43412 Add Icon For Tag Added trigger
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
30ca207bc0 Add Icon for Tag Removed Trigger
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
c3da0693da Update name and description of triggers
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
0818bfb7cf Rename trigger keys
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
c93b433b93 Fire mailpoet_subscriber_tag_added hook after flush()
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
d835219306 Make keywords translateable and extend list
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
ea8051581c Fix automation typo
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
7dbb142ea6 Add Tag Removed Trigger
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
407082b941 Add Tag Added Trigger
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
47fea46dc4 Add tag added and removed actions
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
2931af3547 Add command to create automation triggers 2023-10-09 10:06:56 +02:00
4cded0d18d Add premium jobs to the release build
[MAILPOET-5558]
2023-10-06 16:58:56 +02:00
1f6597580c Bump postcss from 8.4.28 to 8.4.31
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.28 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.28...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 17:13:05 +02:00
b2b27c5218 Update composer/* packages
Note: We cant update composer/composer to the newest version
because it is blocked by wp-cli/wp-cli-bundle (composer/composer: ^1.10.23 || ~2.2.17)
[MAILPOET-5633]
2023-10-05 15:48:55 +03:00
5280391bd9 Update composer.phar in mailpoet/tools
[MAILPOET-5633]
2023-10-05 15:48:55 +03:00
27d90943cd Add automation title to Analytics header
[MAILPOET-5616]
2023-10-05 13:48:12 +02:00
cd58b39906 Fix: stop persisting segment error messages across different pages
In #5145, we started using the same Redux store for all segment pages.
This created an unintended side effect that the error messages displayed
when the user is creating a segment are persisted across the other
different segment pages.

So, for example, if a user tries to create a segment with a name that
alraedy exists and then clicks the back button to go back to the segment
templates or segment listing page, the error message will still be
displayed.

This commit fixes this problem by emptying the error messages before
unloading the page to edit or create segments.

[MAILPOET-5605]
2023-10-05 13:01:58 +02:00
d84b738cdd Enqueue public.js to be loaded as deferred on WP 6.3+
[MAILPOET-5623]
2023-10-05 10:54:57 +02:00
c38b91f941 Get rid of inline JS code for public.js
This code was preventing WordPress from rendering the public.js
script as deferred.
The defer attribute can be applied only to scripts
that are loaded via src. WP detected that there was an associated
inline script and removed the defer attribute from the public.js script.

In this commit, I moved the initialization of the error message to public.js and
I pass the value via static object.
[MAILPOET-5623]
2023-10-05 10:54:57 +02:00
71cb252e8c Fix layout of the email segment in the segment edit page
This change will affect all the segments that use the <TextField>
component.

See https://github.com/mailpoet/mailpoet/pull/5174#issuecomment-1746542729

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
a3f94a2bb5 Fix layout of the last sending date segment in the segment edit page
This change will affect all the segments that use the <DateFields>
component.

See https://github.com/mailpoet/mailpoet/pull/5174#issuecomment-1746542729

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
017c66a896 Add support for a custom class name in the datepicker component
Will be used in the next commit

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00