Commit Graph

110 Commits

Author SHA1 Message Date
Brezo Cordero
e4b90d7e38 Add logic to display new upgrade page
that will have to be modified after results from a/b test

[MAILPOET-5906]
2024-04-03 08:40:46 +03:00
Brezo Cordero
cbff461b4d Display upgrade page if no valid premium key
[MAILPOET-5905]
2024-03-25 12:36:08 +01:00
Brezo Cordero
724681d3a7 Display upgrade page for Tier 1
[MAILPOET-5905]
2024-03-25 12:36:08 +01:00
Brezo Cordero
48465a7152 Refactor CapabilitiesManager
capabilities is an associate array of new class Capability  to make it more generic

[MAILPOET-5938]
2024-03-22 11:01:01 +01:00
Brezo Cordero
03abb1b4d5 Refactor capabilities
Make type more generic and move check to capabilities class

[MAILPOET-5938]
2024-03-22 11:01:01 +01:00
David Remer
85aec1ad77 Update banner in plugin
[MAILPOET-5974]
2024-03-22 10:48:01 +01:00
Mike Jolley
435f638011 Apply rules on lib dir 2024-03-21 16:57:59 +01:00
Brezo Cordero
7c4c825d4e Fix preconditions for detailed analytics
[MAILPOET-5898]
2024-03-13 11:54:37 +01:00
Brezo Cordero
a4aefbc7e7 Handle individual capabilities when there is no tier
[MAILPOET-5898]
2024-03-13 11:54:37 +01:00
Brezo Cordero
d6a66c4b89 Remove duplication and fix condition for logo requirement.
[MAILPOET-5898]
2024-03-13 11:54:37 +01:00
Brezo Cordero
9c9a85d029 Backward compatibility for automationSteps and segmentFilters
[MAILPOET-5898]
2024-03-13 11:54:37 +01:00
Brezo Cordero
0ca2146801 Add capability check on newsletters detailed stats
Moves existing check to the capability manager and implements backward compatibility for products without capabilities.

[MAILPOET-5898]
2024-03-13 11:54:37 +01:00
Brezo Cordero
e185df3765 Add capability check on logo display
Moves existing check to the capability manager and implements backward compatibility for products without capabilities.

[MAILPOET-5898]
2024-03-13 11:54:37 +01:00
Brezo Cordero
931fae7691 Add basic capabilities manager class
Backwards compatibility will be handled later

[MAILPOET-5898]
2024-03-13 11:54:37 +01:00
Brezo Cordero
165ff19752 Add basic capabilities class
[MAILPOET-5898]
2024-03-13 11:54:37 +01:00
Brezo Cordero
01afa2ef31 Update Sender Domain page banners
Remove unused notices displayed before enforcement date.

[MAILPOET-5844]
2024-02-05 10:52:56 +01:00
Brezo Cordero
d5ecfc58e0 Do not display sender notices on Settings and Editor
We already display the inline notices.

