From bb7634908de2ff8f202f15881a7ec34575333389 Mon Sep 17 00:00:00 2001 From: Eddie Date: Mon, 23 Sep 2024 16:22:22 +0100 Subject: [PATCH 001/405] New help hub page --- src/Tribe/Settings_Manager.php | 2 +- src/admin-views/help-hub.php | 43 +++++++++++++++++++ .../postcss/tribe-common-admin/_main.pcss | 5 --- 3 files changed, 44 insertions(+), 6 deletions(-) create mode 100644 src/admin-views/help-hub.php diff --git a/src/Tribe/Settings_Manager.php b/src/Tribe/Settings_Manager.php index 1dc24207d3..6ca2c7a3a5 100644 --- a/src/Tribe/Settings_Manager.php +++ b/src/Tribe/Settings_Manager.php @@ -295,7 +295,7 @@ public function do_help_tab() { * Include Help tab Assets here */ - include_once Tribe__Main::instance()->plugin_path . 'src/admin-views/help.php'; + include_once Tribe__Main::instance()->plugin_path . 'src/admin-views/help-hub.php'; } /** diff --git a/src/admin-views/help-hub.php b/src/admin-views/help-hub.php new file mode 100644 index 0000000000..f266016cbb --- /dev/null +++ b/src/admin-views/help-hub.php @@ -0,0 +1,43 @@ + +
+ +

+ + Help

+ + + + +
+
+
+

Support Hub

+

+ todo +

+
+
+

todo

+ +
+
+ diff --git a/src/resources/postcss/tribe-common-admin/_main.pcss b/src/resources/postcss/tribe-common-admin/_main.pcss index a947cbd69b..7718194b5a 100644 --- a/src/resources/postcss/tribe-common-admin/_main.pcss +++ b/src/resources/postcss/tribe-common-admin/_main.pcss @@ -2131,7 +2131,6 @@ a.tribe-rating-link { body.tribe-welcome, body.tec-help { - background-color: white; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; @@ -2147,10 +2146,6 @@ body.tec-help { /* this is a temporary hack until the Update page and Event Tickets Welcome are re-factored */ .tribe_settings { margin: 0; - - & > h1 { - display: none; - } } #wpfooter { From 34a4b169c6f9d40556cdbe6acb5011af15d577a2 Mon Sep 17 00:00:00 2001 From: Eddie Date: Tue, 24 Sep 2024 18:26:14 +0100 Subject: [PATCH 002/405] Fixed html, fixed tabbing --- src/admin-views/help-hub.php | 53 ++++++++++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 8 deletions(-) diff --git a/src/admin-views/help-hub.php b/src/admin-views/help-hub.php index f266016cbb..ef994fc315 100644 --- a/src/admin-views/help-hub.php +++ b/src/admin-views/help-hub.php @@ -14,12 +14,12 @@
+ + + From ccdc7a4eab0336fcc18f6329324097cb088173bc Mon Sep 17 00:00:00 2001 From: Eddie Date: Tue, 24 Sep 2024 19:01:26 +0100 Subject: [PATCH 003/405] Removed some unnecessary class attrs --- src/admin-views/help-hub.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/admin-views/help-hub.php b/src/admin-views/help-hub.php index ef994fc315..4b262a8c40 100644 --- a/src/admin-views/help-hub.php +++ b/src/admin-views/help-hub.php @@ -6,21 +6,18 @@ ?>
-

- Help

-
- template( 'help-hub/support-hub' ); ?> + template( 'help-hub/support/support-hub' ); ?>
- template( 'help-hub/resources' ); ?> + template( 'help-hub/resources/resources' ); ?>
diff --git a/src/admin-views/help-hub/resources-sidebar.php b/src/admin-views/help-hub/resources-sidebar.php deleted file mode 100644 index cbf0c8b4ff..0000000000 --- a/src/admin-views/help-hub/resources-sidebar.php +++ /dev/null @@ -1,16 +0,0 @@ -template( 'help-hub/shared-sidebar-no-license' ); -} elseif ( $is_opted_in ) { - $this->template( 'help-hub/resources-sidebar-has-license-has-consent' ); -} else { - $this->template( 'help-hub/shared-sidebar-has-license-no-consent' ); -} diff --git a/src/admin-views/help-hub/resources.php b/src/admin-views/help-hub/resources/resources.php similarity index 89% rename from src/admin-views/help-hub/resources.php rename to src/admin-views/help-hub/resources/resources.php index 04367041ff..6f28671136 100644 --- a/src/admin-views/help-hub/resources.php +++ b/src/admin-views/help-hub/resources/resources.php @@ -2,8 +2,16 @@ /** * The template that displays the resources tab on the help page. * - * @var Tribe__Main $main The main common object. - * @var string $notice The admin notice HTML. + * @var Tribe__Main $main The main common object. + * @var bool $is_opted_in Whether the user has opted in to telemetry. + * @var bool $is_license_valid Whether the user has any valid licenses. + * @var string $zendesk_chat_key The API key for the Zendesk chat integration. + * @var string $docblock_chat_key The API key for the DocsBot chat integration. + * @var string $opt_in_link The link to the telemetry opt-in page. + * @var string $notice The admin notice HTML for the chatbot callout. + * @var string $template_variant The template variant, determining which template to display. + * @var string $stars_icon_url The URL for the stars icon image. + * @var string $chat_icon_url The URL for the chat bubble icon image. */ $tec_icon_url = tribe_resource_url( 'images/logo/the-events-calendar.svg', false, null, $main ); @@ -57,7 +65,7 @@