Commit Graph

15969 Commits

Author SHA1 Message Date
Jan Jakes
6342402e41 Move subscribers count to layout
[MAILPOET-4416]
2022-08-24 12:18:44 +02:00
Jan Jakes
24cca1ba04 Cache total subscribers count, add tests
[MAILPOET-4416]
2022-08-24 12:18:44 +02:00
Jan Jakes
7ce53adc33 Use static premium download URL instead of fetching it from bridge
This was causing HTTP requests to bridge on each page load for some of MP admin pages.

[MAILPOET-4416]
2022-08-24 12:18:44 +02:00
Jan Jakes
84ca7143ff Move some more general properties to layout
[MAILPOET-4416]
2022-08-24 12:18:44 +02:00
Jan Jakes
5c08d22736 Move all premium & plan upgrade info to root layout, remove duplicities
[MAILPOET-4416]
2022-08-24 12:18:44 +02:00
Jan Jakes
558d709a18 Update premium upgrade modal to display info based on license status
[MAILPOET-4416]
2022-08-24 12:18:44 +02:00
Jan Jakes
3cc385dd52 Implement premium upgrade logic for upgrade dialog
[MAILPOET-4416]
2022-08-24 12:18:44 +02:00
Rodrigo Primo
e843d25c8b Check that changelog is not null before passing it to substr()
Starting with PHP 8.1, substr() generates a warning if the first
parameter is null. So, before calling it, we need to check if the
changelog is null or not.

[MAILPOET-4595]
2022-08-23 14:22:55 +02:00
Ján Mikláš
a471e4d8c4 Don't show spacer after the last item in <Steps> component
[MAILPOET-4593]
2022-08-23 14:21:28 +02:00
David Remer
26a6f1be32 Use step key when building workflows from sequence
[MAILPOET-4538]
2022-08-23 14:03:24 +02:00
David Remer
53434d23b8 Use default args when building the Workflow from sequence
[MAILPOET-4538]
2022-08-23 14:03:24 +02:00
David Remer
83f5c6cc46 Add test for WorkflowTemplatesGetEndpoint
[MAILPOET-4538]
2022-08-23 14:03:24 +02:00
David Remer
ed56df2398 Add WorkflowTemplate GET endpoint
[MAILPOET-4538]
2022-08-23 14:03:24 +02:00
David Remer
8b78fdd4b4 Update frontend to interact with new template create endpoint
[MAILPOET-4538]
2022-08-23 14:03:24 +02:00
David Remer
baa4d369af Introduce template storage and rebuild create form template endpoint
[MAILPOET-4538]
2022-08-23 14:03:24 +02:00
David Remer
1140ee3129 Add WorkflowTemplate entity
[MAILPOET-4538]
2022-08-23 14:03:24 +02:00
Rodrigo Primo
804ad97036 Release 3.95.1 2022-08-23 08:56:57 -03:00
Jan Lysý
b4bba9869e Fix Gutenberg token-field styles compatibility token
[MAILPOET-4582]
2022-08-22 13:44:35 +02:00
Jan Lysý
8567614697 Add integration test with SMTP filters
[MAILPOET-4437]
2022-08-22 13:16:51 +02:00
Jan Lysý
52795c3972 Add new filters to the SMTP sending method
[MAILPOET-4437]
2022-08-22 13:16:51 +02:00
Sam Najian
b7cccdae95 Adjust tests, remove models and Tasks\Sending
[MAILPOET-4371]
2022-08-22 13:06:43 +02:00
Sam Najian
873c295e99 Remove Paris models and Tasks\Sending from PostNotificationScheduler
[MAILPOET-4371]
2022-08-22 13:06:43 +02:00
Sam Najian
e3b02a9a64 PR feedback adjustments
[MAILPOET-4355]
2022-08-22 11:24:06 +02:00
Sam Najian
18b1d9799f Fix failing test for getLatestTasks
[MAILPOET-4355]
2022-08-22 11:24:06 +02:00
Sam Najian
c22d23f91c Remove Tasks\State class and relevant test file
[MAILPOET-4355]
2022-08-22 11:24:06 +02:00
Sam Najian
e30e1847e2 Move buildTaskData tests to AdminPages/HelpTest.php
[MAILPOET-4355]
2022-08-22 11:24:06 +02:00
Sam Najian
73d15c8c44 Move getLatestTasks to ScheduledTasksRepository
- Move the method
- Adjust the usages
- Adjust and update tests

