Commit Graph

204 Commits

Author SHA1 Message Date
Pavel Dohnal
75c22f5f5f Create a component for custom field
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
d4f165747f Load Custom Fields for segment form
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Jan Lysý
f4ce284e5c Add engagement score into segment list
[MAILPOET-3533]
2021-05-12 14:42:22 +02:00
Rostislav Wolny
0a0c63cd1f Show only allowed countries in options for customer country segment
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Rostislav Wolny
173a4a124c Load WooCommerce countries for segment form
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Pavel Dohnal
a2c1b4f8bc Display subscribers score on the listings page
[MAILPOET-3525]
2021-04-26 13:46:23 +02:00
Jan Lysý
d471e19f92 Use the currency symbol from WC instead of string
[MAILPOET-3227]
2021-04-26 11:29:48 +02:00
Rostislav Wolny
85d0851909 Hide subscriptions segment options when the plugin is not active
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Rostislav Wolny
0728bc2e12 Load subscription products for segments form
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
Jan Lysý
7ef0f7a600 Create simple router with newsletters redirect
[MAILPOET-3536]
2021-04-05 10:26:53 +02:00
Pavel Dohnal
2360fe0a5a Check existence panels shen creating debugger
[MAILPOET-3420]
2021-03-29 15:40:30 +02:00
Jan Lysý
6469e0bf5b Fix response in NewsletterEditor
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
Jan Lysý
dffaab10a2 Use getCurrentWPUser from SubscribersRepository
[MAILPOET-3268]
2021-03-16 14:39:47 +01:00
Pavel Dohnal
61c8b3702a Add offset/limit to logs page
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Pavel Dohnal
4481444282 Filter data
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Pavel Dohnal
f1b2f01fee Refactor logs to javascript
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Pavel Dohnal
1d8a5d42ee Format the date
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Pavel Dohnal
a164ce8c8a Display shorter message
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Pavel Dohnal
74367ae40e Display data in table
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Pavel Dohnal
7f599dbf8a Pass data to template
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Pavel Dohnal
c3372dfee8 Load logs
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Pavel Dohnal
174583cc84 Create repository for logs
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Pavel Dohnal
de47ec9c7f Add an empty logs page
[MAILPOET-3135]
2021-03-16 14:29:18 +01:00
Rodrigo Primo
37f5ec190b Display the HelpScout chat for all plans with premium support
This commit fixes a problem in the logic used to decide whether or not
the HelpScout chat should be available on the MailPoet admin pages. Before,
we were displaying the chat for plans that include premium support and access
to MSS. But we also have plans, like the Blogger plan, that include
premium support, and should see the chat, but don't include access to
MSS. Those plans were not seeing the chat.

This was happening because the code was checking just for
`mailpoet_api_key_state.data.support_tier == 'premium'`. The
mailpoet_api_key_state setting is added to the database based on the
response from the bridge.mailpoet.com/me endpoint. This endpoint returns
a 403 error for plans that don't include the sending service.

In this commit, to fix this problem, the code now checks for both
`mailpoet_api_key_state.data.support_tier == 'premium'` and
`premium_key_state.data.support_tier == 'premium'`. The former setting
is added to the database based on the response of the
bridge.mailpoet.com/premium endpoint. This endpoint works for plans that
have access to MailPoet Premium, but don't have access to MSS. We need to
check for both settings as we also have some plans that include the
sending service, but don't include MailPoet Premium.

[MAILPOET-3438]
2021-02-25 13:35:54 +03:00
Rostislav Wolny
0d6a068351 Add condition for adding custom HTML block to inserter
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
Rostislav Wolny
ab5720b4ca Allow WooCommerce and WP segments in shortcodes settings
[MAILPOET-3419]
2021-02-15 11:40:43 +01:00
Pavel Dohnal
8698fd944f Remove the Update page
[MAILPOET-3406]
2021-02-08 13:01:06 +01:00
Rostislav Wolny
8456581695 Refactor segment lists fetching methods to separate repository
[MAILPOET-3164]
2021-01-25 09:17:17 +01:00
Rostislav Wolny
0ee10fe2f9 Load list of segments on subscribers page using doctrine
[MAILPOET-3164]
2021-01-25 09:17:17 +01:00
Rostislav Wolny
ee6eea5f99 Load list of segments on settings page using doctrine
[MAILPOET-3164]
2021-01-25 09:17:17 +01:00
Rostislav Wolny
ade48fc359 Load list of segments on form editor page using doctrine
[MAILPOET-3164]
2021-01-25 09:17:17 +01:00
Rostislav Wolny
09fa34f6e6 Load list of segments on newsletters page using doctrine
[MAILPOET-3164]
2021-01-25 09:17:17 +01:00
Rostislav Wolny
bdb6477b4b Replace usages of Subscriber::getTotalCount by Subscribers service
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
2c3f6488c2 Remove no longer needed fetching of WP user count
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
7c8f29a90d Get rid of premium_subscriber_count and load count using doctrine
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
e576002d70 Append subscribers limit notice with info about WP users segment
[MAILPOET-3143]
2021-01-11 14:55:44 +01:00
Rostislav Wolny
35a25e119f Remove unnecessary type checks
These were added during initial testing of php8 compatibility using PHPStan and were false positive due PHPStan issues.
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
Rostislav Wolny
d13f63b3e2 Fix other minor type issues in libs
[MAILPOET-3926]
2020-12-07 11:36:01 +01:00
Pavel Dohnal
15ae8ae369 Use the data loader in form editor
[MAILPOET-2553]
2020-12-03 10:09:51 +01:00
Pavel Dohnal
344a338376 Move data selection to a reusable service
[MAILPOET-2553]
2020-12-03 10:09:51 +01:00
Pavel Dohnal
daaeada3da Match select boxes with same select boxes in segments
[MAILPOET-2553]
2020-12-03 10:09:51 +01:00
Pavel Dohnal
5f05495fa0 Display tutorial to all users
[MAILPOET-3206]
2020-11-26 13:51:58 +01:00
Pavel Dohnal
bfaa1bbec4 Display tutorial only to new users
[MAILPOET-3206]
2020-11-26 13:51:58 +01:00
Pavel Dohnal
e52a2af475 Add data about form editor tutorial into store
[MAILPOET-3206]
2020-11-26 13:51:58 +01:00
Pavel Dohnal
bf13d08a22 Download premium plugin
[MAILPOET-3315]
2020-11-26 11:16:17 +01:00
Rostislav Wolny
dfc4c286df Use init form template settings as fallback for corrupted data
[MAILPOET-3924]
2020-11-19 09:55:28 +01:00
wxa
4661eab49e Merge WC email initialization into newsletters listing page [MAILPOET-2433] 2020-11-11 14:27:36 +01:00
Pavel Dohnal
4134e6e882 Use doctrine in Shortcodes Helper
[MAILPOET-2993]
2020-11-11 11:34:55 +01:00
Rostislav Wolny
df1f00f4df Add Test 14 form based templates
[MAILPOET-3208]
2020-10-26 12:31:50 +01:00
Rostislav Wolny
b9e5c12697 Add Test 13 form based templates
[MAILPOET-3208]
2020-10-26 12:31:50 +01:00