Commit Graph

13868 Commits

Author SHA1 Message Date
Rostislav Wolny
7ee35cd24c Swap clicks and opens order in newsletter listing table
[MAILPOET-3739]
2021-08-30 12:32:40 +02:00
Rostislav Wolny
96cbddc1d5 Remove top margin for first block in columns in form editor
This slightly improves WYSIWYG experience in the editor.
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
aed6a0c266 Pass editor context to inserter library component
We need to pass insertion point data to the inserter Library component in side panel,
so that it select proper blocks and insert block to correct place.
Fallback values in the Library component don't work correctly with the default appender
(plus icon at very end of the form).

[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
0d0ac4c6f2 Refactor inserter sidebar open state to form editor store
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
cfcb4fd661 Center appender icon in nested columns in form editor
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
abc965e143 Add support for colors in column block in form editor
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
05de6ae163 Update form editor acceptance tests SelectControl selectors
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
6a412ac035 Update form editor default configuration
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
8d0d2e168b Add support for custom padding in form column
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
3700003e15 Don't render form column width style if only unit is saved
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
8c9c17b261 Fix inserter sidebar appearance on mobile
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
7ab4576d04 Fix block inserter sidebar appearance
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
c1a0b70cd0 Fix react props warning on settings page
[MAILPOET-3532]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
422245e3e6 Merge settings and form_editor webpack configs into admin config
Form editor and settings used to have a separate configs because we
they use lodash and it conflicted with underscore in newsletter edtior.
We had recently fixed that conflict and now we can add them to admin.
This also resolves an issue with multiple loading of @emotion/react
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
d011c5ac70 Update fix of CSS for block inserter toggle
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
e5c90821be Add support for isStackedOnMobile for columns
[MAILPOET-3564]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
5d2f26b770 Add space for floating block toolbar in form editor
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
d8d777b4d2 Update inserting a block in acceptance tests
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
ed9225a8d0 Disable anchor for column and columns blocks
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
bd41098e5e Fix saving and rendering form columns widths
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
781c4426c4 Fix custom CSS editor error
There was an error when closing the panel with the custom CSS.
TypeError: Cannot read property 'removeChild' of null on textarea.parentNode
Wrapping the textarea into a div helped.
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
5e5eccbbff Fix form editor background color
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
34cdd88bcd Replace removed __experimentalUseEditorFeature
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
a0d566b9a9 Use BlockTools for block tools toobar
Popover slot for block tools is deprecated
[MAILPOET-3658]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
d0cbd74f97 Remove unnecessary DropZoneProvider from editor component
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
2b3594ca5a Use webpack bail option only for production build
This was causing js watch to exit on errors
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
ee9a612909 Update react and react-dom packages
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
e8a6f5b1ad Add workaround for @emotion packages naming issue
Storybook uses @emotion packages v10 and @wordpress/components
require v11. Storybook works with version 11 but since there were some merges
in @emotion packages we need to set some aliases and also make sure correct versions
are installed on top level in node_modules.
See https://github.com/storybookjs/storybook/pull/13300#issuecomment-783268111
This workaround was done based on a workaround applied in the Gutenberg project
bc072fddef
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
3871add5a6 Update WordPress JS packages
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rodrigo Primo
fb5ff0b90a Replace Paris code with Doctrine equivalents for exporter tests
[MAILPOET-3738]
2021-08-25 17:01:33 +02:00
Rodrigo Primo
8b7815caf8 Use Doctrine for the opens and clicks exporters
This commit refactors the code that handles exporting e-mails opens and
clicks when generating the personal data file to use Doctrine instead of
Paris. I opted to do this in this task as opens and clicks code share
some functionality, and I didn't want to add more code that relies on
Paris, as we are eventually going to remove it.

[MAILPOET-3738]
2021-08-25 17:01:33 +02:00
Rodrigo Primo
780ac5e53c Add email opens data when exporting personal data
This commit adds stats about email opens data to the personal data
exported by WP.

To do this, I refactored the code that adds email clicks stats to use
base abstract class with functionality that is shared between both
exporters.

[MAILPOET-3738]
2021-08-25 17:01:33 +02:00
Rodrigo Primo
4fdcee1064 Add the new user agent field when exporting data about clicks
This commit includes information about the user agent used when clicking
links in e-mails to the data that MailPoet exports when the WP tool
"Export Personal Data" is used.

When information about the user agent is not available, the string
'Unknown' is displayed instead.

This information is available under the section "MailPoet Emails
Clicks".

[MAILPOET-3738]
2021-08-25 17:01:33 +02:00
Pavel Dohnal
525b5e3582 Move subscribers cache note down
[MAILPOET-3754]
2021-08-25 14:01:34 +02:00
Pavel Dohnal
04424f6389 Fix a conflict when a phpmailer is already defined
[MAILPOET-3769]
2021-08-25 12:45:57 +02:00
Pavel Dohnal
e87885bdd0 Use number comparasion
[MAILPOET-3626]
2021-08-25 09:22:44 +02:00
Pavel Dohnal
e4aca4f6de Refactor endpoint to doctrine
[MAILPOET-3626]
2021-08-25 09:22:44 +02:00
Pavel Dohnal
285b76162c Run the test only if premium plugin is not present
[MAILPOET-3723]
2021-08-24 14:18:12 +02:00
Pavel Dohnal
8745208813 Release 3.67.1 2021-08-24 12:15:39 +02:00
Jan Lysý
ee84dc382b Change user_agent_type column to tinyint
[MAILPOET-3736]
2021-08-23 16:37:59 +02:00
Jan Lysý
292f075abe Improve user agent overriding
[MAILPOET-3736]
2021-08-23 16:37:59 +02:00
Jan Lysý
ed46c48706 Calculate statistics only from data with type human
[MAILPOET-3736]
2021-08-23 16:37:59 +02:00
Jan Lysý
a22ab943be Add integration tests for statistic user agent update
[MAILPOET-3736]
2021-08-23 16:37:59 +02:00
Jan Lysý
71ce62d027 Set user agent type in statistic tables
[MAILPOET-3736]
2021-08-23 16:37:59 +02:00
Jan Lysý
34ad21187d Add userAgentType property to statistics entities
[MAILPOET-3736]
2021-08-23 16:37:59 +02:00
Jan Lysý
9192602adf Add a new column user_agent_type to statistics tables
[MAILPOET-3736]
2021-08-23 16:37:59 +02:00
Jan Lysý
f6513ab2b7 Add user-agent type detection
[MAILPOET-3736]
2021-08-23 16:37:59 +02:00
Pavel Dohnal
5d967f3457 Use a single string instead of array of strings
[MAILPOET-3625]
2021-08-23 14:18:57 +02:00
Pavel Dohnal
3b7752daed Refactor creating new list to Doctrine
[MAILPOET-3625]
2021-08-23 14:18:57 +02:00
Pavel Dohnal
3d1e2c5a2e Refactor setupWooCommerceInitialImport to Doctrine
[MAILPOET-3625]
2021-08-23 14:18:57 +02:00