Commit Graph

21439 Commits

Author SHA1 Message Date
b5b21c9f7a Add check for product post type when fetching customer review data
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
46a462ee23 Add test for an automation with if/else step and "in the last X days" filter
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
d7f4f1a137 Fix non-translatable strings
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
1d27d51753 Render "in the last X days" in parameter values
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
5439db1e5a Unify parameter naming
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
1a0eb90402 Mark which fields support the "in the last" parameter for UI
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
5f7362282d Add "in the last" parameter and schema to number and enum filters
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
7f63445f5a Pass filter-provided parameters to field value factories
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
467f1f8c8c Add ability for filters to provide field params
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
1e3d6347fc Add validation for "in the last" parameter
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
4637349a60 Implement filter args validation
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
2303a7480c Add filter type defintions, extract value formatting to each of them
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
d0889a436f Add a way to manage filter types in automation editor store
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
7cb75e77c5 Add explicit casts for WordPressDotOrg.sniffs.DirectDB.UnescapedDBParameter
None of these are needed, but the sniff reports them as false positives, so this is a workaround.

[PREMIUM-253]
2024-03-11 10:31:15 +01:00
d4fd0bec71 Check for empty array when getting parent term IDs
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
5b2d75dc1f Add "in the last" parameter to "woocommerce:customer:purchased-tags" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
176b2dbd53 Add "in the last" parameter to "woocommerce:customer:purchased-categories" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
399e61d7b9 Add "in the last" parameter to "woocommerce:customer:review-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
d0d9c223b4 Simplify factory in integration tester
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
67786c1eee Add "in the last" parameter to "mailpoet:subscriber:automations-exited" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
44b65d10be Add "in the last" parameter to "mailpoet:subscriber:automations-processing" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
2ef7bf6fac Add "in the last" parameter to "mailpoet:subscriber:automations-entered" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
f1b1ca882c Add "in the last" filter for fetching automation IDs by subject
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
504510d724 Simplify fetching automation IDs by subject
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
f36b117987 Add "in the last" parameter to "mailpoet:subscriber:email-clicked-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
1c7ed9602f Add "in the last" parameter to "mailpoet:subscriber:email-machine-opened-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
c87fc5ab7e Add "in the last" parameter to "mailpoet:subscriber:email-opened-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
2421a1b8ea Add "in the last" parameter to "mailpoet:subscriber:email-sent-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
3dbe1bd049 Add "in the last" parameter to "woocommerce:customer:spent-average" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
adff3b61a6 Add "in the last" parameter to "woocommerce:customer:order-count" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
d9be326aa7 Add "in the last" parameter to "woocommerce:customer:spent-total" field
[PREMIUM-253]
2024-03-11 10:31:15 +01:00
314b1f3c27 Change method for detecting empty product pages
The previous method was relying on the idea that product pages would not
 trigger the `the_content` filter since they don't have to render the
 content. Testing revealed that this idea was unreliable.

In one instance WordPress was triggering `the_content` when attempting
to filter the excerpt, even though the excerpt was empty.

This changes the detection method to a much more direct inspection of
the post's content.

MAILPOET-5859
2024-03-08 12:27:06 +01:00
0ab2be782d Show forms on empty product pages
The current logic for form rendering assumes that a single product page
will trigger the filter `the_content`. This is not always true. In cases
where the product has no description, WooCommerce does not render the
description tab at all, which is where that filter usually fires (in my
testing).

This change ensures that we still give these forms a chance to render on
 such pages.

MAILPOET-5859
2024-03-08 12:27:06 +01:00
f6d8eb41b4 Sort automation filters alphabetically
[MAILPOET-5683]
2024-03-08 11:30:08 +01:00
fefc56d5de Move component PremiumModalForStepEdit from common to automations
This was causing common components were dependent on the automation store
and was causing subsequent issues when the original modal was used in the email editor.
[MAILPOET-5932]
2024-03-07 17:04:19 +01:00
f7fbe3fc8c Try adding product to checkout directly 2024-03-07 11:13:03 +01:00
f2db5c71d0 Add product to cart before test 2024-03-07 11:13:03 +01:00
3a87c7d0c8 Try with reordering tests 2024-03-07 11:13:03 +01:00
8647abe1e4 Try adding to cart twice time 2024-03-07 11:13:03 +01:00
300bedceea Try reordering scenario position in test 2024-03-07 11:13:03 +01:00
3db8cfc656 Improve adding product to cart method 2024-03-07 11:13:03 +01:00
d0827860d2 Add dummy esc_attr function for unit tests
[MAILPOET-5918]
2024-03-05 16:03:49 +01:00
fc7ecaa0b1 Add missing escaping to Variables postprocessor
[MAILPOET-5918]
2024-03-05 16:03:49 +01:00
8faaa174bc Add post processor for replacing CSS variables with values
[MAILPOET-5918]
2024-03-05 16:03:49 +01:00
a7153d70c3 Add getVariablesValuesMap to the theme controller
This commit adds a method that returns map of CSS variables and their values defined based on the theme.json
It is a preparation step for a postprocessor that will use this map to replace variables with values in final HTML.
There are many clients that don't support CSS variables
[MAILPOET-5918]
2024-03-05 16:03:49 +01:00
c545dc4967 Refactor applying padding in block renderers
Instead of using our own logic for building padding style definition,
we switch to wp_style_engine_get_styles which generates the styles definitions for us.
It also handles value variable formatting to valid CSS (var:preset|spacing|50 to var(--wp--preset--spacing--50)).
[MAILPOET-5918]
2024-03-05 16:03:49 +01:00
7548496da0 Release 4.45.0 2024-03-05 13:24:29 +02:00
4f2725064d Update Ubuntu images
[MAILPOET-5931]
2024-03-05 08:54:43 +02:00
4dbd50de41 Fix clicking selector to close sidebar
[MAILPOET-5930]
2024-03-04 14:54:10 +02:00
b02097a876 Allow navigation to previous steps
MAILPOET-5216
2024-03-04 12:22:13 +01:00