Commit Graph

15684 Commits

Author SHA1 Message Date
Oluwaseun Olorunsola
28288bb927 Use shared config, remove usage of windows
[MAILPOET-3971]
2022-02-10 10:06:09 +01:00
Oluwaseun Olorunsola
978aa6552f Fix phpstan error
[MAILPOET-3971]
2022-02-10 10:06:09 +01:00
Oluwaseun Olorunsola
3819dd774e Use upgrade url
[MAILPOET-3971]
2022-02-10 10:06:09 +01:00
Oluwaseun Olorunsola
55a1fcc44e Offer to download or activate the premium plugin or upgrade plan in premium banner
[MAILPOET-3971]
2022-02-10 10:06:09 +01:00
Rodrigo Primo
ff9e1dc6be Update a string displayed in the manage subscriptions page
Change to make the meaning of the sentence more clear.

[MAILPOET-4068]
2022-02-09 16:34:18 +01:00
David Remer
cceb8538fd remove uninstall.php from build.sh 2022-02-09 16:33:35 +01:00
David Remer
8f79116f71 Remove uninstall.php [MAILPOET-3961] 2022-02-09 16:33:35 +01:00
John Oleksowicz
a8b62130ec Remove duplicate test
[MAILPOET-3518]
2022-02-09 16:33:06 +01:00
John Oleksowicz
bfcb6d745f Add test for preventing duplicates
[MAILPOET-3518]
2022-02-09 16:33:06 +01:00
John Oleksowicz
4d3e2b57fe Add product category re-sending test
[MAILPOET-3518]
2022-02-09 16:33:06 +01:00
John Oleksowicz
ec25f1aaf7 Add comment explaining optional callback
[MAILPOET-3518]
2022-02-09 16:33:06 +01:00
John Oleksowicz
ef40730631 Only store relevant meta for category emails
[MAILPOET-3518]
2022-02-09 16:33:06 +01:00
John Oleksowicz
ec8ff46a29 Only store relevant meta for product purchases
[MAILPOET-3518]
2022-02-09 16:33:06 +01:00
Sam Najian
a3c9128f04 Update MailPoet\WP\DateTime methods and Docblocks
- The Docblocks for MailPoet\WP\DateTime::getCurrentTime, getCurrentDate
needed improvement
- Add MailPoet\WP\DateTime::getCurrentDateTime

