mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 16:19:00 +08:00
chore: remove facing issues button (#6256)
This commit is contained in:
parent
5dac1ad20a
commit
d7846338ce
@ -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 = (
|
export const onboardingHelpMessage = (
|
||||||
dataSourceName: string,
|
dataSourceName: string,
|
||||||
moduleId: string,
|
moduleId: string,
|
||||||
@ -55,35 +12,3 @@ Module: ${moduleId}
|
|||||||
|
|
||||||
Thanks
|
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`;
|
|
||||||
|
@ -5,7 +5,6 @@ import type { ColumnsType } from 'antd/es/table/interface';
|
|||||||
import saveAlertApi from 'api/alerts/save';
|
import saveAlertApi from 'api/alerts/save';
|
||||||
import logEvent from 'api/common/logEvent';
|
import logEvent from 'api/common/logEvent';
|
||||||
import DropDown from 'components/DropDown/DropDown';
|
import DropDown from 'components/DropDown/DropDown';
|
||||||
import { listAlertMessage } from 'components/LaunchChatSupport/util';
|
|
||||||
import {
|
import {
|
||||||
DynamicColumnsKey,
|
DynamicColumnsKey,
|
||||||
TableDataSource,
|
TableDataSource,
|
||||||
@ -397,15 +396,6 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element {
|
|||||||
dynamicColumns={dynamicColumns}
|
dynamicColumns={dynamicColumns}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
pagination={paginationConfig}
|
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',
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
@ -25,8 +25,6 @@ import logEvent from 'api/common/logEvent';
|
|||||||
import createDashboard from 'api/dashboard/create';
|
import createDashboard from 'api/dashboard/create';
|
||||||
import { AxiosError } from 'axios';
|
import { AxiosError } from 'axios';
|
||||||
import cx from 'classnames';
|
import cx from 'classnames';
|
||||||
import LaunchChatSupport from 'components/LaunchChatSupport/LaunchChatSupport';
|
|
||||||
import { dashboardListMessage } from 'components/LaunchChatSupport/util';
|
|
||||||
import { ENTITY_VERSION_V4 } from 'constants/app';
|
import { ENTITY_VERSION_V4 } from 'constants/app';
|
||||||
import ROUTES from 'constants/routes';
|
import ROUTES from 'constants/routes';
|
||||||
import { Base64Icons } from 'container/NewDashboard/DashboardSettings/General/utils';
|
import { Base64Icons } from 'container/NewDashboard/DashboardSettings/General/utils';
|
||||||
@ -693,16 +691,6 @@ function DashboardsList(): JSX.Element {
|
|||||||
<Typography.Text className="subtitle">
|
<Typography.Text className="subtitle">
|
||||||
Create and manage dashboards for your workspace.
|
Create and manage dashboards for your workspace.
|
||||||
</Typography.Text>
|
</Typography.Text>
|
||||||
<LaunchChatSupport
|
|
||||||
attributes={{
|
|
||||||
screen: 'Dashboard list page',
|
|
||||||
}}
|
|
||||||
eventName="Dashboard: Facing Issues in dashboard"
|
|
||||||
message={dashboardListMessage}
|
|
||||||
buttonText="Need help with dashboards?"
|
|
||||||
onHoverText="Click here to get help with dashboards"
|
|
||||||
intercomMessageDisabled
|
|
||||||
/>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -12,8 +12,6 @@ import {
|
|||||||
Typography,
|
Typography,
|
||||||
} from 'antd';
|
} from 'antd';
|
||||||
import logEvent from 'api/common/logEvent';
|
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 { SOMETHING_WENT_WRONG } from 'constants/api';
|
||||||
import { QueryParams } from 'constants/query';
|
import { QueryParams } from 'constants/query';
|
||||||
import { PANEL_GROUP_TYPES, PANEL_TYPES } from 'constants/queryBuilder';
|
import { PANEL_GROUP_TYPES, PANEL_TYPES } from 'constants/queryBuilder';
|
||||||
@ -356,18 +354,6 @@ function DashboardDescription(props: DashboardDescriptionProps): JSX.Element {
|
|||||||
{isDashboardLocked && <LockKeyhole size={14} />}
|
{isDashboardLocked && <LockKeyhole size={14} />}
|
||||||
</div>
|
</div>
|
||||||
<div className="right-section">
|
<div className="right-section">
|
||||||
<LaunchChatSupport
|
|
||||||
attributes={{
|
|
||||||
uuid: selectedDashboard?.uuid,
|
|
||||||
title: updatedTitle,
|
|
||||||
screen: 'Dashboard Details',
|
|
||||||
}}
|
|
||||||
eventName="Dashboard: Facing Issues in dashboard"
|
|
||||||
message={dashboardHelpMessage(selectedDashboard?.data, selectedDashboard)}
|
|
||||||
buttonText="Need help with this dashboard?"
|
|
||||||
onHoverText="Click here to get help with dashboard"
|
|
||||||
intercomMessageDisabled
|
|
||||||
/>
|
|
||||||
<DateTimeSelectionV2 showAutoRefresh hideShareModal />
|
<DateTimeSelectionV2 showAutoRefresh hideShareModal />
|
||||||
<Popover
|
<Popover
|
||||||
open={isDashboardSettingsOpen}
|
open={isDashboardSettingsOpen}
|
||||||
|
@ -4,7 +4,6 @@ import { Color } from '@signozhq/design-tokens';
|
|||||||
import { Button, Tabs, Typography } from 'antd';
|
import { Button, Tabs, Typography } from 'antd';
|
||||||
import logEvent from 'api/common/logEvent';
|
import logEvent from 'api/common/logEvent';
|
||||||
import PromQLIcon from 'assets/Dashboard/PromQl';
|
import PromQLIcon from 'assets/Dashboard/PromQl';
|
||||||
import LaunchChatSupport from 'components/LaunchChatSupport/LaunchChatSupport';
|
|
||||||
import TextToolTip from 'components/TextToolTip';
|
import TextToolTip from 'components/TextToolTip';
|
||||||
import { PANEL_TYPES } from 'constants/queryBuilder';
|
import { PANEL_TYPES } from 'constants/queryBuilder';
|
||||||
import { QBShortcuts } from 'constants/shortcuts/QBShortcuts';
|
import { QBShortcuts } from 'constants/shortcuts/QBShortcuts';
|
||||||
@ -235,21 +234,6 @@ function QuerySection({
|
|||||||
onChange={handleQueryCategoryChange}
|
onChange={handleQueryCategoryChange}
|
||||||
tabBarExtraContent={
|
tabBarExtraContent={
|
||||||
<span style={{ display: 'flex', gap: '1rem', alignItems: 'center' }}>
|
<span style={{ display: 'flex', gap: '1rem', alignItems: 'center' }}>
|
||||||
<LaunchChatSupport
|
|
||||||
attributes={{
|
|
||||||
uuid: selectedDashboard?.uuid,
|
|
||||||
title: selectedDashboard?.data.title,
|
|
||||||
screen: 'Dashboard widget',
|
|
||||||
panelType: selectedGraph,
|
|
||||||
widgetId: query.id,
|
|
||||||
queryType: currentQuery.queryType,
|
|
||||||
}}
|
|
||||||
eventName="Dashboard: Facing Issues in dashboard"
|
|
||||||
buttonText="Need help with this chart?"
|
|
||||||
// message={chartHelpMessage(selectedDashboard, graphType)}
|
|
||||||
onHoverText="Click here to get help with this dashboard widget"
|
|
||||||
intercomMessageDisabled
|
|
||||||
/>
|
|
||||||
<TextToolTip
|
<TextToolTip
|
||||||
text="This will temporarily save the current query and graph state. This will persist across tab change"
|
text="This will temporarily save the current query and graph state. This will persist across tab change"
|
||||||
url="https://signoz.io/docs/userguide/query-builder?utm_source=product&utm_medium=query-builder"
|
url="https://signoz.io/docs/userguide/query-builder?utm_source=product&utm_medium=query-builder"
|
||||||
|
@ -2,8 +2,6 @@ import './Integrations.styles.scss';
|
|||||||
|
|
||||||
import { Color } from '@signozhq/design-tokens';
|
import { Color } from '@signozhq/design-tokens';
|
||||||
import { Flex, Input, Typography } from 'antd';
|
import { Flex, Input, Typography } from 'antd';
|
||||||
import LaunchChatSupport from 'components/LaunchChatSupport/LaunchChatSupport';
|
|
||||||
import { integrationsListMessage } from 'components/LaunchChatSupport/util';
|
|
||||||
import { Search } from 'lucide-react';
|
import { Search } from 'lucide-react';
|
||||||
import { Dispatch, SetStateAction } from 'react';
|
import { Dispatch, SetStateAction } from 'react';
|
||||||
|
|
||||||
@ -25,13 +23,6 @@ function Header(props: HeaderProps): JSX.Element {
|
|||||||
<Typography.Text className="subtitle">
|
<Typography.Text className="subtitle">
|
||||||
Manage Integrations for this workspace
|
Manage Integrations for this workspace
|
||||||
</Typography.Text>
|
</Typography.Text>
|
||||||
<LaunchChatSupport
|
|
||||||
attributes={{ screen: 'Integrations list page' }}
|
|
||||||
eventName="Integrations: Facing issues in integrations"
|
|
||||||
buttonText="Facing issues with integrations"
|
|
||||||
message={integrationsListMessage}
|
|
||||||
onHoverText="Click here to get help with integrations"
|
|
||||||
/>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<Input
|
<Input
|
||||||
|
@ -5,8 +5,6 @@ import './IntegrationDetailPage.styles.scss';
|
|||||||
|
|
||||||
import { Color } from '@signozhq/design-tokens';
|
import { Color } from '@signozhq/design-tokens';
|
||||||
import { Button, Flex, Skeleton, Typography } from 'antd';
|
import { Button, Flex, Skeleton, Typography } from 'antd';
|
||||||
import LaunchChatSupport from 'components/LaunchChatSupport/LaunchChatSupport';
|
|
||||||
import { integrationDetailMessage } from 'components/LaunchChatSupport/util';
|
|
||||||
import { useGetIntegration } from 'hooks/Integrations/useGetIntegration';
|
import { useGetIntegration } from 'hooks/Integrations/useGetIntegration';
|
||||||
import { useGetIntegrationStatus } from 'hooks/Integrations/useGetIntegrationStatus';
|
import { useGetIntegrationStatus } from 'hooks/Integrations/useGetIntegrationStatus';
|
||||||
import { defaultTo } from 'lodash-es';
|
import { defaultTo } from 'lodash-es';
|
||||||
@ -77,18 +75,6 @@ function IntegrationDetailPage(props: IntegrationDetailPageProps): JSX.Element {
|
|||||||
>
|
>
|
||||||
All Integrations
|
All Integrations
|
||||||
</Button>
|
</Button>
|
||||||
<LaunchChatSupport
|
|
||||||
attributes={{
|
|
||||||
screen: 'Integrations detail page',
|
|
||||||
activeTab: activeDetailTab,
|
|
||||||
integrationTitle: integrationData?.title || '',
|
|
||||||
integrationId: selectedIntegration,
|
|
||||||
}}
|
|
||||||
eventName="Integrations: Facing issues in integrations"
|
|
||||||
buttonText="Facing issues with integration"
|
|
||||||
message={integrationDetailMessage(selectedIntegration)}
|
|
||||||
onHoverText="Click here to get help with this integration"
|
|
||||||
/>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
{loading ? (
|
{loading ? (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user