Commit Graph

22694 Commits

Author SHA1 Message Date
github-actions[bot]
95476418fa Update used WooCommerce Subscriptions plugin in Circle CI
- latest version: 6.6.0
 - previous version: 6.5.0
2024-08-26 09:13:00 +02:00
github-actions[bot]
db354f03c2 Update used Automate Woo plugin in Circle CI
- latest version: 6.0.32
 - previous version: 5.8.5
2024-08-26 09:13:00 +02:00
github-actions[bot]
60c18e9cfa Update used WooCommerce plugin in Circle CI
- latest version: 9.2.2
 - previous version: 9.1.4
2024-08-26 09:13:00 +02:00
 Ján Mikláš
c75bcbd1ab Add Ukrainian community translations. Thanks Sasha
[MAILPOET-6198]
2024-08-26 08:55:28 +02:00
 Ján Mikláš
a91fd0abf1 Replace t() with __() in task scheduler translations
[MAILPOET-6200]
2024-08-25 22:42:20 +02:00
 Ján Mikláš
7068a7e6b1 Rename action scheduler cron option to prevent confusion for HEs
[MAILPOET-6200]
2024-08-25 22:42:20 +02:00
Rostislav Wolny
a94efb5563 Release 5.0.1 2024-08-23 16:32:40 +02:00
Rostislav Wolny
7756827b6e Remove unused parameters in MailPoet.date.toDate
The options were just set in init but there was no effect.
[MAILPOET-6197]
2024-08-23 15:36:00 +02:00
Rostislav Wolny
82c0b186d4 Do not apply offset when manipulating with date in the Date picker
We use DateTime component on the send page.
The DateTime component uses DateText for picking date.
We add site's offset before we pass the date to the DateTime.

The date-text component is nested in the DateTime and was also applying
offset on the date.

The second issue was we needed to convert the value to JS Date.
The MailPoet.Date.toDate expects the value to be in UTC, and we provided an already converted date.

So for offset -07:00
MailPoet.Date.toDate('2023-09-01');
ends up
Thu Aug 31 2023 17:00:00 GMT-0700 (Pacific Daylight Time) and calendar display's incorrect value.

This commit fixes it so that we don't touch offset in the DateText component.
[MAILPOET-6197]
2024-08-23 15:36:00 +02:00
Pavel Dohnal
f960b55acb Make sure the array contains the correct key
[MAILPOET-6184]
2024-08-22 14:33:54 +02:00
Pavel Dohnal
d137b55dd4 Catch errors while performing query
[MAILPOET-6184]
2024-08-22 14:33:54 +02:00
Pavel Dohnal
c039b220a7 Check the tables engine once per day
[MAILPOET-6184]
2024-08-22 14:33:54 +02:00
Pavel Dohnal
e9969b64ae Only display two table names
[MAILPOET-6184]
2024-08-22 14:33:54 +02:00
Pavel Dohnal
12cdba005c Add a warning if a table with incorrect engine detected
[MAILPOET-6184]
2024-08-22 14:33:54 +02:00
Pavel Dohnal
3c9cde6a45 Add an empty test
[MAILPOET-6184]
2024-08-22 14:33:54 +02:00
Pavel Dohnal
64c75fd0ca Create a new class for database notice
[MAILPOET-6184]
2024-08-22 14:33:54 +02:00
alex-mpoet
dd685f3284 Use __() for translations in new tsx file
[MAILPOET-6164]
2024-08-22 14:11:26 +02:00
alex-mpoet
b77cd11c02 Update tests
[MAILPOET-6164]
2024-08-22 14:11:26 +02:00
alex-mpoet
0f4bf52ca2 Hide machine opens in UI when opens are merged
[MAILPOET-6164]
2024-08-22 14:11:26 +02:00
alex-mpoet
8a506e7278 Show merged opens if respective setting is set
[MAILPOET-6164]
2024-08-22 14:11:26 +02:00
alex-mpoet
ee1043fce9 Add human and machine opens setting
[MAILPOET-6164]
2024-08-22 14:11:26 +02:00
Pavel Dohnal
c987733fba Make the form border consistent
In the renderer we only display the border if both
colour and size are set. Before this commit in the
editor we showed the border even if the colour
was transparent. This make it consistent and display
the border in the editor same way as in the renderer

