From 859fe098fedc261d646833012d9d408039491075 Mon Sep 17 00:00:00 2001 From: andreas-unleash Date: Wed, 20 Mar 2024 17:38:49 +0200 Subject: [PATCH] chore: verify chart names and tooltips (#6635) Centralises and improves the chart title and tooltip descriptions. Closes [1-2199](https://linear.app/unleash/issue/1-2199/verify-tooltip-texts-and-explanations-are-clear-enough) [1-2200](https://linear.app/unleash/issue/1-2200/verify-chart-naming) --------- Signed-off-by: andreas-unleash Co-authored-by: Thomas Heartman --- .../component/executiveDashboard/Charts.tsx | 58 +++++-------- .../executiveDashboard/chart-info.ts | 82 +++++++++++++++++++ 2 files changed, 104 insertions(+), 36 deletions(-) create mode 100644 frontend/src/component/executiveDashboard/chart-info.ts diff --git a/frontend/src/component/executiveDashboard/Charts.tsx b/frontend/src/component/executiveDashboard/Charts.tsx index 2369b0d724..06eaea9ba9 100644 --- a/frontend/src/component/executiveDashboard/Charts.tsx +++ b/frontend/src/component/executiveDashboard/Charts.tsx @@ -17,6 +17,7 @@ import type { GroupedDataByProject } from './hooks/useGroupedProjectTrends'; import { Box, styled } from '@mui/material'; import { allOption } from '../common/ProjectSelect/ProjectSelect'; import type { VFC } from 'react'; +import { chartInfo } from './chart-info'; interface IChartsProps { flagTrends: ExecutiveSummarySchema['flagTrends']; @@ -83,7 +84,7 @@ export const Charts: VFC = ({ + = ({ } elseShow={ @@ -106,7 +105,7 @@ export const Charts: VFC = ({ + = ({ } elseShow={ - + } /> - + = ({ + = ({ } elseShow={ - + } /> - + = ({ /> - + = ({ = ({ /> theme.spacing(2) }} >