Commit Graph

15337 Commits

Author SHA1 Message Date
Oluwaseun Olorunsola
1b103c653f Fix: Only start polling the server on success response
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
ef5e45ba32 Refactor email sender field, remove double error notice
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
2eb441a7f7 Hijack link to MP Shop, show email authorization modal on Newsletter send page
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
4e81ac5f8f Refactor: use button component with spinner to indicate loading state
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
ed92fd7717 Hijack link to MP Shop, show email authorization modal on set FROM address modal
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
6353d44cae Refactor: rename state callback
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
19b9ab8183 Hijack link to MP Shop, show email authorization modal on notices
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
c9db69c1b8 Add support for rendering Authorize sender email modal from React root
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
8db444fa3f Fix notice error when the input value is changed
I'm using eslint-disable-line react-hooks/exhaustive-deps here to fix es-lint warning.
Won't allow me to commit without it

The suggestion unfortunately will not apply in this case.

setAuthorizedAddress is a props callback used to notify the parent component the sender email has been authorized

Adding it to the useEffect dependency array just causes an unnecessary double render

We can't make use of useCallback here

MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
1b255acbe1 Update authorize Email Address in settings and
Clear prevous error notice

MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
ee70d2dd1e Implement polling and reconfirmation
This will poll the server every certain interval (15s) for the email address
and stop polling if the email is Authorized or the modal is closed or after a certain period of time (2 hours)

MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
183f64834c Use AuthorizeSenderEmailModal component in SenderEmailAddressWarning
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
f07aa5eef1 Add AuthorizeSenderEmailModal component
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
1fda60bfea Implement API endpoints
MAILPOET-4300
2022-07-18 12:53:49 +02:00
alex-mailpoet
502087e416 Fix tests
[MAILPOET-4421]
2022-07-18 10:32:01 +02:00
alex-mailpoet
35cdd7c07f Add header buttons and redirects for automation email type
[MAILPOET-4421]
2022-07-18 10:32:01 +02:00
alex-mailpoet
0c5ed71239 Show only 2 steps for automation email type
[MAILPOET-4421]
2022-07-18 10:32:01 +02:00
alex-mailpoet
6586ad03c1 Show MailPoet logo in the newsletter editor
[MAILPOET-4421]
2022-07-18 10:32:01 +02:00
alex-mailpoet
39a3ca54f7 Extract MailPoetLogoResponsive component
[MAILPOET-4421]
2022-07-18 10:32:01 +02:00
alex-mailpoet
960e917b64 Run update query only once, use Builder minLength for name
[MAILPOET-4422]
2022-07-15 11:32:58 +02:00
alex-mailpoet
d3731c715b Update workflow name & status styles
[MAILPOET-4422]
2022-07-15 11:32:58 +02:00
alex-mailpoet
5ac27d125b Add workflow name editing capability
[MAILPOET-4422]
2022-07-15 11:32:58 +02:00
Sam Najian
3bbb662857 Add a workaround for NewsletterEntity::__clone when testing
Because implements NewsletterEntity::__clone and resets `id`
the test was failing after switching from Newsletter model
to NewsletterEntity and this override helps to mitigate the issue

[MAILPOET-4360]
2022-07-14 13:13:47 +02:00
Sam Najian
b84d1d1af8 Update TransactionalEmailHooks to work with NewsletterEntity
[MAILPOET-4360]
2022-07-14 13:13:47 +02:00
Sam Najian
d4403c6259 Adjust WooCommerce transactionalEmails render test
[MAILPOET-4360]
2022-07-14 13:13:47 +02:00
Sam Najian
930024101f Exchange Transactional renderer to NewsletterEntity
[MAILPOET-4360]
2022-07-14 13:13:47 +02:00
Sam Najian
fb49ce5ac4 Adjust usage of Renderer::render in SendingQueue\Tasks::Newsletter
[MAILPOET-4360]
2022-07-14 13:13:47 +02:00
Sam Najian
35d0d03069 Make Renderer/Renderer.php method expect NewsletterEntity
[MAILPOET-4360]
2022-07-14 13:13:47 +02:00
Sam Najian
1c33628a46 Remove array_flatten usages
[MAILPOET-4475]
2022-07-14 12:23:00 +02:00
Sam Najian
1cdf83b60c Move composer/composer to dev dependencies
[MAILPOET-4475]
2022-07-14 12:23:00 +02:00
Sam Najian
d625d94614 Add integration tests
[MAILPOET-4393]
2022-07-14 12:01:49 +02:00
Sam Najian
f9f9908269 Default metaInfo type to newsletter::type if defined
[MAILPOET-4393]
2022-07-14 12:01:49 +02:00
Sam Najian
f50ed0cd04 Add missing re_engagement type to newsletter meta info
[MAILPOET-4393]
2022-07-14 12:01:49 +02:00
Jan Lysý
c6d284cb32 Move lists testing to the separate class
[MAILPOET-4292]
2022-07-14 11:29:09 +02:00
Jan Lysý
1a9845c916 Move getting segments to the new class
[MAILPOET-4292]
2022-07-14 11:29:09 +02:00
Jan Lysý
92d39916d9 Make segment factory immutable
[MAILPOET-4292]
2022-07-14 11:29:09 +02:00
Jan Lysý
571a91b809 Fix setting segment type
[MAILPOET-4292]
2022-07-14 11:29:09 +02:00
Jan Lysý
b1bd4dded3 Remove large dimension for tags in listing
[MAILPOET-4441]
2022-07-14 10:37:49 +02:00
Jan Lysý
a0c21d8cd2 Add check for displaying tags
[MAILPOET-4441]
2022-07-14 10:37:49 +02:00
Jan Lysý
437f84ecd0 Add tags into subscribers listing
[MAILPOET-4441]
2022-07-14 10:37:49 +02:00
Jan Lysý
a80cabf59f Add possibility to use different variant
[MAILPOET-4441]
2022-07-14 10:37:49 +02:00
Jan Lysý
6328d4c8ea Add a new tag color variant
[MAILPOET-4441]
2022-07-14 10:37:49 +02:00
Jan Lysý
e8b94761e5 Add tags into listing response
[MAILPOET-4441]
2022-07-14 10:37:49 +02:00
Jan Lysý
a1daf7dc3a Fix flaky acceptance test
[MAILPOET-4339]
2022-07-14 10:29:32 +02:00
Jan Lysý
0b1a1d781a Remove old model from Subscribers admin page
[MAILPOET-4339]
2022-07-14 10:29:32 +02:00
Jan Lysý
1a58842c26 Remove old model from Segments admin page
[MAILPOET-4339]
2022-07-14 10:29:32 +02:00
Jan Lysý
53a935fae9 Remove old model from Newsletters admin page
[MAILPOET-4339]
2022-07-14 10:29:32 +02:00
Jan Lysý
72d9ed794a Remove old model from Forms admin page
[MAILPOET-4339]
2022-07-14 10:29:32 +02:00
Rodrigo Primo
ad29073715 Replace Paris models with Doctrine entities in Subscription\Captcha
[MAILPOET-4351]
2022-07-13 16:09:41 +02:00
Jan Lysý
282bea4cfb Remove old model usage from NewSubscriberNotificationMailerTest
[MAILPOET-4352]
2022-07-13 15:36:14 +02:00