[MAILPOET-6193]
2024-08-22 13:56:54 +02:00
Jan Jakes
912cd7965a Temporarily replace DROP DEFAULT with a CHANGE COLUMN for WP Playground
[MAILPOET-6185]
2024-08-22 13:28:09 +02:00
Jan Jakes
f584a673cb Temporarily skip queries incompatible with SQLite
[MAILPOET-6185]
2024-08-22 13:28:09 +02:00
Jan Jakes
4b69005900 Use subquery in DELETE for SQLite
[MAILPOET-6185]
2024-08-22 13:28:09 +02:00
Jan Jakes
279364cf86 Avoid using information_schema for WP Playground 2024-08-22 13:28:09 +02:00
Jan Jakes
53919dd71b Add helper for detecting SQLite database engine
[MAILPOET-6185]
2024-08-22 13:28:09 +02:00
Jan Jakes
ad46417ee8 Add error handling logic for SQLite
[MAILPOET-6185]
2024-08-22 13:28:09 +02:00
Rostislav Wolny
a492658d48 Fix incorrect PHP version in comments
[MAILPOET-6195]
2024-08-21 19:23:28 +02:00
Rostislav Wolny
74b9d3788f Improve test for rollback to also check the outcome on the MyISAM engine
[MAILPOET-6195]
2024-08-21 19:23:28 +02:00
Jan Lysý
6b3592c4be Change default ordering in Automation analytics with subscribers
[MAILPOET-6174]
2024-08-21 15:15:21 +02:00
Jan Lysý
6b5fb2e92d Make all error messages translatable
[MAILPOET-6174]
2024-08-21 15:15:21 +02:00
Jan Lysý
50a00789b8 Add setting error message when email is missing
[MAILPOET-6174]
2024-08-21 15:15:21 +02:00
Jan Lysý
ecf0e1d2db Update error message in SendEmailAction
[MAILPOET-6174]
2024-08-21 15:15:21 +02:00
Jan Lysý
0761998eba Use typed properties in SendEmailAction
[MAILPOET-6174]
2024-08-21 15:15:21 +02:00
Jan Lysý
54043e5364 Update error messages in automations
[MAILPOET-6174]
2024-08-21 15:15:21 +02:00
David Remer
2b2ee75288 Jump to version 5.0.0 2024-08-21 08:57:04 +03:00
David Remer
38b5932c81 Release 4.59.0 2024-08-21 08:57:04 +03:00
Rostislav Wolny
a81163df71 Keep Typescript at 5.0.2
pnpm dedupe upated Typescript.
The update of Typescript is more complex. We also need to update the eslint
because there is a warning that TS version is not supported and
eslint-config-airbnb-typescript was abandoned so we need to remove it and
do some changes in eslint config for TS

[MAILPOET-6191]
2024-08-20 16:24:12 +02:00
Rostislav Wolny
1116b87eee pnpm dedupe
[MAILPOET-6191]
2024-08-20 16:24:12 +02:00
Rostislav Wolny
192725036d Update axios package
The package is a subdependency of @wordpress/scripts
I tried pnpm update axios but it didn't work.
I removed @wordpress/scripts and installed the same version again
and it updated the axios.
[MAILPOET-6191]
2024-08-20 16:24:12 +02:00
Rostislav Wolny
f31109d07c Update required pnpm manager version
I update pnpm because the required version is quite old and
some devs are using newer version anyways and mixing versions
causes strange changelogs in package-lock.yml

I ran corepack up but I removed the sha from the version
because the previous version didn't have it as well.
[MAILPOET-6191]
2024-08-20 16:24:12 +02:00
Rostislav Wolny
d16e1b69e7 Add timezone info to system report
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Rostislav Wolny
bb7ab59ed5 Improve readability of scheduler code
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Rostislav Wolny
07221d9c68 Get rid of unnecessary parameter in the Scheduler
The fromTimestamp parameter was used only in tests.
This commit replaces the parameter in tests by mocks and removes it.
 [MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Rostislav Wolny
cb96086eb7 Rename methods for manipulating date in scheduling UI
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Rostislav Wolny
6a4d3833c7 Get rid of unnecessary usages of .toISOString
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Rostislav Wolny
54b800763b Replace usages of prefixed date methods with renamed variants
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Rostislav Wolny
8c6136525e Remove unused date.ts methods and rename the prefixed methods
There is no use case for the methods without the translation to site's timezone.
When the input doesn't specify the timezone we treat it as utc.
When the input provides timezone (e.g. '2024-08-13 10:00+02:00' or new Date('2024-08-13 10:00+02:00'))
We respect the timezone of the input and print the result in the site's timezone.

When the site's timezone is set +01:00

'2024-08-13 10:00' prints as 2024-08-13 11:00
'2024-08-13 10:00:+02:00' prints as 2024-08-13 09:00
new Date('2024-08-13 10:00:+02:00') prints as 2024-08-13 09:00
new Date('2024-08-13 10:00:+00:00') prints as 2024-08-13 11:00

[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Rostislav Wolny
9f32c59e49 Use DBAL Driver middleware to handle the correct connection timezone
I looked into using DBAL events for this but found that DBAL events
are deprecated so I went with middleware as they are recommended
as a replacement for the DBAL events.
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00