Commit Graph

12990 Commits

Author SHA1 Message Date
Pavel Dohnal
99fb9f509b Refactor file to typescript
[MAILPOET-3526]
2021-04-22 10:31:46 +02:00
Pavel Dohnal
1361d2ed37 Add consent description
[MAILPOET-3526]
2021-04-22 10:31:46 +02:00
Pavel Dohnal
14368dd1c6 Refactor file to typescript
[MAILPOET-3526]
2021-04-22 10:31:46 +02:00
Jan Lysý
5347714bbe Use AssetsLoader for enqueue css in formEditor
[MAILPOET-3556]
2021-04-21 14:19:27 +02:00
Jan Lysý
e79ff273fe Remove margin-left override for wpcontent
[MAILPOET-3556]
2021-04-21 14:19:27 +02:00
Rostislav Wolny
bf882e3c92 Add validation support for multiple plugins dependency per segment
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
cf58a6367d Update Woo Subscribers component to reflect recent changes
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
8fd35a5541 Add WooCommerceSubscriptionFormItem to the FormItem enum
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
2e59a03e06 Add constants to Woo Subscriptions form component
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
0909b406bc Unify code formatting in segment filter SAL query code
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
6fd70d6555 Skip WooCommerce Subrcription Test when plugin not available
This is needed for builds for pull requests from external contributors.
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
726cbf4679 Configure Woo Subscriptions versions for Circle CI
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
01ef570c42 Add Woo Subscriptions segment acceptance test
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
120baeeb00 Add WooCommerceSubscriptions factory to tests
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
5dd376f881 Add support for subscriptions products into WooProducts factory
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
df2c7f7fb9 Add extension to control init state of plugins in acceptance tests
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
6ba56ad15b Add ability to use 3rd party plugin functions in acceptance tests
All plugins that we keep active during acceptance tests bootstrap are then loaded
by WP Browser extension and that gives us ability to use their functions and classes
within the acceptance tests.
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
94450d1aff Add acceptance tests method for activation WC Subscriptions
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
7d5d71d94a Add WC Subscriptions installation to tests entry point
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
edf5be833d Add Robo task for downloading WooCommerce Subscription plugin
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
6c2d428355 Add simple Github client for downloading release assets
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
85d0851909 Hide subscriptions segment options when the plugin is not active
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
db562645e8 Register WooCommerce Subscriptions as a segment dependency
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
ac51bc242a Enable counting subscribers during editing of subscription segment
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
43ab4223af Add subscription segment support to segment form
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
cccafb1481 Update segments API data mapper to support subscriptions segments
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
0728bc2e12 Load subscription products for segments form
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
6a7cf8677f Add subscriptions filter into filter handler
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
2f7f4536a2 Add filter class for WooCommerce subscriptions filter
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
743a26d8df Release 3.60.9 2021-04-20 13:07:06 +02:00
Rostislav Wolny
64033254c8 Add spacing to #orders and #opens segment forms
[MAILPOET-3574]
2021-04-20 11:51:38 +02:00
Rostislav Wolny
d0935a6fa3 Refactor select for operator in orders count segment to native select
[MAILPOET-3574]
2021-04-20 11:51:38 +02:00
Pavel Dohnal
9c13b40fef Replace id with automation id
[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Rodrigo Primo
b207babf8f Acceptance test to check creating and editing a number of orders segment
[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Rodrigo Primo
a983679566 Replace generic assertions with more specific ones in WooCommerceNumberOfOrdersTest
[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Rodrigo Primo
5d84f0a0e0 Remove use of multiple ".." when importing 'common/form/input/input'
Also changed the order of the imports per a eslint rule

[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Rodrigo Primo
637a32ef77 Add integration tests for the WooCommerce number of orders segment
[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Rodrigo Primo
68b44e8e21 Add acceptance test for the WooCommerce number of orders segment
[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Rodrigo Primo
dd82fba488 i18n of the strings related to the number of orders segment
The approach that I'm taking here is not ideal as I'm spliting a single
phrase into multiple translatable strings. I'm doing this because I
couldn't figure out an easy way to interpolate the full sentence with
multiple React components. Pavel suggested an approach that would work
but would not be trivial to implement in this case and would add a lot
of complexity to the code. I believe we need to find a general solution
for internatiolizing strings that we want to interpolate with React
components.

Ideally we would have a single single string that would be "{type}
{count} orders in the last {days} days" and that would be converted to

```
<Grid.CenteredRow>
  <Select /> <Input /><div> orders</div>
</Grid.CenteredRow>
<Grid.CenteredRow>
  <div>in the last </div><Input /><div> days</div>
</Grid.CenteredRow>
```

[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Rodrigo Primo
d410746a8c Make sure parameters in WooCommerceNumberOfOrders are unique
This commit simply makes sure parameters in WooCommerceNumberOfOrders
are unique by prefixing their name with the filter ID. This is to avoid
conflicts when combining segments.

[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Rodrigo Primo
a1fe711f60 Remove use of multiple ".." in the path
Also changed the order of the imports per a eslint rule

[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Rodrigo Primo
224348a55e Fix code that set a default value for item.number_of_orders_type
[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Rodrigo Primo
4f3738b0b1 Implement new WooCommerce dynamic segment based on the number of orders
[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Pavel Dohnal
0153e63db0 Add invalid paths tests
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
8903b04203 Improve test checks
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
3819f77cd8 Remove redundant check
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
369a04ba95 Add acceptance test for number of opens
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
deb6b9315e Add new segment to data mapper
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
38f8f1d23f Add new segment properties to calculator
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
860444c246 Add new segment to filter handler
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00