Commit Graph

19873 Commits

Author SHA1 Message Date
c7bbcb0424 Rename send button to next button
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
fc2bbda9a2 Add dummy email body renderer for new editor
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
ba23b5f224 Refactor email body rendering into a separate class
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
72f2498c32 Update go back to design page link on send page for new editor
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
03cf24de41 Disable email content validation on send page for new editor
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
d845414e4c Open standard emails created in the new editor in the new editor
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
d9cce538a0 Add CSS for hiding publish button and enqueue CSS file for loading
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
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
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
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
db7010ab6f Add custom send button next to publish button
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
b0d5083718 Setup JS assets entry point and build for the email editor
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
61d6e41fc7 Duplicate associated post when duplicating newsletter
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
3ff4ba0c86 Delete WP Posts when deleting Newsletter Entities
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
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
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
6be97e665b Restrict allowed blocks to paragraph, heading and columns
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
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
7f9ef96fa1 Add Gutenberg email editor feature flag
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
2b5cf32b12 Use constants for the dynamic segments paths instead of hardcoding them
[MAILPOET-5393]
2023-08-24 15:12:45 +02:00
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
91c128e950 Fix flakiness in test SettingsArchivePage
[MAILPOET-5008]
2023-08-24 15:28:46 +03:00
3c142e6da9 Fix flakiness in CreateSegmentEmailAbsoluteCount
[MAILPOET-5008]
2023-08-24 15:28:46 +03:00
28616727ea Fix flakiness in test
[MAILPOET-5008]
2023-08-24 15:28:46 +03:00
16d09162a6 Fix flaky test steps for SubscriberCountShortcode
[MAILPOET-5008]
2023-08-24 15:28:46 +03:00
3294b839d8 Update click path and element to wait for be clickable
[MAILPOET-5008]
2023-08-24 15:28:46 +03:00
95db4eb8a1 Fixed flaky test WooCheckoutBlocksCest
[MAILPOET-5008]
2023-08-24 15:28:46 +03:00
6610e08b25 Use deterministic order in FilterHandlerTest
[MAILPOET-5544]
2023-08-23 14:16:51 -05:00
b4fd0e4860 Update 600,000 to 700,000 active installs
[MAILPOET-5541]
2023-08-23 12:59:44 +02:00
8d1b9cd59d Remove padding from close icon
[MAILPOET-5132]
2023-08-23 12:49:41 +02:00
02e97025fe Add box-sizing to mailpoet_form_fixed_bar
[MAILPOET-5259]
2023-08-23 12:49:41 +02:00
5538176892 Modify test to click on a link to activate MailPoet 2023-08-23 11:58:47 +02:00
dfb4efd9af Change the text to verify in the notice 2023-08-23 11:58:47 +02:00
e875ef53b8 Change methods to use wait for text 2023-08-23 11:58:47 +02:00
71003a8d70 Add new test to cover bug in the past
[MAILPOET-5020]
2023-08-23 11:58:47 +02:00
27a1602645 Release 4.25.0 2023-08-22 12:50:36 +02:00
0a4148d2a5 Update SQL query to track also deleted campaigns
[MAILPOET-5486]
2023-08-22 10:19:37 +02:00
5649dd22bb Do not delete revenue, but update newsletter_id and click_id
[MAILPEOT-5486]
2023-08-22 10:19:37 +02:00
16862dc4b8 Add test to verify deleted campaigns are still tracked
[MAILPOET-5486]
2023-08-22 10:19:37 +02:00
34b6bfd644 Test that purchase statistic is not deleted
[MAILPOET-5486]
2023-08-22 10:19:37 +02:00
f3d4461e8b Include waitForNavigation in the test
[MAILPOET-5539]
2023-08-18 15:11:53 +02:00
69c91042a8 Fix the failing step in forms-adding test due to navigation
[MAILPOET-5539]
2023-08-18 15:11:53 +02:00
94adc034f9 Update local k6 env to use latest WP
[MAILPOET-5539]
2023-08-18 15:11:53 +02:00
76c299c3d7 Remove global count methods.
In the previous commit, we removed the global count for our output. This commit removes
the logic as the only places where it was used was in recalculating the cache and since
the last commit, we do not use this value anymore

[MAILPOET-4487]
2023-08-18 13:35:13 +02:00
6dd0c844ca Take also list specific status into account when counting subscribers
[MAILPOET-4487]
2023-08-18 13:35:13 +02:00
ec987b133d Categorize (un)subscribed users of a list correctly
To evaluate whether a user is subscribed to a list or unsubscribed you need to take into account
the status of the current subscription and not only the global status. To be unsubscribed you are
either globally or per list unsubscribed. To be subscribed you need to be globally and per list
subscribed

[MAILPOET-4487]
2023-08-18 13:35:13 +02:00
fc27d59817 Add test
[MAILPOET-4487]
2023-08-18 13:35:13 +02:00
1f702d5a7d Remove waiting for navigation from the test
[MAILPOET-5537]
2023-08-17 15:24:23 -05:00
acc7084b65 Ensure shipping method instanceIds are strings
Selected shipping methods were not appearing when after saving and
reloading a segment because the instanceIds were actually coming through
 as integers, while the values are getting saved as strings.

MAILPOET-5496
2023-08-17 13:49:08 +02:00
7a6cc36718 Include timeframe in migration to avoid BC code
MAILPOET-5496
2023-08-17 13:49:08 +02:00