[MAILPOET-4355]
2022-08-22 11:24:06 +02:00
Sam Najian
bf1ddbedbc Move getCountsPerStatus to ScheduledTasksRepository
- Move getCountsPerStatus
- Defined test for getCountsPerStatus
- Update usage

[MAILPOET-4355]
2022-08-22 11:24:06 +02:00
Jan Lysý
4687fcd44f Remove refactored method from old model
[MAILPOET-4310]
2022-08-22 11:04:45 +02:00
Jan Lysý
5f88a27ccb Extend integration test
[MAILPOET-4310]
2022-08-22 11:04:45 +02:00
Jan Lysý
bfc2a7d2af Update dependencies in tests
[MAILPOET-4310]
2022-08-22 11:04:45 +02:00
Jan Lysý
c1e9f86a32 Remove usage of old model for creating post notification history
[MAILPOET-4310]
2022-08-22 11:04:45 +02:00
Jan Lysý
5dfda9f3e2 Move task type const from entity to worker
[MAILPOET-4366]
2022-08-19 15:11:23 +02:00
Jan Lysý
77eaa7e710 Remove check that sending queue is deleted at
[MAILPOET-4366]
2022-08-19 15:11:23 +02:00
Jan Lysý
a39b73041c Extend integration test
[MAILPOET-4366]
2022-08-19 15:11:23 +02:00
Jan Lysý
a841671695 Add SendingQueue factory
[MAILPOET-4366]
2022-08-19 15:11:23 +02:00
Jan Lysý
a362b7e014 Delete Sending::getRunningQueues()
[MAILPOET-4366]
2022-08-19 15:11:23 +02:00
Jan Lysý
bf74a506b7 Replace using Sending::getRunningQueues
[MAILPOET-4366]
2022-08-19 15:11:23 +02:00
Jan Lysý
5f30c7a511 Add method for getting running sending tasks
[MAILPOET-4366]
2022-08-19 15:11:23 +02:00
Jan Lysý
7ef341e38a Replace Sending::getRunningQueues in integration test
[MAILPOET-4366]
2022-08-19 15:11:23 +02:00
Jan Lysý
6f1e5c9a98 Add new const with the type sending
[MAILPOET-4366]
2022-08-19 15:11:23 +02:00
Rodrigo Primo
d54129670d Reorganize information sent to HelpScout
We are now using the `session-data` method of the Beacon API to send
site information to HelpScout
(https://developer.helpscout.com/beacon-2/web/javascript-api/#beacon-session-data).
This method has a limit of 20 attribute-value pairs and since we had
more, it was necessary to combinte a few values under the same
attribute.

[MAILPOET-4525]
2022-08-18 15:43:12 +02:00
Rodrigo Primo
f19de77f70 Fix sending system info when creating a HelpScout ticket
We were calling the wrong Beacon API method to send system info
data to HelpScout when users create tickets inside WordPress. This
commit fixes this by calling the method `session-data` instead of
`identify`. It is likely that `identify` was the correct method in the
past, but the Beacon API changed
(https://developer.helpscout.com/beacon-2/web/javascript-api/).
Nowadays, the `identify` method is used to add data to the HelpScout
users and fields need to be created in advance in the HelpScout web
interface. `session-data` is used to add information to the ticket which
is what we are trying to achieve. Only `name` and `email` should still
be passed to `identify` to make it possible to match the correct
HelpScout user.

[MAILPOET-4525]
2022-08-18 15:43:12 +02:00
Jan Lysý
cfc98c7aac Add sender validation when component did mount
[MAILPOET-4548]
2022-08-18 14:36:36 +02:00
Oluwaseun Olorunsola
e3f13dd986 Add tracking for MailPoet logo in free plan emails
MAILPOET-4543
2022-08-18 12:29:29 +02:00
Rostislav Wolny
79e11fe939 Move MP API addSubscriber tests under Subscribers class tests
[MAILPOET-4293]
2022-08-18 12:08:30 +02:00
Rostislav Wolny
2356c62be3 Refactor MP API addSubscriber to doctrine
[MAILPOET-4293]
2022-08-18 12:08:30 +02:00
Jan Lysý
07fa471ac3 Add tutorial button to newsletters header
[MAILPOET-4498]
2022-08-18 08:52:59 +02:00
Jan Lysý
5d63e9a462 Refactor email tutorial component to TS
[MAILPOET-4498]
2022-08-18 08:52:59 +02:00
Jan Lysý
f060219da3 Prefix email editor variables with mailpoet
[MAILPOET-4498]
2022-08-18 08:52:59 +02:00