Commit Graph

19283 Commits

Author SHA1 Message Date
David Remer
edffd4e705 Test that automation with correct versions are loaded
[MAILPOET-5433]
2023-07-14 21:50:59 +02:00
David Remer
640fb61861 Use versions loader when an automation with a specific version is queried
[MAILPOET-5433]
2023-07-14 21:50:59 +02:00
David Remer
38012ae8a1 Test it loads the correct version dates
[MAILPOET-5433]
2023-07-14 21:50:59 +02:00
David Remer
badedd2d52 Query data from the correct automation versions
[MAILPOET-5433]
2023-07-14 21:50:59 +02:00
David Remer
8f14dee501 Get rid of previous data for each email as it is not necessary
[MAILPOET-5433]
2023-07-14 21:50:59 +02:00
David Remer
5aaa7b2361 Query list of Automation with different versions
[MAILPOET-5433]
2023-07-14 21:50:59 +02:00
David Remer
10f4d6c3c3 Query all versions of an Automation with create date
[MAILPOET-5433]
2023-07-14 21:50:59 +02:00
Jan Lysý
631f71957c Add support default value for subscriber's custom fields shortcode
[MAILPOET-5463]
2023-07-14 13:26:10 +02:00
John Oleksowicz
a94902ccc8 Fix failing integration tests
The tests seemed to be failing because orders were being created without
 a billing ID, so a random md5 email address was being inserted into the
  customer lookup table instead of the actual email address, causing the
   queries to return nothing. In addition to fixing that, I added some
   cleanup to ensure that these tests don't leave behind any WC data.
2023-07-13 17:54:32 -03:00
Jan Lysý
d7a3f6f758 Refactor subscriber list to TS
[MAILPOET-5454]
2023-07-13 13:12:56 +02:00
Jan Lysý
577a82ca49 Add bulk action for removing tag from subscribers
[MAILPOET-5454]
2023-07-13 13:12:56 +02:00
Jan Lysý
aa12fd57d7 Add bulk action for tagging subscribers
[MAILPOET-5454]
2023-07-13 13:12:56 +02:00
alex-mailpoet
a12886ded9 Display progress modal during import
[MAILPOET-5174]
2023-07-13 11:23:30 +02:00
alex-mailpoet
30257189e5 Add progress modal
[MAILPOET-5174]
2023-07-13 11:23:30 +02:00
Veljko
bab4ec082b Go to Segments page 2023-07-13 09:21:25 +03:00
Veljko
43e9746ab3 Improve the WC Subscription test
[MAILPOET-5330]
2023-07-13 09:21:25 +03:00
Rodrigo Primo
413f864f13 Rename app files for the static and dynamic segment pages
The convention is to use the name of the directory instead of `app.tsx`
for the files where the React app is initialized. See for example
`assets/js/src/wizard/wizard.tsx` and `assets/js/src/homepage/homepage.tsx`.

[MAILPOET-5392]
2023-07-12 18:46:08 +02:00
Rodrigo Primo
c72fce9aae Separate the segments and lists pages on the PHP side
Until now we were using the same render() method and Twig templates for
the segments and lists pages. This commit separates them by creating two
different render() methods, one for each page, and also separing the
Twig templates. Only the translations remain shared as separating them
would be more involved and probably not worth it.

[MAILPOET-5392]
2023-07-12 18:46:08 +02:00
Rodrigo Primo
f156629a93 Update performance tests to reflect separating segments and lists
Segments and lists were separated into different pages in a previous
commit. This commit updates the performance tests to reflect this change.

[MAILPOET-5392]
2023-07-12 18:46:08 +02:00
Rodrigo Primo
3782fb4bdd Update acceptance tests to reflect separating segments and lists
Segments and lists were separated into different pages in a previous
commit. This commit updates the acceptance tests to reflect this change.

[MAILPOET-5392]
2023-07-12 18:46:08 +02:00
Rodrigo Primo
b7b0688819 Split Segments and Lists into two different pages
Before both Segments and Lists where acessible via two different tabs on
the page `/wp-admin/admin.php?page=mailpoet-segments`. Now they are
separated into their own pages:
`/wp-admin/admin.php?page=mailpoet-segments` and
`/wp-admin/admin.php?page=mailpoet-lists`.

[MAILPOET-5392]
2023-07-12 18:46:08 +02:00
Rodrigo Primo
728b8e91ac Add new menu entry to lists
Segments and lists now will have separate menu entries. The pages will
be split in subsequent commits.

[MAILPOET-5392]
2023-07-12 18:46:08 +02:00
John Oleksowicz
0d9a6345d1 Actually use the batch size
MAILPOET-5404
2023-07-12 15:48:03 +02:00
John Oleksowicz
c9dda915dc Only create the backfill task once
MAILPOET-5404
2023-07-12 15:48:03 +02:00
John Oleksowicz
2078ddf292 Save last_subscriber_id as we go
Otherwise the task would always be starting at 0 if it times out

MAILPOET-5404
2023-07-12 15:48:03 +02:00
John Oleksowicz
b02ef8fe8f Use populator instead of migration
MAILPOET-5404
2023-07-12 15:48:03 +02:00
John Oleksowicz
64a92c259d Add clarifying comment
MAILPOET-5404
2023-07-12 15:48:03 +02:00
John Oleksowicz
fc410c2154 Make sure lastProcessedSubscriberId is always correct
MAILPOET-5404
2023-07-12 15:48:03 +02:00
John Oleksowicz
25cbba1246 Use order by id for query
MAILPOET-5404
2023-07-12 15:48:03 +02:00
John Oleksowicz
784df9c1ac Add migration to trigger initial backfilling
MAILPOET-5404
2023-07-12 15:48:03 +02:00
John Oleksowicz
73eae47a39 Add cron worker for backfilling engagement data
MAILPOET-5404
2023-07-12 15:48:03 +02:00
David Remer
9595ed299d Query always from the beginning of the day to the end of the day
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
24e57c07a9 Add styles
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
1e5217f3ee Add order tab
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
844fa421c8 Add custom query for sections and extend some types
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
aa00a34753 Add order endpoint
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
d4b621acbb Use factory to switch between free and premium order controller
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
f8075fec43 Add controller to return order data for free plugin
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
ff9909eaef Add OrderSection types
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
9b6dcb2fb7 Add orders section to store
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
acd91eafc6 Add withPreviousData separator
This allows to query endpoints who do not provide
previous data

[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
a27d639968 Extend Query definition
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
c71d2cb97f Add wc_get_order_status_name
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
91db4eb1cf Add get_option and get_avatar_url
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
104f6c9b66 Make orders tab gray
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
David Remer
4cc751b9b0 Add icon to orders tab
[PREMIUM-224]
2023-07-12 14:58:11 +02:00
John Oleksowicz
a7b5bad346 Fix type mismatch
MAILPOET-5003
2023-07-12 11:10:18 +02:00
John Oleksowicz
7488b244f2 Add unit tests for mapping automations filters
MAILPOET-5003
2023-07-12 11:10:18 +02:00
John Oleksowicz
251dcdc6fb Add filters for automations events
MAILPOET-5003
2023-07-12 11:10:18 +02:00
John Oleksowicz
22bd33fecc Add automations segmentation filters frontend code
MAILPOET-5003
2023-07-12 11:10:18 +02:00