Commit Graph

21108 Commits

Author SHA1 Message Date
John Oleksowicz
314b1f3c27 Change method for detecting empty product pages
The previous method was relying on the idea that product pages would not
 trigger the `the_content` filter since they don't have to render the
 content. Testing revealed that this idea was unreliable.

In one instance WordPress was triggering `the_content` when attempting
to filter the excerpt, even though the excerpt was empty.

This changes the detection method to a much more direct inspection of
the post's content.

MAILPOET-5859
2024-03-08 12:27:06 +01:00
John Oleksowicz
0ab2be782d Show forms on empty product pages
The current logic for form rendering assumes that a single product page
will trigger the filter `the_content`. This is not always true. In cases
where the product has no description, WooCommerce does not render the
description tab at all, which is where that filter usually fires (in my
testing).

This change ensures that we still give these forms a chance to render on
 such pages.

MAILPOET-5859
2024-03-08 12:27:06 +01:00
Jan Jakes
f6d8eb41b4 Sort automation filters alphabetically
[MAILPOET-5683]
2024-03-08 11:30:08 +01:00
Rostislav Wolny
fefc56d5de Move component PremiumModalForStepEdit from common to automations
This was causing common components were dependent on the automation store
and was causing subsequent issues when the original modal was used in the email editor.
[MAILPOET-5932]
2024-03-07 17:04:19 +01:00
Veljko
f7fbe3fc8c Try adding product to checkout directly 2024-03-07 11:13:03 +01:00
Veljko
f2db5c71d0 Add product to cart before test 2024-03-07 11:13:03 +01:00
Veljko
3a87c7d0c8 Try with reordering tests 2024-03-07 11:13:03 +01:00
Veljko
8647abe1e4 Try adding to cart twice time 2024-03-07 11:13:03 +01:00
Veljko
300bedceea Try reordering scenario position in test 2024-03-07 11:13:03 +01:00
Veljko
3db8cfc656 Improve adding product to cart method 2024-03-07 11:13:03 +01:00
Rostislav Wolny
d0827860d2 Add dummy esc_attr function for unit tests
[MAILPOET-5918]
2024-03-05 16:03:49 +01:00
Rostislav Wolny
fc7ecaa0b1 Add missing escaping to Variables postprocessor
[MAILPOET-5918]
2024-03-05 16:03:49 +01:00
Rostislav Wolny
8faaa174bc Add post processor for replacing CSS variables with values
[MAILPOET-5918]
2024-03-05 16:03:49 +01:00
Rostislav Wolny
a7153d70c3 Add getVariablesValuesMap to the theme controller
This commit adds a method that returns map of CSS variables and their values defined based on the theme.json
It is a preparation step for a postprocessor that will use this map to replace variables with values in final HTML.
There are many clients that don't support CSS variables
[MAILPOET-5918]
2024-03-05 16:03:49 +01:00
Rostislav Wolny
c545dc4967 Refactor applying padding in block renderers
Instead of using our own logic for building padding style definition,
we switch to wp_style_engine_get_styles which generates the styles definitions for us.
It also handles value variable formatting to valid CSS (var:preset|spacing|50 to var(--wp--preset--spacing--50)).
[MAILPOET-5918]
2024-03-05 16:03:49 +01:00
David Remer
7548496da0 Release 4.45.0 2024-03-05 13:24:29 +02:00
Brezo Cordero
4f2725064d Update Ubuntu images
[MAILPOET-5931]
2024-03-05 08:54:43 +02:00
Veljko
4dbd50de41 Fix clicking selector to close sidebar
[MAILPOET-5930]
2024-03-04 14:54:10 +02:00
John Oleksowicz
b02097a876 Allow navigation to previous steps
MAILPOET-5216
2024-03-04 12:22:13 +01:00
John Oleksowicz
e960504c5f Replace useSetting with window reference
There seems to be an issue with useSetting. Simply having
`useSetting('welcome_wizard_current_step')` in App causes re-renders on
any state change. The effect was that you could only type one letter in
the input fields before the app would re-render and the field would lose
 focus.

I tried and failed to figure out what was causing all the re-renders, so
 for now I've settled on this workaround, since we only care about the
 initial state of the setting anyway. That being said, this seems like
 something we should investigate as it could be affecting other
 components and causing lots of unnecessary re-renders.

