Commit Graph

15943 Commits

Author SHA1 Message Date
John Oleksowicz
2c2f15a562 Use completedAt timestamp for success and failures
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
57cf547a8a Only expose log in post-step hook
The log has step ID and workflow run ID in case an integration needs to
retrieve them.

[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
6f8edfaec4 Make workflow run logs immutable
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
cdeea173b9 Add logging of workflow steps
[MAILPOET-4463]
2022-09-14 08:51:53 +02:00
John Oleksowicz
2bcef7629c Mention that shortcodes can be used for subject/preheader
[MAILPOET-4622]
2022-09-13 16:17:50 +02:00
John Oleksowicz
5c1d515375 Change Email content heading to Email
[MAILPOET-4622]
2022-09-13 16:17:50 +02:00
John Oleksowicz
44840f3d34 Skip rendering email preview for now
I decided to extract the email buttons out of the thumbnail component
because it didn't seem to make sense to have those things tied together.

[MAILPOET-4622]
2022-09-13 16:17:50 +02:00
John Oleksowicz
de24ad4a85 Ensure HelpScout icon doesn't cover sidebar content
[MAILPOET-4622]
2022-09-13 16:17:50 +02:00
Jan Jakes
4a231ff35b Fix comment with translation info
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
ea9a410e70 Simplify condition
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
9678d4f71a Remove duplicit method call
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
ba35ddf6e6 Extract automation API to MailPoet REST API
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
1b5d6bd974 Remove no longer needed empty trigger
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
fe87404850 Update automation frontend to new workflow format
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
fa9bbaf9e8 Allow at most 1 next step for now
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
6d91251d6c Update workflow execution control to the new format
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
1677cc2842 Save and load workflows in the new format, update API
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
9028ea96ec Implement root step
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
55e4e53a35 Fix exception message
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
ecfc289eca Add full workflow schema definition & introduce a new root step
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
8691efdb65 Fix mutating workflow in a redux action
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
a1945925de Move trash action to redux store
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
c8c07c470d Add middleware for displaying API errors as notices
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
becf82ef8c Use confirmation dialog from WP components
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Jan Jakes
11816b7800 Remove usage of @wordpress/editor, fix notice styles
[MAILPOET-4523]
2022-09-12 14:40:36 -05:00
Rodrigo Primo
8743e5654b Remove leftover MP2 migration file that is not needed anymore
This file was loaded inside the MP2MigratorTest class that was removed (https://github.com/mailpoet/mailpoet/pull/4235/files#diff-fa71dea302390fbf7c04d9d882a5a66a70d3daa432883d4ba6951e2ec5abe287L123) and thus it is not needed anymore.

[MAILPOET-4612]
2022-09-12 14:46:41 +02:00
Rodrigo Primo
43ece08227 Remove errors to be ignored by PHPStan that don't exist anymore
Fixing the logic to load the PHPStan baseline in the previous commit,
uncovered some ignored errors in phpstan-8.1-baseline.neon that don't
exist anymore.

[MAILPOET-4626]
2022-09-12 10:28:59 +01:00
Rodrigo Primo
76501d89d2 Fix logic to decide which PHPStan baseline file to use
There was a bug in the code that is used to decide which version of
the PHPStan baseline file should be loaded depending on the PHP
version that is being used.

The if condition for PHP 8.1 was `$phpVersion == 80100` which means
that it matched only PHP 8.1.0 and not any of the 8.1 patch
versions (like 8.1.1 and 8.1.2).

This commit fixes this problem and it also changes the order of the
checks so that they follow the version numbers in ascending order.
Before the checks where unordered.

[MAILPOET-4626]
2022-09-12 10:28:59 +01:00
Veljko V
f62229eff4 Update file to pass prettier check 2022-09-09 15:14:52 +02:00
Veljko V
8e20366ede Add New Pull Request Template 2022-09-09 15:14:52 +02:00
Pavel Dohnal
9c5e9e0da6 Remove version number from API doc
[MAILPOET-4474]
2022-09-09 11:25:51 +02:00
Pavel Dohnal
c8293fd405 Remove version number from the newsletter tooltip
[MAILPOET-4474]
2022-09-09 11:25:51 +02:00
Pavel Dohnal
086852ee4d Remove version number from the source
[MAILPOET-4474]
2022-09-09 11:25:51 +02:00
Pavel Dohnal
941e443c22 Remove version number from the widget
[MAILPOET-4474]
2022-09-09 11:25:51 +02:00
Pavel Dohnal
279ffc311c Remove version number from the plugin name
[MAILPOET-4474]
2022-09-09 11:25:51 +02:00
Pavel Dohnal
cff9be902b Remove version number from the plugin icon
[MAILPOET-4474]
2022-09-09 11:25:51 +02:00
Pavel Dohnal
5984c1be04 Add a command to calculate number of pull requests 2022-09-09 11:02:50 +02:00
Pavel Dohnal
eef0b12af3 Update woocommerce packages installed by default
[MAILPOET-4615]
2022-09-09 10:56:52 +02:00
Pavel Dohnal
1388e053b4 Update woocommerce packages to follow the rule L-2
[MAILPOET-4615]
2022-09-09 10:56:52 +02:00
Rodrigo Primo
842f81d40b Add method to detected if WooCommerce Custom Order Tables is enabled
[MAILPOET-4567]
2022-09-09 10:43:11 +02:00
Oluwaseun Olorunsola
1c0d9da74a Fix issues with CSS and https://user-images.githubusercontent.com/30554163/176655015-777259ac-5748-48b0-8f27-41befac015a9.png
MAILPOET-4561
2022-09-09 10:16:50 +02:00
Oluwaseun Olorunsola
281ce6d787 Fix bug with email address authorization on newsletter editor
on newsletter editor page, after successfully authorized the email address the dialog disappears automatically, but the error message stays

MAILPOET-4561
2022-09-09 10:16:50 +02:00
Oluwaseun Olorunsola
e55d21e84a Fix Weird popup left on page after completing verification
MAILPOET-4561
2022-09-09 10:16:50 +02:00
John Oleksowicz
f72d72a28a Remove quotes from find/replace strings
These quotes were causing issues with translations where quote styles
are changed to anything other than double quotes. This was affecting
at least German and French translations.

Because the translations get applied before the search/replace,
changing to something other than standard double quotes meant that
the search string would never be found, leaving the characters
%1$s in the UI.

[MAILPOET-4185]
2022-09-09 10:06:43 +02:00
Rostislav Wolny
81f3a0420a Fix activation of plugins for multisite environments
We need to provide correct --url parameter to WP CLI commands so that
in multisite environment the correct site is affected.
Otherwise the plugins might not be activated for site we run tests on.
[MAILPOET-4625]
2022-09-08 16:53:49 +02:00
Rostislav Wolny
d643928f66 Fix indentation of code for installing WooCommerce core
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
Rostislav Wolny
e32b06a5a8 Add data cleanup after SendEmailActionTest tests
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
Rostislav Wolny
9e1f4ab947 Remove unused Database helper from tests
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
Rostislav Wolny
0b54ae6506 Refactor updating create and modified dates in WooCommerce order factory
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
Rostislav Wolny
bb5a955c69 Used Woo code for cleaning up orders data in WooCommerce segment test
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00