From c56aeb71ff9ce39be3802c24d2490a07f61395a7 Mon Sep 17 00:00:00 2001 From: Nabhag Motivaras <65061890+Nabhag8848@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:08:25 +0530 Subject: [PATCH] fix: onboarding usernames and vue logo (#609) * fix: metadata for views * fix: revert logo to be svg * fix(ui): vue image * fix: username in onboarding * fix: vue image to have svg --- .../app/dashboard/onboarding/FrontendSdk.tsx | 2 +- .../app/dashboard/onboarding/page.tsx | 4 +++- packages/revert-next/components/icons.tsx | 22 +++++++++++++++++++ .../components/ui/sidenav/SideNav.tsx | 2 +- 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/packages/revert-next/app/dashboard/onboarding/FrontendSdk.tsx b/packages/revert-next/app/dashboard/onboarding/FrontendSdk.tsx index da3b8740..ebbd79a7 100644 --- a/packages/revert-next/app/dashboard/onboarding/FrontendSdk.tsx +++ b/packages/revert-next/app/dashboard/onboarding/FrontendSdk.tsx @@ -36,7 +36,7 @@ export function FrontendSdk({ userId, environment }: { userId: string; environme onClick={() => (!customPreferenceView ? setCustomPreferenceView(true) : null)} >
- Vuejs +

Vue.js

diff --git a/packages/revert-next/app/dashboard/onboarding/page.tsx b/packages/revert-next/app/dashboard/onboarding/page.tsx index ce9029c6..7693861f 100644 --- a/packages/revert-next/app/dashboard/onboarding/page.tsx +++ b/packages/revert-next/app/dashboard/onboarding/page.tsx @@ -16,13 +16,15 @@ export default async function Page() { return null; } + const userName = user?.firstName ?? user?.username ?? user?.fullName; + return (

- Welcome to Revert, {user.firstName} + Welcome to Revert{userName ? `, ${userName}` : ``}

Complete these following steps to get your integration up and running

diff --git a/packages/revert-next/components/icons.tsx b/packages/revert-next/components/icons.tsx index fd626126..3107b88d 100644 --- a/packages/revert-next/components/icons.tsx +++ b/packages/revert-next/components/icons.tsx @@ -1,3 +1,5 @@ +import { Icon } from '@tremor/react'; + type IconProps = React.HTMLAttributes; export const Icons = { @@ -382,6 +384,26 @@ export const Icons = { ), + vue: (props: IconProps) => ( + + + + + ), }; export { diff --git a/packages/revert-next/components/ui/sidenav/SideNav.tsx b/packages/revert-next/components/ui/sidenav/SideNav.tsx index f010da1d..c10504ce 100644 --- a/packages/revert-next/components/ui/sidenav/SideNav.tsx +++ b/packages/revert-next/components/ui/sidenav/SideNav.tsx @@ -47,7 +47,7 @@ export function SideNav({ value }: SideNavProps) {
-

{user?.fullName ?? 'User Name'}

+

{user?.fullName ?? user?.firstName ?? user?.username}