Rodrigo Primo
5094176ce9
Replace NewsletterLink with NewsletterLinkEntity in the class WorkerTest
...
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
75da3dca45
Replace NewsletterLink with NewsletterLinkEntity in the class TrackTest
...
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
d1b13dbd70
Replace NewsletterLink with NewsletterLinkEntity in the class NewsletterTest
...
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
b5ac7dd507
Replace NewsletterLink with NewsletterLinkEntity in the class SendingQueueTest
...
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
511556549b
Replace NewsletterLink with NewsletterLinkEntity in the class WooCommercePastRevenues
...
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
1501c4e54d
Replace NewsletterLink with NewsletterLinkEntity in the class Tasks\Links
...
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
0c8a8d8caa
Replace NewsletterLink with NewsletterLinkEntity in the class LinksTest
...
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
d9296d86fd
Replace NewsletterLink with NewsletterLinkEntity in the class Links
...
It was also necessary to update two NewsletterTest tests, as after the
change to Links::save(), having a queue ID set became mandatory (before
it was not and one was not set properly in the mock SendingQueue object).
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
c870c416ad
Replace NewsletterLink with NewsletterLinkEntity in the class LinksTest
...
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
143709b600
Replace NewsletterLink with NewsletterLinkEntity in the class Populator
...
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
612eb1073d
Move NewstetterLink properties to NewsletterLinkEntity
...
Doing this as part of the task to deprecated old Paris models
(NewsletterLink) and use Doctrine entities instead
(NewslleterLinkEntity).
[MAILPOET-3816]
2021-11-15 13:03:47 +01:00
Rodrigo Primo
34ef9fcbbf
Make sure info about versions is included for cached events
...
This commit modifies trackCachedEvents() to call track() instead of window.mixpanel.track().
This is needed to make sure that we include information about the free
and premium versions (which is done inside track()) for cached events
(events that were added before mixpanel loaded).
[MAILPOET-3885]
2021-11-15 11:20:41 +01:00
Rodrigo Primo
b4b1546a54
Remove MailPoet premium version from individual calls to trackEvent()
...
This commit removes the property 'MailPoet Premium version' from all the
calls to MailPoet.trackEvent(). It is not necessary to pass this
property anymore, as since 0a10300625
,
this property is included automatically whenever MailPoet send data to
Mixpanel.
[MAILPOET-3885]
2021-11-15 11:20:41 +01:00
Rodrigo Primo
39df0090ae
Remove MailPoet free version from individual calls to trackEvent()
...
This commit removes the property 'MailPoet Free version' from all the
calls to MailPoet.trackEvent(). It is not necessary to pass this
property anymore, as since 0a10300625
,
this property is included automatically whenever MailPoet send data to
Mixpanel.
[MAILPOET-3885]
2021-11-15 11:20:41 +01:00
Rodrigo Primo
5b4f3a8882
Remove unused import to get rid of eslint warning
...
This change was needed to create a subsequent commit that makes
modifications to this file. Without it, eslint would report an error
when trying to commit changes to actions.ts.
[MAILPOET-3885]
2021-11-15 11:20:41 +01:00
Rodrigo Primo
63c27830a5
Always include free and premium versions in data sent to Mixpanel
...
[MAILPOET-3885]
2021-11-15 11:20:41 +01:00
Rostislav Wolny
99e5efb49f
Update versions in templates migration
...
[MAILPOET-2686]
2021-11-15 10:28:01 +01:00
Ján Mikláš
7bcfc8917e
Update Black Friday banner
...
[MAILPOET-3933]
2021-11-15 10:24:21 +01:00
Pavel Dohnal
5890fb3510
Use the latest updated queue
...
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
Pavel Dohnal
09719ca450
Use a better function for instance test
...
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
Pavel Dohnal
9229ed77d8
Refactor to doctrine
...
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
Pavel Dohnal
ee00f03ed3
Refactor pause/resume to doctrine
...
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
Pavel Dohnal
f5614ed2bd
Refactor test to doctrine
...
[MAILPOET-3876]
2021-11-10 12:49:48 +01:00
Pavel Dohnal
5da71f7a28
Render form Id in exports in frontend
...
[MAILPOET-3872]
2021-11-10 12:09:07 +01:00
Pavel Dohnal
c6ea0b3ff0
Hide other settings until form is saved
...
[MAILPOET-3872]
2021-11-10 12:09:07 +01:00
Pavel Dohnal
bdd2e4d2ae
Make sure the form id is always number
...
[MAILPOET-3872]
2021-11-10 12:09:07 +01:00
Pavel Dohnal
652fa9ce80
Add a check if translations are ready
...
[MAILPOET-3807]
2021-11-10 09:43:22 +01:00
Pavel Dohnal
eda7a74f25
Remove the http client from constructor
...
[MAILPOET-3807]
2021-11-10 09:43:22 +01:00
Oluwaseun Olorunsola
274abc09fc
Fixed failing test and default select uncheck not saving
...
[MAILPOET-3894]
2021-11-10 09:42:15 +01:00
oluwaseun Olorunsola
bdb262fca4
Fix custom select default value cannot be changed on Manage subscription page
...
[MAILPOET-3894]
2021-11-10 09:42:15 +01:00
Pavel Dohnal
d14ab2db00
Add a hook to change recaptcha size
...
[MAILPOET-3279]
2021-11-08 15:42:28 +01:00
Pavel Dohnal
7c005cd1b8
Move styles to scss file
...
Co-authored-by: Oluwaseun Olorunsola <seun.olorunsola@automattic.com >
[MAILPOET-3279]
2021-11-08 15:42:28 +01:00
Rostislav Wolny
3ecef7e4fc
Update version check for newsletter thumbnails data migration
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
b851f282f5
Save URL of thumbnail after saving original before compression
...
This change was done in order to prevent cron being stuck on
the image thumbnails job because a huge image may cause cause
we exceed memory limits
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
fbbde3ec95
Prevent generating large newsletter screenshots on retina screens
...
This setting forces the tool for generating newsletter screenshots to use same resolution on retina/non retina screens.
Screenshots taken on retina screens have a huge size because of the resolution.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
6971161535
Update newsletter template format for saving/exporting in editor
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
dd0a19a314
Add BC for importing older exported templates
...
We allow exporting templates as JSON and templates exported from the older plugin versions use thumbnail key for storing the image data.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
5134713c2d
Optimize memory usage for batch processing of template images
...
NewsletterTemplateEntity carries base64 data of image. This commit changes how we load templates entities when we process thumbnail images so that there is only one template in memory.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
ab23b06ff8
Use random hash in template image filename
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
0113402bce
Schedule template images check/regeneration within activation
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
b10bb31321
Add cron job for generating/re-generating template thumbnail files
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
58bcca67ed
Allow saving only base64 encoded jpeg
...
The tool that we use on the frontend generates jpegs. This check adds a protection against saving different type of data.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
6cfcf4b5b5
Add image compression when saving the newsletter template image
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
aed122f4a2
Update domain of the thumbnail in case the site domain changed
...
This handle cases when admin changes the site URL.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
797f1d76ae
Update templates API to save template images as files
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
7fc55cf41c
Fix namespace in NewsletterTemplatesRepository test
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
2bb74c6302
Add service for saving templates base64 data to image files
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
78aadfc01b
Do not render thumbnail image if thumbnail is not available
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
b51f7b2d0e
Save new templates image data to the new columns
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
f5e4bab40b
Migrate base64 template images data to new column
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00