From ff7944a4a26362d42e59be2b54eb8bb8e34690f1 Mon Sep 17 00:00:00 2001 From: Redox <69946827+wrefgtzweve@users.noreply.github.com> Date: Sat, 24 Jan 2026 22:34:38 +0100 Subject: [PATCH] Show display name instead of email (#323) * Show display name instead of email * Properly pass displayName * Show email on settings page too * Show email on missing username --- apps/web/src/components/Dashboard.tsx | 2 +- apps/web/src/components/SideNavigation.tsx | 4 +++- apps/web/src/components/UserMenu.tsx | 6 ++++-- apps/web/src/views/settings/AccountSettings.tsx | 7 +++++++ 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/apps/web/src/components/Dashboard.tsx b/apps/web/src/components/Dashboard.tsx index 7d2bb5f1..b35b12b0 100644 --- a/apps/web/src/components/Dashboard.tsx +++ b/apps/web/src/components/Dashboard.tsx @@ -155,7 +155,7 @@ export default function Dashboard({ className={`fixed top-12 z-40 h-[calc(100dvh-3rem)] w-[calc(100vw-1.5rem)] transform transition-transform duration-300 ease-in-out md:relative md:top-0 md:h-full md:w-auto md:translate-x-0 ${isSideNavOpen ? "translate-x-0" : "-translate-x-full md:translate-x-0"} `} > diff --git a/apps/web/src/components/SideNavigation.tsx b/apps/web/src/components/SideNavigation.tsx index 7b9361dd..76a3bfe1 100644 --- a/apps/web/src/components/SideNavigation.tsx +++ b/apps/web/src/components/SideNavigation.tsx @@ -39,6 +39,7 @@ interface SideNavigationProps { } interface UserType { + displayName?: string | null | undefined; email?: string | null | undefined; image?: string | null | undefined; } @@ -206,7 +207,8 @@ export default function SideNavigation({
{avatarUrl ? ( - {email} + {displayName ?? email} )} diff --git a/apps/web/src/views/settings/AccountSettings.tsx b/apps/web/src/views/settings/AccountSettings.tsx index d291c646..e28abb76 100644 --- a/apps/web/src/views/settings/AccountSettings.tsx +++ b/apps/web/src/views/settings/AccountSettings.tsx @@ -37,6 +37,13 @@ export default function AccountSettings() {
+
+

+ {t`Email`} +

+

{data?.email}

+
+

{t`Language`}