Commit Graph

20858 Commits

Author SHA1 Message Date
Rodrigo Primo
1d69fcb49f Deprecate NewsletterSegment model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
3312d033ef Deprecate Newsletter model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
cb0b4acd33 Deprecate CustomField model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
1d6a6a7894 Deprecate main Model class as models are not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
4febc024ef Remove integration tests for all the remaining models
The Paris models are not used anymore and will be deprecated in
subsequent commits. Removing the tests for those models.

[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Jan Lysý
aba54c5116 Fix ampersand character rendered by newsletter:post_title shortcode
[MAILPOET-5724]
2024-02-22 10:00:38 +01:00
David Remer
bc56bfd050 Update readme.txt
[MAILPOET-5915]
2024-02-21 08:37:42 +01:00
Pavel Dohnal
188beb896e Release 4.44.0 2024-02-20 12:40:11 +01:00
Rostislav Wolny
814f8ce302 Use large instance for zip build
After the update of Gutenberg packages, builds stared failing with
an exit code 1 without any other information.
Increasing the instance helps. We are not completely sure what's causing
the issue. We suspect memory consumption during the build.
In the past, we had to increase from medium to medium+ after updating the webpack to v5
[MAILPOET-5714]
2024-02-19 14:25:47 +01:00
Brezo Cordero
e11a11a1c5 Bump WooCommerce versions: minimum to 8.5, tested up to 8.6
[MAILPOET-5904]
2024-02-19 12:05:57 +01:00
Rostislav Wolny
95fc8662a6 Fix issue with month switching in date range picker
The issue is related to the underlying react-dates library used
in woocommerce/components in calendar/date-range.js

See https://github.com/woocommerce/woocommerce/blob/trunk/packages/js/components/src/calendar/date-range.js#L45-L104

I was not able to fully understand why it started to happen after the update
but I have a suspicion that it may be related to the change that causes rendering
popups at the end of the body.

The Gutenberg library already moved away from react-dates and I assume
that Woo Components will do that as well.

This commit adds a patch that adds e.stopPropagation() to the place
where the original workaround is trying to prevent losing focus.

[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
0835249258 Dont render an empty tooltip for failed stats in mailpoet:send-email step
This fixes a console warning: "Tooltip should be called with only a single child element."
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
430aef9fd4 Fix deprecation warnings for popovers
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
3bed8cabed Fix icons and spacing issues on the automations stats page
With the previous fix I accidentally applied box-sizing: border-box;
to everything on the page.
This commit fixes it so that the rule is applied only in places
where it was applied before the upgrade.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
93de29b379 Add support for heading and paragraph padding to form renderer
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
7a5241d3d3 Add support for padding for headings and paragraphs in the form editor
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
19506d724b Add gradient support for heading and paragraph to form renderer
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
325b223953 Add support for gradient for heading and paragraph in form editor
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
f629dc9793 Fix apperance of date filter in automation analytics
All popups are not appended at the end of body so we needed to
adjust CSS selectors that were used to modify the component.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
2858a21783 Add spacing sizes presets
This commit addresses an issue that padding control in the email
an editor is rendered without a slider.
This change makes the padding control render the same as in TT4 theme
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
0298f48dae Fix lint issue after rebase
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
74d217ea62 Remove @types/wordpress__components package
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
de7400e474 Use conditional types for fixing button type
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
4882a1c66f Remove unnecessary array spread in webpack config for email editor
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
bbc4a86759 Rename flag for skipping tests in webpack build
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
ef99b96b66 Fix padding in automation editor name edit popup
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
c929f49761 Fix support of WP admin colors schemes for all plugin pages
When checking pages after updating dependencies, I noticed that some buttons have strange colors.
For example, buttons on the "What would you like to create?" page for new newsletters.

I found that this was related to a change in wordpress/components styles.
The original colors were identical to the default WordPress admin color scheme,
so the buttons were ok when an admin used the default scheme, and in case they use a different scheme
the buttons still look like default (blue).
But after the update, all components on MailPoet pages that don't load WP color admin variables
had a strange purple color.

This commit fixes it by including CSS for admin color schemes into mailpoet-plugin.css which is loaded on every MailPoet admin page.

Note the mixin wordpress-admin-schemes() is included in many build styles for other wordpress packages (e.g. wordpress/block-editor)
so admin color schemes worked correctly on some MailPoet pages even before this change.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
7acdbf7fc3 Fix error for Tooltip text using ReactNode
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
8ef77dbe58 Add support for skipping build of JS tests and skip when building zip
This commit addresses issue with insufficient resources on Circle CI
to avoid using larger executor instances.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
ee07cb1208 Disable TsCheckerPlugin for email editor production build
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
31e31e3f30 Remove unnecessary types overrides for Wordpress/components
I believe these are no longer in use because wordpress/components
come with built types.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
d33de5f51c Update acceptance tests
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
0a0a0d404a Update browserify-sign dependency
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
e74bd44319 Update wordpress/* dev dependencies also to wp-6.4
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
795279b637 Opt-in to no margin for FontSizePicker
The bottom margin will be deprecated. With __nextHasNoMarginBottom
switched to the future styles without the margin.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
d1a88b902f Remove unnecessary wrapper for toggle sidebar panel in form editor
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
aa74dfc0e4 Fix eslint issues
The issues were related to a change in Gutenberg where ActionCreators are not promisified.
See https://github.com/WordPress/gutenberg/pull/52530
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
83f221b80b Fix TS issues with props in automation TemplateDetail component
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
adbbab6b61 Fix incorrect indentation of the admin panel in automations editor
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
ad318563df Fix document actions appearance in automations editor
The dropdown component used for setting the automation name is based
on the document actions component from edit-site package. After the update,
the appearance changed significantly, and it was broken.
This commit adds CSS to restore the original look as before the update.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
8431ec33e1 Fix the rest of TS errors in automations codebase
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
cb7ae2a442 Fix value in Dropdown focusOnMount prop
The currently supported values are 'firstElement' | boolean
Based on the JS doc and my testing, we need to use true
to hide the popup on click elsewhere or by ESC.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
b9475c43b8 Update the type of the button with extended props used in automation
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
ca22a7f37b Fix buttons prop types issues in automation
[MAILPOPET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
c143da4ccf Fix error JSX element type ConfirmDialog does not have any construct or call signatures
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
daf6618941 Remove unnecessary fix for missing Popover props
The new type has the props.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
99aaec7f98 Remove passing setIsBusy to dropdown control in OptionButton
Overriding onClick: (setIsBusy?: Dispatch<SetStateAction<boolean>>) => void;
was causing TS errors when passing controls with the type ControlWithSetIsBusy to DropdownMenu.

The OptionButton that uses isBusy logic is used only in the Hero section at automation
Homepage. The setIsBusy function that was passed to control's onClick was not used.

In all other cases where we were passing controls to DrowdownMenu, we didn't set any isBusy state.
So I think it is safe to remove it.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
5529816a30 Workaround TS error about missing variant prop on MenuItem component
[MAILOPET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
1b4bf9f2dd Make useDispatch hook type in settings store compatible with wp/data
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
0c9b105cd0 Fix ToolbarItem component typescript errors
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00