Commit Graph

18419 Commits

Author SHA1 Message Date
Rodrigo Primo
e7f1325d3e Add tracking parameters to account.mailpoet.com links in the MSS step
[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
d7d3095824 Use icon for the list in the MSS step of the welcome wizard
It seems the <List> component doesn't accept a className parameter and
that is why I added a <div> around it.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
d9b103891b Fix style of the links in the MSS step of the welcome wizard
[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
fe8f90a4d8 Display OwnEmailServiceNote component on the second part of the MSS step
Before this component was displayed only on the first part of the MSS
step.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
6d7bece8d6 Implement functionality of the third part of the MSS step
Finish the wizard when the user clicks on the finish button.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
199f3e21e7 Implement temporary solution to move between the parts of this step
The solution will likely change in subsequent commits to use something
that chnages the URL as well so that users can reload the page when
displaying one of the parts.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
7e9caeffbf Implement design and content of the third part of the MSS step
This commit implements the design and content of the third part of the
MSS step in the welcome wizard. This is a new part of the final step.
The functionality is not yet implemented and will be in a subsequent
commit.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
a075b7bd68 Implement design and content of the second part of the MSS step
This commit implements the design and content of the second part of the
MSS step in the welcome wizard. This is a new part of the final step.
The functionality is not yet implemented and will be in a subsequent
commit.

The contents of the first part that already existed were moved to its
own file (first_part.tsx) as part of this commit as well.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
359f734024 Implement confirmation modal for setting up custom sending service
This commit implements the confirmation modal that is displayed when the
user clicks on the "I’ll set up my own email service" link in the MSS
step of the welcome wizard.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
a069ae6884 Update strings in the MSS step of the welcome wizard
This commit implements the changes to the strings of the MSS step of the
welcome wizard. The new functionality is still missing and will be
implemented in upcoming commits.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
6de8b0ceec Use different elements for success_pitch_mss.tsx and pitch_mss_step.tsx
Up until now success_pitch_mss.tsx and pitch_mss_step.tsx shared code
(mostly strings), but this will change in subsequent commits as part of
ticket MAILPOET-4818. So this commit copies shared code from
pitch_mss_step.tsx to success_pitch_mss.tsx. So that future changes in
one file we won't affect the other.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
edf34ccc2c Refactor pitch_mss_step.jsx to TSX
[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
John Oleksowicz
57f953933d Release 4.6.1 2023-02-07 09:19:18 -06:00
David Remer
9b2e6208e0 Allow editors to manage automations
[MAILPOET-5024]
2023-02-06 14:06:06 +01:00
David Remer
314327aed2 Add tests to ensure editor has access to endpoints
[MAILPOET-5024]
2023-02-06 14:06:06 +01:00
 Ján Mikláš
ce370c76a3 Fix cut-off placeholder in multi-select select2
[MAILPOET-4630]
2023-02-06 13:57:48 +01:00
 Ján Mikláš
153d29b167 Change height of select2 with single value to be the same as regular input
[MAILPOET-4630]
2023-02-06 13:57:48 +01:00
Oluwaseun Olorunsola
7858d4ada2 Link to the new homepage from the MailPoet task in WooCommerce
MAILPOET-4926
2023-02-06 13:38:33 +01:00
Rostislav Wolny
adc158367d Add wait and retry when translations API returns 429
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Rostislav Wolny
69e67f3c7a Do not cache language packs response when code is not 200
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Rostislav Wolny
4f831f8b17 Refactor API call for fetching language packs data to private method
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Rostislav Wolny
36c95f80fd Add transient caching of language packs data
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
 Ján Mikláš
2fb36e57f9 Stop tracking "User has clicked a tab in Settings" event to Mixpanel
[MAILPOET-5031]
2023-02-06 12:22:06 +01:00
Brezo Cordero
401501b97b Use @ts-expect-error
[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Brezo Cordero
d585c27f6e Convert map_form_data_before_saving.spec.js
[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Brezo Cordero
0775ce2669 Convert map_form_data_after_loading.spec.js
[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Brezo Cordero
37bb5fd824 Convert form_validator.spec.js
[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Brezo Cordero
fee5af2ffa Convert form_to_block_test_data.js
[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Brezo Cordero
21d03c5bf7 Convert form_body_to_blocks.spec.js
[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Brezo Cordero
0854b1ce36 Convert toggle_sidebar_panel.jsx
It also adds a new type for the action and converts the test.

[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Brezo Cordero
949c962fc9 Convert create_custom_field_started.jsx
It also adds a new type for the action and converts the test.

[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Brezo Cordero
17c0a76754 Rename Type
[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Brezo Cordero
d449f02883 Add functions to use partial types in tests
Functions to create mocks with Partial Types in tests and avoid using `as Type`. Also extract FormData type to form_data_types.ts

[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Brezo Cordero
b40c5a5dfe Convert history_record.ts.jsx to ts
Converts the file and test. It also moves HistorRecord type to state_types.ts

[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Brezo Cordero
08aea80a55 Convert save_form_started.jsx to ts
Converts the file and test. It also removes extra param from tests.

[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Brezo Cordero
86a4347908 Convert blocks_to_form_body.jsx to ts
Converts the file and tests. It also creates the type CustomFields.

[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Brezo Cordero
f242e847bb Convert selectors.spec.js to ts
I have decided to use `as State` on the mocks instead of creating a big object conforming to the type.
The functions tested only use one or two properties of the 33 the type has and I have verified the properties we use for the test are well-formed.

[MAILPOET-3523]
2023-02-06 12:19:21 +01:00
Rostislav Wolny
3c89bf2f0d Remove currency from the Woo Tracker data
The currency is already tracked by Woo core under settings.currency.
[MAILPOET-5037]
2023-02-06 12:13:27 +01:00
Oluwaseun Olorunsola
10ea5ec55b Remove extra sending method check for new users.
mta.method is probably not set yet.

MAILPOET-4929
2023-02-06 12:11:12 +01:00
Oluwaseun Olorunsola
805804f3d3 Add WP Filter to disable the mail function check
MAILPOET-4929
2023-02-06 12:11:12 +01:00
Oluwaseun Olorunsola
74549665d6 Stop checking for DisabledMailFunction when the plugin is repeatedly activated and updated.
We will only perform the check when the plugin is first activated and sending method is changed.

MAILPOET-4929
2023-02-06 12:11:12 +01:00
Oluwaseun Olorunsola
5b78ea9a69 Update test mail information for DisabledMailFunctionNotice
In this commit, we change the test mail subject, body and destination address

MAILPOET-4929
2023-02-06 12:11:12 +01:00
David Remer
b25c8b8965 Do not use title attribute when alt text is not defined
[MAILPOET-4932]
2023-02-06 11:43:23 +01:00
Oluwaseun Olorunsola
da5b0ede16 Show the MailPoet logo on the landing page
This will show the topbar (including the MailPoet logo) and set content max-width

MAILPOET-5029
2023-02-06 10:59:27 +01:00
Veljko
29de3e2bae Remove Promise from helper
[MAILPOET-4960]
2023-02-02 17:16:33 +01:00
Veljko
79bc684312 Add new test Settings basics
[MAILPOET-4960]
2023-02-02 17:16:33 +01:00
David Remer
7bc71429eb Add Copy to clipboard button
[MAILPOET-4526]
2023-02-01 12:48:35 +01:00
alex-mailpoet
967988519b Fix deprecated callable usage in Sudzy library
[MAILPOET-4873]
2023-02-01 12:17:03 +01:00
Jan Lysý
3b5a96a3f7 Add test case that coupon is rendered correctly
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
Jan Lysý
83b14013ec Add coupon block unit test
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00