- Convert date.js to typescript and define types
- Fix test script to include ts tests as well
- Make eslint for ts tests work correct and recognize mocha
[MAILPOET-4023]
- Based on how the NewsletterShortcodes service is implemented it's safer to instanciate
it inside the user method and not inject it in the class contructor
- Revert back the changes added to MailPoet\Newsletter\Shortcodes\Categories\Subscriber::process
[MAILPOET-4069]
Depending on whether MSS is active or not we want to render different success and error messages.
Therefore a refactor of renderStatusMessage was done, so that all message texts are now handed over
to the method. [MAILPOET-3909]
The specs have changed and now only clicks should have a color in the
stats notification email. All other stats should be displayed in black.
[MAILPOET-3324]
The specs for [MAILPOET-3324] had a minor error that is fixed by this
commit. The ranges for displaying different colors for the percentage of
clicks should be < 1%, 1-3% and > 3% instead of < 10%, 10-30% and > 30%.
[MAILPOET-3324]
This commit adds the following changes to the text version of the stats
notification email:
- Display the percentage of clicks before opens.
- Changes the format of the tests of each stats from "clicked rate: 40%"
to "40% clicked".
- Adds stats for machine-opened, unsubscribed and bounced.
[MAILPOET-3324]
This commit adds a helper function that will return a number with two
decimal digits if the number is smaller than 0.1 and will return a
number with one decimal digit if the number is equal to or greater than
0.1. It is used to format the numbers in the stats notification email.
[MAILPOET-3324]
This commit makes some changes to the stats email. It displays just the
clicked stats in the first row and it moves the opened stats to the
second row. It also adds machine-opens alongside opens in the second
row.
[MAILPOET-3324]
The criteria used to determine the color used for clicked and opened
stats is the same, but we had one method to get the color of each stats.
This commit combines both methods into one to avoid duplication.
[MAILPOET-3324]
The method clickedStatsColor() should return different color codes
depending on the percentage of clicks (> 30%, < 30% and > 10%, < 10%).
It receives the percentage value as an absolute number. There was a bug
in this method where it was checking for values greater than 3, between
3 and 1, and smaller than 1 instead of greater than 30, between 30 and
10, and smaller than 10.
[MAILPOET-3324]
Adds a test whether the personalized values are correct when newsletters get send out
in the SendingQueue with the processing method 'individual'. [MAILPOET-3943]
In order for 3rd parties to hook into the subscription process, e.g. to
validate the data themselves, the action hook
mailpoet_subscription_before_subscribe has been added. [MAILPOET-3632]