[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
Brezo Cordero
4323723fd4 Remove DmarcPolicyChecker
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
Brezo Cordero
45423a8e62 Refactor functions to AuthorizedSenderDomainController
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
Brezo Cordero
8c068c0232 Refactor sender domain limits
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
Pavel Dohnal
fdec5e819a Fix tag mismatch
[MAILPOET-5827]
2024-01-12 13:29:53 +01:00
John Oleksowicz
efe4c47568 Display different notices before Feb 1st
MAILPOET-5819
2024-01-11 20:13:59 +05:00
John Oleksowicz
862c0d26b2 Don't display banner notices to new users
MAILPOET-5783
2024-01-03 18:54:01 +01:00
John Oleksowicz
b2222f65b5 Make notices dismissible
MAILPOET-5783
2024-01-03 18:54:01 +01:00
John Oleksowicz
cbcae3714d Extract methods for verification/error style
MAILPOET-5783
2024-01-03 18:54:01 +01:00
John Oleksowicz
0d83836b68 Add banner notices for unverified sender domains
MAILPOET-5783
2024-01-03 18:54:01 +01:00
Jan Lysý
525c80bac4 Fix PHPStan warnings in lib
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
 Ján Mikláš
e2a849ceb9 Display the PHP outdated version warning for sites running PHP < 8.0
[MAILPOET-5727]
2023-11-27 13:23:29 +01:00
Oluwaseun Olorunsola
0d771a7fc5 Add support for creating styles from block attributes e.g., text alignment styles
MAILPOET-5643
2023-11-17 09:49:06 +01:00
 Ján Mikláš
fccd3d0a5f Don't show the banner on Woo Express
[MAILPOET-5707]
2023-11-16 16:24:34 +01:00
 Ján Mikláš
54e0df9116 Link to the upgrade page form BFCM banner
[MAILPOET-5440]
2023-11-16 16:24:34 +01:00
 Ján Mikláš
19e35c948a Update BFCM sale dates and copy
[MAILPOET-5707]
2023-11-16 16:24:34 +01:00
John Oleksowicz
e6365e2cde Add rel="noreferrer" for consistency
MAILPOET-5631
2023-11-02 18:15:55 +01:00
John Oleksowicz
d531a8fb60 Split pending approval message into title and body
MAILPOET-5631
2023-11-02 18:15:55 +01:00
John Oleksowicz
4a4ecc8204 Consistent pending approval message
MAILPOET-5631
2023-11-02 18:15:55 +01:00
John Oleksowicz
50e1bce74c Update pending subscription notice
MAILPOET-5631
2023-11-02 18:15:55 +01:00
Rostislav Wolny
98c0741ee8 Fix missing CSS for editor when Gutenberg is active
We use the post editor CSS files for the layout styles of the email editor.
When the Gutenberg plugin is active, editor styles are loaded from the plugin directory,
which was not allowed in our ConflictResolver

This commit allows fetching CSS from the Gutenberg plugin folder.
[MAILPOET-5660]
2023-10-26 10:43:00 +02:00
Brezo Cordero
3104b61005 Remove data-beacon-article
[MAILPOET-5551]
2023-09-07 14:50:35 +02:00
Jan Lysý
1053f062e3 Change info notice to success notice
[MAILPOET-5429]
2023-08-03 12:31:02 +02:00
Jan Lysý
7d6e69e639 Add notice when premium features for key are available
[MAILPOET-5429]
2023-08-03 12:31:02 +02:00
alex-mailpoet
3b2d60bb4f Fix counts cache update for below minimum subscribers
[MAILPOET-5390]
2023-06-21 10:33:00 +02:00
 Ján Mikláš
0ab2f8e6a3 Show June 2023 sale banner
[MAILPOET-5213]
2023-06-05 09:47:15 +02:00
alex-mailpoet
5203eb5268 Don't cache if subscribers count is below minimum value
[MAILPOET-5180]
2023-05-22 14:13:05 +02:00
Jan Jakes
906e76c73c Map subscriber custom fields to automation fields
[MAILPOET-5036]
2023-05-17 12:36:05 +02:00
Rostislav Wolny
77e64a7c57 Return plan limit data also for underprivileged keys
When a key is underprivileged it is still considered valid and
we can use the state data about limits.
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Rostislav Wolny
600c83943c Change login of MailPoet.hasValidApiKey key JS property
The API key that is underprivileged for MSS and Premium
is still considered as valid because the API can still authenticate the key
and the key can be used reporting subscriber stats etc.

I've check places where we use the property and in all cases we use
to distinguish if the plugin uses a subscription plan (free or paid) or no plan.
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Rostislav Wolny
6aaa56466e Display subscribers limit reached also when API reports restricted access
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Rostislav Wolny
20a8afa2f1 Fix logic for detecting emails volume reached error
The values we have in key state might be missing or outdated.
We need to check also if the key check on MSS returned error
about access being restricted due email volume limit.

[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Rostislav Wolny
48f1034180 Read email volume limit from and send emails count from MSS key data
Currently the starter plan has no access to premium so the plugin is
not able to fetch email volume limit using premium key endpoint.
Also the data are related to sending so it makes more sense to read those
from MSS key state.
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Rostislav Wolny
8ce8524ee3 Adjust conditions for displaying pending approval notice
The method was displayed even when MSS was set but key was not valid.
This may happen when a key loses the access to MSS.
[MAILPOET-5103]
2023-04-26 10:57:40 +02:00