Commit Graph

67 Commits

Author SHA1 Message Date
Brezo Cordero
4d29faf998 Add permission level for the help page
[MAILPOET-6013]
2024-05-14 13:03:37 +02:00
Brezo Cordero
cbff461b4d Display upgrade page if no valid premium key
[MAILPOET-5905]
2024-03-25 12:36:08 +01:00
Brezo Cordero
724681d3a7 Display upgrade page for Tier 1
[MAILPOET-5905]
2024-03-25 12:36:08 +01:00
Jan Jakes
3972a4d7e7 Remove automations beta badge
[MAILPOET-5936]
2024-03-14 11:09:12 +01:00
Rostislav Wolny
2012621791 Improve code comment when adding block editor class
[MAILPOET-5854]
2024-01-29 10:52:41 +01:00
Rostislav Wolny
cc8bb10d8b Add proper body class for the email editor to mark it a block editor
This class is needed so that some CSS rules (e.g. white background, hidden footer)
are applied for WP admin.
[MAILPOET-5854]
2024-01-29 10:52:41 +01:00
Rostislav Wolny
414e540f33 Remove unnecessary code for highlighting MailPoet > Email menu
The code was needed when we used the post editor. After we switched to
the custom editor we don't need it any more.
[MAILPOET-5854]
2024-01-29 10:52:41 +01:00
Jan Jakes
ef8d7bf264 Remove automation hiding logic
This was introduced in:

https://github.com/mailpoet/mailpoet/pull/4917
https://github.com/mailpoet/mailpoet/pull/5171

[MAILPOET-5779]
2024-01-10 19:12:39 +05:00
Jan Jakes
24dfd5c4c7 Fix deprecation error for pages hidden in menu
[MAILPOET-5718]
2023-11-23 10:50:33 +01:00
Rostislav Wolny
debbeaafdc Add EmailEditor page into MailPoet admin
[MAILPOET-5603]
2023-10-17 16:06:06 +02:00
Brezo Cordero
c12438db08 Add filter to remove restriction on Woo Express
[MAILPOET-5573]
2023-09-25 07:02:19 -07:00
Rostislav Wolny
68e833f80c Refactor email editor PHP and JS code to follow automations namespacing
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
5abc308f40 Highlight correct submenu item when editing email
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Jan Lysý
3a5f2624c8 Unify form template selection header with automation
I used WordPress components when it was possible and changed used block from container to content.
[MAILPOET-5376]
2023-07-31 12:28:46 +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
Jan Jakes
c0bdb01965 Fix passing empty callback
[MAILPOET-5383]
2023-06-16 17:14:34 +02:00
Jan Jakes
cbb1db857b Fix deprecation notice when hiding automations menu
[MAILPOET-5383]
2023-06-16 17:14:34 +02:00
Ralf Wiechers
1cd6ddd1f5 Prevent PHP notices
[MAILPOET-5383]
2023-06-16 17:14:34 +02:00
David Remer
f10ef78825 Add Analytics Page and backend logic
[MAILPOET-5088]
2023-06-15 12:25:12 +02:00
Jan Jakes
86320563ab Highlight automations menu when email editor accessed from automations
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
2b071b6e4f Add default color to MailPoet icon to avoid flicker from black, simplify SVG
The default color is #a7aaad, when CSS is ready, it can override it.
This approach seems to be also used by Woo.

I also removed useless title and groups from the SVG.

[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
af1ad22377 Remove no longer needed menu hiding logic
This is now determined by whether the parent is "null" or not.

[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
dfe5a54762 Highlight main MailPoet menu for welcome wizard, landing page, Woo setup, and error page
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Jan Jakes
2c9f72a824 Implement menu highlighting for MailPoet pages in PHP
[MAILPOET-5296]
2023-05-23 14:02:58 +02:00
Brezo Cordero
6b40dfabf3 Hide Automations menu for bundles
Using null instead of true so that the pages are available directly.

[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Rostislav Wolny
d81571dd47 Update CSS selector for automations menu link beta flag
[MAILPOET-4831]
2023-03-13 14:09:17 +01:00
Rostislav Wolny
d832925107 Remove temporary static property for the plugin main page
The property was added so that we were able to set the main page
dynamically based on the feature switch value. This is no longer needed and
we can use the hardcoded constant as we did before.
[MAILPOET-4831]
2023-03-13 14:09:17 +01:00
Rostislav Wolny
0f01755e18 Remove homepage feature switch
[MAILPOET-4831]
2023-03-13 14:09:17 +01:00
Oluwaseun Olorunsola
d061d451a4 Remove Export from Main menu options
MAILPOET-5045
2023-02-13 11:58:58 +01:00
David Remer
139fb2f1ad Hide Automations and Upgrade in landingpage
[MAILPOET-5019]
2023-01-25 13:42:43 +01:00
David Remer
47a4e3b4e9 Hide menu entries when not setup yet
[MAILPOET-5019]
2023-01-25 13:42:43 +01:00
Oluwaseun Olorunsola
4be7f37bbc Remove the feature flag from Landing page
MAILPOET-4803
2023-01-23 15:13:38 +01:00
Oluwaseun Olorunsola
e850eaa90c Add Landing page and hide behind feature flag
MAILPOET-4795
2023-01-06 18:29:46 +01:00
Rodrigo Primo
6533a1444d Display submenu entries only after the Welcome Wizard is completed
[MAILPOET-4815]
2022-12-19 21:37:42 +01:00
Rodrigo Primo
4ceb508218 Fix typo 2022-12-19 21:37:42 +01:00
Rostislav Wolny
8fbc5c270a Place home at the first position in submenu
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
92dc5921df Set main page to homepage in case the feature is active
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
3c3ce37720 Temporarily add static property for MAIN_PAGE_SLUG
We need to be able to change it when homepage feature is active.
When we remove the feature flag will switch back to using constant.
Note I also kept the constant in case a third party plugin uses it.
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
01aa1e1e52 Refactor page slugs into constants
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Rostislav Wolny
2bbc1b7063 Add homepage page and submenu item hidden behind feature flag
[MAILPOET-4824]
2022-11-30 11:42:41 +01:00
Jan Jakes
926620e8f8 Ignore strict types rule in all existing files that don't have it
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Jan Jakes
882402645d Do not wrap automations beta badge, make it a bit smaller
[MAILPOET-4840]
2022-11-25 09:55:11 +01:00
Jan Jakes
7570c9fa0e Make automations Beta badge smaller
[MAILPOET-4836]
2022-11-22 09:23:57 +01:00
Jan Jakes
725e0ecb00 Remove automation feature flag
[MAILPOET-4788]
2022-11-14 12:35:29 +02:00
David Remer
af3d08ff36 Add method to detect automation pages
[MAILPOET-4755]
2022-11-04 06:26:21 +02:00
David Remer
e37a824d86 Hide notices on onboarding screen
[MAILPOET-4536]
2022-11-03 11:56:21 +01:00
David Remer
c4e7ea4c8e Use addFilter instead of addAction
[MAILPOET-4728]
2022-10-25 12:04:44 -05:00
David Remer
ce462f1643 Close correct HTML element type
[MAILPOET-4728]
2022-10-25 12:04:44 -05:00
David Remer
91936aff92 Rename Automation to Automations in Menu
[MAILPOET-4728]
2022-10-25 12:04:44 -05:00