Commit Graph

22779 Commits

Author SHA1 Message Date
 Ján Mikláš
048f3cfbc1 Release 5.2.2 2024-09-24 11:54:37 +02:00
Arnaud Berthomier
ce75318f8b Fix linting error that only happens on CI
[MAILPOET-4326]
2024-09-23 16:08:16 +02:00
Arnaud Berthomier
d586694cea Customize hints for form placement
This changes the hint that we display to help customers place a
subscription form on their website. Not all themes support widgets, but
not all themes support FSE either.

[MAILPOET-4326]
2024-09-23 16:08:16 +02:00
Arnaud Berthomier
cd5386825f Expose theme support feature to TS
[MAILPOET-4326]
2024-09-23 16:08:16 +02:00
Arnaud Berthomier
50b48267cc Expose WP theme features in form editor
[MAILPOET-4326]
2024-09-23 16:08:16 +02:00
Arnaud Berthomier
457c16e5f8 Use site-editor to configure widget forms
We used widgets.php previously, but not all themes support widgets.

[MAILPOET-4326]
2024-09-23 16:08:16 +02:00
Jan Jakes
37a9c4e32e Fix List-Unsubscribe URL for non-MSS methods when tracking enabled
Previously, we were using the value of $extraParams['unsubscribe_url'],
which points to a tracking link when tracking is enabled. However, with
1-click unsubscribe, redirects are not allowed.
2024-09-23 16:01:40 +02:00
Jan Lysý
a4e063f8fc Improve annotation in EmailEditor\Container
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
7a793f11f1 Remove redundant methods from email editor IntegrationTester
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
d6b3ebddb8 Add GitHub action for email editor tests
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
8dc9c28fdf Fix namespace in integration tests
This commit also removed the redundant directory EmailEditor from integration tests directory.
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
99a6541ffb Fix namespace in unit tests
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
246a10f058 Copy Validator to email-editor package
Because the email-editor package should be independent. We copy Validator to the package, at least for now.
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
b2e8a9c82b Remove usage of constant from NewsletterEntity
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
45a8233a1e Copy CdnAssetUrl to email-editor package
For independence of the email-editor package, I copied the class to the package.
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
4424a33624 Add Container class
This class is used as DI Container for easier injecting classes in integration tests.
It can be also reused during a standalone usage.
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
1af3c09422 Bootstrap email-editor integration tests
I tried to minimize the code repetition.
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
d38e6bb1b9 Bootstrap email-editor unit tests
I also replaced using verify function by asserts, which will be removed in the higher version of phpunit.
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
98712db36d Add composer files for email-editor package
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
d0c1ad4aba Move email editor integration tests
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
0860f7c45f Move email editor unit tests
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
09a8d7445b Use composer env variable for copying local packages
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
9c926fd99f Update composer.json and docker-compose.yml
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Lysý
ea71b6c967 Move EmailEditor PHP files into a packages directory
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Jakes
fe4eeb0049 Fix send email step time-out happening too early
This was an off-by-one error — the first step run is the email scheduling run.

[MAILPOET-6246]
2024-09-23 13:00:48 +02:00
github-actions[bot]
e609adf408 Update used WooCommerce plugin in Circle CI
- latest version: 9.3.2
 - previous version: 9.2.3
2024-09-23 08:53:41 +02:00
 Ján Mikláš
0198eae41a Update WC action when setting cart item to zero
[MAILPOET-6069]
2024-09-23 08:32:06 +02:00
Veljko
a90997ea1f Remove spacing in test and update code 2024-09-18 09:44:13 +02:00
Veljko
8fa109571f Fix php linting 2024-09-18 09:44:13 +02:00
Veljko
ce0937b880 Update tests to add subscriber and stats page newsletter timezone check 2024-09-18 09:44:13 +02:00
Veljko
a085b76b4c Update existing schedule newsletter test to include timezone scenario 2024-09-18 09:44:13 +02:00
Jan Jakes
70b4602e94 Release 5.2.1 2024-09-18 09:34:16 +02:00
Pavel Dohnal
981e64b57f Remove deprecated version from docker-compose file
[MAILPOET-6233]
2024-09-18 07:52:26 +02:00
Pavel Dohnal
1a0fecf2db Rename docker-compose to docker compose
[MAILPOET-6233]
2024-09-18 07:52:26 +02:00
Jan Jakes
0efe8e0204 Set no-cache headers for pulic MailPoet router
This includes open and click tracking, cron daemon, view in browser,
form previews, subscription management, and image proxy for thumbnails.
2024-09-17 17:27:37 +02:00
Jan Jakes
38c6880400 Unify setting no-cache headers, use WP-native nocache_headers() 2024-09-17 17:27:37 +02:00
Rostislav Wolny
e731831d29 Preserve selected Woo email dummy content type on history undo/redo
[MAILPOET-6213]
2024-09-17 14:04:26 +02:00
Rostislav Wolny
71405b9555 Fix reset template functionality to work for multiple reset
The issue was that after the first reset the global template object
became a model and all changes were save also to this object so
subsequent resets didn't work.

This commit fixes it by making sure we clone the original template before resetting.
[MAILPOET-6213]
2024-09-17 14:04:26 +02:00
Rostislav Wolny
30520f08fa Fix typo in the method name in DataInconsistencyRepository
[MAILPOET-6213]
2024-09-17 14:04:26 +02:00
Rostislav Wolny
79f12dfeb4 Add reset template button and reset template functionality
[MAILPOET-6213]
2024-09-17 14:04:26 +02:00
Rostislav Wolny
f46573eb5f Unify property type annotations in Newsletter Editor page controller
[MAILPOET-6213]
2024-09-17 14:04:26 +02:00
Rostislav Wolny
844fa02a06 Make the original Woo Transactional email template available to JS app
[MAILPOET-6213]
2024-09-17 14:04:26 +02:00
github-actions[bot]
b962252c03 Update used WooCommerce Subscriptions plugin in Circle CI
- latest version: 6.7.0
 - previous version: 6.6.2
2024-09-17 10:23:06 +02:00
github-actions[bot]
c50f638463 Update used WooCommerce plugin in Circle CI
- latest version: 9.3.1
 - previous version: 9.2.3
2024-09-17 10:23:06 +02:00
github-actions[bot]
ae642b1974 Update used WordPress images in Circle CI
- latest version: 6.6.2-php8.3
 - previous version: 6.5.5
2024-09-17 10:23:06 +02:00
Jan Jakes
1f92ac551e Use alias that is not a keyword
Together with fixing the MySQL platform detection this is not necessary,
but it's easy to use a safe alias that is not a keyword, in this case.

[MAILPOET-6232]
2024-09-17 09:37:58 +02:00
Jan Jakes
ce526e84e0 Do not set MySQL platform autoamtically, enable auto-detection
This will enable correct detection of MySQL vs MariaDB platform in Doctrine,
as well as they particular versions, such as 5.7 or 8.4, etc.

[MAILPOET-6232]
2024-09-17 09:37:58 +02:00
Jan Jakes
4b633ccdf6 Remove unused MailPoet\Utils\ProgressBar
[MAILPOET-6227]
2024-09-16 16:01:43 -06:00
Rostislav Wolny
9fb48d39b4 pnpm audit --fix
[MAILPOET-6229]
2024-09-16 12:42:25 +02:00
Rostislav Wolny
b6e6e93066 Remove pnpm.overrides from nested package as they are not used
[MAILPOET-6229]
2024-09-16 12:42:25 +02:00