Commit Graph

17780 Commits

Author SHA1 Message Date
Rostislav Wolny
4b438242ab Add simple product discovery tasks
[MAILPOET-4827]
2023-01-23 16:48:52 +01:00
Rostislav Wolny
722e6f9d27 Add functionality for hiding the product discovery section
[MAILPOET-4827]
2023-01-23 16:48:52 +01:00
Rostislav Wolny
7b431d9291 Add basic product discovery component
[MAILPOET-4827]
2023-01-23 16:48:52 +01:00
Sam Najian
30c6e6f769 Set reasonable default values until validation is built
[MAILPOET-4678]
2023-01-23 16:37:55 +01:00
Oluwaseun Olorunsola
8b2b8c3d48 Reduce standalone wait time from 10s to 2s.
We plan to increase this wait time if the test gets flakier

MAILPOET-4881
2023-01-23 16:23:30 +01:00
Oluwaseun Olorunsola
0b5c65d568 Fix ManageSegmentsCest:deleteExistingSegment
MAILPOET-4881
2023-01-23 16:23:30 +01:00
Brezo Cordero
49b2f5528f Remove Migration class
Remove from container, test factory and PHPStan baselines.

[MAILPOET-4478]
2023-01-23 15:35:50 +01:00
Brezo Cordero
6bc58e23c9 Remove Migration worker
[MAILPOET-4478]
2023-01-23 15:35:50 +01:00
Brezo Cordero
7e66adcc0b Remove check for active migration
[MAILPOET-4478]
2023-01-23 15:35:50 +01:00
Brezo Cordero
24b906a738 Use Bounce instead of Migration in test
[MAILPOET-4478]
2023-01-23 15:35:50 +01:00
Brezo Cordero
ddbce0d636 Remove migration test cases
Remove also the function to enable the migration.

[MAILPOET-4478]
2023-01-23 15:35:50 +01:00
Brezo Cordero
277f870178 Remove migration test
[MAILPOET-4478]
2023-01-23 15:35:50 +01:00
Oluwaseun Olorunsola
4be7f37bbc Remove the feature flag from Landing page
MAILPOET-4803
2023-01-23 15:13:38 +01:00
Oluwaseun Olorunsola
9ac18ab69e Update styling and use semantic HTML
MAILPOET-4799
2023-01-23 14:09:16 +01:00
Oluwaseun Olorunsola
1bec3b4637 Remove image assets from plugin directory
MAILPOET-4799
2023-01-23 14:09:16 +01:00
Oluwaseun Olorunsola
33e74bb0dd Fix mobile issues for FAQ section
MAILPOET-4799
2023-01-23 14:09:16 +01:00
Oluwaseun Olorunsola
89d5f108e4 Design the landing page
Add the content and images for the landing page

MAILPOET-4799
2023-01-23 14:09:16 +01:00
Sam Najian
e4d00171b4 Fix issue in test where string was set to newsletter body
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
9f070f1914 Check blockDefaults.coupon when trying to delete its props
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
94b5803337 Cleanup coupon data from template on save
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
9a2d4e83b2 Change NewsletterCoupon::cleanupSensitiveData signature
This change allows passing body array and retuning body array
so that NewsletterEntity instance doesn't need to get passed
around

[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
59d91ff7ef Fix failing unit test
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
bfe658fc86 Replace coupon code with code placeholder when duplicationg
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
7ced42a494 Fix bug when duplicated newsletter uses the source's coupon
On duplication, the sensitive data of the coupon were
inherited from the source

[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
6164a92b9f Cleanup coupon sensitive data from blockDefaults
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
7b11962bf2 Update translators hint for the coupon description
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
3c7f1021b6 Re-adjust percent sign positioning
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
644412998a Adjust percent sign positioning
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
c1afee57e9 Fix bug causing the percent sign to move on scroll
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
ac1d014562 Fix bug in validating on render
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
71322ee512 Add newsletter id to the coupon description
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
dc2638a3ab Augment comment for CouponPreProcessor::shouldPersist
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
41b23b24b9 Add Coupon block feature flag
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
9c8afa85d4 Add more unit tests for CouponPreProcessor
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
18c3424f03 Add validation to expiry days field of coupon block
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
1b1ee34acf Adjust styling and add validation to coupon amount
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
d963bb4e7d Update coupon setting view styling
Adds percentage sign when the discount type is of percentage
type, adjusts the width and view of coupon amount field

[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
b1f42bbeba Add unit tests for CouponPreProcessor
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
dcdb447578 Properly check for existance of code in coupon block setting
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
39d22bdd62 Move Coupon instantiation to MailPoet\WooCommerce\Helper
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
e4c9d037b1 Add missing strict_types to Coupon.php
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
d1ad7fecd7 Fix mistake in comment
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
4b92a9a4a5 Allow coupon generation per render for automatic emails
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
9d65fe8d5e Persist coupon block expiration in WC_Coupon
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
c353830163 Make sure coupon code placeholder doesn't generate coupon
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
6dd87b0dec Add functionality to update coupon when block settings change
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
fa3216be9b Set missing parameters when creating coupon
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
31201eb3cc Generate coupon code for each coupon block missing the code
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
48c075b730 Add WC helper function to retrieve coupon code from id
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
14c85e3380 Pass Coupon code placeholder from PHP and unify
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00