Commit Graph

256 Commits

Author SHA1 Message Date
David Remer
9b2e6208e0 Allow editors to manage automations
[MAILPOET-5024]
2023-02-06 14:06:06 +01:00
Rostislav Wolny
adc158367d Add wait and retry when translations API returns 429
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Rostislav Wolny
69e67f3c7a Do not cache language packs response when code is not 200
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Rostislav Wolny
4f831f8b17 Refactor API call for fetching language packs data to private method
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Rostislav Wolny
36c95f80fd Add transient caching of language packs data
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Oluwaseun Olorunsola
10ea5ec55b Remove extra sending method check for new users.
mta.method is probably not set yet.

MAILPOET-4929
2023-02-06 12:11:12 +01:00
Oluwaseun Olorunsola
74549665d6 Stop checking for DisabledMailFunction when the plugin is repeatedly activated and updated.
We will only perform the check when the plugin is first activated and sending method is changed.

MAILPOET-4929
2023-02-06 12:11:12 +01:00
Rodrigo Primo
1161e6f3f6 Add MailPoet task to WooCommerce homepage
[MAILPOET-4814]
2023-01-30 15:01:42 +01:00
 Ján Mikláš
60d933b39a Fix capitalization of MSS
[MAILPOET-5030]
2023-01-30 14:25:41 +01:00
Jan Lysý
40f4216ff8 Add method for getting WC coupons
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
Rostislav Wolny
f66be1b947 Improve typehints and doctypes for the woo revenue tracking
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
5d3b26bb58 Remove unnecessary tracking enabled check
Registering the hook doesn't cost us much and it makes sense to register
it even when the tracking is disabled so that the data are always loaded
when calling: wp wc tracker snapshot --format=yaml
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
Rostislav Wolny
17d3f66316 Register filter for tracking revenue data
[MAILPOET-5014]
2023-01-30 09:21:39 +01:00
David Remer
139fb2f1ad Hide Automations and Upgrade in landingpage
[MAILPOET-5019]
2023-01-25 13:42:43 +01:00
David Remer
5e7ece1e87 Add mailpoet-landingpage to avoid redirection
[MAILPOET-5019]
2023-01-25 13:42:43 +01:00
David Remer
47a4e3b4e9 Hide menu entries when not setup yet
[MAILPOET-5019]
2023-01-25 13:42:43 +01:00
Oluwaseun Olorunsola
62325dc096 Fix multiple forms display on pages with Woocommerce [products] shortcode
MAILPOET-4885
2023-01-25 13:15:08 +01:00
Jan Lysý
5885bd7f84 Add deactivation poll initialization
[MAILPOET-4686]
2023-01-23 17:01:13 +01:00
Jan Lysý
f1d8ba51df Add deactivation poll config wrapper
[MAILPOET-4686]
2023-01-23 17:01:13 +01:00
Oluwaseun Olorunsola
4be7f37bbc Remove the feature flag from Landing page
MAILPOET-4803
2023-01-23 15:13:38 +01:00
Rostislav Wolny
a53e446583 Add request cache to TranslationUpdater
WP may call the action we hook into more times during one request.
This commit adds simple caching to prevent multiple requests.
[MAILPOET-4909]
2023-01-12 14:08:31 +01:00
Rostislav Wolny
b033d7d92f Add error logging when fetching language packs info
[MAILPOET-4909]
2023-01-12 14:08:31 +01:00
Oluwaseun Olorunsola
47d3472fef Fix acceptance tests error and add acceptance test for landing page
MAILPOET-4795
2023-01-06 18:29:46 +01:00
Oluwaseun Olorunsola
05c5b46089 Redirect to landingpage when welcome wizard is not filled
MAILPOET-4795
2023-01-06 18:29:46 +01:00
Oluwaseun Olorunsola
f85bd8622f Add comment explaining the usage of the method
MAILPOET-4795
2023-01-06 18:29:46 +01:00
Oluwaseun Olorunsola
503cf61c0f Do not redirect when activated with bulk activation mode
MAILPOET-4795
2023-01-06 18:29:46 +01:00
Oluwaseun Olorunsola
d9eca55189 Redirect to Landing page after plugin activation
MAILPOET-4795
2023-01-06 18:29:46 +01:00
Oluwaseun Olorunsola
e850eaa90c Add Landing page and hide behind feature flag
MAILPOET-4795
2023-01-06 18:29:46 +01:00
Rostislav Wolny
970db8f0d8 Prevent undefined function request_filesystem_credentials error
The function request_filesystem_credentials was not loaded when
running translation update during regular page load.
This commit ensures the function is loaded.
[MAILPOET-4902]
2022-12-28 13:24:47 +01:00
Rodrigo Primo
6533a1444d Display submenu entries only after the Welcome Wizard is completed
[MAILPOET-4815]
2022-12-19 21:37:42 +01:00
Rodrigo Primo
05a109dcf4 Force users to complete the Welcome Wizard
This commit changes the behavior of the Welcome Wizard. Up until now,
the wizard would load once and users could opt to complete or skip it.
Now it is mandatory for the users to complete the wizard. Before we
saved the setting "version" the first time the first step of the wizard
was loaded and now we saved it when the wizard is completed.

