Commit Graph

22212 Commits

Author SHA1 Message Date
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
Rostislav Wolny
73434e1ef7 Workaround for legacy newsletter editor tests after updating chai
Chain newly has to be imported as module and doesn't support CommonJs
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
ca8f6c64d6 Copy buildLocalizeFn into the place of usage
After 3.0.0 the date-fn's package.json contains 'exports' propperty
which prevents us from including the buildLocalizeFn function via direct import form it's file.
Because everything that is not listed in 'exports' throws ModuleNotFound error.
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
bde68b868d Update @babel/preset-env from 7.16.11 to 7.24.7
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
fd8fd8560e Update url from 0.11.1 to 0.11.3
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
706bf3cf2a Update storybook-addon-performance from 0.17.1 to 0.17.3
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
89948771ad Update stylelint-scss from 5.1.0 to 6.3.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
e5a27dc466 Update sinon from 15.2.0 to 18.0.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
9e102c0eef Update react-datepicker from 4.16.0 to 6.9.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
24b0f1ba09 Update postcss-cli from 10.1.0 to 11.0.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
5eaa16c286 Update jsdom from 22.1.0 to 24.1.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
556c0d479b Update imports-loader from 4.0.1 to 5.0.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
9d349dad84 Update husky from 8.0.3 to 9.0.11
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
ccaaea40c4 Update expose-loader from 4.1.0 to 5.0.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
1417bd87d5 Update exports-loader from 4.0.0 to 5.0.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
be369a87ac Update date-fns from 2.30.0 to 3.6.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
39d34ac14a Update copy-webpack-plugin from 11.0.0 to 12.0.2
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
4bdfb91480 Update chai from 4.3.8 to 5.1.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
7aab32cdf3 Update @storybook/react from 7.3.2 to 8.1.8
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
4010c196ce Update @storybook/builder-webpack5 from 7.3.2 to 8.1.8
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
d974f55068 Update @storybook/addon-storysource from 7.3.2 to 8.1.8
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
896962c7d1 Update @storybook/addon-links from 7.3.2 to 8.1.8
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
ca0d1cf95a Update @storybook/addon-actions from 7.3.2 to 8.1.8
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
22d7722bce Update wp-types from 3.62.4 to 3.65.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
f2dd6bdf2c Update webpack from 5.88.2 to 5.92.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
2eed2a7eb0 Update ts-loader from 9.4.4 to 9.5.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
2b98b79414 Update sass from 1.66.1 to 1.77.5
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
846f2d042e Update react-select from 5.7.4 to 5.8.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
90407a1791 Update react-dom from 18.2.0 to 18.3.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
8e14bceb88 Update react from 18.2.0 to 18.3.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
f15b0bc3a2 Update moment from 2.29.4 to 2.30.1
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
5c25f2c0b8 Update mocha from 10.2.0 to 10.4.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00
Rostislav Wolny
2326197214 Update eslint-plugin-check-file from 2.6.2 to 2.8.0
[MAILPOET-6008]
2024-06-19 12:12:59 +02:00