Skip to content

Commit

Permalink
chore: remove slack connect and call help (#6044)
Browse files Browse the repository at this point in the history
* chore: remove slack connect and call help
  • Loading branch information
makeavish authored Sep 26, 2024
1 parent 6e3141a commit 7a125e3
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions frontend/src/pages/Support/Support.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import useLicense from 'hooks/useLicense';
import { useNotifications } from 'hooks/useNotifications';
import {
Book,
Cable,
Calendar,
CreditCard,
Github,
MessageSquare,
Expand Down Expand Up @@ -78,22 +76,6 @@ const supportChannels = [
url: '',
btnText: 'Launch chat',
},
{
key: 'schedule_call',
name: 'Schedule a call',
icon: <Calendar />,
title: 'Schedule a call with the founders.',
url: 'https://calendly.com/vishal-signoz/30min',
btnText: 'Schedule call',
},
{
key: 'slack_connect',
name: 'Slack Connect',
icon: <Cable />,
title: 'Get a dedicated support channel for your team.',
url: '',
btnText: 'Request Slack connect',
},
];

export default function Support(): JSX.Element {
Expand Down Expand Up @@ -122,20 +104,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;

Expand Down Expand Up @@ -214,15 +182,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;
Expand Down

0 comments on commit 7a125e3

Please sign in to comment.