Commit Graph

21439 Commits

Author SHA1 Message Date
Brezo Cordero
967de81760 Update upgrade_info with premium status
[MAILPOET-5435]
2023-09-25 03:18:34 -07:00
Brezo Cordero
fc101a9ad2 Use Premium Modal on upgrade banner
[MAILPOET-5435]
2023-09-25 03:18:34 -07:00
Brezo Cordero
1c4e6f45d2 Use Premium modal on key activation
[MAILPOET-5435]
2023-09-25 03:18:34 -07:00
Brezo Cordero
d0e72c8fa8 Ignore exceptions when symlink premium
This is a nice to have and should not block the installation.

[MAILPOET-5435]
2023-09-25 03:18:34 -07:00
Brezo Cordero
2d31cc4bc4 Symlink premium if Dotcom platform
[MAILPOET-5435]
2023-09-25 03:18:34 -07:00
Jan Lysý
688d1ff0aa Add displaying loader in react select
[MAILPOET-5123]
2023-09-25 02:28:51 -07:00
Jan Lysý
abcfdebcf6 Add integration test for Coupon API endpoint
[MAILPOET-5123]
2023-09-25 02:28:51 -07:00
Jan Lysý
5356415b48 Add debouncing to coupon search inputs
[MAILPOET-5123]
2023-09-25 02:28:51 -07:00
Jan Lysý
76ec7e6466 Fix EditorCouponCest after coupon block changes
I added waiting for element because coupons are loaded with Ajax call now.
[MAILPOET-5123]
2023-09-25 02:28:51 -07:00
Jan Lysý
edb2c97286 Refactor used coupon filter to load coupons via API
[MAILPOET-5123]
2023-09-25 02:28:51 -07:00
Jan Lysý
191bd69fac Remove coupons from dynamic segments page
[MAILPOET-5123]
2023-09-25 02:28:51 -07:00
Jan Lysý
26417bab52 Change Coupon API parameter from include_coupon_id to include_coupon_id
[MAILPOET-5123]
2023-09-25 02:28:51 -07:00
Jan Lysý
38fe1cce6a Refactor component for existing coupons to use Ajax call
[MAILPOET-5123]
2023-09-25 02:28:51 -07:00
Jan Lysý
79d506ca34 Create new API endpoint for WC coupons
Because I haven't found an easy way how to use WP or WC API,
I decided to create a MailPoet endpoint for getting coupons that
allows me loading them via Ajax.
[MAILPOET-5123]
2023-09-25 02:28:51 -07:00
Jan Lysý
019b9ec3fa Remove coupons loading from NewsletterEditor
[MAILPOET-5123]
2023-09-25 02:28:51 -07:00
Rodrigo Primo
6a8c47382b Make sure tracking happens before redirecting user to another page
See https://github.com/mailpoet/mailpoet/pull/5156#discussion_r1327025254

[MAILPOET-5400]
2023-09-25 00:21:06 -07:00
Rodrigo Primo
2db171d34b Add Mixpanel tracking when creating a new segment from scratch
[MAILPOET-5400]
2023-09-25 00:21:06 -07:00
Rodrigo Primo
dcb6838627 Add Mixpanel tracking when creating a new segment from a template
[MAILPOET-5400]
2023-09-25 00:21:06 -07:00
Rodrigo Primo
94d9eb0bb8 Add slug to all segment templates
The slugs will be used for tracking.

[MAILPOET-5400]
2023-09-25 00:21:06 -07:00
veljko
52659a6365 Switch back to 3 iterations for nightly 2023-09-22 16:43:21 +02:00
veljko
88f4c2510c Update all tests to include closing browser context 2023-09-22 16:43:21 +02:00
Veljko
22074731ed Refactor all k6 tests and update RoboFile 2023-09-22 16:43:21 +02:00
Veljko
df83158dfb Update k6 to latest version and update test suite 2023-09-22 16:43:21 +02:00
Rostislav Wolny
d20efc5c16 Update acceptance tests after updating PHPUnit
[PREMIUM-191]
2023-09-22 16:20:11 +02:00
Rostislav Wolny
f56b58a5fe Fix warnings and errors in integration tests
[PREMIUM-191]
2023-09-22 16:20:11 +02:00
Rostislav Wolny
8eeab7b5cc Fix deprecated warnings in unit tests after updating PHPUnit
[PREMIUM-191]
2023-09-22 16:20:11 +02:00
Rostislav Wolny
0069499869 Update lucatume/wp-browser and phpunit
[PREMIUM-191]
2023-09-22 16:20:11 +02:00
Rostislav Wolny
398a313d54 Pass styles controller into block renders
When rendering blocks, we need to access global styles settings.
This will be done via the StylesController

[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
46d8cb38a0 Apply layout styles defined in StylesController and also to editor
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
fd96b4afad Add email background and width into StylesController and apply in redering
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
77eab47357 Refactor email styles from constant to service and move to core
I envision the StylesController as the source of information about
styles settings in both the editor and renderer.

We will add email styles settings and these will be accessed in PHP via this service.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
3835a91163 Fix columns rendering after testing in Litmus
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
cb9692bfed Fix PHP warning parsing CSS with new lines
In case there were new lines on the CSS string, the parser threw
a warning on an empty line with \n. The original check $kv === ''
didn't catch "  \n".
Applying trim to a CSS rule should be safe
because whitespace at the end or beginning of a rule is meaningless.

[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
367806a56b Add Renderer Test
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
7233a9cb2b Remove unnecessary service in email renderer
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
824a185197 Make the email editor visual editor area match the height of the email
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
6fe71e2298 Update mail template layout to match MJML and add default content
padding

[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
d594bb4739 Add simple columns rendering
Add rendering of columns with fixed width computed by number of columns.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
968ff6754e Add blocks preprocessor
Currently, we need to wrap top-level non-column blocks into a single
column. This is done in the preprocessor.

[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
69a87e8146 Apply editor content styles in the email renderer
Add proof of concept for applying additional CSS in renderer
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
3c7a9f0a48 Strip theme CSS from the editor and add custom basic styles
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
36e83f81ec Temporarily hardcode background color for body and content
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
bd539e386b Add initialization for core blocks renderers
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
f34c479bb6 Add simple renderers for columns, paragraphs, and heading blocks
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
a1869249e0 Add code handling block rendering
The idea is that anyone can register specialized renderers for
blocks.
The render will skip unknown blocks.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
46a481ec24 Add email renderer and template to the renderer engine
In this commit, I copied the code for processing the rendering of emails
from the current renderer.
This will allow us to use different base templates and styles.
Ideally, we should be able to add hooks and reuse the renderer from the engine namespace in
the current renderer.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
b70ad064c7 Refactor initialization of the email editor
This changes how the editor is initialized. The integration initialization class
doesn't get the engine class anymore, but integration is initialized via
mailpoet_email_editor_initialized action triggered from the engine.

This allows multiple integrations to hook into the engine.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
John Oleksowicz
2517023ad0 Fix automation factory method calls
addStep was renamed to withStep but the calls in this helper weren't
updated
2023-09-20 19:03:25 +02:00
Jan Jakes
8eb2e3f43e Rename hook to better correspond to its function
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
Jan Jakes
944b440bdf Rethrow integration log exceptions in debug mode
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00