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]
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]
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]
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]
Parts of this design was already implemented on the segment template
page. The CSS was moved to a common placed and reused in both pages.
[MAILPOET-5398]
This also consolidates a couple of places where we are checking premium
status. One side effect is that the Google Analytics field will now also
be disabled if the subscriber limit has been reached, which I believe
is the desired behavior.
MAILPOET-5510
This isn't specific to this ticket but I noticed it while testing. React
is throwing a warning about the input switching from uncontrolled to
controlled after entering a value for an "in the last" or "not in the
last" date field. This is because segment.value is undefined at first.
Setting the default to an empty string instead prevents the issue.
MAILPOET-5510