MAILPOET-5216
2024-03-04 12:22:13 +01:00
John Oleksowicz
5f99a11cad Extract navigation helper
MAILPOET-5216
2024-03-04 12:22:13 +01:00
John Oleksowicz
3067b2715d Ensure back button works on MSS step
MAILPOET-5216
2024-03-04 12:22:13 +01:00
John Oleksowicz
8a168228e4 Don't wait for progress save before proceeding
MAILPOET-5216
2024-03-04 12:22:13 +01:00
John Oleksowicz
417a2ba273 Conditional logic for start welcome wizard button
Make the button say "Continue setup" if we can see that the user has
already started.

MAILPOET-5216
2024-03-04 12:22:13 +01:00
John Oleksowicz
720e624340 Clear current step setting after finishing
MAILPOET-5216
2024-03-04 12:22:13 +01:00
John Oleksowicz
202f9e0ed4 Always track current welcome wizard page
MAILPOET-5216
2024-03-04 12:22:13 +01:00
John Oleksowicz
e4e89cd592 Add helper for navigation that saves progress
MAILPOET-5216
2024-03-04 12:22:13 +01:00
John Oleksowicz
812db58954 Add welcome wizard current step setting
MAILPOET-5216
2024-03-04 12:22:13 +01:00
Brezo Cordero
06b6d91456 Allow sending if domain authentication required but not in cache and shop not available
[MAILPOET-5921]
2024-03-04 11:37:40 +01:00
Brezo Cordero
f3c8d16439 Increase transient expiration time
[MAILPOET-5921]
2024-03-04 11:37:40 +01:00
Brezo Cordero
f8b571724d Add test
[MAILPOET-5921]
2024-03-04 11:37:40 +01:00
Brezo Cordero
52a68ee508 Do not reload cache if no data returned
and a small refactor for duplicated code.

[MAILPOET-5921]
2024-03-04 11:37:40 +01:00
Jan Lysý
ceeab00b96 Use colors from theme palette in styles preview
[MAILPOET-5638]
2024-03-01 16:36:52 +01:00
Jan Lysý
698c41b77b Use styles from settings controller in preview
[MAILPOET-5638]
2024-03-01 16:36:52 +01:00
Jan Lysý
db8dac03d2 Prepare styles in store for sidebar
[MAILPOET-5638]
2024-03-01 16:36:52 +01:00
Jan Lysý
46e5576ddc Set width of Navigator buttons to 100%
[MAILPOET-5638]
2024-03-01 16:36:52 +01:00
Jan Lysý
5cc8be4ba9 Use Navigator component for switching screens in Styles sidebar
[MAILPOET-5638]
2024-03-01 16:36:52 +01:00
Jan Lysý
049632d170 Create style preview component
[MAILPOET-5638]
2024-03-01 16:36:52 +01:00
Jan Lysý
454eb87fcc Add styles sidebar component
[MAILPOET-5638]
2024-03-01 16:36:52 +01:00
Jan Lysý
b32922dfc8 Save active tab in email editor store
[MAILPOET-5638]
2024-03-01 16:36:52 +01:00
Pavel Dohnal
a7b67aa23b Ensure the parameter is always int
[MAILPOET-5895]
2024-03-01 14:39:19 +01:00
Jan Lysý
eea5ca0b83 Update integration test for column and columns
After refactoring the styles are composed a bit differently, so we need to update tests.
[MAILPOET-5638]
2024-02-29 11:05:55 +01:00
Jan Lysý
075eaab28a Change image caption align to center
We don't need to set the caption align by image alignment. It should be always center.
[MAILPOET-5821]
2024-02-29 11:05:55 +01:00
Jan Lysý
3a2573bb5b Fix column and columns width when border is set
[MAILPOET-5821]
2024-02-29 11:05:55 +01:00
Jan Lysý
4caa2f0723 Use WP native function for border style preparation
[MAILPOET-5821]
2024-02-29 11:05:55 +01:00
Jan Lysý
a693c6f4ae Fix width for full-width blocks with borders
[MAILPOET-5821]
2024-02-29 11:05:55 +01:00
Jan Lysý
e0056be45e Add component for displaying a warning about possible incompatibility
[MAILPOET-5821]
2024-02-29 11:05:55 +01:00
Jan Lysý
76e3a20c24 Improve border compatibility across email clients
[MAILPOET-5821]
2024-02-29 11:05:55 +01:00
Jan Lysý
f9ed604227 Fix setting image width when it's empty
The min function doesn't work properly with strings. Converted widths to numbers should work better here.
[MAILPOET-5821]
2024-02-29 11:05:55 +01:00
Jan Lysý
2636bc1055 Update BlocksWidthPreprocessor to calculate with borders
[MAILPOET-5821]
2024-02-29 11:05:55 +01:00