Commit Graph

3791 Commits

Author SHA1 Message Date
Jan Lysý
3f23e3e4ef Add option WC total spent into segment form
[MAILPOET-3227]
2021-04-26 11:29:48 +02:00
Pavel Dohnal
2e236d98e0 Add knowledge base ids
[MAILPOET-3526]
2021-04-22 10:31:46 +02:00
Pavel Dohnal
6e1aaa1fa5 Add a suppression list reminder
[MAILPOET-3526]
2021-04-22 10:31:46 +02:00
Pavel Dohnal
cd3d38c9fd Add consent description to existing subscribers
[MAILPOET-3526]
2021-04-22 10:31:46 +02:00
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
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
01ef570c42 Add Woo Subscriptions segment acceptance test
[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
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
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
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
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
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
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
38f8f1d23f Add new segment properties to calculator
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
f6692633df Add validation
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
0bffa09c40 Add days sentence to component
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
c759193b93 Save number input
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
66ab3e839d Make component translation friendly
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
5ba5edb668 Add number of opens input
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
6a2bf8dcad Add operator field
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
40ea2f39af Add a component for # of opens
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
d9ae9cc647 Refactor emails segments into separate components
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Ján Mikláš
022b00b0e3 Use components in segment form rendered
MAILPOET-3569
2021-04-19 12:14:17 +02:00
Ján Mikláš
e4ab8375bc Remove double borders from selects in segment form
MAILPOET-3569
2021-04-19 12:14:17 +02:00
Ján Mikláš
a6124b7e71 Add automationId for react select component
MAILPOET-3569
2021-04-19 12:14:17 +02:00
Pavel Dohnal
4a10646814 Trim settings values before saving
[MAILPOET-3480]
2021-04-14 17:04:33 +02:00
Jan Lysý
99eff6129c Add redirect when segment doesn't exist
[MAILPOET-3477]
2021-04-12 11:11:25 +02:00
Jan Lysý
57900f46e6 Display a message when WooCommerce is disabled
[MAILPOET-3477]
2021-04-12 11:11:25 +02:00
Rostislav Wolny
49edb9e02a Add test for woo commerce dynamic segments editing
[MAILPOET-3555]
2021-04-12 09:24:05 +02:00
Pavel Dohnal
4546b5be68 Fix links data
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Pavel Dohnal
410a6ff626 Fix validating segments
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Pavel Dohnal
ae1a80ea25 Avoid unnecesary loads
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Pavel Dohnal
f85850a19e Use correct value for searching for links
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Pavel Dohnal
a864ec96ee Convert older data after loading
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Pavel Dohnal
7d79c7d2b7 Remove window usage from component
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Pavel Dohnal
5480ceb879 Fix tests
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Pavel Dohnal
eef5ad9c9e Fix underscore dependency in newsletter editor
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Pavel Dohnal
eaa79da756 Refactor form filters to a separate file
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00