Commit Graph

16750 Commits

Author SHA1 Message Date
David Remer
d60e399a3b Alter buttons depending on workflow state, use DeactivateImmediatelyModal
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
da34614b5c Add new DeactivateImmediatelyModal
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
a0d330fded Deactivate workflow on button click depending on selected status
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
f766661f8c Show Deactivating state in header
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
82ddce42df Use WorkflowStatus enum for valid status values in Workflow type
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
bfe95676c3 Add switch to decide which deactivation state we want to set the workflow to
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
789bb0b396 Use workflow status constants
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
2620ef0b57 Do not handle workflow runs when workflow status is not active/deactivating
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
627962570e Add new workflow status 'deactivating'
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
Rostislav Wolny
bbdbf6a52d Fix WooCommerce setup in the welcome wizard
The component that requires the global mailpoet_show_customers_import
variable is used also on the wizard page.
This commit ensures that it is set on the page.
[MAILPOET-4652]
2022-10-24 15:16:04 +02:00
Rostislav Wolny
56ed9f4ece Update acceptance tests for Woo setup page
[MAILPOET-4652]
2022-10-24 15:16:04 +02:00
Rostislav Wolny
e6188f5cef Update WooCommerce cookie tracking info in Wizard
[MAILPOET-4652]
2022-10-24 15:16:04 +02:00
Rostislav Wolny
a37e5bbe74 Hide WooCommerce initial import from wizard when there are no customers
[MAILPOET-4672]
2022-10-24 15:16:04 +02:00
Rostislav Wolny
9df99b1a00 Add method for getting customers count to WooCommerce helper
[MAILPOET-4652]
2022-10-24 15:16:04 +02:00
Rostislav Wolny
5ff543e62d Unify default values of mailpoet_subscribe_old_woocommerce_customers
The value is used in case the setting is not defined. Normally this shouldn't
happen because we set the value in the wizard.
The default value used in PHP is false, but in settings in admin was true.
See b0aacdd4ef/mailpoet/lib/Segments/WooCommerce.php (L528)
This commit unifies it.

[MAILPOET-4652]
2022-10-24 15:16:04 +02:00
Sam Najian
8f14c5ac53 Fix issue caused by merge conflict
[MAILPOET-4591]
2022-10-24 14:05:41 +02:00
Sam Najian
4e0aa3c56d Remove redundant code which was selectively disabling validation
We no longer need selective validation disabling since we're
disabling all validations when saving a draft

[MAILPOET-4591]
2022-10-24 14:05:41 +02:00
Sam Najian
545c6bfa5e Disable all validations when saving a draft
[MAILPOET-4591]
2022-10-24 14:05:41 +02:00
Rostislav Wolny
cd3652eaa6 Fix canceling multiple automatic emails
When we deleted sending queue using SQL it remained in the entity manager
and subsequent flush (not the first one) triggered the error, because it didn't know the ScheduledTask entity attached
to the orphaned SendingQueue entity.

