mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-18 01:55:52 +08:00
feat: added facing issues btn in new dashboard revamp (#5131)
This commit is contained in:
parent
ac2dc44abb
commit
1ce36c8344
@ -8,6 +8,7 @@ import { Color } from '@signozhq/design-tokens';
|
|||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
Dropdown,
|
Dropdown,
|
||||||
|
Flex,
|
||||||
Input,
|
Input,
|
||||||
MenuProps,
|
MenuProps,
|
||||||
Modal,
|
Modal,
|
||||||
@ -23,6 +24,8 @@ import { TableProps } from 'antd/lib';
|
|||||||
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 FacingIssueBtn from 'components/facingIssueBtn/FacingIssueBtn';
|
||||||
|
import { dashboardListMessage } from 'components/facingIssueBtn/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';
|
||||||
@ -599,9 +602,20 @@ function DashboardsList(): JSX.Element {
|
|||||||
<div className="dashboards-list-view-content">
|
<div className="dashboards-list-view-content">
|
||||||
<div className="dashboards-list-title-container">
|
<div className="dashboards-list-title-container">
|
||||||
<Typography.Title className="title">Dashboards</Typography.Title>
|
<Typography.Title className="title">Dashboards</Typography.Title>
|
||||||
|
<Flex align="center" justify="space-between">
|
||||||
<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>
|
||||||
|
<FacingIssueBtn
|
||||||
|
attributes={{
|
||||||
|
screen: 'Dashboard list page',
|
||||||
|
}}
|
||||||
|
eventName="Dashboard: Facing Issues in dashboard"
|
||||||
|
message={dashboardListMessage}
|
||||||
|
buttonText="Facing issues with dashboards?"
|
||||||
|
onHoverText="Click here to get help with dashboards"
|
||||||
|
/>
|
||||||
|
</Flex>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{isDashboardListLoading || isFilteringDashboards ? (
|
{isDashboardListLoading || isFilteringDashboards ? (
|
||||||
|
@ -1,7 +1,18 @@
|
|||||||
import './Description.styles.scss';
|
import './Description.styles.scss';
|
||||||
|
|
||||||
import { PlusOutlined } from '@ant-design/icons';
|
import { PlusOutlined } from '@ant-design/icons';
|
||||||
import { Button, Card, Input, Modal, Popover, Tag, Typography } from 'antd';
|
import {
|
||||||
|
Button,
|
||||||
|
Card,
|
||||||
|
Flex,
|
||||||
|
Input,
|
||||||
|
Modal,
|
||||||
|
Popover,
|
||||||
|
Tag,
|
||||||
|
Typography,
|
||||||
|
} from 'antd';
|
||||||
|
import FacingIssueBtn from 'components/facingIssueBtn/FacingIssueBtn';
|
||||||
|
import { dashboardHelpMessage } from 'components/facingIssueBtn/util';
|
||||||
import { SOMETHING_WENT_WRONG } from 'constants/api';
|
import { SOMETHING_WENT_WRONG } from 'constants/api';
|
||||||
import { PANEL_GROUP_TYPES, PANEL_TYPES } from 'constants/queryBuilder';
|
import { PANEL_GROUP_TYPES, PANEL_TYPES } from 'constants/queryBuilder';
|
||||||
import ROUTES from 'constants/routes';
|
import ROUTES from 'constants/routes';
|
||||||
@ -250,6 +261,7 @@ function DashboardDescription(props: DashboardDescriptionProps): JSX.Element {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Card className="dashboard-description-container">
|
<Card className="dashboard-description-container">
|
||||||
|
<Flex justify="space-between" align="center">
|
||||||
<section className="dashboard-breadcrumbs">
|
<section className="dashboard-breadcrumbs">
|
||||||
<Button
|
<Button
|
||||||
type="text"
|
type="text"
|
||||||
@ -274,6 +286,18 @@ function DashboardDescription(props: DashboardDescriptionProps): JSX.Element {
|
|||||||
{title}
|
{title}
|
||||||
</Button>
|
</Button>
|
||||||
</section>
|
</section>
|
||||||
|
<FacingIssueBtn
|
||||||
|
attributes={{
|
||||||
|
uuid: selectedDashboard?.uuid,
|
||||||
|
title: updatedTitle,
|
||||||
|
screen: 'Dashboard Details',
|
||||||
|
}}
|
||||||
|
eventName="Dashboard: Facing Issues in dashboard"
|
||||||
|
message={dashboardHelpMessage(selectedDashboard?.data, selectedDashboard)}
|
||||||
|
buttonText="Facing issues with dashboards?"
|
||||||
|
onHoverText="Click here to get help with dashboard details"
|
||||||
|
/>
|
||||||
|
</Flex>
|
||||||
<section className="dashbord-details">
|
<section className="dashbord-details">
|
||||||
<div className="left-section">
|
<div className="left-section">
|
||||||
<img
|
<img
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
import './NewWidget.styles.scss';
|
import './NewWidget.styles.scss';
|
||||||
|
|
||||||
import { WarningOutlined } from '@ant-design/icons';
|
import { WarningOutlined } from '@ant-design/icons';
|
||||||
import { Button, Modal, Space, Tooltip, Typography } from 'antd';
|
import { Button, Flex, Modal, Space, Tooltip, Typography } from 'antd';
|
||||||
|
import FacingIssueBtn from 'components/facingIssueBtn/FacingIssueBtn';
|
||||||
|
import { chartHelpMessage } from 'components/facingIssueBtn/util';
|
||||||
import { FeatureKeys } from 'constants/features';
|
import { FeatureKeys } from 'constants/features';
|
||||||
import { QueryParams } from 'constants/query';
|
import { QueryParams } from 'constants/query';
|
||||||
import { PANEL_TYPES } from 'constants/queryBuilder';
|
import { PANEL_TYPES } from 'constants/queryBuilder';
|
||||||
@ -432,9 +434,25 @@ function NewWidget({ selectedGraph }: NewWidgetProps): JSX.Element {
|
|||||||
<div className="edit-header">
|
<div className="edit-header">
|
||||||
<div className="left-header">
|
<div className="left-header">
|
||||||
<X size={14} onClick={onClickDiscardHandler} className="discard-icon" />
|
<X size={14} onClick={onClickDiscardHandler} className="discard-icon" />
|
||||||
|
<Flex align="center" gap={24}>
|
||||||
<Typography.Text className="configure-panel">
|
<Typography.Text className="configure-panel">
|
||||||
Configure panel
|
Configure panel
|
||||||
</Typography.Text>
|
</Typography.Text>
|
||||||
|
<FacingIssueBtn
|
||||||
|
attributes={{
|
||||||
|
uuid: selectedDashboard?.uuid,
|
||||||
|
title: selectedDashboard?.data.title,
|
||||||
|
screen: 'Dashboard widget',
|
||||||
|
panelType: graphType,
|
||||||
|
widgetId: query.get('widgetId'),
|
||||||
|
queryType: currentQuery.queryType,
|
||||||
|
}}
|
||||||
|
eventName="Dashboard: Facing Issues in dashboard"
|
||||||
|
message={chartHelpMessage(selectedDashboard, graphType)}
|
||||||
|
buttonText="Facing issues with dashboards?"
|
||||||
|
onHoverText="Click here to get help with dashboard widget"
|
||||||
|
/>
|
||||||
|
</Flex>
|
||||||
</div>
|
</div>
|
||||||
{isSaveDisabled && (
|
{isSaveDisabled && (
|
||||||
<Tooltip title={MESSAGE.PANEL}>
|
<Tooltip title={MESSAGE.PANEL}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user