Commit Graph

20858 Commits

Author SHA1 Message Date
d9eeb5f56e Add missing button variant 2024-01-16 09:43:57 +05:00
1162b5aca1 Verify sender Address on newsletter activation
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
f3693f4afd Add function to verify sender Address on activation
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
04c16042cd Apply activation restrictions
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
4a9d57766b Add activation restrictions to window
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
3b3be51324 Add functions to check activation restrictions
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
01a3b3c5ca Add getFullyOrPartiallyVerifiedSenderDomains
This function will replace getVerifiedDomains

[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
aef1d65b6d Change the domain extraction
to have a sequential array so that json_encode keeps it as an array.

[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
11df995d35 Fix Trash button deleting email permanently
[MAILPOET-5811]
2024-01-15 00:30:29 +05:00
f21ff46623 Do not schedule a post notification if the old status was publish
[MAILPOET-5822]
2024-01-15 00:17:45 +05:00
97a1002397 Refactor create newsletter into a function and cache via useCallback
[MAILPOET-5810]
2024-01-14 19:43:26 +05:00
b35e0af691 Remove old code that was handling creating emails for the new editor
The code is no longer needed because the new emails are created via API.
[MAILPOET-5810]
2024-01-14 19:43:26 +05:00
852558c60f Create a new newsletter via API before redirecting to the editor
Before we switched to the custom editor, we had to rely on the 'save_post' hook
to ensure the newsletter entity is correctly created.
The code with hook was rather complex and was causing issues with duplication
of a newsletter so it seems more convenient to create a newsletter via API
similarly as we do in the current editor.
[MAILPOET-5810]
2024-01-14 19:43:26 +05:00
1b6c3c0fe5 Improve WP post duplication when we duplicate an email.
When adding code for the creation of WP Post, I noticed that we don't set
some important values in the WP Post when we duplicate it.
[MAILPOET-5810]
2024-01-14 19:43:26 +05:00
ee9ee7c491 Improve NewsletterSaveController::save to support new editor
The method is used in API for creating a new newsletter.
To be able to use the API for the new editor, we also need to
make sure that a WP Post is created.
For now, we can signal that the email is intended for a new editor
by adding a flag to the initial data.
[MAILPOET-5810]
2024-01-14 19:43:26 +05:00
d5ecfc58e0 Do not display sender notices on Settings and Editor
We already display the inline notices.

[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
0c5abdf8a2 Remove emailAddressDomain from Props
and extract it from emailAddress.

[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
4323723fd4 Remove DmarcPolicyChecker
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
8f7d559400 Remove getDmarcPolicyForDomain
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
5735d21e4d Remove isDomainDmarcRestricted
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
7f6b66cf8f Remove checkSenderEmailDomainDmarcPolicy
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
2d81d61c26 Improve notice text
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
c66a3b6db7 Fix setting state on showSenderDomainError
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
24bcb7633f Only show warnings for existing users until enforcement date
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
45423a8e62 Refactor functions to AuthorizedSenderDomainController
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
d84d97e7ca Refactor SenderDomainNoticeBody
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
ba627e9d2c Add sender domain limits to window
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
8c068c0232 Refactor sender domain limits
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
f03617edcc Fix concatenating input in test
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
2472941159 Do not display sender domain notice if invalid email
To avoid stacking warnings.

[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
cfb3304186 Add isPartiallyVerifiedDomain to SenderField
And show the SenderDomainWarning by default.

[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
a4905d0f61 Add isPartiallyVerifiedDomain to DefaultSender
And show the SenderDomainWarning by default.

[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
dd332fd98b Use SenderDomainInlineNotice
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
ec16bc7af1 Add SenderDomainInlineNotice component
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
5545865a73 Add partially verified domains to Window
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
1a3d836cb0 Add InlineNotice component
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
bc96ad9651 Add check if preview is already sending
[MAILPOET-5764]
2024-01-14 18:51:15 +05:00
082276b6f1 Set focus on modal opening to text input
[MAILPOET-5764]
2024-01-14 18:51:15 +05:00
d5d17cae29 Add keyDown event for submitting preview on pressing enter key
[MAILPOET-5764]
2024-01-14 18:51:15 +05:00
1ab2cfe360 Require positive numbers for days field
MAILPOET-5373
2024-01-14 18:40:17 +05:00
dda7da465f Update # of orders filter for orders with coupon
MAILPOET-5373
2024-01-14 18:40:17 +05:00
09a5a5cbbc Map number of orders with coupon code
MAILPOET-5373
2024-01-14 18:40:17 +05:00
09563b5bc9 Update frontend to include # orders with coupon code filter
MAILPOET-5373
2024-01-14 18:40:17 +05:00
fdec5e819a Fix tag mismatch
[MAILPOET-5827]
2024-01-12 13:29:53 +01:00
9019c81dc1 Add a simpler fix for inverse side entity relationship
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
94d044b5f7 Add a simpler fix for inverse side entity relationship
[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
e96251db7e Fix bug when changing ScheduledTask in_progress field
In 3394568, SendingQueue::stopProgress() was refactored to use Doctrine
but a typo introduced a bug causing this method to set
ScheduledTaskEntity::inProgress to true instead of false:

3394568792 (diff-3a26b2d8faf9cc01efd5aef47b058c088c0de01b8074c3be7cefd9adb77fbaaaR551)

This luckly was caught by the
EditorCouponCest.php:seeNoticeWhenCouponCantGenerateAndResumeSending
acceptance test.

This commit fixes the problem and also adds two integration tests to
protect against similar regressions in the future.

[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
6c176450c0 Remove tests for \MailPoet\Tasks\Sending methods that were removed
Sending::removeSubscribers() and Sending::saveSubscriberError() were
removed in a previous commit but the tests were not.

[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
97cdd9e665 Remove Newsletter model from NewsletterSaveController
The code that was still using the newsletter model was not needed
anymore so it was simply removed.

[MAILPOET-5682]
2024-01-12 13:25:46 +01:00
b2c2be4fb6 Update call Newsletter::preProcessNewsletter()
Newsletter::preProcessNewsletter() was refactored in a previous commit
to use Doctrine instead of Paris. As a result, the signature of this
method was changed, but one call was left using the old signature and
passing a Paris model instead of a Doctrine entity. This commit fixes
this issue.

[MAILPOET-5682]
2024-01-12 13:25:46 +01:00