Commit Graph

21439 Commits

Author SHA1 Message Date
Jan Jakes
dfe5a54762 Highlight main MailPoet menu for welcome wizard, landing page, Woo setup, and error page
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
2c9f72a824 Implement menu highlighting for MailPoet pages in PHP
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
48328122ae Make logs and experimental featues submenus of settings
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
e8bcbfe618 Add checks for subpages to menu test
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
43fbdddc13 Add missing submenu for form template selection page
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
034ffc64bd Check for selected menu items, make sure clicks are in the MP menu
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
7d7db66c20 Split page asertions into methods
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
e0bf00fb20 Add automations to menu test, improve test
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
a63801fbc4 Fix menu expanding on subpages
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
alex-mailpoet
f275d5cd94 Clean up unused table name vars
[MAILPOET-5180]
2023-05-22 14:13:05 +02:00
alex-mailpoet
5203eb5268 Don't cache if subscribers count is below minimum value
[MAILPOET-5180]
2023-05-22 14:13:05 +02:00
alex-mailpoet
4f1afa388f Clean up transient cache in tests where necessary
[MAILPOET-5180]
2023-05-22 14:13:05 +02:00
alex-mailpoet
9fc2c0eeb3 Update phpstan ignore files
[MAILPOET-5180]
2023-05-22 14:13:05 +02:00
alex-mailpoet
4cd1667146 Cache homepage subscribers stats
[MAILPOET-5180]
2023-05-22 14:13:05 +02:00
alex-mailpoet
d7fd11387f Use cached subscriber count on homepage
[MAILPOET-5180]
2023-05-22 14:13:05 +02:00
alex-mailpoet
7287645e81 Use cached per-list subscriber counts for admin pages
[MAILPOET-5180]
2023-05-22 14:13:05 +02:00
Brezo Cordero
a154d2581b Fix event tracking and simplify isBundledSubscription
[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Brezo Cordero
867492cfc6 Hide Woo Automated emails for bundles
[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Brezo Cordero
6b7804bd8c Hide WooCommerce Tab for bundles
[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Brezo Cordero
6b40dfabf3 Hide Automations menu for bundles
Using null instead of true so that the pages are available directly.

[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Brezo Cordero
c5bc51fc86 Add function to check if MP subscription is bundled
[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Brezo Cordero
b4b49166f2 Store the subscription type when updating the key
[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Veljko
5ea51812ca Updated 2 tests for searching newsletter and post notification
[MAILPOET-5311]
2023-05-22 09:18:42 +02:00
John Oleksowicz
ec68818c1a Add filter for used payment method
MAILPOET-4993
2023-05-19 11:57:13 +02:00
David Remer
a976006a2c Add method isGuest to payload
[MAILPOET-5290]
2023-05-18 23:14:26 +02:00
David Remer
be47e9da4f Make \WC_Customer nullable in Payload construction
[MAILPOET-5290]
2023-05-18 23:14:26 +02:00
Rodrigo Primo
1a036b8772 Use constants from NewsletterEntity instead of Newsletter model in SchedulerTest
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
fb9cfe24ce Replace ScheduledTask model with ScheduledTaskEntity in SchedulerTest
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
7001b18858 Replace ScheduledTaskSubscribe model with ScheduledTaskSubscriberEntity in SchedulerTest
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
54b135d9c1 Replace NewsletterSegment model with NewsletterSegmentEntity in SchedulerTest
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
c3cb29c195 Replace SendingQueue model with SendingQueueEntity in SchedulerTest
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
51fe832592 Replace Segment model with SegmentEntity in SchedulerTest
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
661690cc10 Replace Subscriber model with SubscriberEntity in SchedulerTest
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
7e49ef3001 Replace SubscriberSegment model with SubscriberSegmentEntity in SchedulerTest
[MAILPOET-4370]
2023-05-18 14:48:02 -03:00
Rodrigo Primo
88e6f64553 Update the PHP 7.3 Docker image
In 9a5960c, I replaced the PHP 7.2 images with PHP 7.3 images for the
CircleCI jobs that use the latest supported version of PHP. I opted to
reuse an image that was created by us back in 2019. It turns out that
this image was missing some dependencies like Node.

This commit updates to a newly created PHP 7.3 image. This should fix
the CircleCI build jobs that were failing.

[MAILPOET-4939]
2023-05-18 16:48:19 +02:00
Rodrigo Primo
9a5960c5c9 Use PHP 7.3 instead of PHP 7.2 in the oldest CircleCI build jobs
[MAILPOET-4939]
2023-05-17 17:35:41 +03:00
Rodrigo Primo
560e388702 Bump min and max PHP versions when running PHPCS
[MAILPOET-4939]
2023-05-17 17:35:41 +03:00
Rodrigo Primo
581eed6b64 Drop support for PHP 7.2
[MAILPOET-4939]
2023-05-17 17:35:41 +03:00
Jan Jakes
355cf5dc05 Update PNPM to version 8.5.1
[MAILPOET-5336]
2023-05-17 14:53:47 +03:00
Rodrigo Primo
f836b03b56 Add return type to the methods moved from ModelValidator
[MAILPOET-4343]
2023-05-17 12:37:22 +02:00
Rodrigo Primo
de18016d7d Replace calls to ModelValidator::validateEmail()
We want to remove/refactor the whole ModelValidator class as part of the
Doctrine refactor.

This commit replaces all the calls to ModelValidator::validateEmail()
with calls to Validator::validatesEmail().

[MAILPOET-4343]
2023-05-17 12:37:22 +02:00
Rodrigo Primo
00d021109c Move ModelValidator::validateNonRoleEmail() to a new Validator class
We want to remove/refactor the whole ModelValidator class as part of the
Doctrine refactor.

This commit moves the method ModelValidator::validateNonRoleEmail() to a
new Validator class as the method is not used by the validator system of
the Paris models. ModelValidator::validateEmail() was also moved as it
is called by ModelValidator::validateNonRoleEmail().

[MAILPOET-4343]
2023-05-17 12:37:22 +02:00
Rodrigo Primo
d760272678 Remove ModelValidator::validateIPAddress()
We want to remove/refactor the whole ModelValidator class as part of the
Doctrine refactor. As a first step, this commit removes the method
ModelValidator::validateIPAddress(). It was unused in a single place and
it was replaced with a direct call to the builtin PHP way to validate an
IP address.

[MAILPOET-4343]
2023-05-17 12:37:22 +02:00
Veljko
8913377500 Finalise the test
[MAILPOET-5308]
2023-05-17 12:37:06 +02:00
Veljko
c859fc314d Include WooCommerce activation in test
[MAILPOET-5308]
2023-05-17 12:37:06 +02:00
Veljko
a95633c390 Include Woo group comment to the test
[MAILPOET-5308]
2023-05-17 12:37:06 +02:00
Veljko
98b1b8bc4c Add new test EditorAbandonedCartBlock
[MAILPOET-5308]
2023-05-17 12:37:06 +02:00
Jan Jakes
262a8b9540 Manage WP_Locale in WordPress wrapper
[MAILPOET-5036]
2023-05-17 12:36:05 +02:00
Jan Jakeš
1fb2580a92 Use sprintf for custom field name
[MAILPOET-5036]

Co-authored-by: David Remer <webmaster@websupporter.net>
2023-05-17 12:36:05 +02:00
Jan Jakes
ddfdbb23dc Add automation field for subscriber lists
[MAILPOET-5172]
2023-05-17 12:36:05 +02:00