Commit Graph

13782 Commits

Author SHA1 Message Date
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
Rostislav Wolny
bd222a4c32 Add column for storing template thumbnail data
We will use the current column for saving URL of the image, but we want to keep base64 data so that we are able to re-create the image file. Base64 image is generated on the frontend and we can't regenerate it on the backend.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
wxa
57f4468efc Fix 'Enable auto-updates' link missing when Premium is up-to-date
[MAILPOET-3921]
2021-11-08 11:40:53 +01:00
Rostislav Wolny
4a76827a77 Fix fetching count of segments with multiple filters
We needed to get number of rows which meet the condition.
I couldn't use DQL since it doesn't allow a subquery in FROM
so I rewrote the query using DBAL level query builder.
[MAILPOET-3922]
2021-11-08 11:34:56 +01:00
oluwaseun Olorunsola
7dea96cb90 Restore deleted UnitTester.php file due to lint check failing on Circleci
We discovered that Codeception will regenerate the file during unit testing. Unfortunately, the regenerated file fails lint check which prevents the build from passing on Circleci

We restored the file and left it empty

[MAILPOET-3822]
2021-11-08 11:26:23 +01:00
oluwaseun Olorunsola
1db12e5ce2 Deleted UnitTester.php file due to it not been used
[MAILPOET-3822]
2021-11-08 11:26:23 +01:00
oluwaseun Olorunsola
d5c510cd08 Remove the method \UnitTester::generateSubscribers
[MAILPOET-3822]
2021-11-08 11:26:23 +01:00
Brezo Cordero
9da404477b Improve file path on test
[MAILPOET-3660]
2021-11-08 11:12:10 +01:00
Brezo Cordero
79021fcd19 Check types on test
[MAILPOET-3660]
2021-11-08 11:12:10 +01:00
Brezo Cordero
534b8f085d Do not replace quotes with Unicode in ALC titles
[MAILPOET-3660]
2021-11-08 11:12:10 +01:00
oluwaseun Olorunsola
ba98f9c38f Use margin for Block toolbar hide, remove padding fix
[MAILPOET-3882]
2021-11-08 10:58:15 +01:00
oluwaseun Olorunsola
a8a551bc6c Fix Block toolbar hides under the main top bar in the form editor
MAILPOET-3882
2021-11-08 10:58:15 +01:00
oluwaseun Olorunsola
c057623592 Center the content on import newsletter template page
MAILPOET-3492
2021-11-08 10:52:44 +01:00
Jan Lysý
7ecddae1f5 Improve error message
[MAILPOET-3865]
2021-11-08 10:15:35 +01:00
Pavel Dohnal
b30a8de9ca Fix default confirmation message missing in new forms
[MAILPOET-3853]
2021-11-08 09:58:06 +01:00
wxa
ddad97ccfc Release 3.73.1 2021-11-04 19:28:53 +03:00
Jan Lysý
4d32cf2f5d Add BC compatibility for getters
If a migration to new columns wasn't executed correctly, we want to be sure that getters return the correct value.
[MAILPOET-3910]
2021-11-04 12:03:24 +01:00
Jan Lysý
22288431b7 Fix version for migration data for dynamic filters
[MAILPOET-3910]
2021-11-04 12:03:24 +01:00
wxa
0007891b3e Fix styles after QA review
[MAILPOET-3834]
2021-11-04 10:15:21 +01:00
wxa
91147e257a Fix types
[MAILPOET-3834]
2021-11-04 10:15:21 +01:00
wxa
069b07b1b5 Remove @types/react-select (not needed since v5)
[MAILPOET-3834]
2021-11-04 10:15:21 +01:00
wxa
9e6ecc6a21 Fix styles
[MAILPOET-3834]
2021-11-04 10:15:21 +01:00
wxa
40dfd2db0d Update react-select
[MAILPOET-3834]
2021-11-04 10:15:21 +01:00
wxa
d8bfcb64bb Replace wrong placeholders in translatable strings
[MAILPOET-3863]
2021-11-03 23:11:11 +01:00
wxa
ad261eb02a Release 3.73.0 2021-11-03 19:33:16 +03:00
Jan Lysý
e24877d9b3 Update tinymce
[MAILPOET-3890]
2021-11-03 14:05:30 +01:00
Jan Lysý
b9e927e6de Update papaparse
[MAILPOET-3890]
2021-11-03 14:05:30 +01:00
Jan Lysý
183e3554f2 Update lodash
[MAILPOET-3890]
2021-11-03 14:05:30 +01:00
Jan Lysý
888fbdd289 Update react packages
[MAILPOET-3890]
2021-11-03 14:05:30 +01:00
Jan Lysý
f83d9905cb Update handlebars
[MAILPOET-3890]
2021-11-03 14:05:30 +01:00
Jan Lysý
6feb879ea5 Update date-fns
[MAILPOET-3890]
2021-11-03 14:05:30 +01:00
Jan Lysý
4ef46603e1 Update emotion/react
[MAILPOET-3890]
2021-11-03 14:05:30 +01:00
Jan Lysý
4f03d1557f Update classnames
[MAILPOET-3890]
2021-11-03 14:05:30 +01:00
Jan Lysý
811748ada0 Update babel runtime
[MAILPOET-3890]
2021-11-03 14:05:30 +01:00
Jan Lysý
c4f16f4621 Update codemirror
[MAILPOET-3890]
2021-11-03 14:05:30 +01:00
Jan Lysý
9a9df4a596 Update test dependencies
[MAILPOET-3890]
2021-11-03 14:05:30 +01:00
Jan Lysý
791af8549e Update scss packages
[MAILPOET-3890]
2021-11-03 14:05:30 +01:00