Rostislav Wolny
0eb531f675
Fix comment fields test
...
Adding a WpPostEntity caused a side effect that the cleanup extension
for integration tests started processing also the post table
and removed the post the test was relying on.
This commit fixes the issue by creating the post for the test within the test.
[MAILPOET-5813]
2024-01-08 11:33:18 -06:00
Rostislav Wolny
4689e3f25b
Update TablePrefixMetadataFactoryTest to work with multisite configuration
...
[MAILPOET-5813]
2024-01-08 11:33:18 -06:00
Rostislav Wolny
9c87ec233f
Add comment about numeric values in BlocksWidthPreprocessor
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
b2c17fcdf4
Fix formatting and add return type hints to buttons related tests
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
6368496de1
Render font size on button instead of buttons wrapper
...
Font size on the wrapper was causing whitespace below the buttons block.
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
7cbc130893
Pass default font-size in email attrs in TypographyPreprocessor
...
It is convenient to always know font-size in nested blocks so that we don't
have to read it from the settings controller.
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
0e10e6ed24
Use isset instead ?? operator in button renderer
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
9522a55460
Apply font color from the preprocessor in the button block
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
327a23ca81
Improve typography preprocessor to distribute font color from theme.json
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
9b05e46690
Use theme.json defined background in renderer
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
ae170dcd05
Use theme.json defined base colors in editor
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
280ad2e159
Add base text and background color to theme.json
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
16da082c42
Add schema to email editor theme.json
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
70273c626d
Add Button renderer test
...
This commit adds a button renderer test and fixes a couple of issues
found when working on the test
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
8054088852
Unify styles processing in button renderer with other blocks
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
7329826d39
Skip rendering of empty buttons
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
becb5243d5
Remove witdh:100% from columns wrapper
...
This was causing incorrect width in cases when $layoutPaddingLeft
and $layoutPaddingRight were set. Box-sizing doesn't have proper
support in clients, so I tried to fix it by removing 100% of the width.
According to tests in AcidEmail, this shouldn't break anything.
This was introduced when we added full-width alignment.
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
c5ad2405aa
Add Flex Renderer test
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
820af6454b
Extract flex layout rendering functionality to an extra class
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
486f497290
Apply text-decoration in the button renderer from preprocessor
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
b626252b39
Add support for text decoration to typography preprocessor
2024-01-08 09:21:16 +01:00
Rostislav Wolny
94ede00d8b
Override default button border-radius
...
The default button radius is usually defined in theme.json.
The default from the core is 9999px, which is not convenient for email
renderer.
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
6fcb706750
Split button and buttons hooks into two files
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
9d35863fd0
Render buttons with borders with the correct width
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
9806225f87
Add width and height to the image, select editor modal
...
This fixes the issue that the modal resizes after the image is loaded.
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
1b0e256fb8
Add block toolbar controls for flex email layout
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
2032370f03
Add default core editor styles
...
We accidentally removed them when adding layout styles.
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
d5250cf8b8
Disallow button block being inserted directly to a column
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
499db0034c
Remove forgotten bdumps from image block
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
a359c1e392
Improve font styles rendering in button
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
bfa7b509cc
Add buttons block rendering
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
4dd273b429
Add reduced flex layout for buttons block
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
9cf624aca0
Remove unnecessary eslint ignore from image and column hooks
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
ca163b77f5
Disable styles selection for button block
...
As for now, we can't support preset styles for buttons as they
don't update block attributes we read in renderer
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
195756c0c7
Add renderer for core/button block
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
f907f574ea
Fix block width preprocessor for blocks with percentage width
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
6807189df3
Enable border-related settings in the email editor
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
3a74c1c4a0
Enable blocks and register dummy button/buttons renderers
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
dec3020cd2
Disable send button when saved content is empty
...
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
631b75363b
Improve isEmpty selector to check also campaign name
...
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
90b7a16a9b
Refactor Send button to an extra component
...
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
267e3c550e
Add campaign name to the sending page
...
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
d54847ce83
Refactor construction of NewsletterEntity when creating an email in the new editor
...
When we create a new email in the new editor we ensure there is
also an associated NewsletterEntity.
This commit improves this functionality by replacing custom code with
NewsletterSaveController, which ensures that the sender name and address are set.
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
966014d71d
Improve name of a getter for campaign name or subject on NewsletterEntity
...
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
159c3bf139
Move campaign name title to TextControl label
...
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
e05264cadd
Increase width of the campaign name dropdown
...
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
e37f42ac58
Rename the component for setting the campaign name
...
Let's go with the specific name. We can come up with a more abstract name
as we add more settings to the component.
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
4734aafef5
Mark WpPostEntity as read-only
...
Read-only was added to prevent using the entity for modifying post
data.
We want to allow modifying posts only via WP functions so that we don't skip any hooks etc.
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
2ea0ea4c3b
Extend the editor acceptance test by checking campaign name functionality
...
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
598db897d6
Display campaign name and subject on the newsletter stats page
...
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00