From c5f948d19db7e7c0146bf57029caa85357f30af9 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Wed, 18 Jan 2023 17:45:39 +0100 Subject: [PATCH] change(ui) - cards and dashboard --- .../components/DashboardList/Header.tsx | 28 +++++++++++++++---- .../DashboardSideMenu/DashboardSideMenu.tsx | 2 +- .../MetricViewHeader/MetricViewHeader.tsx | 2 +- frontend/app/components/ui/SVG.tsx | 3 +- frontend/app/constants/filterOptions.js | 6 ++-- frontend/app/mstore/dashboardStore.ts | 9 +++--- frontend/app/svg/icons/card-text.svg | 4 +++ 7 files changed, 37 insertions(+), 17 deletions(-) create mode 100644 frontend/app/svg/icons/card-text.svg diff --git a/frontend/app/components/Dashboard/components/DashboardList/Header.tsx b/frontend/app/components/Dashboard/components/DashboardList/Header.tsx index 560c27c61..ad0cecdc9 100644 --- a/frontend/app/components/Dashboard/components/DashboardList/Header.tsx +++ b/frontend/app/components/Dashboard/components/DashboardList/Header.tsx @@ -1,9 +1,9 @@ import React from 'react'; -import { Button, PageTitle } from 'UI'; +import { Button, PageTitle, Toggler, Icon } from 'UI'; import Select from 'Shared/Select'; import DashboardSearch from './DashboardSearch'; import { useStore } from 'App/mstore'; -import { useObserver } from 'mobx-react-lite'; +import { observer, useObserver } from 'mobx-react-lite'; import { withSiteId } from 'App/routes'; function Header({ history, siteId }: { history: any; siteId: string }) { @@ -20,7 +20,7 @@ function Header({ history, siteId }: { history: any; siteId: string }) { return ( <> -
+
@@ -34,8 +34,24 @@ function Header({ history, siteId }: { history: any; siteId: string }) {
+
+ + A Dashboard is a collection of Metrics that can be shared across teams. +
- + /> */}