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
Rostislav Wolny
4f1ddc3630
Fix TS errors in assets/js/src/common
...
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
4d1cacd89b
Update Button component props type in MailPoet automation integration
...
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
c5236e59fc
Fix SearchControl error in Segments Template Selection
...
The search functionality hasn't been implemented yet. The task is currently in backlog.
The control was added in an initial task but is hidden.
I decided to keep it so that I don't remove the translation and just add a dummy
onChange callback to prevent TS error.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
e24059959e
Remove unnecessary Popover.Slot
...
It is not longer needed see: https://github.com/WordPress/gutenberg/pull/53889
It was causing TS errors
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
349c17ef1d
Fix remaining Typescript warnings in form-editor
...
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
6224f49842
Fix types for SelectControl Options
...
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
8a34588bbe
Use proper types for Color and FontSize
...
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
4d5705243f
Remove custom type definitions that were added in packages
...
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
8069ba320c
Fix types for Notices
...
There is a mismatch between the WPNotice type and the WordPress/notice store
and Notice defined in the components package.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
027e234b64
Remove unused WordPress module declarations
...
These were needed for the types for stores used in the email editor
when it was based on the post editor. We switched to the custom editor
so we can remove those.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
5754f2be68
Update deprecated Button props
...
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
666b0ff9e6
Refactor multiple useSelect calls into one in BasicSettingsPanel
...
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
2d42b7945c
Fix 'useSelect' issue causing multiple renders of basic settings
...
This commit fixes a warning:
"The 'useSelect' hook returns different values when called with the same state and parameters. This can lead to unnecessary rerenders."
The warning was coming from the BasicSettingsPanel component and was caused
by getAllAvailablePages selector, which returned a new array every time.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
37cd1b01f8
Fix types issues in font selection format
...
The new version of @wordpress/rich-text comes with build types,
but the RichTextFormat is missing attribute values.
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
2acd815127
Update @types/wordpress_xxx packages
...
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
dee0823098
Remove @types/wordpress__ for packages that have build-types
...
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Rostislav Wolny
f12be521cc
Update WordPress packages to tag wp-6.4
...
This commit sets all wordpress/* packages we list in package.json
to use tag wp-6.4, which should install the version used in WordPress 6.4
[MAILPOET-5714]
2024-02-19 11:44:33 +01:00
Jan Lysý
1338554c41
Change property name to better fit to new classname
...
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
Jan Lysý
dc96fa2b1c
Add postprocessor for replacing mark tag to span
...
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
Jan Lysý
9b54217049
Rename PreprocessManager class to ProcessManager
...
As we want to add rendering postprocessing, it's better to use a different name for this class.
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
Jan Lysý
9106d38aee
Add text highlighting support for buttons
...
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
Jan Lysý
a671a88956
Remove replacing space in image URL
...
This fix should not be used anymore.
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
Jan Lysý
b6538cd1c6
Set default line-height for the rendered email
...
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
Jan Lysý
7fac0e019f
Remove line-height CSS styles
...
Because the line height setting makes the rendered email not look good sometimes.
For now we decided to remove it.
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
Jan Lysý
b71e68d8da
Add loading format library styles in email editor
...
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
Jan Lysý
901d1a1721
Activate text highlighting in email editor
...
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
Veljko
aeabbb05b2
Update circle config
2024-02-18 09:27:48 +01:00
veljko
305db25376
Update k6 to latest and improve running tests
2024-02-18 09:27:48 +01:00
veljko
19cf611061
Try to fix filling from address
2024-02-18 09:27:48 +01:00
veljko
6fe3d1cd09
Update helper
2024-02-18 09:27:48 +01:00
Veljko
937c885b21
Fix code formatting
2024-02-18 09:27:48 +01:00
Veljko
cf3c221ebd
Add closing tutorial video if prompted
2024-02-18 09:27:48 +01:00
Veljko
ec3ddbb6cf
Include screenshot in the helper
2024-02-18 09:27:48 +01:00
Veljko
577e7c70e2
Add wait for selector visible in helper
2024-02-18 09:27:48 +01:00
Veljko
d6eba050e0
Fix code formatting
2024-02-18 09:27:48 +01:00
Veljko
0c2fabed6c
Update tests again
2024-02-18 09:27:48 +01:00
Veljko
3f95c1f2fb
Update tests
2024-02-18 09:27:48 +01:00
Veljko
42f484742a
Finalize performance tests and update helper
2024-02-18 09:27:48 +01:00
Veljko
cb12c45135
Add new performance test automation welcome email
2024-02-18 09:27:48 +01:00
veljko
e1fbb8b996
Add performance test for custom automation
2024-02-18 09:27:48 +01:00
Veljko
627212f8a9
Save the existing test structure
2024-02-18 09:27:48 +01:00