Commit Graph

20446 Commits

Author SHA1 Message Date
John Oleksowicz
8de46db560 Add note about the different naming format
The subscribedDate filter used to be completely separate and it's now
been consolidated into SubscriberDateField. Since existing filters exist
 in the wild that have the subscribedDate type, we're not able to
 update the value to be consistent with the other types.

MAILPOET-4989
2023-07-26 10:53:55 +02:00
John Oleksowicz
ea5e4a37d2 Allow different default operators for DateFields
MAILPOET-4989
2023-07-26 10:53:55 +02:00
John Oleksowicz
edbb40ee42 Add last sending date filter
MAILPOET-4989
2023-07-26 10:53:55 +02:00
John Oleksowicz
3ded9be927 Refactor subscribedDate filter to use SubscriberDateField
MAILPOET-4989
2023-07-26 10:53:55 +02:00
John Oleksowicz
f27f469b17 Add backend logic for subscriber date filters
MAILPOET-4989
2023-07-26 10:53:55 +02:00
John Oleksowicz
ef7d19e49d Add frontend for subscriber engagement filters
MAILPOET-4989
2023-07-26 10:53:55 +02:00
Veljko
7b461d904b Update selector and titles in checks
[MAILPOET-5477]
2023-07-25 13:42:14 +02:00
Veljko
630b60e62e Improve ManageSubscribers test and update SubscribersListing
[MAILPOET-5332]
2023-07-25 13:41:54 +02:00
Rostislav Wolny
f3bccaff7f Release 4.22.0 2023-07-25 13:06:57 +02:00
Rostislav Wolny
a1574f82c9 Add reseting settings controller cache in between acceptance tests
The settings controller is used internally in the Settings factory.
It has an in-memory cache, so on the test runner side, we need to reset
the cache after every test to ensure tests don't influence each other.
[MAILPOET-5480]
2023-07-25 08:59:12 +02:00
Rostislav Wolny
278fbca955 Ensure correct settings before form is created
The settings is read in the Form factory when we create the form
so we need to make sure it is set before the form is created.
[MAILPOET-5480]
2023-07-25 08:59:12 +02:00
Jan Jakes
105fbe1de5 Show tooltip for failed marketing emails 2023-07-24 16:19:30 +02:00
David Remer
2fabee6c3f Ensure the current section is updated and not overwritten by an older state
[PREMIUM-232]
2023-07-24 16:19:30 +02:00
David Remer
5d5232da90 Use Hooks to add filters
[PREMIUM-232]
2023-07-24 16:19:30 +02:00
David Remer
0f94288213 Add premiumFeaturesEnabled to evaluate whether premium features are accessible
[PREMIUM-232]
2023-07-24 16:19:30 +02:00
David Remer
47f4858806 Simplify sorting callbacks
[PREMIUM-232]
2023-07-24 16:19:30 +02:00
David Remer
66e05a0063 Show failed runs per step
[MAILPOET-5460]
2023-07-24 16:19:30 +02:00
David Remer
0e3b7b20e7 Open specific email in order tab
[MAILPOET-5452]
2023-07-24 16:19:30 +02:00
David Remer
1574c87e73 Open subscribers with specific step
[MAILPOET-5452]
2023-07-24 16:19:30 +02:00
David Remer
5f07143661 Open subscribers with specific step
[MAILPOET-5452]
2023-07-24 16:19:30 +02:00
David Remer
273a4729f6 Open specific email in orders tab
[MAILPOET-5452]
2023-07-24 16:19:30 +02:00
David Remer
8ec491a721 Extend open_tab method to alter current view of section
[MAILPOET-5452]
2023-07-24 16:19:30 +02:00
David Remer
c2dc986420 Add loading state because options need to be loaded
[MAILPOET-5452]
2023-07-24 16:19:30 +02:00
David Remer
abf535a7bb Move filter state to Section
[MAILPOET-5452]
2023-07-24 16:19:30 +02:00
David Remer
be669a5f61 Return available emails in free endpoint controller
[PREMIUM-232]
2023-07-24 16:19:30 +02:00
David Remer
1ede595dbb Add <Filter /> to orders tab
[PREMIUM-232]
2023-07-24 16:19:30 +02:00
David Remer
24aae85132 export ClearAllFilters component
[PREMIUM-232]
2023-07-24 16:19:30 +02:00
David Remer
0a3068462f Extend orders endpoint return definition
We need to get the emails, which are available for the filter. The endpoint will provide
those emails