[MAILPOET-4815]
2022-12-19 21:37:42 +01:00
Rodrigo Primo
4ceb508218 Fix typo 2022-12-19 21:37:42 +01:00
David Remer
12afcfb656 Improve readability
[MAILPOET-3487]
2022-12-07 11:53:48 +01:00
David Remer
7b584dd482 Add language function to twig
[MAILPOET-3487]
2022-12-07 11:53:48 +01:00
Oluwaseun Olorunsola
53dda33c02 Update method and constant name
MAILPOET-4760
2022-12-05 10:25:28 +01:00
Oluwaseun Olorunsola
0bd627d3b1 Add support for checking misconfiguration of the PHP mail function
Some hosts do perform intentional misconfiguration of the mail function, causing it not to work.

When the mail function is misconfigured, we can still access and execute the mail function from within the codebase, but we get an error.

There’s no accurate way to know the PHP mail function is misconfigured. Unless we execute the function with all the proper parameters and check the exception error message against this error `Could not instantiate mail function.`

MAILPOET-4760
2022-12-05 10:25:28 +01:00
Rostislav Wolny
8fbc5c270a Place home at the first position in submenu
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
92dc5921df Set main page to homepage in case the feature is active
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
3c3ce37720 Temporarily add static property for MAIN_PAGE_SLUG
We need to be able to change it when homepage feature is active.
When we remove the feature flag will switch back to using constant.
Note I also kept the constant in case a third party plugin uses it.
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
01aa1e1e52 Refactor page slugs into constants
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
2bbc1b7063 Add homepage page and submenu item hidden behind feature flag
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Jan Jakes
926620e8f8 Ignore strict types rule in all existing files that don't have it
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Jan Jakes
882402645d Do not wrap automations beta badge, make it a bit smaller
[MAILPOET-4840]
2022-11-25 09:55:11 +01:00
David Remer
4832771185 Refactor the captcha system
The current Captcha class has a lot of responsibilities. It renders the captcha
image, can check if a certain captcha type is a Google captcha, if a captcha is
required for a certain email. The SubscriberSubscribeController is not only in
charge of "controlling" the subscription process but also validates, whether a
captcha is correct or not. This architecture made it difficult to extend the
functionality and introduce the audio captcha feature.

Therefore this commit refactors the captcha architecture and tries to seperate
the different concerns into several classes and objects. Validation is now done
by validators.

The CaptchaPhrase now is in charge of keeping the captcha phrase consistent
between the image and the new audio, so that you can renew the captcha and both
captchas are in sync.

[MAILPOET-4514]
2022-11-24 09:20:39 +01:00
Jan Jakes
7570c9fa0e Make automations Beta badge smaller
[MAILPOET-4836]
2022-11-22 09:23:57 +01:00
Jan Jakes
725e0ecb00 Remove automation feature flag
[MAILPOET-4788]
2022-11-14 12:35:29 +02:00
Jan Jakes
9d55d3f134 Use "automation" instead of "workflow"
[MAILPOET-4793]
2022-11-14 12:14:35 +02:00
Rodrigo Primo
64d655857b Explicitly declare compatibility with Woo High Performance Order Tables
This was done following the instructions published by the WooCommerce
team: pcShBQ-oY-p2

[MAILPOET-4726]
2022-11-07 10:42:38 +01:00
Jan Jakes
96368cbd3f Move one-time migrations from populator to the new initial migration
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
9730fb9272 Move the old dbDelta-based migrator to a migration
This will ensure it runs once and from there, it will continue using the new migrations.

[MAILPOET-4466]
2022-11-07 10:05:42 +01:00