From aa70ee2841be4c3c78f997931dacfcb32d12ceaf Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 10 Jan 2023 16:12:14 +0100 Subject: [PATCH] change(ui) - insights - no content message --- .../CustomMetricsWidgets/InsightsCard/InsightsCard.tsx | 9 +++++++-- .../Dashboard/components/WidgetView/WidgetView.tsx | 4 ---- frontend/app/mstore/types/widget.ts | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/InsightsCard/InsightsCard.tsx b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/InsightsCard/InsightsCard.tsx index 0b2d3fa24..465e2c7aa 100644 --- a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/InsightsCard/InsightsCard.tsx +++ b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/InsightsCard/InsightsCard.tsx @@ -1,8 +1,9 @@ -import { NoContent } from 'App/components/ui'; +import { NoContent } from 'UI'; import { useStore } from 'App/mstore'; import { observer } from 'mobx-react-lite'; import React from 'react'; import InsightItem from './InsightItem'; +import { NO_METRIC_DATA } from 'App/constants/messages'; interface Props {} function InsightsCard(props: Props) { @@ -23,7 +24,11 @@ function InsightsCard(props: Props) { }; return ( - + {metric.data.issues.map((item: any) => ( ))} diff --git a/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx b/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx index b65a9d28d..97aacecdc 100644 --- a/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx +++ b/frontend/app/components/Dashboard/components/WidgetView/WidgetView.tsx @@ -18,10 +18,6 @@ import { TABLE, CLICKMAP, FUNNEL, - ERRORS, - RESOURCE_MONITORING, - PERFORMANCE, - WEB_VITALS, INSIGHTS, } from 'App/constants/card'; diff --git a/frontend/app/mstore/types/widget.ts b/frontend/app/mstore/types/widget.ts index 37d7247e5..ebdf6a483 100644 --- a/frontend/app/mstore/types/widget.ts +++ b/frontend/app/mstore/types/widget.ts @@ -99,6 +99,7 @@ export default class Widget { this.predefinedKey = json.predefinedKey; this.category = json.category; this.thumbnail = json.thumbnail; + this.isPublic = json.isPublic; if (period) { this.period = period;