Commit Graph

21439 Commits

Author SHA1 Message Date
Jan Jakes
ba90249cc2 Update @babel/eslint-parser and lint-staged (needed for update of the former one)
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
afbaac8439 Update ESLint
[MAILPOET-5061]
2023-03-27 15:24:38 +02:00
Jan Jakes
0cb684151f Use JS ESLint configs instead of JSON
This is to avoid ERR_IMPORT_ASSERTION_TYPE_MISSING on recent Node.js with updated ESLint.
Fixes errors like the following: ".eslintrc.es6.json" needs an import assertion of type "json"

[MAILPOET-5061]
2023-03-27 15:24:38 +02:00
Sam Najian
4836a4c66f Try to show only one form of the same id
Since we are using hooks to add form html to the page
other plugins can cause MailPoet to add the form several
times, this commit adjusts the JS to show the forms of the
same id at only once

[MAILPOET-5136]
2023-03-27 13:27:06 +02:00
alex-mailpoet
7cc6765493 Fix minutes text
[MAILPOET-4602]
2023-03-27 12:54:02 +02:00
Jan Lysý
9a3a7f420c Add minutes scheduling for purchased product
[MAILPOET-4602]
2023-03-27 12:54:02 +02:00
Jan Lysý
dfc4334a1d Add minutes scheduling for purchased in category
[MAILPOET-4602]
2023-03-27 12:54:02 +02:00
Jan Lysý
8603de7124 Add minutes scheduling for first purchase
[MAILPOET-4602]
2023-03-27 12:54:02 +02:00
Jan Lysý
354ed92076 Add minutes scheduling for abandoned Cart
[MAILPOET-4602]
2023-03-27 12:54:02 +02:00
Jan Lysý
7f1ef637cc Change scheduling post notification from an hour precision to 15 minutes
[MAILPOET-4602]
2023-03-27 12:54:02 +02:00
Jan Lysý
77b83ff188 Change scheduling newsletters from an hour precision to 15 minutes
[MAILPOET-4602]
2023-03-27 12:54:02 +02:00
Jan Lysý
c63434fa1c Add welcome email scheduling with minute resolution
[MAILPOET-4602]
2023-03-27 12:54:02 +02:00
Rostislav Wolny
e1be576525 Fix coding style issue in Woo Subscriptions filter test
[MAILPOET-4568]
2023-03-27 12:26:35 +02:00
Rostislav Wolny
f0e954e356 Fix usage of status parameter in Woo Subscriptions data factory
[MAILPOET-4568]
2023-03-27 12:26:35 +02:00
Rostislav Wolny
58b2ac4a60 Add collation check to WooSubscriptions filter
We join using a string column and it may cause errors when the columns
using different collation. This commit adds collation check so that we can alter
collation in the join condition in case it is needed.
[MAILPOET-4568]
2023-03-27 12:26:35 +02:00
Rostislav Wolny
3a627f4d99 Re-enable acceptance test for Woo Subscriptions segment
[MAILPOET-4568]
2023-03-27 12:26:35 +02:00
Rostislav Wolny
78fbb7d6bc Update WooCommerce and plugins in tests on CI
We need to use HPOS compatible Woo Subscriptions
[MAILPOET-4568]
2023-03-27 12:26:35 +02:00
Rostislav Wolny
4200781a56 Remove temporary action for disabling Woo compatibility check in test
WooSubscriptions declared compatibility with HPOS in version 4.9.0
[MAILPOET-4568]
2023-03-27 12:26:35 +02:00
Rostislav Wolny
bb9b04ecc8 Update WooSubscription filter to work with HPOS data
The wc_orders table doesn't contain user_id but has billing_email and customer_id.
These were two options I could use for joining subscribers table.
I could use the customer_id but I would have to join wc_customer_lookup table and then
the orders table. Instead of customer_id I chose the billing_email. Both tables have
indexes on the email columns and it is one join instead of two.
[MAILPOET-4568]
2023-03-27 12:26:35 +02:00
Rostislav Wolny
78feddd30a Enable WooSubscriptions test when HPOS is active
We need to temporarily turn off plugin compatibility check in Woo
because current Woo Subscriptions are still officially not marked as
HPOS compatible.
[MAILPOET-4568]
2023-03-27 12:26:35 +02:00
Rostislav Wolny
14515c4140 Refactor WooSubscriptions integration test to use factory instead post
The factory uses wcs_create_subscription and creates the subscription order
in proper table according to HPOS setting.
[MAILPOET-4568]
2023-03-27 12:26:35 +02:00
Pavel Dohnal
ab708359d1 Ensure plugin functions are loaded
[MAILPOET-5085]
2023-03-27 11:35:48 +02:00
Pavel Dohnal
535f880c8d Use a better transient key
[MAILPOET-5085]
2023-03-27 11:35:48 +02:00
Pavel Dohnal
0f4ffd7849 Use get_plugin_data from WPFunctions
[MAILPOET-5085]
2023-03-27 11:35:48 +02:00
Pavel Dohnal
cf88a3fab2 Display warning for unsupported WooCommerce version
[MAILPOET-5085]
2023-03-27 11:35:48 +02:00
Pavel Dohnal
46b3c65fdf Enforce the minimum working version of WooCommerce
[MAILPOET-5085]
2023-03-27 11:35:48 +02:00
Rostislav Wolny
6a53b9b808 Fix strange 0 being rendered when there are no changes in lists
[MAILPOET-5150]
2023-03-27 10:58:19 +02:00
Jan Jakes
695c387210 Use better wayt to determine email ID existence
[MAILPOET-5138]
2023-03-23 16:23:40 -05:00
Jan Jakes
d6d46ec57a Fix wrong type assertion
[MAILPOET-5138]
2023-03-23 16:23:40 -05:00
Jan Jakes
32951c050d Define missing Tooltip property
[MAILPOET-5138]
2023-03-23 16:23:40 -05:00
Jan Jakes
403ea6022e Remove no longer needed hotfixes
[MAILPOET-5138]
2023-03-23 16:23:40 -05:00
Jan Jakes
d7ccd75744 Fix type in comparison
[MAILPOET-5138]
2023-03-23 16:23:40 -05:00
Jan Jakes
997fc06c5d Ensure number comparison
[MAILPOET-5138]
2023-03-23 16:23:40 -05:00
Jan Jakes
c9922d32d8 Fix invalid check for an empty array
[MAILPOET-5138]
2023-03-23 16:23:40 -05:00
Jan Jakes
d58373fa61 Allow object-like types in withBoundary
[MAILPOET-5138]
2023-03-23 16:23:40 -05:00
Jan Jakes
7bf7b182f9 Remove redundant extensions in imports
[MAILPOET-5138]
2023-03-23 16:23:40 -05:00
Jan Jakes
2be8952824 Update TypeScript to version 5.0
[MAILPOET-5138]
2023-03-23 16:23:40 -05:00
Jan Jakes
2d0228e4e4 Add top-level build and start scripts
[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
Jan Jakes
65fefd3d73 Add composite tsconfig option for faster rebuilds
Due to https://github.com/microsoft/TypeScript/issues/33827 we need to explicitly
name JSON files in the "include" array, until we upgrade to a more recent TypeScript.

[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
Jan Jakes
41aa211ee6 Add incremental tsconfig option for faster rebuilds
[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
Jan Jakes
b97f2d5850 Use "esnext" module as a default in tsconfig
[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
Jan Jakes
900a03756f Use (S)CSS setup from @worpress/scripts
[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
Jan Jakes
995f61f6fd Add @mailpoet/components to the mailpoet plugin
[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
Jan Jakes
8fbe37dc4d Add TypeScript config for @mailpoet/components
This handles both type checking and type declaration emitting.

[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
Jan Jakes
2aaf01fe11 Add Webpack config for @mailpoet/components
[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
Jan Jakes
093814eaa7 Add Babel config for @mailpoet/components
[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
Jan Jakes
790f3f4974 Add @mailpoet/components package with a dummy testing component
[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
Jan Jakes
a31af24205 Add type "module" to monorepo root
This will allow us using ES modules in scripts and config files.

[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
Jan Jakes
dd1abb909a Hoist @wordpress/scripts to monorepo root
This way the same version will be used by all packages and tools.

[MAILPOET-5015]
2023-03-22 09:38:22 +01:00
Jan Jakes
cdf4cd759b Hoist typescript to monorepo root
This way the same version will be used by all packages and tools.

[MAILPOET-5015]
2023-03-22 09:38:22 +01:00