Commit Graph

15684 Commits

Author SHA1 Message Date
John Oleksowicz
17cf92e73a Move string to more appropriate spot
The string for 'tomorrow' is currently only used in newsletters

[MAILPOET-3560]
2022-01-19 16:14:54 +01:00
John Oleksowicz
f7553a4109 Use "today" or "tomorrow" status when applicable
On the Emails listing page, if the newsletter is scheduled to send
either today or tomorrow, the status column will now display "Today" or
"Tomorrow" respectively.

A user may still see the full date if desired by hovering their mouse
over the text, which will show the full date as a tooltip.

[MAILPOET-3560]
2022-01-19 16:14:54 +01:00
Jan Lysý
391e19f692 Improve compatibility BatchIterator with PHP 8.1
[MAILPOET-4053]
2022-01-19 13:14:42 +01:00
Jan Lysý
d68f31f4c1 Replace using backupGlobals from PHPUnit
Because globals backup in PHPUnit 8 is slower due to
the checking if global is serializable. We used
our custom solution inspired by WC.
[MAILPOET-4053]
2022-01-19 13:14:42 +01:00
Jan Lysý
3f07e591c8 Fix integration tests compatibility with PHP 8.1
[MAILPOET-4053]
2022-01-19 13:14:42 +01:00
Jan Lysý
5373c811b2 Add return annotation in BatchIterator
PHPStan reported an error in PHP8.1. When we use
the annotation ReturnTypeWillChange it caused another error
for PHPStan in combination in PHP7.2. The new annotations
are solving those issues.
[MAILPOET-4053]
2022-01-19 13:14:42 +01:00
Jan Lysý
c38a8cef7d Remove usage of deprecated function in unit tests
[MAILPOET-4053]
2022-01-19 13:14:42 +01:00
Jan Lysý
29ea9ca7e3 Add fix for Stub::makeEmptyExcept annotation
[MAILPOET-4053]
2022-01-19 13:14:42 +01:00
Jan Lysý
3c510e9ff5 Update PHPUnit to 8.5.22
[MAILPOET-4053]
2022-01-19 13:14:42 +01:00
Rostislav Wolny
9a78b87907 Allow mark tag in form contents
The new text highlight feature uses the tag so we need to allow it.
[MAILPOET-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
37e7acc5b5 Unify form editor sidebar labels rendering
Due to some CSS changes our custom h3 labels started to look differently.
This commit replaces the h3 labels with label components used internally in @wordpress/components controls.
It also removes ColorIndicator frol out custom ColorSettings component as it is no longer needed due design change of ColorPicker.
[MAILPOET-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
0ad7aadab4 Add css classes for default color set used in the form editor
The new feature "highlight" added to the paragraph and heading allows setting
color and background color. When a user picks from the default color set it inlines
an HTML class attribute. This commit adds color definitions for the default set of
colors that we use in the editor.
[MAILPOET-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
c034968233 Introduce new assertCssProperty method for acceptance tester
When running acceptance tests on a seleniarm image I noticed that Chromium (used in seleniarm)
formats a value in a style attribute in some cases differently than Chrome.
From observations it seems that Chromium doesn't format it but Chrome always adds spaces between property name and value.
This causes that some assertions e.g. stringContains('border-width: 10px;') may pass in Chrome but fail in Chromium.
This commit adds new method assertCssProperty which checks exact value of applied CSS and fixes test EditorTextInputStylesCest.

[MAILPOET-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
8be918d530 Update acceptance test after updating Gutenberg packages
New color selection UI causes that the sidebar scrolls down and the toggle is not clickable.
This commit fixes the issue by clicking the toggle before expanding additional settings.
[MAILPOET-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
b84893ee9b Remove unnecessary CSS rule for form editor max width
[MAILPEOT-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
faf9ea38e3 Remove css fix for block toolbar
The toolbar is now partially sticky so the fix is no longer needed.
[MAILPOET-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
f33d283267 Fix rich text editing for image captions
We rendered correct html in the editor but it was still escaped on front end.
This commit allows rendering some basic html in image captions.
[MAILPOET-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
87d443614d Add support for padding for columns block
It was possible to set padding within a single column. After this update a user can set
padding for columns wrapper.
[MAILPOET-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
dc3db54c5a Fix error coming from color-picker
A sub-dependency react-dates caused that @wordpress/component were using older react version.
[MALPOET-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
96bbced64a Fix mapping colors settings for heading and paragraph blocks
Prefilled attributes.style.color.text even with undefined was causing that
the color selected as slug in textColor attribure was not rendered in the editor.
[MAILPOET-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
827cb04501 Update @emotion packages
[MAILPOET-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
8f2be380f7 Update colors configuration settings
[MAILPOET-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
0328b55169 Fix registering keyboard shortcuts
After refactoring shortcuts from native event to react events, we need to wrap
the editor into <ShortcutProvider>
Related PR https://github.com/WordPress/gutenberg/pull/34539
[MAILPOET-4029]
2022-01-19 12:21:15 +01:00
Rostislav Wolny
8176ff0112 Update production wordpress packages
[MAILPOET-4029]
2022-01-19 12:21:15 +01:00
John Oleksowicz
f46c3c2a76 Replace mailinator with blackhole
Deliverability is not important in any of these tests, so it should be
safer and more reliable to use blackhole@mailpoet.com instead of the old
 mailinator address, which was used before the blackhole@mailpoet.com
 address existed.

[MAILPOET-4064]
2022-01-19 08:21:17 +01:00
John Oleksowicz
6d22440936 Use blackhole email address for tests
For these tests it doesn't matter if the messages can actually get
delivered, so we can use the blackhole address instead.

[MAILPOET-4064]
2022-01-19 08:21:17 +01:00
John Oleksowicz
95bce59ae1 Prevent tests from emailing @example.com
Previously this test was using random email addresses in the form of
`bin2hex(random_bytes(7)) . '@example.com'`, the default address
generated by `\MailPoet\Test\DataFactories\Subscriber`. This was causing
the staff@mailpoet.com account to get banned by the MSS due to
`bad-domain-discard`s. Using the mailinator email address instead, like
the other sending tests, should prevent this from occurring.

[MAILPOET-4064]
2022-01-19 08:21:17 +01:00
Jan Jakes
a3ef6f8f0d Ensure lang directory exists when building translations
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
bfb69e7b18 Use local .transifexrc to avoid writing to user's home directory
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
3ae90da1d5 Update all docker compose versions to 3.8
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
f247541f4d Add M1 Mac-compatible containers to docker compose override samples
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
f501aeee68 Move Husky & NVM to the root readme
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
344b577830 Fix heading levels in mailpoet's readme
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
c8716cb24b Update PHP version requirement to 7.2
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
ffd4feaccc Update readme files to correspond to the new repository structure
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
75fb5c0030 Move dev data mounts under dev/data directory
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
df60207a50 Move dev scripts and docker config under dev directory
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
26e0aff46b Make premium plugin clone optional
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
362e619dfd Make .env.samples up-to-date, create .env by copying the samples
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
b5bce353f6 Remove free plugin cloning from initial setup
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
94a61a5738 Merge mailpoet-dev-env into the plugin repository
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
0050a5e68f Run CI builds in a plugin subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00
Jan Jakes
d89cf8e13a Make setup script work from a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00
Jan Jakes
b850a12856 Remove unnecessary .gitignore exclusion
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00
Jan Jakes
fbe13f4701 Add mailpoet-premium and wordpress to .gitignore
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00
Jan Jakes
0ee1787413 Extract universal .gitignore patterns to a global config
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00
Jan Jakes
9405f144be Add .mp_svn to ignored folders for code sniffer
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00
Jan Jakes
2903d5c9cd Run husky checks in the plugin subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00
Rodrigo Primo
d2016701ee Release 3.77.0 2022-01-18 10:36:36 -03:00