Commit Graph

22694 Commits

Author SHA1 Message Date
github-actions[bot]
eb95edb938 Update used WooCommerce Subscriptions plugin in Circle CI
- latest version: 6.4.0
 - previous version: 6.3.2
2024-06-24 10:10:51 +02:00
github-actions[bot]
d6e903a766 Update used Automate Woo plugin in Circle CI
- latest version: 6.0.26
 - previous version: 5.8.5
2024-06-24 10:10:51 +02:00
github-actions[bot]
74960ce918 Update used WooCommerce plugin in Circle CI
- latest version: 9.0.1
 - previous version: 8.9.3
2024-06-24 10:10:51 +02:00
github-actions[bot]
436b00a03a Update used WordPress images in Circle CI
- latest version: 6.5.4-php8.3
 - previous version: 6.4.3-php8.1
2024-06-24 10:10:51 +02:00
Jan Lysý
5791dafc3e Fix commit messages generated by GH action
[MAILPOET-6097]
2024-06-21 19:26:56 +02:00
Jan Lysý
f4adfaf732 Fix getting version from temporary files in GH action
[MAILPOET-6097]
2024-06-21 19:08:09 +02:00
Rostislav Wolny
46ad169439 Remove defaultProps from listing.jsx
[MAILPOET-6008]
2024-06-21 16:36:06 +02:00
Rostislav Wolny
7ffe562d70 Remove defaultProps from form-settings/selection.jsx
[MAILPOET-6008]
2024-06-21 16:36:06 +02:00
Rostislav Wolny
f2d7dc0321 Remove defaultProps from form.jsx
[MAILPOET-6008]
2024-06-21 16:36:06 +02:00
Rostislav Wolny
a3514377c8 Move default props to default parameters - simple cases
React throws a deprecation warning for defaultProps.
This commit refactors default props to default values in easy-to-fix cases.

[MAILPOET-6108]
2024-06-21 16:36:06 +02:00
Rostislav Wolny
b19c30d203 Fix compilation errors after upgrading react
[MAILPOET-6008]
2024-06-21 16:36:06 +02:00
Rostislav Wolny
58865ef3f5 Update react, react-dom and react types
[MAILPOET-6008]
2024-06-21 16:36:06 +02:00
Jan Lysý
932406c288 Update title for created pull request via GH action
[MAILPOET-6097]
2024-06-21 15:59:53 +02:00
Jan Lysý
0d794b3b2f Add type declarations to function in GH Action update scripts
This commit also fixes some bugs with function redeclaration and missing parameters.
[MAILPOET-6097]
2024-06-21 15:59:53 +02:00
Jan Lysý
3989594a56 Add used plugin versions to the commit messages
[MAILPOET-6097]
2024-06-21 15:59:53 +02:00
Jan Lysý
18dc3daa78 Extract replacing versions for a private plugin to a function
[MAILPOET-6097]
2024-06-21 15:59:53 +02:00
Jan Lysý
3898b3dccb Update script getting WooCommerce versions and store them to file
[MAILPOET-6097]
2024-06-21 15:59:53 +02:00
Jan Lysý
0b157c3ac9 Use exact version instead of latest
To unify with other plugins I decided to use the exact version number.
[MAILPOET-6097]
2024-06-21 15:59:53 +02:00
Jan Lysý
318424f0c4 Add used WordPress versions to the commit message
[MAILPOET-6097]
2024-06-21 15:59:53 +02:00
Jan Lysý
8e3f7faa0e Rename file containing update workflow
[MAILPOET-6097]
2024-06-21 15:59:53 +02:00
Jan Lysý
8e1abcedbd Add step creating pull-request
[MAILPOET-6097]
2024-06-21 15:59:53 +02:00
Jan Lysý
62b0a55805 Change branch name for the pushed changes
[MAILPOET-6097]
2024-06-21 15:59:53 +02:00
Jan Lysý
2e460d9b0b Move env variable definition to the correct step
[MAILPOET-6097]
2024-06-21 15:59:53 +02:00
Jan Lysý
d68280a4a1 Add initialTab parameter to the links redirecting to the automation templates
[MAILPOET-5848]
2024-06-21 14:53:05 +02:00
Jan Lysý
8761fd8f3f Add support for selected initial tab on automation templates page
[MAILPOET-5848]
2024-06-21 14:53:05 +02:00
Jan Lysý
428b40ac65 Fix acceptance test with abandoned cart
We cannot use the common method for newsletter page verification, because the email editor does not contain subject input.
[MAILPOET-5848]
2024-06-21 14:53:05 +02:00
Jan Lysý
e285349e1f Update integration test for HomePage
[MAILPOET-5848]
2024-06-21 14:53:05 +02:00
Jan Lysý
fe25ce4857 Update condition for abandoned cart emails on homepage
[MAILPOET-5848]
2024-06-21 14:53:05 +02:00
Jan Lysý
b8d03f012b Update link for the abandoned cart setup on homepage
[MAILPOET-5847]
2024-06-21 14:53:05 +02:00
Rostislav Wolny
1d77461b5d Update ws package
Fix for https://github.com/mailpoet/mailpoet/security/dependabot/103
and https://github.com/mailpoet/mailpoet/security/dependabot/102
2024-06-20 15:26:52 +02:00
 Ján Mikláš
