Commit Graph

19029 Commits

Author SHA1 Message Date
a1b51aecf0 Update backend logic to support (not)blank
MAILPOET-4996
2023-08-07 12:03:49 +02:00
f522c0786c Rename Timeframes enum to be singular
MAILPOET-5413
2023-08-07 11:06:27 +02:00
f15d2f1cda Fix JS warning and default rating, use enums
MAILPOET-5413
2023-08-07 11:06:27 +02:00
725012ae56 Use constants instead of strings for timeframe
MAILPOET-5413
2023-08-07 11:06:27 +02:00
aab3801aee Fix validateDaysPeriod helper
We should only ignore the formItems.days if the timeframe is one that
doesn't require any days.

MAILPOET-5413
2023-08-07 11:06:27 +02:00
ce9cbdc45d Add backend logic for number of reviews filter
MAILPOET-5413
2023-08-07 11:06:27 +02:00
c3bb4d1433 Add frontend for number of reviews filter
MAILPOET-5413
2023-08-07 11:06:27 +02:00
3ab674d5fa Bump webpack from 5.74.0 to 5.76.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.74.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.74.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-04 19:47:14 +03:00
161af43f4d Change subscribers limit notice
[MAILPOET-5444]
2023-08-03 12:49:40 +02:00
edaefea5b7 Use Subscribers feature instead of Installer
[MAILPOET-5429]
2023-08-03 12:31:02 +02:00
d31483db2d Reuse existing component and fixed behavior checking premium accessibility
[MAILPOET-5429]
2023-08-03 12:31:02 +02:00
d2d0afa9f5 Add better handling of a failed ajax request
[MAILPOET-5429]
2023-08-03 12:31:02 +02:00
1333b33d42 Use ajax call for the premium plugin activation in the premium banner
[MAILPOET-5429]
2023-08-03 12:31:02 +02:00
1053f062e3 Change info notice to success notice
[MAILPOET-5429]
2023-08-03 12:31:02 +02:00
947b788bb6 Refactor premium banner to tsx
[MAILPOET-5429]
2023-08-03 12:31:02 +02:00
ed26cb8962 Improve rendering premium banner when premium plugin is downloaded or inactive
[MAILPOET-5429]
2023-08-03 12:31:02 +02:00
7d6e69e639 Add notice when premium features for key are available
[MAILPOET-5429]
2023-08-03 12:31:02 +02:00
1e33574c76 Release 4.22.2 2023-08-03 01:44:39 +03:00
27e346eed0 Fetch action directly from filter data
This fixes an issue where pre-existing subscribedDate filters were
causing errors because they didn't have an `action` stored in their
serialized data.

It was never necessary to store the action redundantly in the serialized
 filter data in the first place, so we're now fetching the action
 directly from the filter data entity itself.

MAILPOET-5500
2023-08-02 22:46:18 +02:00
bf8e1e1b0c Release 4.22.1 2023-08-01 17:01:48 +03:00
e2dc6855a8 Fix logCurlInformation causing error when called with one parameter
[MAILPOET-5493]
2023-07-31 14:22:03 +02:00
20152569dd Use the Flex component in the form template header
For better consistency with automation and clearer design, I replaced the header div element with the Flex component.
[MAILPOET-5376]
2023-07-31 12:28:46 +02:00
88e10be66d Add footer to form template selection
[MAILPOET-5376]
2023-07-31 12:28:46 +02:00
be1595862c Use @wordpress/i18n for form template selection
[MAILPOET-5376]
2023-07-31 12:28:46 +02:00
3a5f2624c8 Unify form template selection header with automation
I used WordPress components when it was possible and changed used block from container to content.
[MAILPOET-5376]
2023-07-31 12:28:46 +02:00
44d869af70 Simplify automation run data factory 2023-07-31 09:44:56 +02:00
7b4e862014 Simplify delta counts 2023-07-31 09:44:56 +02:00
f048a43026 Ensure state of model does not spill over
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
7092b5713e Invent values if no orders found
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
1c56c3d87b Enable negative growth in WooCommerce delta
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
0aaf0f335e Return early when no emails found
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
5ead6a5b39 Remove unused variable
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
6d94cf6c16 Add Acceptance test
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
1c370f6136 Allow to alter created at date
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
d4dc3bb301 Show decrease as a negative value
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
963ecdb3b5 Allow for adding multiple queues and created_at alteration
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
f81b75a0a8 Add withSendEmailStep method
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
7cec3233fc Add AutomationRun factory
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
8bd03b7a10 Add method to delete an automation run
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
ecf4d9cfdb Make StepSeparator individual selectable
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
635d4d33d5 Load and show order related data only when WooCommerce is active
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
f0fd089b9c Fix state update during render in DaysPeriodField
Moved state update in DaysPeriodField from render phase to useEffect to
adhere to React's rules of Hooks.

This change resolves the warning of a state update in
WordpressRoleFields during the rendering of DaysPeriodField.

MAILPOET-4991
2023-07-30 19:20:09 +02:00
8ab1df5ffa Extract timeframe strings to an enum
This introduces a new helper to check if some value exists in an enum. I
 was running into an issue where I couldn't check for Object.values
 (Timeframes).includes(segment.filter) because segments.filter is a
 string and isn't assignable to Timeframes. I've run into this issue
 before so I thought it would be nice to add a helper function.

MAILPOET-4991
2023-07-30 19:20:09 +02:00
5eeee574b2 Extract strings to constants
MAILPOET-4991
2023-07-30 19:20:09 +02:00
feb0297fb9 Implement lifetime option for total spent
MAILPOET-4991
2023-07-30 19:20:09 +02:00
d04c84d6d4 Implement lifetime option for number of orders
MAILPOET-4991
2023-07-30 19:20:09 +02:00
64094387eb Implement lifetime option for average spent filter
MAILPOET-4991
2023-07-30 19:20:09 +02:00
14a2603ac3 Implement lifetime option for email opens
MAILPOET-4991
2023-07-30 19:20:09 +02:00
25a4515ebb Default days to 0 for allTime timeframe
MAILPOET-4991
2023-07-30 19:20:09 +02:00
0e6c885ad1 Ensure filter mapper always includes timeframe
MAILPOET-4991
2023-07-30 19:20:09 +02:00