[PREMIUM-232]
2023-07-24 16:19:30 +02:00
David Remer
1c6b3975ed Add distance between clear and submit buton in filter
[PREMIUM-232]
2023-07-24 16:19:30 +02:00
David Remer
8753050eb5 Allow for multiselect and use <TreeSelect /> for filter
[PREMIUM-232]
2023-07-24 16:19:30 +02:00
Jan Jakes
fceb48014a Fix prop type errors 2023-07-24 15:52:21 +02:00
Jan Jakes
78214d5389 Fix errors after rebase 2023-07-24 15:52:21 +02:00
Jan Jakes
533e19865c Patch invalid imports 2023-07-24 15:52:21 +02:00
Jan Jakes
5bcdd8965e Patch invalid CSS 2023-07-24 15:52:21 +02:00
Jan Jakes
cd2bceae4b Mock @woocommerce/settings and @automattic/tour-kit with an empty module 2023-07-24 15:52:21 +02:00
Jan Jakes
53a815601e Fix errors reported by TS 2023-07-24 15:52:21 +02:00
Jan Jakes
431f53b19d Remove importing from /build 2023-07-24 15:52:21 +02:00
Jan Jakes
d8cf0121bf Update @woocommerce/components 2023-07-24 15:52:21 +02:00
Jan Jakes
77ff76f77f Remove engine strict check 2023-07-24 15:52:21 +02:00
Jan Jakes
06e08d9265 Remove old patch 2023-07-24 15:52:21 +02:00
Rostislav Wolny
79ad0cc15b Refactor DateText component form the send page to Typescript
[MAILPOET-5472]
2023-07-24 10:47:06 +02:00
Rostislav Wolny
4b6dd0dc13 Improve getDisplayDateFormat to support all WP date format strings
The 3rd party date picker component used on the send page for scheduling newsletter
uses date-fns. The date-fns works with different date formatting strings so we need to convert
WordPress date format to compatible one with date-fns.

This commit improves the conversion function to support all possible WP formats.

I fed all possible date format characters I found in https://wordpress.org/documentation/article/customize-date-and-time-format
(a A g h G H i s T c r U d j S l D m n F M Y y) to the custom date format setting
and I added replacement for all that broke the date scheduling component.

[MAILPOET-5472]
2023-07-24 10:47:06 +02:00
Rostislav Wolny
fcdbb65091 Use global date format string for date in newsletter scheduler
I found that we already have a global variable mailpoet_date_format defined in layout.html
so I removed duplicate mailpoet_date_display_format and used the global one directly.

The global one is set correctly using wp_date_format()|escape('js')
instead of incorrect wp_datetime_format()|escape('js')

[MAILPOET-5472]
2023-07-24 10:47:06 +02:00
John Oleksowicz
4a02d5cfaf Use @wordpress/i18n to fix missing translations
MAILPOET-5468
2023-07-20 23:00:25 +02:00
Veljko
b07c041e35 Improve the test switching language
[MAILPOET-5331]
2023-07-19 16:38:42 +02:00
John Oleksowicz
89c3492bc4 Fix formatting issue
MAILPOET-5012
2023-07-19 16:06:19 +02:00
John Oleksowicz
7db7e78c71 Add backend logic for onOr(Before|After) filters
MAILPOET-5012
2023-07-19 16:06:19 +02:00
John Oleksowicz
0e4987f7ab Update frontend for onOr(Before|After) filters
MAILPOET-5012
2023-07-19 16:06:19 +02:00
Rodrigo Primo
7739d9df9b Update integration test namespace
[MAILPOET-4991]
2023-07-19 15:24:46 +02:00
Rodrigo Primo
1198c52808 Add migration to change the update name of parameters of a few filters
In a previous commit, the name of the parameter of a few filters was
changed to `days`. This commit adds a migration to change the name of
parameter of existing filters when needed. The following parameters
should be renamed to days:

- number_of_orders_days
- total_spent_days
- single_order_value_days
- average_spent_days

I opted to leave the original parameter instead of deleting it, just to
be safe in case a given site needs to rollback to a previous version.
Once a change is made to a filter by the user, the old parameter will be
deleted.

[MAILPOET-4991]
2023-07-19 15:24:46 +02:00