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
Pavel Dohnal
9496b9796a
Refactor form filters to a separate file
...
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Pavel Dohnal
0da7a91960
Refactor counting to work with the new form
...
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Pavel Dohnal
28ce05276b
Render form manually instead of using form.jsx
...
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Pavel Dohnal
dd20f066e7
Refactor dynamic segments form to doctrind
...
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Pavel Dohnal
1e2d855138
Refactor segments form to functional component
...
[MAILPOET-3476]
2021-03-31 10:50:18 +02:00
Jan Lysý
cc1d70439c
Add missing type for value in font selection format
...
[MAILPOET-3519]
2021-03-30 15:13:47 +02:00
Jan Lysý
3917876b82
Improve comment for disabling eslint rule in useSegmentsContext.jsx
...
[MAILPOET-3511]
2021-03-30 14:05:47 +02:00
Jan Lysý
825e105145
Fix unused properties in Button component
...
[MAILPOET-3511]
2021-03-30 14:05:47 +02:00
Jan Lysý
c07cb227ab
Add comments to eslint exceptions
...
[MAILPOET-3511]
2021-03-30 14:05:47 +02:00
Jan Lysý
410c25482a
Fix code style by updated eslint
...
[MAILPOET-3511]
2021-03-30 14:05:47 +02:00
Pavel Dohnal
c9e063824e
Remove duplicate warning
...
[MAILPOET-3460]
2021-03-29 15:53:31 +02:00
Rostislav Wolny
fc66381da2
Remove client side checks for trashing lists
...
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
9dde8d5525
Remove loading overlay from listing in case trashing fails
...
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Pavel Dohnal
b89b018641
Fix align saving in the form editor
...
[MAILPOET-3512]
2021-03-29 09:45:28 +02:00
wxa
9872eca80f
Redirect to segments listing after segment editing
...
[MAILPOET-3490]
2021-03-24 09:41:36 +01:00
Ján Mikláš
4116a0f3da
Add return types for Grid components
...
[MAILPOET-3503]
2021-03-22 12:02:35 +01:00
Ján Mikláš
b6845a3438
Remove export default from Grid components
...
[MAILPOET-3503]
2021-03-22 12:02:35 +01:00
Ján Mikláš
0954414af6
Add new <Grid.CenteredRow> component
...
[MAILPOET-3503]
2021-03-22 12:02:35 +01:00