[MAILPOET-4023]
2022-02-09 16:32:26 +01:00
Sam NAjian
897c9bbd8c Add tests for MailPoetDate.isInFuture and fix test eslint issues
- 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]
2022-02-09 16:32:26 +01:00
Sam NAjian
16a262c7f7 Change submit button caption to publish/send based on date
[MAILPOET-4023]
2022-02-09 16:32:26 +01:00
Sam NAjian
b9432d3f3a Default scheduling date to tomorrow at 08 am
[MAILPOET-4023]
2022-02-09 16:32:26 +01:00
David Remer
82fce9df7e Remove unnecessary deletedAt where condition when filter subscribers without segments 2022-02-09 16:31:51 +01:00
David Remer
d89edb27c0 Test if filter returns correct subscribers without segments 2022-02-09 16:31:51 +01:00
Sam NAjian
b35006433d Use only an instance of NewsletterShortcodes class when rendering archiveSubject
- 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]
2022-02-09 16:31:14 +01:00
Sam NAjian
43ecd4369b Add subscriber details to the to the archive subject in case subscriber is defined
[MAILPOET-4069]
2022-02-09 16:31:14 +01:00
Rostislav Wolny
5842fc0ad6 Add processing of shortcode in subject in archive page
[MAILPOET-3965]
2022-02-09 16:31:14 +01:00
Rostislav Wolny
1630da0917 Add processing of shortcode in subject in archive page
[MAILPOET-3965]
2022-02-09 16:31:14 +01:00
Sam Najian
fac560071a Move doc folder to the root to make it more accessible
[MAILPOET-4107]
2022-02-09 15:57:06 +01:00
David Remer
f9f60e4683 Integrate MSS message depending on enabled and isReachable
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]
2022-02-09 15:08:10 +01:00
David Remer
6152ff8cfa Add and change MSS connection strings [MAILPOET-3909] 2022-02-09 15:08:10 +01:00
David Remer
a40a2baceb Seperate MSS isEnabled and MSS isReachable [MAILPOET-3909] 2022-02-09 15:08:10 +01:00
Rodrigo Primo
b43dfe7e6a Remove color from all stats except clicks in the stats notification
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]
2022-02-09 15:07:41 +01:00
Rodrigo Primo
c21e12e82a Fix ranges for displaying colors in stats email
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]
2022-02-09 15:07:41 +01:00
Rodrigo Primo
eee1e9703f Changes to the text version of the stats notification email
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]
2022-02-09 15:07:41 +01:00
Rodrigo Primo
ee6f081ab2 Add helper function to format the numbers differently in the stats email
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]
2022-02-09 15:07:41 +01:00
Rodrigo Primo
8fdd8b8120 Add unsubscribed and bounced data to stats notification email
[MAILPOET-3324]
2022-02-09 15:07:41 +01:00
Rodrigo Primo
6aae62505d Update stats notification email preheader to display clicks before opens
[MAILPOET-3324]
2022-02-09 15:07:41 +01:00
Rodrigo Primo
a43fd34f7d Stats email: display clicked in the first row and opened in the second
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]
2022-02-09 15:07:41 +01:00
Rodrigo Primo
3700af261f Remove duplication of methods to get stats color
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]
2022-02-09 15:07:41 +01:00
Rodrigo Primo
d359c048e3 Fix a bug in clickedStatsColor()
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]
2022-02-09 15:07:41 +01:00
Rodrigo Primo
509d97c2c0 Change the colors and text used when displaying clicked stats
[MAILPOET-3324]
2022-02-09 15:07:41 +01:00
Rodrigo Primo
776a3a656e Fix indentation issues using PHPStorm and manual changes
[MAILPOET-3324]
2022-02-09 15:07:41 +01:00
Rodrigo Primo
3684a978bc Fix variable that is passed to clicked_stats_text()
In one of the calls to clicked_stats_text(), the code was wrongly
passing the variable "opened" when it should be passing "clicked".

[MAILPOET-3324]
2022-02-09 15:07:41 +01:00
David Remer
18afeb6ab6 Use strings in MailPoet\Models\Model::set() 2022-02-09 15:07:21 +01:00
David Remer
db6e963c94 Reset $metas array in processing method 'individual' [MAILPOET-3943] 2022-02-09 15:07:21 +01:00
David Remer
77c1d65f4d Test: Validate personalized values in newsletters getting send out
Adds a test whether the personalized values are correct when newsletters get send out
in the SendingQueue with the processing method 'individual'. [MAILPOET-3943]
2022-02-09 15:07:21 +01:00
David Remer
57c842f37f Simplyfy error throwing 2022-02-09 15:06:58 +01:00
David Remer
0e48d3e2d1 Add integration test for before_subscribe action hook 2022-02-09 15:06:58 +01:00
David Remer
84eb5af37f Pass current testcase when adding expectations to stubs 2022-02-09 15:06:58 +01:00
David Remer
83490540df Test: No subscription made when before_subscribe hook throws error 2022-02-09 15:06:58 +01:00
David Remer
6ad48a116e Remove dispensable comment 2022-02-09 15:06:58 +01:00
David Remer
954bd37729 Add unit tests for SubscriberSubscribeController
[MAILPOET-3632]
2022-02-09 15:06:58 +01:00
David Remer
b1f51714ca Add mailpoet_subscription_before_subscribe hook
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]
2022-02-09 15:06:58 +01:00
Jan Lysý
93e294fb38 Release 3.79.0 2022-02-09 15:01:33 +01:00