From 4841c4414ddd625a68227feae8bebc1722327c1b Mon Sep 17 00:00:00 2001 From: makeavish Date: Fri, 20 Sep 2024 17:03:47 +0530 Subject: [PATCH 1/2] chore: remove slack connect and call help --- frontend/src/pages/Support/Support.tsx | 38 ++------------------------ 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/frontend/src/pages/Support/Support.tsx b/frontend/src/pages/Support/Support.tsx index 9d3d8fff8f..9d82cccbc5 100644 --- a/frontend/src/pages/Support/Support.tsx +++ b/frontend/src/pages/Support/Support.tsx @@ -10,8 +10,8 @@ import useLicense from 'hooks/useLicense'; import { useNotifications } from 'hooks/useNotifications'; import { Book, - Cable, - Calendar, + // Cable, + // Calendar, CreditCard, Github, MessageSquare, @@ -78,22 +78,6 @@ const supportChannels = [ url: '', btnText: 'Launch chat', }, - { - key: 'schedule_call', - name: 'Schedule a call', - icon: , - title: 'Schedule a call with the founders.', - url: 'https://calendly.com/vishal-signoz/30min', - btnText: 'Schedule call', - }, - { - key: 'slack_connect', - name: 'Slack Connect', - icon: , - title: 'Get a dedicated support channel for your team.', - url: '', - btnText: 'Request Slack connect', - }, ]; export default function Support(): JSX.Element { @@ -122,20 +106,6 @@ export default function Support(): JSX.Element { // eslint-disable-next-line react-hooks/exhaustive-deps }, []); - const handleSlackConnectRequest = (): void => { - const recipient = 'support@signoz.io'; - const subject = 'Slack Connect Request'; - const body = `I'd like to request a dedicated Slack Connect channel for me and my team. Users (emails) to include besides mine:`; - - // Create the mailto link - const mailtoLink = `mailto:${recipient}?subject=${encodeURIComponent( - subject, - )}&body=${encodeURIComponent(body)}`; - - // Open the default email client - window.location.href = mailtoLink; - }; - const isPremiumChatSupportEnabled = useFeatureFlags(FeatureKeys.PREMIUM_SUPPORT)?.active || false; @@ -214,15 +184,11 @@ export default function Support(): JSX.Element { case channelsMap.documentation: case channelsMap.github: case channelsMap.slack_community: - case channelsMap.schedule_call: handleChannelWithRedirects(channel.url); break; case channelsMap.chat: handleChat(); break; - case channelsMap.slack_connect: - handleSlackConnectRequest(); - break; default: handleChannelWithRedirects('https://signoz.io/slack'); break; From 0f3d8638242ac153eee620122b910392732183c1 Mon Sep 17 00:00:00 2001 From: makeavish Date: Fri, 20 Sep 2024 18:25:50 +0530 Subject: [PATCH 2/2] chore: remove commented code --- frontend/src/pages/Support/Support.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/frontend/src/pages/Support/Support.tsx b/frontend/src/pages/Support/Support.tsx index 9d82cccbc5..668ac34143 100644 --- a/frontend/src/pages/Support/Support.tsx +++ b/frontend/src/pages/Support/Support.tsx @@ -10,8 +10,6 @@ import useLicense from 'hooks/useLicense'; import { useNotifications } from 'hooks/useNotifications'; import { Book, - // Cable, - // Calendar, CreditCard, Github, MessageSquare,