From a9819589403a3a1114167f594a096a1d8fa6a918 Mon Sep 17 00:00:00 2001 From: sylenien Date: Wed, 10 Aug 2022 16:48:59 +0200 Subject: [PATCH] fix(ui): minor style fixes --- frontend/app/components/Dashboard/NewDashboard.tsx | 7 ------- .../Dashboard/components/DashboardList/DashboardList.tsx | 2 +- .../components/DashboardList/DashboardListItem.tsx | 2 +- .../Dashboard/components/DashboardList/DashboardsView.tsx | 4 ++-- .../Dashboard/components/MetricListItem/MetricListItem.tsx | 6 +----- .../Dashboard/components/MetricsList/MetricsList.tsx | 2 +- .../Dashboard/components/MetricsView/MetricsView.tsx | 4 ++-- 7 files changed, 8 insertions(+), 19 deletions(-) diff --git a/frontend/app/components/Dashboard/NewDashboard.tsx b/frontend/app/components/Dashboard/NewDashboard.tsx index af0e1ed88..2f9496591 100644 --- a/frontend/app/components/Dashboard/NewDashboard.tsx +++ b/frontend/app/components/Dashboard/NewDashboard.tsx @@ -29,13 +29,6 @@ function NewDashboard(props: RouteComponentProps) { dashboardStore.selectDashboardById(dashboardId); } }); - if (!dashboardId && location.pathname.includes('dashboard')) { - dashboardStore.selectDefaultDashboard().then(({ dashboardId }) => { - props.history.push(withSiteId(`/dashboard/${dashboardId}`, siteId)); - }, () => { - props.history.push(withSiteId('/dashboard', siteId)); - }) - } }, [siteId]); return useObserver(() => ( diff --git a/frontend/app/components/Dashboard/components/DashboardList/DashboardList.tsx b/frontend/app/components/Dashboard/components/DashboardList/DashboardList.tsx index 5ce208da8..466103dc8 100644 --- a/frontend/app/components/Dashboard/components/DashboardList/DashboardList.tsx +++ b/frontend/app/components/Dashboard/components/DashboardList/DashboardList.tsx @@ -31,7 +31,7 @@ function DashboardList() { } >
-
+
Title
Visibility
Created
diff --git a/frontend/app/components/Dashboard/components/DashboardList/DashboardListItem.tsx b/frontend/app/components/Dashboard/components/DashboardList/DashboardListItem.tsx index 8a40c2139..5e82ac2b6 100644 --- a/frontend/app/components/Dashboard/components/DashboardList/DashboardListItem.tsx +++ b/frontend/app/components/Dashboard/components/DashboardList/DashboardListItem.tsx @@ -23,7 +23,7 @@ function DashboardListItem(props: Props) { }; return ( <> -
+
diff --git a/frontend/app/components/Dashboard/components/DashboardList/DashboardsView.tsx b/frontend/app/components/Dashboard/components/DashboardList/DashboardsView.tsx index 2564cea2b..10bbfc50d 100644 --- a/frontend/app/components/Dashboard/components/DashboardList/DashboardsView.tsx +++ b/frontend/app/components/Dashboard/components/DashboardList/DashboardsView.tsx @@ -22,7 +22,7 @@ function DashboardsView({ history, siteId }: { history: any, siteId: string }) { return (
-
+
@@ -31,7 +31,7 @@ function DashboardsView({ history, siteId }: { history: any, siteId: string }) {
-
+
A dashboard is a custom visualization using your OpenReplay data.
diff --git a/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx b/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx index 38af42702..52747a86c 100644 --- a/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx +++ b/frontend/app/components/Dashboard/components/MetricListItem/MetricListItem.tsx @@ -63,19 +63,15 @@ function MetricListItem(props: Props) { return ( -
+
- {/*
- -
*/} {metric.name}
- {/*
*/}
{metric.owner}
diff --git a/frontend/app/components/Dashboard/components/MetricsList/MetricsList.tsx b/frontend/app/components/Dashboard/components/MetricsList/MetricsList.tsx index 166be1b40..8c453688e 100644 --- a/frontend/app/components/Dashboard/components/MetricsList/MetricsList.tsx +++ b/frontend/app/components/Dashboard/components/MetricsList/MetricsList.tsx @@ -37,7 +37,7 @@ function MetricsList() { } >
-
+
Title
Owner
Visibility
diff --git a/frontend/app/components/Dashboard/components/MetricsView/MetricsView.tsx b/frontend/app/components/Dashboard/components/MetricsView/MetricsView.tsx index 288b9e1f0..abdf2e5e2 100644 --- a/frontend/app/components/Dashboard/components/MetricsView/MetricsView.tsx +++ b/frontend/app/components/Dashboard/components/MetricsView/MetricsView.tsx @@ -17,7 +17,7 @@ function MetricsView(props: Props) { }, []); return useObserver(() => (
-
+
@@ -26,7 +26,7 @@ function MetricsView(props: Props) {
-
+
Create custom Metrics to capture key interactions and track KPIs.