Commit Graph

13874 Commits

Author SHA1 Message Date
Jan Lysý
eedca86fe4 Add select with operator
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Jan Lysý
040bf7e294 Allow select more products
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Jan Lysý
e7a27c4d89 Add new translations and types
[MAILPOET-3954]
2021-12-01 09:13:20 +01:00
Oluwaseun Olorunsola
32c971aaa8 Update subscribers count translation strings
[MAILPOET-3972]
2021-11-30 13:51:10 +01:00
Ján Mikláš
e77cc98276 Release 3.74.2 2021-11-30 13:09:44 +01:00
Rostislav Wolny
29afeab36b Add retry for pulling acceptance tests images
[MAILPOET-3991]
2021-11-30 13:01:31 +01:00
Rostislav Wolny
48e146c457 Update machine executor on Circle CI
[MAILPOET-3991]
2021-11-30 13:01:31 +01:00
Pavel Dohnal
a52b669af3 Make the fields the same width
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
96f19daa6f Remove unnecessary type jugling
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
9193fb0a72 Fix flakey test
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
e2aef203d2 Make sure segment id is always number
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
f759057fa8 Add filter
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
ec390b2131 Add list segment to data mapper
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
5fc8d51720 Add a filter for lists dynamic segment
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
bfc659a9c0 Add validator for segments segment
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
dcc8eccb42 Add control for selecting segments
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
4870b2a319 Add rudimentary validation
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
98438469cb Add operator to the segment UI
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Pavel Dohnal
3d0831ffc8 Add segment for subscribed to list
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
Jan Lysý
15294cee21 Close popup and set cookie before redirect
[MAILPOET-3964]
2021-11-30 12:32:34 +01:00
Rodrigo Primo
6bea3873b5 Remove unused property Daemon::featureSwitch
This property became obsolete after
074d1ae07cbeaffffeb9c80fb83b32f548b5de97.

[MAILPOET-3859]
2021-11-29 16:23:13 +01:00
Rodrigo Primo
84209851e2 Remove re-engagement-email feature flag
[MAILPOET-3859]
2021-11-29 16:23:13 +01:00
wxa
28061a8c8b Add tests
[MAILPOET-3607]
2021-11-29 13:02:49 +01:00
wxa
d3805f4bdb Add subscriber score segment front-end
[MAILPOET-3607]
2021-11-29 13:02:49 +01:00
wxa
aa4ecb2645 Add subscriber score segment back-end
[MAILPOET-3607]
2021-11-29 13:02:49 +01:00
Rodrigo Primo
3373d9dc00 Add code to process the new link:subscription_re_engage_url shortcode
[MAILPOET-3976]
2021-11-25 14:55:14 +01:00
Rostislav Wolny
ae33ab8d82 Fix loading opt-in block metadata
Build version of plugin doesn't contain assets/js folder.
We need to copy block.json file with the metadata to assets/dist directory and load it from there.
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
e9202d840a Add integration test for checkout block opt-in integration
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
a8ad7b7767 Handle checkout subscription for guest/non-registered customers
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
b137e3fb0c Add workaround for translations for of opt-in block in editor
We currently don't have tooling for passing translations from scripts to wp.i18n.
This solution provides a temporary way of passing translated strings to wp.i18n for scripts that are
used outside admin pages that are handled via MailPoet.
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
f95bd95923 Remove registering translations for front end checkout opt-in
The front end block doesn't contain any translatable strings and
so far we don't generate any translation files for scripts.
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Mike Jolley
fbcaa424ba RawHTML instead of dangerouslySetInnerHTML
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
810ddf021f Switch typecript config to expect react uses new jsx transform
We are about to switch to the new JSX Transform https://mailpoet.atlassian.net/browse/MAILPOET-3915.
In this commit I switch typescript to expect that when it runs it's checks so that we can already use
tsx without importing react.
Note: The check remains still active in eslint
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
c5df5fd1e7 Prevent updating subscriber global status in case opt-in is disabled
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
6ff678ae1b Fix PHPStan warnings
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
54414b4174 Add WooCommercePackages stubs to PHPStan
I had to move loading those stubs to bootstrap files because it was not able to load the class
when placed in scanFiles.
Note this is also recommended in documentation https://github.com/php-stubs/woocommerce-stubs
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
bdab97bc00 Use WPFunctions wrapper in MarketingOptinBlock
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
98804d981c Add strict types to newly added php files
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
9f25534a5b Add type definitions for 3rd party external libraries
We don't install the libraries and there are no type definitions we could use.
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
3b061e5f9b Fix TypeScript errors coming from multiple versions of types/react
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Rostislav Wolny
47423f2e22 Rename frontend.tsx file to frontend.ts
The file doesn't use any jsx syntax.
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Nadir Seghir
25c96f8080 one line of eslint-disable
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Nadir Seghir
4b20130d68 return void from requestToHandle to let native handling in package run
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Nadir Seghir
bdb2434ed9 return void from requestToHandle to let native handling in package run
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Mike Jolley
1d0dc612d6 Remove todo
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Mike Jolley
f727bb6cfa Remove spaces around parenthesis
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Mike Jolley
0b09dd3f50 Update webpack config so it's easier to diff
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Mike Jolley
d32ed232d1 Revert webpack config changes
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Mike Jolley
e33378da59 define externals in eslint config
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00
Mike Jolley
70391fdc4c Graduate woocommerce_blocks_checkout_update_order_from_request
[MAILPOET-3920]
2021-11-24 13:00:10 +01:00