Commit Graph

15684 Commits

Author SHA1 Message Date
3dceb0f2e4 Load workflow data in editor template
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
9565e170c6 Add inserter component based on inserter from block editor & mocked data
See: 27ec8f65c9/packages/block-editor/src/components/inserter

[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
27afb211ba Add inserter listbox component based on listbox from block editor
See: 27ec8f65c9/packages/block-editor/src/components/inserter-listbox

[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
184ce081fb Add inserter toggle button to header
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
4983fb8dec Add basic workflow step inserter sidebar and its state
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
8b45dffd3a Add showIconLabels state for consistency with post editor
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
97807e27d9 Add keyboard shortcuts for fullscreen and sidebar toggle
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
ae8ae8a4fc Implement two-tabbed sidebar content and its state
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
be29ee04a6 Add basic sidebar
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
071a028fbd Add header "more" menu with fullscreen toggle
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
16b0229c44 Add basic header with heading and save draft & publish buttons
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
27b1c46c15 Add fullscreen mode
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
5b3ad3d8ba Add basic @wordpress/data store with fullscreen mode state
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
2273dd9e16 Add basic interface skeleton setup
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
49f4eaed16 Add Gutenberg styles to automation editor
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
10c397d3e5 Add automation editor React setup
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
ed4fea6afa Add send welcome email action to the testing workflow
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
30d3a9250c Install @wordpress/a11y explicitly, add @types/wordpress__a11y
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
d63a8bfd83 Install @wordpress/preferences explicitly
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
4fc1af1f56 Install @wordpress/interface explicitly
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
2c18b851e4 Add automation editor page
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
2584864228 Display a list of workflows on automation page
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
3660d12dd0 Return workflow list data in workflows endpoint
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
47c5111996 Add method to fetch list of workflows to workflow storage
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
1b46765f47 Fix workflow date loading
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
a6724a41c0 Fix: invisible ReCaptcha works when there are multiple forms in the page
There was a bug in the code that handles the invisible ReCaptcha that
was preventing the forms from working when this setting is activated and
the user submits a form that is not the first form on the page.

The code that calls the ReCaptcha API when the invisible ReCaptcha is
used was not passing the ID of the ReCaptcha instance. This meant that
for all the forms, ReCaptcha would call the callback associated with the
first form. That is why the other forms were not working.

The fix was simply making sure we pass the ReCaptcha ID when we call
grecaptcha.execute().

[MAILPOET-4145]
2022-05-19 09:22:30 +02:00
f75ed915fb Reset the ReCaptcha when there is an error
This commit makes sure we reset the ReCaptcha when there is an error so
that the form continues to work and that the user can fix the error and
submit the form again. This was affecting only the invisible ReCaptcha.

For more information on the problem that is fixed by this commit, see
https://github.com/mailpoet/mailpoet/pull/4084#pullrequestreview-959001922

[MAILPOET-4145]
2022-05-19 09:22:30 +02:00
02adf6adc9 Only display ReCaptcha sign up link if ReCaptcha is selected
This commit changes the logic to display the link to sign up for
ReCaptcha API keys in the advanced settings page. Before the link was always
visible, now it will be visible only if one of the two supported
ReCaptcha checks are selected.

[MAILPOET-4145]
2022-05-19 09:22:30 +02:00
ba47f0b854 Rename variables to make the ReCaptcha code easier to understand
This commit renames two variables to make it easier to understand the
code responsible for adding a ReCapcha to a subscription form:

formData.recaptcha -> formData.recaptchaWidgetId
formData.data.recaptcha -> formData.data.recaptchaResponseToken

Before this change it was harder to understand the difference between
formData.recaptcha and formData.data.recaptcha since they used the same
name.

[MAILPOET-4145]
2022-05-19 09:22:30 +02:00
909e59ca1f Fix jQuery selectors for the invisible ReCaptcha
The original code that added suport for the invisible ReCaptcha assumed
an HTML structure for all the subscription forms that was invalid.
Different forms can have slightly different HTML structures. This meant
that the original code worked for some forms, but not for others.

This commit changes the jQuery selectors needed for the invisible
ReCaptcha to work to be more lenient (to search for a given element
in more than one level in the DOM tree) and to function on different
HTML structures.

[MAILPOET-4145]
2022-05-19 09:22:30 +02:00
c1bd52b964 Add code to display the invisible ReCaptcha in the frontend
This commit adds the required code to display the invisible ReCaptcha in
the frontend when a form is rendered and this type of captcha is
selected in the admin.

[MAILPOET-4145]
2022-05-19 09:22:30 +02:00
84e22b82bd Move functions to the top in preparation for subsequent change
This commit simply moves four functions to the top of the public.jsx
file to satisfy the no-use-before-define ESLint rule. This is necessary
for some changes that will be implemented in a subsequent commit to
add support for the invisible ReCaptacha. I'm doing them in a separate
commit to make the review process easier.

[MAILPOET-4145]
2022-05-19 09:22:30 +02:00
fe8d47de0a Add option to the admin to use ReCaptcha v2 Invisible
This commit adds a new option to let users select ReCaptcha v2 Invisible
when using a captcha in the forms. Before we supported only ReCaptcha
v2 Checkbox.

It introduces a new option to the Advanced settings screen where users
can enter the keys for this type of ReCaptcha. Support for rendering
this type of captch in the frontend will be added in a future commit.

[MAILPOET-4145]
2022-05-19 09:22:30 +02:00
77d46d9a1b Remove memory limit when building translations 2022-05-18 15:27:29 +02:00
e4886cf812 Update Doctrine before running tests
[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
17de7fd186 Adjust do script the root to run tests correctly
[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
3af20cc3ce Disable captcha when running acceptance tests
[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
69a82a0213 Fix issue with collation conflict failing the tests
If the default collation of database would vary from the one
from created tables it would cause the temp table created to
have a different collation than the main tables

[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
b69b50f5d6 Enable Xdebug for integration tests
[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
51fe5c58d4 Switch integrationtests to run use machine on CircleCi
[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
7f113ab5b3 Correctly check for MU install for running MU specific test
[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
4040f216ee Enable sending email for local integration tests
[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
db4ef57b2e Fix failing test in AutomatedLatestContentTest
[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
393154e080 Adjust used Docker container to run integration tests
[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
631640c4ea Make form iframe resizing cross-origin compatible
[MAILPOET-3655]
2022-05-17 14:16:45 +02:00
7bfbbf7852 Release 3.89.1 2022-05-17 13:48:29 +02:00
cac83393ab Revert "Remove integration tests for deprecated models"
This reverts commit 49e3d958d9.
2022-05-17 12:27:46 +02:00
64c184de9e Revert "Deprecate models NewsletterOption and NewsletterOptionField"
This reverts commit 5fc426e18a.
2022-05-17 12:27:46 +02:00
74e59e5f96 Revert "Deprecate some unused Models\Newsletter methods"
This reverts commit 1c70f2ccff.
2022-05-17 12:27:46 +02:00
fce14358bf Revert "Replace NewsletterOption and NewsletterOptionField models"
This reverts commit 9b087f719f.
2022-05-17 12:27:46 +02:00