Commit Graph

22212 Commits

Author SHA1 Message Date
Jan Jakes
7ff763c2d6 Add domain status badge
[MAILPOET-6037]
2024-06-17 13:14:40 +02:00
Jan Jakes
94b7fa9d9f Add domain error banner
[MAILPOET-6037]
2024-06-17 13:14:40 +02:00
Jan Jakes
e5d6e480a2 Style error message and diffs
[MAILPOET-6037]
2024-06-17 13:14:40 +02:00
Jan Jakes
cb35777716 Use @wordpress/components button and tooltip instead of custom ones
[MAILPOET-6037]
2024-06-17 13:14:40 +02:00
Jan Jakes
375c2515c1 Use @wordpress/components button and spinner instead of custom ones
[MAILPOET-6037]
2024-06-17 13:14:40 +02:00
Jan Jakes
0ce6826ab6 Use @wordpress/components modal instead of a custom one
[MAILPOET-6037]
2024-06-17 13:14:40 +02:00
Jan Jakes
c0a819f3bd Add steps to manage sender domain view, update texts and visuals
[MAILPOET-6037]
2024-06-17 13:14:40 +02:00
Jan Jakes
f7172e9186 Remove status column
[MAILPOET-6037]
2024-06-17 13:14:40 +02:00
Jan Jakes
0c22654c90 Display detailed DNS issues in domain authentication
[MAILPOET-6037]
2024-06-17 13:14:40 +02:00
 Ján Mikláš
e1b681043b Fix calculating time zone difference and add comments with explanations
[MAILPOET-5495]
2024-06-17 12:51:16 +02:00
 Ján Mikláš
64417c7bc8 Expose server_timezone_in_minutes on all MailPoet pages, not just Emails
[MAILPOET-5495]
2024-06-17 12:51:16 +02:00
 Ján Mikláš
f34e70f601 Adjust newsletter sending time with timezone difference between server and client on emails listing page
[MAILPOET-5495]
2024-06-17 12:51:16 +02:00
 Ján Mikláš
6e1462d4f4 Create function to adjust for timezone difference between server and the client
[MAILPOET-5495]
2024-06-17 12:51:16 +02:00
 Ján Mikláš
da190c5d06 Calculate server timezone offset in minutes
[MAILPOET-5495]
2024-06-17 12:51:16 +02:00
Jan Lysý
abbc4417ed Revert removing doctrine fix for plugin repository
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
e998e1f28f Add a comment why we need to remove the colon character
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
fb7ccbd8b9 Add missing handling database server timeout
Because we updated form Doctrine DBAL 2 to DBAL 3 we need to use a different handling for database server timeouts.
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
674b9cbcb2 Update composer package doctrine/orm
The used version is limited by the doctrine/lexer used by symfony/validator
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
26a98f1000 Update composer package doctrine/dbal
We cannot update to the latest version of the dbal 3 because there is a another package conflict.
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
487f1490b0 Update composer package doctrine/orm
The used version is limited by the package dependencies which can cause incompatibility on WP.org SVN.
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
90a4f8e591 Update composer package doctrine/common
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
d992ffc0e4 Update composer package doctrine/annotations
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
635e382cea Update composer packages symfony/validator and symfony/dependency-injection
Integration tests were failing because services were not public, and DI Container was getting them in tests.
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
9a40f08e66 Update composer package pelago/emogrifier
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
211ee1a7ec Update composer package twig/twig
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
3dbb646c20 Update composer package sabberworm/php-css-parser
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
75a604c79a Update composer package nesbot/carbon
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
ecb32a35c4 Update composer package monolog/monolog
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
ea909f8961 Update composer package gregwar/captcha
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
918758490d Update cerdic/css-tidy composer package
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Jan Lysý
6d218bd1ea Increase required PHP version in prefixer folder
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Rostislav Wolny
822a0d97f8 Configure spacing units in form editor properly
Without this configuration, the block editor uses a fallback value
which is always a new array and causes a shallow check to mark it as a new value
and was causing
"The 'useSelect' hook returns different values when called with the same state and parameters"
warning and rerenders of the blocks panel.
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
32bdb8cec8 Pass ref to the inserter library
The ref is needed to prevent an error triggered when inserting a block
from the inserter sidebar.
The error was not causing a visible issues but was logged in console and causing acceptance
test to fail.
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
c34bf297c6 Fix email editor snackbar notices
The notices property on the interface skeleton doesn't work anymore.
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
2a3ea5e4f4 Hide form editor preview button on mobile
Form preview doesn't work properly on mobile and the button takes
There is too much space in the header.
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
a7f66dcde6 Add ListView sidebar
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
4f84443a47 Fix drag and drop for options for custom select and radio options
This regression was introduced long ago when we switched to react 18.
More details here
https://medium.com/@wbern/getting-react-18s-strict-mode-to-work-with-react-beautiful-dnd-47bc909348e4
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
e8e5370c7e Replace deprecated useSetting hook usage
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
ef4eff86af Fix font size settings in the email editor
The size picker reads from a different settings property
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
6d509b7bc6 Fix saving fresh RichText value in the form editor
This commit addresses two issues:
1) Newly added paragraph and heading blocks have instance RichTextData
instead of a plain string as a content attribute. To address that I added .toString().
2) I experienced that blocks passed via onChange or onInput callbacks might not contain
the latest RichTextData for headings and paragraphs (for example last couple of letters was missing).
This was causing an issue when the user saved immediately after finishing editing (was caught by a test).
I fixed that by using the blocks directly from the block editor store for saving.
At the same time, I removed the onInput callback. The reasoning here is that currently, we use the blocks in our store
as a backup state, which is used to restore accidentally deleted required blocks.
So triggering the reducer and validation for both callbacks was a bit overkill.

[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
b69e508870 Group selects and useMemo for config in main form editor component
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
679039692e Enforce the big appender all the time and fix unselecting blocks
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
2a8362f4c2 Use Tabs component in coupon block settings
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
d1a4d80459 Fix the size and scrolling of the inserter sidebar in the form editor
[[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
99d726e378 Pnpm dedupe
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
f22976bf32 Update @wordpress/scripts and downgrade dependency-extraction plugin
We can't update to latest @wordpress/dependency-extraction-webpack-plugin
and latest @wordpress/scripts (at the time of committing 28.0.0) because
a BC issue is causing it doesn't work for WP lower than 6.6.

See https://github.com/WordPress/gutenberg/issues/62202#issuecomment-2149165189

[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
c2d782506b Update wordpress/scripts
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
dedd9d52c2 Group multiple useSelect to one in the dynamic segment from
This is just a tiny optimization I did when debugging the acceptance test, and I decided to keep it.
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
bd1cf97085 Hide tabs in inserter panel in form editor
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00
Rostislav Wolny
ac1cd97819 Remove the commented validate-multiple-use hook from form editor
The code was commented because it was breaking the build after dependencies update.
The functionality is now directly included in the block editor
so we can safely remove the code.
See https://github.com/WordPress/gutenberg/pull/62086
[MAILPOET-6054]
2024-06-17 12:06:53 +02:00