Commit Graph

18419 Commits

Author SHA1 Message Date
Sam Najian
372306e739 Add missing code back
Some part of code had been removed by mistake for solving
merge conflicts

[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
0c1ff84fe7 Fix issue with newsletter form fields not getting translated
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
55153719e9 Manually bump version to beta.3
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
2adc7fbc5e Add commons.js via wp_enqueue_script
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
a24b510e82 Use @wordpress/i18n for rest of common folder
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
8adcdf76e4 Use @wordpress/i18n for template boxes
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
60e38b9b40 Wait for coupon settings panel to close before proceeding
This should fix the flakiness of EditorCouponCest::addCoupon

[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
441d998bab Manually bump version to beta.1
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
d26083a655 Fix the issue in image block not working with lodash
As per import of @wordpress/i18n, and since it's using lodash
We'll need to reset window._ to underscore where we have a hard
dependency to underscore

[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
b007f5ede2 Fix code formatting issue
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
54f0d414d3 Add missing translatable messages
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
90b5c03e51 Fix wrong import order
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
dd1b162199 Use @wordpress/i18n for coupon block
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
c42288c5ab Add missing translation
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
096e8f7963 Fix regression for newly added translation
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
c9c75c8c6d Add admin.js to all admin pages using AssetController
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
0a11fadb05 Enqueue newletter assest using asset controller
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
1c6d461129 Translate some more common strings using wp/i18n
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
befe68b721 Fix issue causing newsletter tests to fail
Accessing wp from global scope was making the tests fail

[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
c54a414d51 Make sure translations are loaded for newsletter editor
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
67c7535051 Move code around to make registerTranslations accesable
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
9b14add577 Unify wording that was causing tests to fail
Test were sometimes using `Delete permanently` and sometimes
`Delete Permanently` with capital P, causing some to fail

[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
f99bc544cf Use wp/i18n in components that's used for newsletter app
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
c5bcd8927a Use translator from @wordpress/i18n in newsletter app
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
f329306b1a Remove editor translations from tpl and add via wp/i18n
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
005c5196c9 Fix memory issue when building translations
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
ece4977d6a Add newsletter_editor.js using AssetsController
newsletter_editor.js was added via newsletter/editor.html
it's now removed from the template and wpEnqueueScript is
user instead

[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Veljko
cac0c8e93d Exclude the test from scenarios
[MAILPOET-4958
2023-03-20 10:01:57 +01:00
Veljko
44489a1030 Optimize tests and improve existing
[MAILPOET-4958]
2023-03-20 10:01:57 +01:00
Veljko
0a125b8aeb Add new test complex segment
[MAILPOET-4958
2023-03-20 10:01:57 +01:00
Jan Jakes
eb74b55b62 Fix radio control option alignment
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Jan Jakes
5d8672ca27 Fix form editor global styles font size picker
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Jan Jakes
9c74068039 Fix automation name button style
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Jan Jakes
960518fd57 Fix form editor style settings styles after Gutenberg upgrade
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Jan Jakes
a912f3500c Fix form editor block inserter styles after Gutenberg upgrade
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Jan Jakes
b15ad9692c Simplify slot rendering in automations
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Jan Jakes
b20690261f Fix font size picker trying to process numbers as strings
This fixes the "fontSizeValue.startsWith is not a function" error. It seems that the font size picker
now always expects strings, while the values from SETTINGS_DEFAULTS could be numbers,
and we've been using numbers throughout our codebase as well.

This also enables the usage of any font size units, such as em and rem.

This may be related to: https://github.com/WordPress/gutenberg/issues/44857

[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Jan Jakes
551d6730db Remove forgotten workarounds
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Jan Jakes
2e80af9876 Render automation name dropdown centered
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Jan Jakes
4c1164b89b Use relative imports that are resolvable for types in premium
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Jan Jakes
29970af07f Add extensible interface for automation editor store
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Rostislav Wolny
7b0bed4c19 Remove unused OmitFirstArgs and OmitFirstArg type helpers
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Rostislav Wolny
4477932245 Alter export of modules from dynamic segments for premium and extend types
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Rostislav Wolny
d7c5a53091 Fix rest of Typescript issues
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Rostislav Wolny
f5a08dc2f3 Fix unknown properties type issues
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Rostislav Wolny
d61d558eef Fix type issues in dynamic segments
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Jan Jakes
412cb56b02 Fix types for @wordpress/notices
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Jan Jakes
77b6b61937 Add store types for @wordpress packages
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Rostislav Wolny
534e7ee708 Reintroduce store name as identifier in automation editor store
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00
Rostislav Wolny
898a479860 Reintroduce store name as identifier in dynamic segments store
[MAILPOET-5102]
2023-03-15 21:03:06 +01:00