From 1ce36c8344541bbc453c5e063f949b9d6453e903 Mon Sep 17 00:00:00 2001 From: SagarRajput-7 <162284829+SagarRajput-7@users.noreply.github.com> Date: Tue, 4 Jun 2024 12:40:20 +0530 Subject: [PATCH] feat: added facing issues btn in new dashboard revamp (#5131) --- .../ListOfDashboard/DashboardsList.tsx | 20 ++++- .../DashboardDescription/index.tsx | 74 ++++++++++++------- frontend/src/container/NewWidget/index.tsx | 26 ++++++- 3 files changed, 88 insertions(+), 32 deletions(-) diff --git a/frontend/src/container/ListOfDashboard/DashboardsList.tsx b/frontend/src/container/ListOfDashboard/DashboardsList.tsx index d1b859696a..f44b71e2bd 100644 --- a/frontend/src/container/ListOfDashboard/DashboardsList.tsx +++ b/frontend/src/container/ListOfDashboard/DashboardsList.tsx @@ -8,6 +8,7 @@ import { Color } from '@signozhq/design-tokens'; import { Button, Dropdown, + Flex, Input, MenuProps, Modal, @@ -23,6 +24,8 @@ import { TableProps } from 'antd/lib'; import createDashboard from 'api/dashboard/create'; import { AxiosError } from 'axios'; import cx from 'classnames'; +import FacingIssueBtn from 'components/facingIssueBtn/FacingIssueBtn'; +import { dashboardListMessage } from 'components/facingIssueBtn/util'; import { ENTITY_VERSION_V4 } from 'constants/app'; import ROUTES from 'constants/routes'; import { Base64Icons } from 'container/NewDashboard/DashboardSettings/General/utils'; @@ -599,9 +602,20 @@ function DashboardsList(): JSX.Element {
Dashboards - - Create and manage dashboards for your workspace. - + + + Create and manage dashboards for your workspace. + + +
{isDashboardListLoading || isFilteringDashboards ? ( diff --git a/frontend/src/container/NewDashboard/DashboardDescription/index.tsx b/frontend/src/container/NewDashboard/DashboardDescription/index.tsx index ef074a175a..50831b02d7 100644 --- a/frontend/src/container/NewDashboard/DashboardDescription/index.tsx +++ b/frontend/src/container/NewDashboard/DashboardDescription/index.tsx @@ -1,7 +1,18 @@ import './Description.styles.scss'; 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 { PANEL_GROUP_TYPES, PANEL_TYPES } from 'constants/queryBuilder'; import ROUTES from 'constants/routes'; @@ -250,30 +261,43 @@ function DashboardDescription(props: DashboardDescriptionProps): JSX.Element { return ( -
- - -
+ +
+ + +
+ +
- - Configure panel - + + + Configure panel + + +
{isSaveDisabled && (