Commit Graph

179 Commits

Author SHA1 Message Date
Rostislav Wolny
554b862bf3 Enable media upload
[MAILPOET-5660]
2023-10-26 10:43:00 +02:00
Rostislav Wolny
afe2cd562a Remove unnecessary CSS queueing for the email editor
[MAILPOET-5660]
2023-10-26 10:43:00 +02:00
Jan Jakes
62f2d1e773 Add registry subjects to automation analytics
[MAILPOET-5586]
2023-10-23 17:09:16 +02:00
Rostislav Wolny
399ed61503 Introduce SettingsController for managing editor settings
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
3a88989a84 Rename custom email editor to email editor
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
4646214c62 Add send email preview to custom editor
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
c04658d9c0 Skip page renderer when rendering email editor
As for now, we will not load mailpoet admin scripts for MailPoet
and other default variables that are used in MailPoet Layout.
This is to prevent unwanted dependencies on the MailPoet plugin.

[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
4b2e5e8eae Hotfix redirect when creating new email
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Jan Lysý
a07a744707 Rename folders and files by the new lint rule
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
c770901c4f Ensure post exists when loading editor page without postId
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
796df6e1b9 Adjust visual editor css
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
07576b9f79 Render basic block editor with header
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
1919d58973 Add JS build and an index file for the editor app
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Rostislav Wolny
debbeaafdc Add EmailEditor page into MailPoet admin
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
John Oleksowicz
b1dd110bf8 Add lookup data retrieval for used shipping method
For ease of lookup, I changed the helper to return an array with keys
corresponding to the instanceId of the shipping methods. I couldn't see
anywhere else in the codebase where the keys would have mattered.

MAILPOET-5625
2023-10-13 11:21:42 +02:00
Jan Jakes
312f85efdd Enqueue all styles using WP native functions
[MAILPOET-5118]
2023-10-04 15:05:38 +02:00
Jan Jakes
282f7b8414 Enqueue all admin scripts using WP native functions
[MAILPOET-5118]
2023-10-04 15:05:38 +02:00
Jan Jakes
480d9f1239 Extract admin pages assets setup out of form assets controller
[MAILPOET-5118]
2023-10-04 15:05:38 +02:00
John Oleksowicz
c0c578ee05 Only show detailed stats if premium active
Without this check, if premium is present but not active, attempting to
view the stats page for a newsletter results in an "Invalid API
endpoint" error because it tries to retrieve detailed stats from a
premium endpoint.

MAILPOET-5511
2023-10-03 13:09:11 +02:00
Jan Lysý
191bd69fac Remove coupons from dynamic segments page
[MAILPOET-5123]
2023-09-25 02:28:51 -07:00
Jan Lysý
019b9ec3fa Remove coupons loading from NewsletterEditor
[MAILPOET-5123]
2023-09-25 02:28:51 -07:00
Brezo Cordero
7e0a361b03 Rename HelpScout/Beacon
One of the hardest problems in programming. Name changed to represent what the class is for now that we have removed the beacon. Hopefully.

[MAILPOET-5551]
2023-09-07 14:50:35 +02:00
David Remer
fad0880436 Dynamically add user name and email when not yet populated
[MAILPOET-5550]
2023-08-30 12:53:11 +02:00
John Oleksowicz
ecde4c10e3 Populate store with coupon data
MAILPOET-5007
2023-08-14 13:49:55 +02:00
Jan Lysý
edaefea5b7 Use Subscribers feature instead of Installer
[MAILPOET-5429]
2023-08-03 12:31:02 +02:00
David Remer
f7689232b2 Move user roles from global window to context
[MAILPOET-5091]
2023-07-18 13:03:16 +02:00
Rodrigo Primo
c72fce9aae Separate the segments and lists pages on the PHP side
Until now we were using the same render() method and Twig templates for
the segments and lists pages. This commit separates them by creating two
different render() methods, one for each page, and also separing the
Twig templates. Only the translations remain shared as separating them
would be more involved and probably not worth it.

[MAILPOET-5392]
2023-07-12 18:46:08 +02:00
Rodrigo Primo
728b8e91ac Add new menu entry to lists
Segments and lists now will have separate menu entries. The pages will
be split in subsequent commits.

[MAILPOET-5392]
2023-07-12 18:46:08 +02:00
John Oleksowicz
a7b5bad346 Fix type mismatch
MAILPOET-5003
2023-07-12 11:10:18 +02:00
John Oleksowicz
22bd33fecc Add automations segmentation filters frontend code
MAILPOET-5003
2023-07-12 11:10:18 +02:00
Rodrigo Primo
f85b7a52fc Change logic of the code to build the 'used shipping method' segment UI
This commit fixes an issue with the initial logic used to retrieve
shipping methods to build the UI of the 'used shipping method' segment.
It updates the code to properly retrieve WooCommerce shipping methods
configured for all zones. Before the code was getting just the shipping
method types and the shipping method instances.

The query that is used to get the subscribers that match this segment
will be updated in another commit.

[MAILPOET-4992]
2023-07-04 22:23:06 +02:00
Rodrigo Primo
243c096643 Add UI for new "used shipping method" segment
[MAILPOET-4992]
2023-07-04 22:23:06 +02:00
Jan Jakes
0c6ecbd8b2 Remove filter args_schema from editor for now, as it is not used
[MAILPOET-5415]
2023-06-26 13:19:32 +02:00
Jan Jakes
24111af58b Move template management to registry
[MAILPOET-5372]
2023-06-19 13:29:25 +02:00
David Remer
f10ef78825 Add Analytics Page and backend logic
[MAILPOET-5088]
2023-06-15 12:25:12 +02:00
Jan Jakes
2c9f72a824 Implement menu highlighting for MailPoet pages in PHP
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
48328122ae Make logs and experimental featues submenus of settings
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
43fbdddc13 Add missing submenu for form template selection page
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
John Oleksowicz
ec68818c1a Add filter for used payment method
MAILPOET-4993
2023-05-19 11:57:13 +02:00
Rodrigo Primo
00d021109c Move ModelValidator::validateNonRoleEmail() to a new Validator class
We want to remove/refactor the whole ModelValidator class as part of the
Doctrine refactor.

This commit moves the method ModelValidator::validateNonRoleEmail() to a
new Validator class as the method is not used by the validator system of
the Paris models. ModelValidator::validateEmail() was also moved as it
is called by ModelValidator::validateNonRoleEmail().

[MAILPOET-4343]
2023-05-17 12:37:22 +02:00
John Oleksowicz
f75173dcd5 Add "subscribed via form" dynamic filter
MAILPOET-5005
2023-05-09 13:10:08 +02:00
Sam Najian
4137c12bca Define brand styles setting on window object if available
[MAILPOET-5194]
2023-04-26 10:57:23 +02:00
Jan Jakes
447b0e496c Add filters to UI registry
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
3ed038479a Add subject data to automation editor registry
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
David Remer
8cf48d2707 Simplify SubjectTransformer
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
c968b03ca7 Provide all possible subjects for a trigger to the UI
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
Jan Lysý
77b83ff188 Change scheduling newsletters from an hour precision to 15 minutes
[MAILPOET-4602]
2023-03-27 12:54:02 +02:00
Sam Najian
c9c75c8c6d Add admin.js to all admin pages using AssetController
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
0a11fadb05 Enqueue newletter assest using asset controller
[MAILPOET-4908]
2023-03-20 11:49:27 +01:00
Sam Najian
ece4977d6a Add newsletter_editor.js using AssetsController
newsletter_editor.js was added via newsletter/editor.html
it's now removed from the template and wpEnqueueScript is
user instead

[MAILPOET-4908]
2023-03-20 11:49:27 +01:00