b3b686d8bf Ensure not loaded Mixpanel is not blocking UI
[MAILPOET-6116]
2024-06-20 14:06:20 +02:00
Rostislav Wolny
638fb7e56a Simplify and speed up notification history search test
[MAILPOET-6072]
2024-06-20 13:31:46 +02:00
Rostislav Wolny
d8fca6c46f Add integration test for searching post notifications by subject
[MAILPOET-6072]
2024-06-20 13:31:46 +02:00
Oluwaseun Olorunsola
9b082f7ffa Update Test helper method name for better clarification
MAILPOET-6072
2024-06-20 13:31:46 +02:00
Oluwaseun Olorunsola
1e049018d4 Test for both static and dynamic Newsletter subject
MAILPOET-6072
2024-06-20 13:31:46 +02:00
Oluwaseun Olorunsola
4c21a25774 Add tests for feature and switch to leftJoin instead of InnerJoin because we always want to return Newsletter records when available
MAILPOET-6072
2024-06-20 13:31:46 +02:00
Oluwaseun Olorunsola
5789a61075 Update ListingRepository::applySearch abstract function to reflect new updates
MAILPOET-6072
2024-06-20 13:31:46 +02:00
Oluwaseun Olorunsola
ae275d0824 Fix post-notification history subject search
We previously were looking for search term on the Newsletter table subject column. Unfortunately, post-notification and its history items sometimes contain both static text and dynamic text i.e., MailPoet shortcodes. This prevented the search from returning any useful results.

 The RenderedSubject on the Sending queues table includes both the static text and dynamic text, so we can look for the search term on it

MAILPOET-6072
2024-06-20 13:31:46 +02:00
 Ján Mikláš
aea6eb3dbb Unify how an automation email type is detected
This fixes an issue when an automation transactional email showed wrong header in email editor.

[MAILPOET-6114]
2024-06-19 17:44:29 +03:00
Jan Lysý
93f0eb9604 Add new black and white social icon variants to config
[MAILPOET-5805]
2024-06-19 13:52:31 +02:00
Jan Lysý
15513ad1dd Add new black social icons variant based on grey
[MAILPOET-5805]
2024-06-19 13:52:31 +02:00
Jan Lysý
8e9a74b132 Add new white social icons variant based on grey
[MAILPOET-5805]
2024-06-19 13:52:31 +02:00
Jan Lysý
25feb4cccc Remove Google+ icon links from config
[MAILPOET-5805]
2024-06-19 13:52:31 +02:00
 Ján Mikláš
c3968e7cad Don't show "authorize now" message when email field is empty
[MAILPOET-6111]
2024-06-19 11:14:45 +01:00
Rostislav Wolny
a55725838d Update list of dependencies skipped by the update script
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
03b50bd2f5 Add mock for @woocommerce/settings module
Previously this module was mocked as an empty module, but
after updating @woocommerce/currency we need to provide at
least getSetting function.

The function is called only once with the parameter 'currency'.

I tried installing the full @woocommerce/settings, but it requires
complex initialization (e.g. passing some data from PHP). I find it
better to provide this simple mock and throw an error if it is used more than expected.
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
836772b5bb Pnpm dedupe
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
b83a2188e0 Remove deprecated @babel/plugin-proposal-nullish-coalescing-operator
It was replaced by @babel/plugin-transform-nullish-coalescing-operator
and it is already part of  @babel/preset-env
https://babeljs.io/docs/babel-plugin-transform-nullish-coalescing-operator

[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
922dd93961 Remove deprecated @babel/plugin-proposal-class-properties
It was replaced by @babel/plugin-transform-class-properties
Which is already part of  @babel/preset-env
See https://babeljs.io/docs/babel-plugin-transform-class-properties
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
1d32461b3d Workaround for the issue with chai v5 and ES modules
I couldn't make it work with the Babel loader. There is a possible
solution using ts-node as a loader. I didn't want to install another
package, so I chose a different workaround.
mocha-env.mjs is processed as a module thanks to the suffix, and it
sets chai. expect globally, and then I updated tests to use the global expect.

Please see https://github.com/chaijs/chai/issues/1568
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00