Commit Graph

20468 Commits

Author SHA1 Message Date
Rodrigo Primo
5d839277d6 Replace expect()->same() with verify()->same()
codeception/verify 2.1 removed support for expect()->same() so we need
to replace it with verify()->same().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
a70067a34c Replace expect()->hasKey() with verify()->arrayHasKey()
codeception/verify 2.1 removed support for expect()->hasKey() so we need
to replace it with verify()->arrayHasKey().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
eba025a345 Replace expect()->stringNotContainsString() with verify()->stringNotContainsString()
codeception/verify 2.1 removed support for expect()->stringNotContainsString() so we need
to replace it with verify()->stringNotContainsString().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
0d2f6e0776 Replace expect()->stringContainsString() with verify()->stringContainsString()
codeception/verify 2.1 removed support for expect()->stringContainsString() so we need
to replace it with verify()->stringContainsString().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
709be1d541 Replace expect()->null() with verify()->null()
codeception/verify 2.1 removed support for expect()->null() so we need
to replace it with verify()->null().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
997f635d4a Replace expect()->false() with verify()->false()
codeception/verify 2.1 removed support for expect()->false() so we need
to replace it with verify()->false().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
9adbf81a78 Replace expect()->true() with verify()->true()
codeception/verify 2.1 removed support for expect()->true() so we need
to replace it with verify()->true().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
35c24fb324 Update codeception/verify to version 2.1.1
[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
Rodrigo Primo
afe378ba22 Replace expect()->equals() with verify()->equals()
codeception/verify 2.1 removed support for expect()->equals() so we need
to replace it with verify()->equals().

[MAILPOET-5664]
2023-10-24 08:58:22 +03:00
John Oleksowicz
9e855c7964 Remove unnecessary setting of cookie
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
628081a13a Fix analytics inclusion conditional
It wasn't intentional to make analytics dependent on whether or not the
site is an ecommerce plan or if the 3rd party library setting is enabled
. This ensures that analytic tracking will always actually be enabled
when the user opts in to it.

MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
3e8ccaa760 Don't rely on cookie for analytics public ID
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
c09409e1de Replace manual option field creation with factory
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
b54b66b5b2 Add NewsletterOptionField factory
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
2d4fd0aeab Remove user property reporting frontend code
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
23806b6395 Schedule initial mixpanel task
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
6e27fe58bc Add next run date logic for mixpanel reporting
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
168f72182c Extract method to retrieve next send date
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
4855aaaa93 Register mixpanel worker
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
933fb27265 Create cron worker for reporting mixpanel data
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
c809461322 Remove phpstan exception that no longer triggers
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
3e45bca0f9 Make methods public
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
010c15013f Extract analytics data generation method
MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
75b17ba0ba Don't clean newsletter_option_fields table
Option field records are created at plugin activation and some of our
code assumes at least one record will exist.

MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
95b7163593 Add mixpanel PHP library
I'm adding this unprefixed because the library contains code that
dynamically instantiates objects assuming that certain classes will
exist in the global namespace. If we definitely need to include this
library prefixed we would need to add some custom code to update those
references, and also double check that there are no other places we
might run into similar issues.

MAILPOET-5161
2023-10-23 17:40:54 +02:00
John Oleksowicz
e3a8db7de9 Ensure we're checking file extension
This prevents an error when adding packages whose names end in php

MAILPOET-5161
2023-10-23 17:40:54 +02:00
Jan Jakes
2956012e5b Remove conditions step errors on condition change
[MAILPOET-5587]
2023-10-23 17:09:16 +02:00
Jan Jakes
d9cc8ff80d Render branch badges in analytics
[MAILPOET-5587]
2023-10-23 17:09:16 +02:00
Jan Jakes
69e0ad86be Render branch curve leaves in analytics
[MAILPOET-5587]
2023-10-23 17:09:16 +02:00
Jan Jakes
de5723e416 Turn off drag and scroll handling for analytics rendering
[MAILPOET-5587]
2023-10-23 17:09:16 +02:00
Jan Jakes
62f2d1e773 Add registry subjects to automation analytics
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
3235bd704f Improve naming of filter strings
[MAILPOET-5587]
2023-10-23 17:09:16 +02:00
Jan Jakes
565222cb16 Improve translatability of filters/conditions chip label
[MAILPOET-5587]
2023-10-23 17:09:16 +02:00
Jan Jakes
87d90a44fd Fix error when step type is unknown
[MAILPOET-5587]
2023-10-23 17:09:16 +02:00
Jan Jakes
10d28da84c Implement drag-to-scroll for automation flow
[MAILPOET-5667]
2023-10-23 17:09:16 +02:00
Jan Jakes
412fc16fda Extract automation scroll centering to a custom hook
[MAILPOET-5587]
2023-10-23 17:09:16 +02:00
Jan Jakes
df9e582924 Implement new automation scrolling with simultaneous X and Y scroll support
This fixes horizontal scroll bar appearing only after scrolling till the end vertically.
Allows for simultaneous X and Y axis scrolling on trackpads and touch devices.

[MAILPOET-5587]
2023-10-23 17:09:16 +02:00
Jan Jakes
9e036244c4 Fix if/else step keywords
[MAILPOET-5587]
2023-10-23 17:09:16 +02:00
Jan Jakes
8471ea4caf Remove unnecessary translation function
[MAILPOET-5587]
2023-10-23 17:09:16 +02:00
Jan Jakes
c33da588af Validate that fields in filters are provided by subjects available in the automation
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
0203f6e3a3 Use "drawerRight" icon for editor sidebar (as in recent Gutenberg)
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
617b3fa796 Add badges for if-else branches
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
afb1737280 Fix filters chip not closing on click outside and ESC
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
131ac554af Add if-else step UI
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
002bb2f92a Center automation flow horizontally on first load
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
524298ff41 Implement rendering for multiple automation branches
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
d0726e348e Implement if/else action
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
f55c4f7755 Make next step ID nullable (ability to save multiple edges without next steps)
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
32e5d4f8ac Add check that next step was scheduled when multiple next steps are possible
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Jan Jakes
72ce5fb569 Add a possibility to schedule next step by index
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00