This commit fixes this by refactoring deletion of sending queue using standard repository method.
After fixing the issue for sending queue there was another issue with SchedulesTaskSubscriberEntity that remained in memory.
I fixed that by detaching those. Theoretically there might be many SchedulesTaskSubscriberEntities for an Automatic email so
I consider still safer to delete using SQL and if there are some loaded (in this case there is one) detach them.
[MAILPOET-4741]
2022-10-24 14:03:54 +02:00
David Remer
655641737b Do not use toggleModal()
[MAILPOET-4730]
2022-10-24 13:49:15 +03:00
David Remer
152794720a Add DeactivateButton and logic
[MAILPOET-4730]
2022-10-24 13:49:15 +03:00
David Remer
cb294fb303 Style DeactivateModal component
[MAILPOET-4730]
2022-10-24 13:49:15 +03:00
David Remer
98744a53c1 Add Deactivate Modal
[MAILPOET-4730]
2022-10-24 13:49:15 +03:00
David Remer
430fcc20a8 Add new store action to deactivate a workflow
[MAILPOET-4730]
2022-10-24 13:49:15 +03:00
Pavel Dohnal
1df78f22d3 Make the message better
[MAILPOET-4740]
2022-10-24 10:18:28 +02:00
Oluwaseun Olorunsola
2f823f5606 On settings page, Remove the dependency between loading 3rd-party libraries and tracking (data sharing). Allow user choose toggle values independently
MAILPOET-4657
2022-10-20 10:49:48 +02:00
Oluwaseun Olorunsola
086d6dce7e On WelcomeWizardUsageTrackingStep, Remove the dependency between loading 3rd-party libraries and tracking (data sharing). Allow user choose toggle values independently
MAILPOET-4657
2022-10-20 10:49:48 +02:00
Oluwaseun Olorunsola
879cca9fb3 On WelcomeWizardUsageTrackingStep, update section wordings and re-order items
MAILPOET-4657
2022-10-20 10:49:48 +02:00
Sam Najian
3434fbe3b5 Add not-allowed cursor to disabled form fields
[PREMIUM-200]
2022-10-20 10:30:30 +02:00
Sam Najian
d4f9ccca5e Add disabled class to the wrapper of a disabled field
[PREMIUM-200]
2022-10-20 10:30:30 +02:00
Sam Najian
4a74c3e6fd Open premium modal if the premium plugin is not active
[PREMIUM-200]
2022-10-20 10:30:30 +02:00
Sam Najian
60d9a3f1ac Add posibility to add wrapper click handler to form fields
In some cases we need to disable the form field but add a click
handler to the field, but to make it work accross browsers the
click handler should get added to the wrapper and not the disabled
form field itself

[PREMIUM-200]
2022-10-20 10:30:30 +02:00
Sam Najian
b64fbbdb7f Remove ga field default value when disabled
[PREMIUM-200]
2022-10-20 10:30:30 +02:00
Sam Najian
12e8d44a43 Disable ga field when premium plugin is not active
[PREMIUM-200]
2022-10-20 10:30:30 +02:00
David Remer
667658ae2f Show 'is now activated' snackbar only when status of workflow is active
[MAILPOET-4737]
2022-10-20 10:24:06 +02:00
David Remer
9d2624163c Close ActivatePanel when there are errors
[MAILPOET-4737]
2022-10-20 10:24:06 +02:00
Jan Jakes
8f6688eba7 Check for CircleCI results file existence 2022-10-20 09:31:58 +02:00
David Remer
b360d9a2cf Set focus on new activate button
[MAILPOET-4530]
2022-10-19 13:34:45 +02:00
David Remer
11384bbf6a Fix bug where the type of $step was Data\Step instead of Integration\Step
[MAILPOET-4530]
2022-10-19 13:34:45 +02:00
David Remer
6235944442 Fix bug where an empty array would generate a malformed SQL query
[MAILPOET-4732]
2022-10-19 13:34:45 +02:00
David Remer
83573b0d43 Use labels to make editor more accessible
[MAILPOET-4530]
2022-10-19 13:34:45 +02:00
David Remer
bd87c09e1a Add acceptance test for automation workflow
* Creates an simple welcome email workflow
* Activates it
* Subscribes and checks whether the email arrives in the inbox

[MAILPOET-4530]
2022-10-19 13:34:45 +02:00
Rodrigo Primo
1010b64c05 Update updateNames() to work with Woo Custom Order Tables
[MAILPOET-4711]
2022-10-19 11:32:41 +02:00
Rodrigo Primo
dd1fcd5100 Add helper method to get the name of the WooCommerce order addresses table
[MAILPOET-4711]
2022-10-19 11:32:41 +02:00
David Remer
75706c9e8b Store success message of activation in activate action
[MAILPOET-4462]
2022-10-19 09:07:33 +02:00
David Remer
61e1dd6a83 Add an activating state
[MAILPOET-4462]
2022-10-19 09:07:33 +02:00
David Remer
8d5af952f6 Use sprintf instead of replace
[MAILPOET-4462]
2022-10-19 09:07:33 +02:00
David Remer
2751a4bf3a End the sentence with a period
[MAILPOET-4462]
2022-10-19 09:07:33 +02:00
David Remer
ed297dd68d Show snackbar notice
[MAILPOET-4462]
2022-10-19 09:07:33 +02:00
David Remer
17c7d42ede Remove activate toggle
[MAILPOET-4462]
2022-10-19 09:07:33 +02:00