From d7846338ce663f4e63d4fb052e912505631d006b Mon Sep 17 00:00:00 2001 From: Vishal Sharma Date: Thu, 24 Oct 2024 16:53:00 +0530 Subject: [PATCH] chore: remove facing issues button (#6256) --- .../src/components/LaunchChatSupport/util.ts | 75 ------------------- .../container/ListAlertRules/ListAlert.tsx | 10 --- .../ListOfDashboard/DashboardsList.tsx | 12 --- .../DashboardDescription/index.tsx | 14 ---- .../LeftContainer/QuerySection/index.tsx | 16 ---- frontend/src/pages/Integrations/Header.tsx | 9 --- .../IntegrationDetailPage.tsx | 14 ---- 7 files changed, 150 deletions(-) diff --git a/frontend/src/components/LaunchChatSupport/util.ts b/frontend/src/components/LaunchChatSupport/util.ts index 8b610b11cc..ebf40eadb1 100644 --- a/frontend/src/components/LaunchChatSupport/util.ts +++ b/frontend/src/components/LaunchChatSupport/util.ts @@ -1,46 +1,3 @@ -import { PANEL_TYPES } from 'constants/queryBuilder'; -import { AlertDef } from 'types/api/alerts/def'; -import { Dashboard, DashboardData } from 'types/api/dashboard/getAll'; - -export const chartHelpMessage = ( - selectedDashboard: Dashboard | undefined, - graphType: PANEL_TYPES, -): string => ` -Hi Team, - -I need help in creating this chart. Here are my dashboard details - -Name: ${selectedDashboard?.data.title || ''} -Panel type: ${graphType} -Dashboard Id: ${selectedDashboard?.uuid || ''} - -Thanks`; - -export const dashboardHelpMessage = ( - data: DashboardData | undefined, - selectedDashboard: Dashboard | undefined, -): string => ` -Hi Team, - -I need help with this dashboard. Here are my dashboard details - -Name: ${data?.title || ''} -Dashboard Id: ${selectedDashboard?.uuid || ''} - -Thanks`; - -export const dashboardListMessage = `Hi Team, - -I need help with dashboards. - -Thanks`; - -export const listAlertMessage = `Hi Team, - -I need help with managing alerts. - -Thanks`; - export const onboardingHelpMessage = ( dataSourceName: string, moduleId: string, @@ -55,35 +12,3 @@ Module: ${moduleId} Thanks `; - -export const alertHelpMessage = ( - alertDef: AlertDef, - ruleId: number, -): string => ` -Hi Team, - -I need help in configuring this alert. Here are my alert rule details - -Name: ${alertDef?.alert || ''} -Alert Type: ${alertDef?.alertType || ''} -State: ${(alertDef as any)?.state || ''} -Alert Id: ${ruleId} - -Thanks`; - -export const integrationsListMessage = `Hi Team, - -I need help with Integrations. - -Thanks`; - -export const integrationDetailMessage = ( - selectedIntegration: string, -): string => ` -Hi Team, - -I need help in configuring this integration. - -Integration Id: ${selectedIntegration} - -Thanks`; diff --git a/frontend/src/container/ListAlertRules/ListAlert.tsx b/frontend/src/container/ListAlertRules/ListAlert.tsx index 424d98ddd9..8e18efdb20 100644 --- a/frontend/src/container/ListAlertRules/ListAlert.tsx +++ b/frontend/src/container/ListAlertRules/ListAlert.tsx @@ -5,7 +5,6 @@ import type { ColumnsType } from 'antd/es/table/interface'; import saveAlertApi from 'api/alerts/save'; import logEvent from 'api/common/logEvent'; import DropDown from 'components/DropDown/DropDown'; -import { listAlertMessage } from 'components/LaunchChatSupport/util'; import { DynamicColumnsKey, TableDataSource, @@ -397,15 +396,6 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element { dynamicColumns={dynamicColumns} onChange={handleChange} pagination={paginationConfig} - facingIssueBtn={{ - attributes: { - screen: 'Alert list page', - }, - eventName: 'Alert: Facing Issues in alert', - buttonText: 'Facing issues with alerts?', - message: listAlertMessage, - onHoverText: 'Click here to get help with alerts', - }} /> ); diff --git a/frontend/src/container/ListOfDashboard/DashboardsList.tsx b/frontend/src/container/ListOfDashboard/DashboardsList.tsx index 9908374a1b..9f30f18c5d 100644 --- a/frontend/src/container/ListOfDashboard/DashboardsList.tsx +++ b/frontend/src/container/ListOfDashboard/DashboardsList.tsx @@ -25,8 +25,6 @@ import logEvent from 'api/common/logEvent'; import createDashboard from 'api/dashboard/create'; import { AxiosError } from 'axios'; import cx from 'classnames'; -import LaunchChatSupport from 'components/LaunchChatSupport/LaunchChatSupport'; -import { dashboardListMessage } from 'components/LaunchChatSupport/util'; import { ENTITY_VERSION_V4 } from 'constants/app'; import ROUTES from 'constants/routes'; import { Base64Icons } from 'container/NewDashboard/DashboardSettings/General/utils'; @@ -693,16 +691,6 @@ function DashboardsList(): JSX.Element { Create and manage dashboards for your workspace. - diff --git a/frontend/src/container/NewDashboard/DashboardDescription/index.tsx b/frontend/src/container/NewDashboard/DashboardDescription/index.tsx index 9559eed42a..151fba7609 100644 --- a/frontend/src/container/NewDashboard/DashboardDescription/index.tsx +++ b/frontend/src/container/NewDashboard/DashboardDescription/index.tsx @@ -12,8 +12,6 @@ import { Typography, } from 'antd'; import logEvent from 'api/common/logEvent'; -import LaunchChatSupport from 'components/LaunchChatSupport/LaunchChatSupport'; -import { dashboardHelpMessage } from 'components/LaunchChatSupport/util'; import { SOMETHING_WENT_WRONG } from 'constants/api'; import { QueryParams } from 'constants/query'; import { PANEL_GROUP_TYPES, PANEL_TYPES } from 'constants/queryBuilder'; @@ -356,18 +354,6 @@ function DashboardDescription(props: DashboardDescriptionProps): JSX.Element { {isDashboardLocked && }
- - Manage Integrations for this workspace - All Integrations - {loading ? (