Commit Graph

21439 Commits

Author SHA1 Message Date
Rodrigo Primo
33769e703c Replace StatisticsNewsletters model with Doctrine in SendingQueue
[MAILPOET-5737]
2024-01-17 22:32:37 +05:00
Rodrigo Primo
4fe642916e Replace Newsletter model with Doctrine in SendingQueue
[MAILPOET-5737]
2024-01-17 22:32:37 +05:00
Rodrigo Primo
d8973fe925 Add methods to set senderName, replyToName and replyToAddress
This commit expands the newsletter factory class and adds three new
methods.

[MAILPOET-5737]
2024-01-17 22:32:37 +05:00
Rodrigo Primo
83826b3f65 Replace Subscriber model with Doctrine in SendingQueue and SendingQueueTest
[MAILPOET-5737]
2024-01-17 22:32:37 +05:00
Rodrigo Primo
5ac874c713 Replace Newsletter and NewsletterSegment models with Doctrine
[MAILPOET-5737]
2024-01-17 22:32:37 +05:00
Rodrigo Primo
9725e300f3 Fix bug in testItCanProcessWelcomeNewsletters() test
This test was checking that the status of a welcome email is set to
`sent` after it is processed. Turns out this is not what should happen
and also not what is actually happen. The code only changes the status
of emails of the types standard and notification history:

7d43059f15/mailpoet/lib/Cron/Workers/SendingQueue/Tasks/Newsletter.php (L285-L286)

The test changes the type of the email to welcome
using Paris and never persists it to the database. The code mentioned
above that changes the status of the email uses Doctrine, so it was
still acting as if this was an standard email and not a welcome email.

To fix this problem, I updated the test to check if the status of the
welcome email is `active` and also made sure to persist the change to
the database and refresh the Doctrine entity.

[MAILPOET-5737]
2024-01-17 22:32:37 +05:00
Rodrigo Primo
4f333e3ae8 Replace StatisticsNewsletters model with Doctrine
[MAILPOET-5737]
2024-01-17 22:32:37 +05:00
Rodrigo Primo
a9952cf394 Replace Segment model with Doctrine in SendingQueueTest
[MAILPOET-5737]
2024-01-17 22:32:37 +05:00
Rodrigo Primo
abd19a6e6e Replace SubscriberSegment model with Doctrine in SendingQueueTest
[MAILPOET-5737]
2024-01-17 22:32:37 +05:00
Jan Jakes
fb1feca7de Bump WooCommerce versions: minimum to 8.4, tested up to 8.5
[MAILPOET-5834]
2024-01-17 16:43:51 +01:00
David Remer
b43eac8af3 Release 4.41.3 2024-01-16 20:15:32 +02:00
David Remer
f88a33bc7d Revert "Release 4.41.3"
This reverts commit a50fcc67ba.
2024-01-16 20:15:32 +02:00
Jan Jakes
aa96d72bea Remove double wrap from automation listing page
[MAILPOET-5779]
2024-01-16 18:15:35 +01:00
Jan Jakes
e6f01119d5 Make legacy automatic emails/automations notices permanently dismissable
[MAILPOET-5779]
2024-01-16 18:15:35 +01:00
Jan Jakes
31858eb2a5 Fix automation listing title size
[MAILPOET-5779]
2024-01-16 18:15:35 +01:00
Jan Jakes
ad1c9320e3 Highlight automations menu on legacy automatic email analytics page
[MAILPOET-5779]
2024-01-16 18:15:35 +01:00
Jan Jakes
e0b6cf7b41 Unify responses of newsletter editing API methods with get()
[MAILPOET-5779]
2024-01-16 18:15:35 +01:00
Jan Jakes
a50fcc67ba Release 4.41.3 2024-01-16 18:15:35 +01:00
Jan Lysý
6dba7b3afc Use min function for better readability
[MAILPOET-5788]
2024-01-16 12:22:54 +01:00
Jan Lysý
1030d521c0 Use constant from SettingsController in image renderer
[MAILPOET-5788]
2024-01-16 12:22:54 +01:00
Jan Lysý
932f47b763 Fix image block rendering when image is not set
[MAILPOET-5788]
2024-01-16 12:22:54 +01:00
Jan Lysý
2fc3860512 Fix background color for full-width columns
[MAILPOET-5788]
2024-01-16 12:22:54 +01:00
Jan Lysý
fb2d89cb81 Fix rendering images with higher width than newsletter
[MAILPOET-5788]
2024-01-16 12:22:54 +01:00
Jan Lysý
56c566d189 Update Image block test
[MAILPOET-5788]
2024-01-16 12:22:54 +01:00
Jan Lysý
da16f50d33 Refactor core/image renderer for better compatibility with Outlook
[MAILPOET-5788]
2024-01-16 12:22:54 +01:00
Jan Lysý
79e6cd16e8 Fix centered image alignment when it's nested in column
[MAILPOET-5788]
2024-01-16 12:22:54 +01:00
Jan Jakes
5d006c87e7 Fix duplicate component key on automation listing page
[MAILPOET-5779]
2024-01-16 09:43:57 +05:00
Jan Jakes
f4ac59f685 Add saved/activated notices when redirecting back to automation listing
[MAILPOET-5779]
2024-01-16 09:43:57 +05:00
Jan Jakes
c1f2d48811 Fix and simplify automation listing notices, use @wordpress/notices
[MAILPOET-5779]
2024-01-16 09:43:57 +05:00
Jan Jakes
47ac9dbad5 Fix redirects to email listings after moving legacy automatic emails
[MAILPOET-5779]
2024-01-16 09:43:57 +05:00
Jan Jakes
c1909d2d30 Make legacy automatic emails notice closable
[MAILPOET-5830]
2024-01-16 09:43:57 +05:00
Jan Jakes
d9eeb5f56e Add missing button variant 2024-01-16 09:43:57 +05:00
Brezo Cordero
1162b5aca1 Verify sender Address on newsletter activation
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
Brezo Cordero
f3693f4afd Add function to verify sender Address on activation
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
Brezo Cordero
04c16042cd Apply activation restrictions
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
Brezo Cordero
4a9d57766b Add activation restrictions to window
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
Brezo Cordero
3b3be51324 Add functions to check activation restrictions
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
Brezo Cordero
01a3b3c5ca Add getFullyOrPartiallyVerifiedSenderDomains
This function will replace getVerifiedDomains

[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
Brezo Cordero
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
Pavel Dohnal
11df995d35 Fix Trash button deleting email permanently
[MAILPOET-5811]
2024-01-15 00:30:29 +05:00
David Remer
f21ff46623 Do not schedule a post notification if the old status was publish
[MAILPOET-5822]
2024-01-15 00:17:45 +05:00
Rostislav Wolny
97a1002397 Refactor create newsletter into a function and cache via useCallback
[MAILPOET-5810]
2024-01-14 19:43:26 +05:00
Rostislav Wolny
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
Rostislav Wolny
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
Rostislav Wolny
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
Rostislav Wolny
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
Brezo Cordero
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
Brezo Cordero
0c5abdf8a2 Remove emailAddressDomain from Props
and extract it from emailAddress.

[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
Brezo Cordero
4323723fd4 Remove DmarcPolicyChecker
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
Brezo Cordero
8f7d559400 Remove getDmarcPolicyForDomain
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00