Commit Graph

21439 Commits

Author SHA1 Message Date
Oluwaseun Olorunsola
d061d451a4 Remove Export from Main menu options
MAILPOET-5045
2023-02-13 11:58:58 +01:00
Jan Jakes
52e19d445a Update pnpm to the latest version
[MAILPOET-5055]
2023-02-09 09:57:30 +02:00
alex-mailpoet
c6a3e08c34 Fix soundasleep/html2text PHP 8.2 deprecation notices
[MAILPOET-4875]
2023-02-08 15:26:14 +01:00
alex-mailpoet
a11a462eee Fix gregwar/captcha PHP 8.2 deprecation notices
[MAILPOET-4874]
2023-02-08 15:26:14 +01:00
David Remer
310d689219 Ensure image reloads in safari
Safari does not reload the image when only the hash
changes. Therefore we use the cachebust get parameter
like we do already for the audio

[MAILPOET-5032]
2023-02-08 13:08:09 +01:00
David Remer
118cc83cc2 Remove 'Click to refresh' in title because a click does no longer refresh
[MAILPOET-5032]
2023-02-08 13:08:09 +01:00
David Remer
3da2144ead Extend audio type by range header
[MAILPOET-5032]
2023-02-08 13:08:09 +01:00
David Remer
b17a9cb4ae Add test to ensure HTTP_RANGE headers do not reload captcha
[MAILPOET-5032]
2023-02-08 13:08:09 +01:00
Rodrigo Primo
351c8a0bd7 Remove the s and g parameters from the shop URL
Those parameters are not working as expected (see
https://github.com/mailpoet/mailpoet/pull/4650#issuecomment-1410881945
for more details). So we are removing them for now and they will be
added again on a separate ticket in the future
(https://mailpoet.atlassian.net/browse/MAILPOET-5046).

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
c705862e82 Use MailPoet module properties instead of the window object
We want to stop accessing window directly in JS code (see
https://mailpoet.atlassian.net/browse/MAILPOET-2943). So this commit
uses MailPoet module properties instead of accessing
window.mailpoet_mail_function_enabled and window.subscribers_count
directly.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
dd2f100acd Implement MSS key verification in the MSS step of the welcome wizard
[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
88398af343 Remove unused translatable strings
Back in 2020, commit bf13d08a22 removed the code that
used those strings but the strings themselves were never removed.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
28bc4d6943 Display the MSS step of the wizard when there is a MSS key set
Before we used to hide the MSS step of the welcome wizard when there was
already a key set. This commit stops this behavior and now we will
always display the MSS step as it will start allowing users to set the
MSS key in it.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
e1e690ad14 Refactor input and button to validate key to its own components
This commit refactors the <input> and <button> used to validate the MSS
key to its own components. After doing this, we will be able to reuse
this components outside of the settings app. In particular, we want to
be able to use it in the welcome wizard app.

It also implements one small change to the verify button that is part of
the changes related to the welcome wizard. Now the verify button is
disabled when the MSS key <input> is empty.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
110b67bd9c Refactor key activation messages to be reused in the welcome wizard
[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
8788e299e1 Extract updateSettings() and finishWizard to refrain from passing it down
[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
ed81ae1ccd Simplify code by accessing subscriber count directly
Instead of passing it down the component chain.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
d19e297d37 Refactor code to its own function outside component
Doing this to avoid redefining the function on each render and to
improve readability since a named function was used.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
c4ce4fd10b Simplify imports by adding an index to common/typography/
Doing this based on feedback from first draft version of the PR related
to this commit.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
Rodrigo Primo
527ebafc5c Use React Router to navigate between different parts of the MSS step
This replaces the first implementation that was just a temporary
implementation using the component state.

[MAILPOET-4818]
2023-02-08 12:56:32 +01:00
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