From 9bf3da1ad0d85807b6c3d1007a6da652285448d0 Mon Sep 17 00:00:00 2001 From: dathaquoc Date: Fri, 26 Sep 2025 09:11:57 +0700 Subject: [PATCH 1/2] feat-63412 --- .../src/lib/components/ChannelTopbar/index.tsx | 7 +++++-- .../src/lib/components/ChatWelcome/index.tsx | 2 +- .../src/lib/components/SettingAccount/index.tsx | 2 +- .../SettingProfile/SettingUserClanProfileCard.tsx | 3 ++- libs/utils/src/lib/e2e-testing/constants.ts | 10 ++++++++-- 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/libs/components/src/lib/components/ChannelTopbar/index.tsx b/libs/components/src/lib/components/ChannelTopbar/index.tsx index 0ed3135bcf..ee5743e42e 100644 --- a/libs/components/src/lib/components/ChannelTopbar/index.tsx +++ b/libs/components/src/lib/components/ChannelTopbar/index.tsx @@ -222,7 +222,10 @@ const TopBarChannelText = memo(() => { )} {currentClanId === '0' && ( -
+
{avatar ? ( - + ) : (
{avatarName} diff --git a/libs/components/src/lib/components/ChatWelcome/index.tsx b/libs/components/src/lib/components/ChatWelcome/index.tsx index 3175bd1aad..bf2ba2356f 100644 --- a/libs/components/src/lib/components/ChatWelcome/index.tsx +++ b/libs/components/src/lib/components/ChatWelcome/index.tsx @@ -80,7 +80,7 @@ function ChatWelCome({ name, username, avatarDM, mode, isPrivate }: ChatWelComeP return (
-
+
{ <> {isChannel && ( diff --git a/libs/components/src/lib/components/SettingAccount/index.tsx b/libs/components/src/lib/components/SettingAccount/index.tsx index ef44c2d3dd..92290df1ec 100644 --- a/libs/components/src/lib/components/SettingAccount/index.tsx +++ b/libs/components/src/lib/components/SettingAccount/index.tsx @@ -77,7 +77,7 @@ const SettingAccount = ({ onSettingProfile, menuIsOpen }: SettingAccountProps) =
-
+
{
-

+

{profiles.displayName || currentDisplayName || userProfile?.user?.username}

{userProfile?.user?.username}

diff --git a/libs/utils/src/lib/e2e-testing/constants.ts b/libs/utils/src/lib/e2e-testing/constants.ts index aa1c1e2410..ae660d7529 100644 --- a/libs/utils/src/lib/e2e-testing/constants.ts +++ b/libs/utils/src/lib/e2e-testing/constants.ts @@ -40,6 +40,7 @@ export const DATA_E2E_IDENTIFIER = { panel: { panel_item: '' }, + chat_welcome: '', homepage: { header: { link: '', @@ -258,6 +259,9 @@ export const DATA_E2E_IDENTIFIER = { }, chat: { direct_message: { + header: { + left_container: '' + }, chat_list: '', chat_item: { username: '', @@ -402,14 +406,16 @@ export const DATA_E2E_IDENTIFIER = { edit_display_name: '', edit_username: '', set_password: '', - tab_account: '' + tab_account: '', + info: '' }, profile: { button_setting: '', tab_profile: '', user_profile: { preview: { - avatar: '' + avatar: '', + display_name: '' }, input: { display_name: '', From 2b8663feca83ff74ca4848f8fd6802cafd593c4a Mon Sep 17 00:00:00 2001 From: dathaquoc Date: Fri, 26 Sep 2025 11:08:53 +0700 Subject: [PATCH 2/2] feat-63412 --- libs/components/src/lib/components/ChannelTopbar/index.tsx | 6 +++++- libs/utils/src/lib/e2e-testing/constants.ts | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libs/components/src/lib/components/ChannelTopbar/index.tsx b/libs/components/src/lib/components/ChannelTopbar/index.tsx index ee5743e42e..caf843ffc2 100644 --- a/libs/components/src/lib/components/ChannelTopbar/index.tsx +++ b/libs/components/src/lib/components/ChannelTopbar/index.tsx @@ -685,7 +685,11 @@ const DmTopbarTools = memo(() => { )} {currentDmGroup?.type === ChannelType.CHANNEL_TYPE_DM && ( -