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
Rostislav Wolny
f0a8f3bfd3
Eliminate direct access to EntityManager in Db migrations
...
As we don't want to allow working directly with EntityManager in
the Db level migrations this commit replaces direct access with helper
methods from the parent class.
We don't want to allow working with EntityManager since it is considered
high level service and causes errors when DB structure is not up to date.
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
435152281a
Extract App level method from initial Db migration to a new App level migration
...
All these extracted methods contain DB version check so for existing
sites the migration will be just added as completed to the migrations table.
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
7f363a96f5
Refactor Migration_20230111_120000 to work without SettingsController
...
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
9684285105
Move clearly App level migrations to App directory
...
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
5fd02b2bab
Add support for App and Db migrations into Repository and Runner
...
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
5c4dcb77c5
Move all current migrations to Dd folder
...
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
aca358d276
Add App level migration and template
...
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00
Rostislav Wolny
092fcb78d0
Rename Migration to DbMigration
...
We want to distinguish Db and App level migrations. This is the first step.
[MAILPOET-5416]
2023-07-26 14:01:39 +02:00