Commit Graph

20938 Commits

Author SHA1 Message Date
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
Jan Lysý
53a192b3d8 Add support for rendering image border
[MAILPOET-5821]
2024-02-29 11:05:55 +01:00
Jan Lysý
9e8647f046 Add support for rendering column and columns borders
[MAILPOET-5821]
2024-02-29 11:05:55 +01:00
Veljko
73163d103b Improve acceptance test for new email editor 2024-02-29 09:20:42 +01:00
Rostislav Wolny
ea681ea87b Activate TT1 theme for subsite and main site when we run multisite tests
It seems that when we use multisite configuration the integration tests load site from test.local/php7_multisite
but acceptance tests run on test.local
So let's activate correct theme on both
[MAILPOET-5925]
2024-02-28 12:26:56 -06:00
Rostislav Wolny
8629df7684 Remove unnecessary code for activation twentynineteen theme
After we updated the oldest supported WP and PHP versions, we don't need this theme anymore.
When I checked recent builds, I notice we are getting:

Error: The 'twentynineteen' theme could not be found.

So it already works for some time without the theme being activated.
[MAILPOET-5925]
2024-02-28 10:38:10 -06:00
Rostislav Wolny
c39b498e59 Remove test dependency on WooCommerce Blocks
The plugin was integrated into WooCommerce Core and is no longer available for download.
[MAILPOET-5925]
2024-02-28 10:38:10 -06:00
Rostislav Wolny
ea22c8b2e9 Install the desired theme in the test environment also for multisite.
There is an integration test that is intentionally failing in case
we changed the theme we used for the test.
This commit ensures we activate correct theme also for multisite.
[MAILPOET-5741]
2024-02-28 10:38:10 -06:00
Rostislav Wolny
85e4bb2ce8 Remove an unnecessary class from a column wrapper
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
f2dd786d19 Remove unused method from SettingsController
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
6e887287e5 Remove unused variable from columns block renderer
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
5f2b5e4bd4 Add support for the site theme's color palette
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
e5d11f99d4 Cache WP_Theme_JSON instance
This is a slight improvement to avoid building WP_Theme_JSON instance repeatedly.
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
b724ef4ac2 Extract Theme related methods from SettingsController as ThemeController
I want to avoid the SettingsController becoming some kind of a god class
so in this step, I extracted themejson-related stuff to an extra class.

In the future, we should also move methods for manipulating CSS to a helper.
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
aa658782fb Move getElementInnerHTML from button to DomDocumentHelper
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
febc070c0f Use dom helper for extracting classes from block HTML
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
d35e498f36 Add getAttributeValueByTagName to dom helper
I'm adding this method to cover use-cases where we need to extract classes
from a block's HTML.
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
875fde56e9 Add colors from palette support to the button
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
299d51effa Add support for palette colors for column and columns
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
5ad27b6038 Adjust the list block renderer to support inlined colors
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
330b4c5a6c Adjust Paragraph block to work with inlined color palette CSS
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00