Commit Graph

20858 Commits

Author SHA1 Message Date
Jan Lysý
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
Jan Lysý
88e10be66d Add footer to form template selection
[MAILPOET-5376]
2023-07-31 12:28:46 +02:00
Jan Lysý
be1595862c Use @wordpress/i18n for form template selection
[MAILPOET-5376]
2023-07-31 12:28:46 +02:00
Jan Lysý
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
Jan Jakes
44d869af70 Simplify automation run data factory 2023-07-31 09:44:56 +02:00
Jan Jakes
7b4e862014 Simplify delta counts 2023-07-31 09:44:56 +02:00
David Remer
f048a43026 Ensure state of model does not spill over
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
7092b5713e Invent values if no orders found
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
1c56c3d87b Enable negative growth in WooCommerce delta
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
0aaf0f335e Return early when no emails found
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
5ead6a5b39 Remove unused variable
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
6d94cf6c16 Add Acceptance test
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
1c370f6136 Allow to alter created at date
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
d4dc3bb301 Show decrease as a negative value
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
963ecdb3b5 Allow for adding multiple queues and created_at alteration
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
f81b75a0a8 Add withSendEmailStep method
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
7cec3233fc Add AutomationRun factory
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
8bd03b7a10 Add method to delete an automation run
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
ecf4d9cfdb Make StepSeparator individual selectable
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
David Remer
635d4d33d5 Load and show order related data only when WooCommerce is active
[MAILPOET-5405]
2023-07-31 09:44:56 +02:00
John Oleksowicz
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
John Oleksowicz
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
John Oleksowicz
5eeee574b2 Extract strings to constants
MAILPOET-4991
2023-07-30 19:20:09 +02:00
John Oleksowicz
feb0297fb9 Implement lifetime option for total spent
MAILPOET-4991
2023-07-30 19:20:09 +02:00
John Oleksowicz
d04c84d6d4 Implement lifetime option for number of orders
MAILPOET-4991
2023-07-30 19:20:09 +02:00
John Oleksowicz
64094387eb Implement lifetime option for average spent filter
MAILPOET-4991
2023-07-30 19:20:09 +02:00
John Oleksowicz
14a2603ac3 Implement lifetime option for email opens
MAILPOET-4991
2023-07-30 19:20:09 +02:00
John Oleksowicz
25a4515ebb Default days to 0 for allTime timeframe
MAILPOET-4991
2023-07-30 19:20:09 +02:00
John Oleksowicz
0e6c885ad1 Ensure filter mapper always includes timeframe
MAILPOET-4991
2023-07-30 19:20:09 +02:00
John Oleksowicz
2d4967b64c Add lifetime option to days period react component
MAILPOET-4991
2023-07-30 19:20:09 +02:00
Veljko
2d3a8fadf7 Include scenario to cover issue we had in the past
[MAILPOET-5334]
2023-07-27 13:34:18 +02:00
Veljko
9f9b2c6dab Add scenario multiple lists
[MAILPOET-5334]
2023-07-27 13:34:18 +02:00
Jan Lysý
872bd80224 Update 3rd party label and note in the welcome wizard
[MAILPOET-5375]
2023-07-26 15:44:35 +02:00
Jan Lysý
3607dd9d71 Use @wordpress/i18n in the welcome wizard
Welcome Wizard was prepared for using WP translations, so I decided to use them because I am going to change some translations.
[MAILPOET-5375]
2023-07-26 15:44:35 +02:00
Jan Lysý
2d5e93ffb8 Refactor usage tracking step component to tsx
[MAILPOET-5375]
2023-07-26 15:44:35 +02:00
Rostislav Wolny
33e7e2d5f1 Fix typos in migration levels related strings
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
acd5846f70 Change migration level constants to lowercase
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
ba728c5612 Use phpstan type alias for migration types
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
871d9fd9f8 Small code and php doc enhancements in MailPoet/Migrator
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
725d81077f Add check for duplicate migrations names when loading migrations
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
ec8b5260dd Improve command for creating new migrations
Use required parameter instead of optional option
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
b4d0b35a1d Small code improvements based on review feedback
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
5605259159 Move tests for specific migrations into subdirectories
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
93c29512df Fix AppMigrationTemplate description
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
74a5dde19f Make migration runner aware of the level of running migration
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
94d8d28253 Refactor Migrations Repository to return also migrations level
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
7954f9d74f Move newly added migrations (after rebase) to correct folders
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
8454925e9a Update functionality for generating new migrations to support levels
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
466782790a Remove access to higher level services in Db level migrations
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
35b7e9177c Eliminate settings controller from the initial migration
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00