Commit Graph

20185 Commits

Author SHA1 Message Date
David Remer
6cee6ac887 Normalize the status differences between wp_get_comment_status and get_comment_statuses
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
00453fdb99 Use null when comment or post not found
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
221e496714 Add comment
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
59e4688799 Add comment fields
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
0c4b743247 Add CommentToPost subject transformer
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
e0b871454b Add PostSubject
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
8eb596bfcf Add getPostStatuses()
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
936d96427c Use comment_statuses in context
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
a7fb860da2 Add get_taxonomy and get_term
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
e2c5f2af4b Specify interface
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
d34524df15 Specify return types
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
7b4fc19e09 Make keyword translateable
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
dd103b81d7 Catch exceptions when trying to match filters in trigger handler
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
8f529491e8 Move WordPress context factory to free plugin
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
e465f5a5bb Add new classes to DI container
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
1ca932d088 Add wordpress:made-a-comment stub
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
f92d560d6a Add comment to subscriber subject transformer
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
53f3a5d001 Allow to return null in SubjectTransformer::transform()
Sometimes a transformer can't return a subject. In this case transform() will return null
instead of throwing an exception. This means an automation can run until it comes to a
step where the subject would be needed. There it would fail.

[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
4102f854b0 Add WordPress functions
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
6a90ca9080 Add CommentSubject and Payload
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
David Remer
87810b871a Expose ApiFetch
[PREMIUM-248]
2023-10-30 21:22:23 +01:00
John Oleksowicz
e4386fd41a Update tests to use verify instead of expect
MAILPOET-5577
2023-10-30 10:51:04 +01:00
John Oleksowicz
9985405d82 Add backend logic for number of clicks filter
MAILPOET-5577
2023-10-30 10:51:04 +01:00
John Oleksowicz
5ee24e3a8b Update frontend for number of clicks filter
MAILPOET-5577
2023-10-30 10:51:04 +01:00
John Oleksowicz
c28eed2388 Backend logic for number of emails received
MAILPOET-5577
2023-10-30 10:51:04 +01:00
John Oleksowicz
fda176c269 Fix import order
MAILPOET-5577
2023-10-30 10:51:04 +01:00
John Oleksowicz
ee9e3a791f Add frontend for emails received filter
MAILPOET-5577
2023-10-30 10:51:04 +01:00
John Oleksowicz
b20c7e06d4 Use @wordpress/i18n for email option labels
MAILPOET-5577
2023-10-30 10:51:04 +01:00
John Oleksowicz
ae73e2d97b Update tracking for first order filter
MAILPOET-5577
2023-10-30 10:51:04 +01:00
John Oleksowicz
10f593bf2c Backend logic for first order filter
MAILPOET-5577
2023-10-30 10:51:04 +01:00
Rodrigo Primo
a7609499e3 Implement front-end code of the new first order filter
[MAILPOET-5577]
2023-10-30 10:51:04 +01:00
Rodrigo Primo
5f19f7d032 Replace MailPoet.i18n with WP i18n funtions in woocommerce-options.ts
[MAILPOET-5577]
2023-10-30 10:51:04 +01:00
Rodrigo Primo
2736348feb Remove remaining use of SendingQueue model in Newsletter class
As far as I could test, calling validate() directly is not necessary.
The call to $sendingTask->save() right above calls validate() internaly
and then any errors will be returned by $sendingTask->getErrors().

I added a integration test that seems to confirm this interpretation.

[MAILPOET-4693]
2023-10-30 10:11:11 +01:00
Rodrigo Primo
4d3ee84e38 Improve query by getting only the ID as we don't need the rest
[MAILPOET-5680]
2023-10-30 09:56:38 +01:00
Rodrigo Primo
f2214c8cf9 Refactor UnsubscribeTokens to use Doctrine instead of Paris
[MAILPOET-5680]
2023-10-30 09:56:38 +01:00
Rodrigo Primo
d305d7ed4f Replace Newsletter model with Doctrine in UnsubscribeTokensTest
[MAILPOET-5680]
2023-10-30 09:56:38 +01:00
Rodrigo Primo
13c105f6d9 Add method to set unsubscribeToken to Newsletter factory
[MAILPOET-5680]
2023-10-30 09:56:38 +01:00
Rodrigo Primo
b2afbf99c5 Replace Subscriber model with Doctrine in UnsubscribeTokensTest
[MAILPOET-5680]
2023-10-30 09:56:38 +01:00
Rodrigo Primo
fdb23cc143 Add method to set unsubscribeToken to Subscriber factory
[MAILPOET-5680]
2023-10-30 09:56:38 +01:00
Rodrigo Primo
893f96f180 Replace Segment model with Doctrine code in WPTest
[MAILPOET-5066]
2023-10-26 11:36:07 -05:00
Rodrigo Primo
3bb9d744f3 Replace SubscriberSegment model with Doctrine code in WPTest
[MAILPOET-5066]
2023-10-26 11:36:07 -05:00
Rodrigo Primo
05a8d698d2 Replace Subscriber model with Subscriber entity in WPTest
[MAILPOET-5066]
2023-10-26 11:36:07 -05:00
Rodrigo Primo
95568e770b The minimum supported PHP version in PHPCS checks should be 7.3
[MAILPOET-5681]
2023-10-26 16:17:58 +02:00
Oluwaseun Olorunsola
58e031df13 Fix CircleCI zip file downloader
MAILPOET-5679
2023-10-26 14:25:38 +03:00
Rostislav Wolny
7069f97d68 Hide block margins in the editor canvas
[MAILPOET-5660]
2023-10-26 10:43:00 +02:00
Rostislav Wolny
98c0741ee8 Fix missing CSS for editor when Gutenberg is active
We use the post editor CSS files for the layout styles of the email editor.
When the Gutenberg plugin is active, editor styles are loaded from the plugin directory,
which was not allowed in our ConflictResolver

This commit allows fetching CSS from the Gutenberg plugin folder.
[MAILPOET-5660]
2023-10-26 10:43:00 +02:00
Rostislav Wolny
5dfacc9083 Adjust email document styles in editor canvas
[MAILPOET-5660]
2023-10-26 10:43:00 +02:00
Rostislav Wolny
df1562cfa1 Add support for spotlight mode
[MAILPOET-5660]
2023-10-26 10:43:00 +02:00
Rostislav Wolny
f0e8a074f2 Add support for fixed toolbar
[MAILPOET-5660]
2023-10-26 10:43:00 +02:00
Rostislav Wolny
aeaadf7cab Add error notice when email saving fails
[MAILPOET-5660]
2023-10-26 10:43:00 +02:00