Commit Graph

19283 Commits

Author SHA1 Message Date
Rostislav Wolny
ca8ff6fa49 Add loading animation to the next button
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
faf8ab6def Refactor Next button in email editor into a component
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
5dd0fb71ae Introduce core directory in the email editor assets
The directory will be used for components and other JS assets that are meant for
the code that is intended to be part of possible future email editor package
that could be used in different projects.
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
b88ce3fb1d Save email draft on click to next
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
3f166ac3a4 Refactor assets cleanup to an extra class
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
cb4c904cda Temporarily disable patterns
We will reintroduce block patterns post MVP.
We may want to filter or add patterns.
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
2739c53e56 Add hook for modifying editor settings
We will need to disable/change various editor settings.
This will be done in this method or via filter in the integration code.
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
3003e7594f Temporarily skip validation of email created via Gutenberg
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
e260fb71e8 Add cleanup for registered block editor assets
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
4f713ab38a Add modal for selecting email editor for standard newsletter
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
c7bbcb0424 Rename send button to next button
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
fc2bbda9a2 Add dummy email body renderer for new editor
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
ba23b5f224 Refactor email body rendering into a separate class
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
72f2498c32 Update go back to design page link on send page for new editor
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
03cf24de41 Disable email content validation on send page for new editor
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
d845414e4c Open standard emails created in the new editor in the new editor
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
d9cce538a0 Add CSS for hiding publish button and enqueue CSS file for loading
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
3089fdeb30 Update WebPack config for email editor to be based on @wordpress/scripts config
This brings us closer to how Gutenberg packages are build
and we can start writing CSS the same way as they are used in Gutenberg.
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
fea40076e6 Fetch MailPoet email data in editor and use id for redirect to send page
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
fabdf6f4c5 Add EmailApiController that adds MailPoet specific data to post api
When loading an email post in the editor we need to attach MailPoet
specific data like associated newsletter entity id, email type etc.

This is done using register_rest_field function.
So far we only send the associated entity ID but there is also a method `saveEmailData` that will
be used to save MailPoet specific email data.

[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
db7010ab6f Add custom send button next to publish button
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
b0d5083718 Setup JS assets entry point and build for the email editor
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
61d6e41fc7 Duplicate associated post when duplicating newsletter
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
3ff4ba0c86 Delete WP Posts when deleting Newsletter Entities
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
e6e20e3159 Save association to WP post with newsletter
This commit adds a simple implementation of ensuring the mailpoet_email post type
has associated NewsletterEntity.
In the future we will need to add support also for saving additional data for
newsletters (subject, sending settings).
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
7d99556683 Add DB migration and wpPostId to NewsletterEntity
The email body will be stored as a wp_post, but for mailpoet specific attributes
we will use the current DB structure so that we can easy integrate emails edited in the new editor.
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
6be97e665b Restrict allowed blocks to paragraph, heading and columns
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
c7f1ecfb5e Add EmailEditor class with basic registration of CPT for emails
The idea is that there is a core class
Mailpoet\MailPoet\EmailEditor\Core\EmailEditor which will contain common email editor related stuff
that can be used and shared between projects.
Mailpoet\MailPoet\EmailEditor\Integration\EmailEditor which contains MailPoet specific settings and and extra modifications
specific for MailPoet.
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
7f9ef96fa1 Add Gutenberg email editor feature flag
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rodrigo Primo
2b5cf32b12 Use constants for the dynamic segments paths instead of hardcoding them
[MAILPOET-5393]
2023-08-24 15:12:45 +02:00
Rodrigo Primo
f699e243cc Implement initial version of the segment templates page
This is still a work in progress and changes will be implemented in
subsequent commits.

[MAILPOET-5393]
2023-08-24 15:12:45 +02:00
Veljko
91c128e950 Fix flakiness in test SettingsArchivePage
[MAILPOET-5008]
2023-08-24 15:28:46 +03:00
Veljko
3c142e6da9 Fix flakiness in CreateSegmentEmailAbsoluteCount
[MAILPOET-5008]
2023-08-24 15:28:46 +03:00
Veljko
28616727ea Fix flakiness in test
[MAILPOET-5008]
2023-08-24 15:28:46 +03:00
Veljko
16d09162a6 Fix flaky test steps for SubscriberCountShortcode
[MAILPOET-5008]
2023-08-24 15:28:46 +03:00
Veljko
3294b839d8 Update click path and element to wait for be clickable
[MAILPOET-5008]
2023-08-24 15:28:46 +03:00
Veljko
95db4eb8a1 Fixed flaky test WooCheckoutBlocksCest
[MAILPOET-5008]
2023-08-24 15:28:46 +03:00
Jan Jakes
6610e08b25 Use deterministic order in FilterHandlerTest
[MAILPOET-5544]
2023-08-23 14:16:51 -05:00
 Ján Mikláš
b4fd0e4860 Update 600,000 to 700,000 active installs
[MAILPOET-5541]
2023-08-23 12:59:44 +02:00
David Remer
8d1b9cd59d Remove padding from close icon
[MAILPOET-5132]
2023-08-23 12:49:41 +02:00
David Remer
02e97025fe Add box-sizing to mailpoet_form_fixed_bar
[MAILPOET-5259]
2023-08-23 12:49:41 +02:00
Veljko
5538176892 Modify test to click on a link to activate MailPoet 2023-08-23 11:58:47 +02:00
Veljko
dfb4efd9af Change the text to verify in the notice 2023-08-23 11:58:47 +02:00
Veljko
e875ef53b8 Change methods to use wait for text 2023-08-23 11:58:47 +02:00
Veljko
71003a8d70 Add new test to cover bug in the past
[MAILPOET-5020]
2023-08-23 11:58:47 +02:00
Jan Jakes
27a1602645 Release 4.25.0 2023-08-22 12:50:36 +02:00
David Remer
0a4148d2a5 Update SQL query to track also deleted campaigns
[MAILPOET-5486]
2023-08-22 10:19:37 +02:00
David Remer
5649dd22bb Do not delete revenue, but update newsletter_id and click_id
[MAILPEOT-5486]
2023-08-22 10:19:37 +02:00
David Remer
16862dc4b8 Add test to verify deleted campaigns are still tracked
[MAILPOET-5486]
2023-08-22 10:19:37 +02:00
David Remer
34b6bfd644 Test that purchase statistic is not deleted
[MAILPOET-5486]
2023-08-22 10:19:37 +02:00