From 1e2dde09b45b4eeee47da10e3a275f4c436518bb Mon Sep 17 00:00:00 2001
From: nick-delirium
Date: Fri, 21 Mar 2025 10:43:51 +0100
Subject: [PATCH] ui: onboarding fixes
---
.../app/components/Onboarding/Onboarding.tsx | 8 +++-----
.../IdentifyUsersTab/IdentifyUsersTab.tsx | 8 +++++---
.../components/MetadataList/MetadataList.tsx | 18 ++++++++----------
frontend/app/components/ui/Input/Input.tsx | 2 +-
4 files changed, 17 insertions(+), 19 deletions(-)
diff --git a/frontend/app/components/Onboarding/Onboarding.tsx b/frontend/app/components/Onboarding/Onboarding.tsx
index 5c1e017b8..910e77f66 100644
--- a/frontend/app/components/Onboarding/Onboarding.tsx
+++ b/frontend/app/components/Onboarding/Onboarding.tsx
@@ -1,16 +1,14 @@
import React from 'react';
import { Redirect, Route, RouteComponentProps, Switch } from 'react-router';
import { withRouter } from 'react-router-dom';
-
import { OB_TABS, onboarding as onboardingRoute, withSiteId } from 'App/routes';
-import { Icon } from 'UI';
-
import IdentifyUsersTab from './components/IdentifyUsersTab';
import InstallOpenReplayTab from './components/InstallOpenReplayTab';
import IntegrationsTab from './components/IntegrationsTab';
import ManageUsersTab from './components/ManageUsersTab';
import SideMenu from './components/SideMenu';
import { useTranslation } from 'react-i18next';
+import { Smartphone, AppWindow } from 'lucide-react';
interface Props {
match: {
@@ -33,7 +31,7 @@ function Onboarding(props: Props) {
{
label: (
),
@@ -42,7 +40,7 @@ function Onboarding(props: Props) {
{
label: (
-
+
{t('Mobile')}
),
diff --git a/frontend/app/components/Onboarding/components/IdentifyUsersTab/IdentifyUsersTab.tsx b/frontend/app/components/Onboarding/components/IdentifyUsersTab/IdentifyUsersTab.tsx
index f8598a3f1..b2273d7ae 100644
--- a/frontend/app/components/Onboarding/components/IdentifyUsersTab/IdentifyUsersTab.tsx
+++ b/frontend/app/components/Onboarding/components/IdentifyUsersTab/IdentifyUsersTab.tsx
@@ -130,18 +130,20 @@ function IdentifyUsersTab(props: Props) {
'To identify users through metadata, you will have to explicitly specify your user metadata so it can be injected during sessions. Follow the below steps',
)}
-
+
-
-
+
+
{t('Inject metadata when recording sessions')}
+
+
{t('Use the')}
setMetadata {' '}
diff --git a/frontend/app/components/Onboarding/components/MetadataList/MetadataList.tsx b/frontend/app/components/Onboarding/components/MetadataList/MetadataList.tsx
index 90acdabdd..576e32f41 100644
--- a/frontend/app/components/Onboarding/components/MetadataList/MetadataList.tsx
+++ b/frontend/app/components/Onboarding/components/MetadataList/MetadataList.tsx
@@ -55,16 +55,14 @@ function MetadataList() {
openModal()}>
{t('Add Metadata')}
-
- {fields.map((f, index) => (
- removeMetadata(f)}
- outline
- />
- ))}
-
+ {fields.map((f, index) => (
+
removeMetadata(f)}
+ outline
+ />
+ ))}
);
}
diff --git a/frontend/app/components/ui/Input/Input.tsx b/frontend/app/components/ui/Input/Input.tsx
index 40bf0c7ac..be65b4878 100644
--- a/frontend/app/components/ui/Input/Input.tsx
+++ b/frontend/app/components/ui/Input/Input.tsx
@@ -31,7 +31,7 @@ const Input = React.forwardRef((props: Props, ref: any) => {
{icon && (
)}