diff --git a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/BigNumChart.tsx b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/BigNumChart.tsx index 8c62c50b3..c24ce8fd6 100644 --- a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/BigNumChart.tsx +++ b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/BigNumChart.tsx @@ -50,7 +50,7 @@ function BigNum({ color, series, value, label, compData, valueLabel }: { }, [value, compData]) return (
-
+
{series}
diff --git a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomChartTooltip.tsx b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomChartTooltip.tsx index b2216c201..f447bcd7c 100644 --- a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomChartTooltip.tsx +++ b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomChartTooltip.tsx @@ -54,7 +54,7 @@ function CustomTooltip({ active, payload, label }: Props) { >
{index + 1}
-
{p.name}
+
{p.name}
-
{p.value}
+
{p.value}
{p.prevValue !== null ? ( +
{items.map((item, index) => (
handleCardSelection(item.type)} key={index} className={ - 'flex items-start gap-2 p-2 hover:bg-active-blue rounded-xl hover:text-blue group cursor-pointer' + 'flex items-start gap-2 p-2 hover:bg-active-blue rounded-xl hover:text-teal group cursor-pointer' } > {item.icon}
{item.title}
-
+
{item.description}
@@ -235,20 +235,11 @@ const AddCardSection = observer( ); }; return ( -
-
-
Add a card to dashboard
+
+
+
What do you want to visualize?
{isSaas ? ( -
+
Ask AI
@@ -261,16 +252,14 @@ const AddCardSection = observer( onChange={(value) => setTab(value)} />
+ +
-
- -
- Add existing card -
+
+
+
); diff --git a/frontend/app/components/Dashboard/components/Alerts/AlertsList.tsx b/frontend/app/components/Dashboard/components/Alerts/AlertsList.tsx index e88017e11..0338c46d8 100644 --- a/frontend/app/components/Dashboard/components/Alerts/AlertsList.tsx +++ b/frontend/app/components/Dashboard/components/Alerts/AlertsList.tsx @@ -60,8 +60,8 @@ function AlertsList({ siteId }: Props) {
- Showing {Math.min(list.length, pageSize)} out of{' '} - {list.length} Alerts + Showing {Math.min(list.length, pageSize)} out of{' '} + {list.length} Alerts
) {
- Showing {Math.min(data.length, pageSize)} out of{' '} - {data.length} Issues + Showing {Math.min(data.length, pageSize)} out of{' '} + {data.length} Issues
{ <> {!inModal ?
-
What would you like to visualize?
+
What would you like to visualize?
: null}
diff --git a/frontend/app/components/Dashboard/components/DashboardWidgetGrid/AddMetric.tsx b/frontend/app/components/Dashboard/components/DashboardWidgetGrid/AddMetric.tsx index d42cd23be..7920283a1 100644 --- a/frontend/app/components/Dashboard/components/DashboardWidgetGrid/AddMetric.tsx +++ b/frontend/app/components/Dashboard/components/DashboardWidgetGrid/AddMetric.tsx @@ -96,9 +96,9 @@ function AddMetric({ history, siteId, title, description }: IProps) {
{'Selected '} - {selectedWidgetIds.length} + {selectedWidgetIds.length} {' out of '} - {metrics ? metrics.length : 0} + {metrics ? metrics.length : 0}
+ ) } diff --git a/frontend/app/components/Dashboard/components/WidgetOptions.tsx b/frontend/app/components/Dashboard/components/WidgetOptions.tsx index 20463cad3..9e71edf31 100644 --- a/frontend/app/components/Dashboard/components/WidgetOptions.tsx +++ b/frontend/app/components/Dashboard/components/WidgetOptions.tsx @@ -59,15 +59,22 @@ function WidgetOptions() { {(metric.metricType === FUNNEL || metric.metricType === TABLE) && metric.metricOf != FilterKey.USERID && metric.metricOf != FilterKey.ERRORS && ( - void; comparison?: boolean; @@ -125,7 +125,7 @@ function SelectDateRange(props: Props) { }} period={period} right={true} - style={{ width: '100%' }} + style={{ width: '100%', }} /> {isCustom && ( {comparison ? (
- -
- - {`Compare to ${comparisonValue || ''}`} - - -
+ + -
onChange(null)} - > - -
+
) : ( - : null} - rightIcon={} - /> + + + )} {isCustom && (