diff --git a/apps/web/src/controllers/MetricController/MetricViewChart/MetricDataTruncatedWarning.tsx b/apps/web/src/controllers/MetricController/MetricViewChart/MetricDataTruncatedWarning.tsx new file mode 100644 index 000000000..4e4bae563 --- /dev/null +++ b/apps/web/src/controllers/MetricController/MetricViewChart/MetricDataTruncatedWarning.tsx @@ -0,0 +1,25 @@ +import React from 'react'; +import { Text } from '@/components/ui/typography'; +import { cn } from '@/lib/classMerge'; + +interface MetricDataTruncatedWarningProps { + className?: string; +} + +export const MetricDataTruncatedWarning: React.FC = ({ + className +}) => { + return ( +
+ + This request returned more than 5,000 records + + + If you need more than that, please contact your data admin. + +
+ ); +}; \ No newline at end of file diff --git a/apps/web/src/controllers/MetricController/MetricViewChart/MetricViewChart.tsx b/apps/web/src/controllers/MetricController/MetricViewChart/MetricViewChart.tsx index 63769f5ab..70c252f66 100644 --- a/apps/web/src/controllers/MetricController/MetricViewChart/MetricViewChart.tsx +++ b/apps/web/src/controllers/MetricController/MetricViewChart/MetricViewChart.tsx @@ -10,6 +10,7 @@ import { useMemoizedFn } from '@/hooks'; import { cn } from '@/lib/classMerge'; import { inputHasText } from '@/lib/text'; import { MetricChartEvaluation } from './MetricChartEvaluation'; +import { MetricDataTruncatedWarning } from './MetricDataTruncatedWarning'; import { MetricSaveFilePopup } from './MetricSaveFilePopup'; import { MetricViewChartContent } from './MetricViewChartContent'; import { MetricViewChartHeader } from './MetricViewChartHeader'; @@ -104,6 +105,10 @@ export const MetricViewChart: React.FC<{ /> + + + +