Commit Graph

20858 Commits

Author SHA1 Message Date
Pavel Dohnal
f5a9e6d582 Add tracking of .com ecommerce wpcom plan
[MAILPOET-5628]
2023-10-09 13:00:43 +02:00
Pavel Dohnal
0e4e5db1f1 Add tracking of .com ecommerce wpcom plan
[MAILPOET-5628]
2023-10-09 13:00:43 +02:00
Pavel Dohnal
ee199e95a8 Add tracking of .com ecommerce trial plan
[MAILPOET-5628]
2023-10-09 13:00:43 +02:00
Pavel Dohnal
e2d1543b47 Add tracking of .com business plan
[MAILPOET-5628]
2023-10-09 13:00:43 +02:00
Pavel Dohnal
9852148e33 Add tracking of .com essential plan
[MAILPOET-5628]
2023-10-09 13:00:43 +02:00
Pavel Dohnal
7143d7afb2 Add tracking of WooCommerce performance plan
[MAILPOET-5628]
2023-10-09 13:00:43 +02:00
Rostislav Wolny
1bc331760e Add also catching of other exceptions when running migrations
[MAILPOET-5627]
2023-10-09 12:24:15 +02:00
Rostislav Wolny
7d96cada42 Catch activation in progress exception when it runs on version check
[MAILPOET-5627]
2023-10-09 12:24:15 +02:00
Rostislav Wolny
ca40766c2f Allow null for WP_Block_Editor_Context in email editor callbacks
There are cases when the second parameter is null.
[MAILPOET-5624]
2023-10-09 11:33:11 +02:00
Rostislav Wolny
af32b36af2 Initialize editor hooks only if the new editor feature is active
[MAILPOET-5624]
2023-10-09 11:33:11 +02:00
David Remer
ee892a667a use kebab case
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
David Remer
a1e59d5f31 Fix bug: Ensure data['tags'] is normalized
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
David Remer
f963332506 Fire mailpoet_subscriber_tag_removed after repository flush
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
David Remer
ea21c43412 Add Icon For Tag Added trigger
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
David Remer
30ca207bc0 Add Icon for Tag Removed Trigger
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
David Remer
c3da0693da Update name and description of triggers
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
David Remer
0818bfb7cf Rename trigger keys
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
David Remer
c93b433b93 Fire mailpoet_subscriber_tag_added hook after flush()
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
David Remer
d835219306 Make keywords translateable and extend list
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
David Remer
ea8051581c Fix automation typo
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
David Remer
7dbb142ea6 Add Tag Removed Trigger
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
David Remer
407082b941 Add Tag Added Trigger
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
David Remer
47fea46dc4 Add tag added and removed actions
[MAILPOET-5515]
2023-10-09 10:06:56 +02:00
David Remer
2931af3547 Add command to create automation triggers 2023-10-09 10:06:56 +02:00
Pavel Dohnal
4cded0d18d Add premium jobs to the release build
[MAILPOET-5558]
2023-10-06 16:58:56 +02:00
dependabot[bot]
1f6597580c Bump postcss from 8.4.28 to 8.4.31
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.28 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.28...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 17:13:05 +02:00
Rostislav Wolny
b2b27c5218 Update composer/* packages
Note: We cant update composer/composer to the newest version
because it is blocked by wp-cli/wp-cli-bundle (composer/composer: ^1.10.23 || ~2.2.17)
[MAILPOET-5633]
2023-10-05 15:48:55 +03:00
Rostislav Wolny
5280391bd9 Update composer.phar in mailpoet/tools
[MAILPOET-5633]
2023-10-05 15:48:55 +03:00
David Remer
27d90943cd Add automation title to Analytics header
[MAILPOET-5616]
2023-10-05 13:48:12 +02:00
Rodrigo Primo
cd58b39906 Fix: stop persisting segment error messages across different pages
In #5145, we started using the same Redux store for all segment pages.
This created an unintended side effect that the error messages displayed
when the user is creating a segment are persisted across the other
different segment pages.

So, for example, if a user tries to create a segment with a name that
alraedy exists and then clicks the back button to go back to the segment
templates or segment listing page, the error message will still be
displayed.

This commit fixes this problem by emptying the error messages before
unloading the page to edit or create segments.

[MAILPOET-5605]
2023-10-05 13:01:58 +02:00
Rostislav Wolny
d84b738cdd Enqueue public.js to be loaded as deferred on WP 6.3+
[MAILPOET-5623]
2023-10-05 10:54:57 +02:00
Rostislav Wolny
c38b91f941 Get rid of inline JS code for public.js
This code was preventing WordPress from rendering the public.js
script as deferred.
The defer attribute can be applied only to scripts
that are loaded via src. WP detected that there was an associated
inline script and removed the defer attribute from the public.js script.

In this commit, I moved the initialization of the error message to public.js and
I pass the value via static object.
[MAILPOET-5623]
2023-10-05 10:54:57 +02:00
Rodrigo Primo
71cb252e8c Fix layout of the email segment in the segment edit page
This change will affect all the segments that use the <TextField>
component.

See https://github.com/mailpoet/mailpoet/pull/5174#issuecomment-1746542729

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
a3f94a2bb5 Fix layout of the last sending date segment in the segment edit page
This change will affect all the segments that use the <DateFields>
component.

See https://github.com/mailpoet/mailpoet/pull/5174#issuecomment-1746542729

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
017c66a896 Add support for a custom class name in the datepicker component
Will be used in the next commit

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
1b6aed906a Fix layout of the average order value segment in the segment edit page
See https://github.com/mailpoet/mailpoet/pull/5174#issuecomment-1746542729

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
48dc2d7507 Fix layout of the number of reviews segment in the segment edit page
See https://github.com/mailpoet/mailpoet/pull/5174#issuecomment-1746542729

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
0bdb1d6f77 Fix layout of the wordpress role segment in the segment edit page
See https://github.com/mailpoet/mailpoet/pull/5174#issuecomment-1746542729

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
b008839e81 Rename two files to match the new enforced standard
A PR was merged to trunk enforcing the use of the kebab case pattern for
file and directory names. This commit changes the name of a directory
and two files that were created before the PR was merged.

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
2e0281f7ab Improve contrast of the font of two elements in the segment edit page
[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
e6577b9a28 Fix layout of some segment conditions in the segment edit page
This commit changes the layout of the conditions of some segments in the segment
edit page so that they are better displayed in the new design (all the
modified segments contain at least one select box with potential long
optons).

To do that it removes the two remaining Grid.CenteredRow components and also
replaces isFullWidth with isMinWidth for the smaller select boxes in the
same condition.

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
3e61104d11 Change FieldWrapper component to make the slug prop optional
This prop is not used when title, which is already optional, is not set.

Check https://github.com/mailpoet/mailpoet/pull/5174#discussion_r1338962220 for a discussion on the limitations of <FieldWrapper> and how we can
improve it in the future

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
12fa602695 Attempt to fix the design of the segment conditions
This commit attempts to fix the design of the segment conditions in the
segment edit page when there are long items in a select box. To do that,
it removes the two remaining Grid.CenteredRow components and also
removes the `dimension='small'` from the `<ReactSelect>` component.

It is only applied to the <EmailClickStatisticsFields> component so that
we can test it and then after expand to the other components if there
are no further changes that we want to make.

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
9246dd7154 Declare type of two variables
Doing this to hopefully workaround the following ESLint error that John
is seeing in his local env
(https://github.com/mailpoet/mailpoet/pull/5174#discussion_r1334663426):

ESLint: Invalid type "any" of template literal expression.(@typescript-eslint/restrict-template-expressions)

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
87b0b0b4f3 Remove unnecessary !important
It turns out `!important` is needed only for `display` and not for
`align-items`.

[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
3340cc0c69 Use absolute paths instead of relative paths for imports
[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
6b60754436 Improve two terms used in the code based on feedback from PR review
[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
c9a52ab82e Implement adjustments to the filter selector to fit in the new design
[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
a86b71510d Replace premium banner with the new premium modal and display badge
[MAILPOET-5398]
2023-10-05 10:32:18 +02:00
Rodrigo Primo
2644bea226 Implement new design for the main elements of the segment edit page
[MAILPOET-5398]
2023-10-05 10:32:18 +02:00