diff --git a/src/languages/de.ts b/src/languages/de.ts index 63949b98ae4c..8e429a9c0389 100644 --- a/src/languages/de.ts +++ b/src/languages/de.ts @@ -2202,7 +2202,7 @@ const translations: TranslationDeepObject = { profileAvatar: 'Profil-Avatar', customInstructions: 'Benutzerdefinierte Anweisungen', copilotIntoAccount: 'Copilot in Konto', - viewMemberHistory: 'Mitgliedsverlauf anzeigen', + seeChatHistory: 'Chatverlauf anzeigen', viewAgentHistory: 'Agentenverlauf anzeigen', publicSection: { title: 'Öffentlich', diff --git a/src/languages/el.ts b/src/languages/el.ts index e522bdae8b75..5ca471c53869 100644 --- a/src/languages/el.ts +++ b/src/languages/el.ts @@ -2247,7 +2247,7 @@ const translations: TranslationDeepObject = { profileAvatar: 'Εικόνα προφίλ', customInstructions: 'Προσαρμοσμένες οδηγίες', copilotIntoAccount: 'Οδηγός εντός λογαριασμού', - viewMemberHistory: 'Προβολή ιστορικού μέλους', + seeChatHistory: 'Δείτε το ιστορικό συνομιλιών', viewAgentHistory: 'Προβολή ιστορικού αντιπροσώπου', publicSection: { title: 'Δημόσιο', diff --git a/src/languages/en.ts b/src/languages/en.ts index 62730d252cdc..92a929d14eb5 100644 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -2310,7 +2310,7 @@ const translations = { profileAvatar: 'Profile avatar', customInstructions: 'Custom instructions', copilotIntoAccount: 'Copilot into account', - viewMemberHistory: 'View member history', + seeChatHistory: 'See chat history', viewAgentHistory: 'View agent history', publicSection: { title: 'Public', diff --git a/src/languages/es.ts b/src/languages/es.ts index e26fc29cd0c9..b40c3dd88345 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -2118,7 +2118,7 @@ const translations: TranslationDeepObject = { profileAvatar: 'Perfil avatar', customInstructions: 'Instrucciones personalizadas', copilotIntoAccount: 'Copilot a la cuenta', - viewMemberHistory: 'Ver historial del miembro', + seeChatHistory: 'Ver historial del chat', viewAgentHistory: 'Ver historial del agente', publicSection: { title: 'Público', diff --git a/src/languages/fr.ts b/src/languages/fr.ts index 963227080b20..31639da7d1f5 100644 --- a/src/languages/fr.ts +++ b/src/languages/fr.ts @@ -2208,7 +2208,7 @@ const translations: TranslationDeepObject = { profileAvatar: 'Avatar de profil', customInstructions: 'Instructions personnalisées', copilotIntoAccount: 'Copilot dans le compte', - viewMemberHistory: 'Voir l’historique du membre', + seeChatHistory: 'Voir l’historique de discussion', viewAgentHistory: 'Voir l’historique de l’agent', publicSection: { title: 'Public', diff --git a/src/languages/it.ts b/src/languages/it.ts index 387a148fc564..f12605c09b7e 100644 --- a/src/languages/it.ts +++ b/src/languages/it.ts @@ -2195,7 +2195,7 @@ const translations: TranslationDeepObject = { profileAvatar: 'Avatar profilo', customInstructions: 'Istruzioni personalizzate', copilotIntoAccount: "Copilot nell'account", - viewMemberHistory: 'Visualizza cronologia membro', + seeChatHistory: 'Vedi cronologia chat', viewAgentHistory: 'Visualizza cronologia agente', publicSection: { title: 'Pubblico', diff --git a/src/languages/ja.ts b/src/languages/ja.ts index 8b48c34640aa..d997870e762c 100644 --- a/src/languages/ja.ts +++ b/src/languages/ja.ts @@ -2176,7 +2176,7 @@ const translations: TranslationDeepObject = { profileAvatar: 'プロフィールアバター', customInstructions: 'カスタム指示', copilotIntoAccount: 'アカウントにCopilot', - viewMemberHistory: 'メンバー履歴を表示', + seeChatHistory: 'チャット履歴を表示', viewAgentHistory: 'エージェント履歴を表示', publicSection: { title: '公開', diff --git a/src/languages/nl.ts b/src/languages/nl.ts index e39d2812d093..253401ee4745 100644 --- a/src/languages/nl.ts +++ b/src/languages/nl.ts @@ -2193,7 +2193,7 @@ const translations: TranslationDeepObject = { profileAvatar: 'Profielavatar', customInstructions: 'Aangepaste instructies', copilotIntoAccount: 'Copilot naar account', - viewMemberHistory: 'Ledengeschiedenis bekijken', + seeChatHistory: 'Chatgeschiedenis bekijken', viewAgentHistory: 'Agentgeschiedenis bekijken', publicSection: { title: 'Openbaar', diff --git a/src/languages/pl.ts b/src/languages/pl.ts index 23cf02b17209..5b2150d3df7e 100644 --- a/src/languages/pl.ts +++ b/src/languages/pl.ts @@ -2228,7 +2228,7 @@ const translations: TranslationDeepObject = { profileAvatar: 'Awatar profilu', customInstructions: 'Niestandardowe instrukcje', copilotIntoAccount: 'Copilot do konta', - viewMemberHistory: 'Zobacz historię członka', + seeChatHistory: 'Zobacz historię czatu', viewAgentHistory: 'Zobacz historię agenta', publicSection: { title: 'Public', diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts index d1f5b9fbf998..faa19a6ca327 100644 --- a/src/languages/pt-BR.ts +++ b/src/languages/pt-BR.ts @@ -2186,7 +2186,7 @@ const translations: TranslationDeepObject = { profileAvatar: 'Avatar do perfil', customInstructions: 'Instruções personalizadas', copilotIntoAccount: 'Copilot na conta', - viewMemberHistory: 'Ver histórico do membro', + seeChatHistory: 'Ver histórico do chat', viewAgentHistory: 'Ver histórico do agente', publicSection: { title: 'Público', diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts index b14045c96bd6..833c5460c54d 100644 --- a/src/languages/zh-hans.ts +++ b/src/languages/zh-hans.ts @@ -2117,7 +2117,7 @@ const translations: TranslationDeepObject = { profileAvatar: '个人头像', customInstructions: '自定义指令', copilotIntoAccount: 'Copilot 到账户', - viewMemberHistory: '查看成员历史记录', + seeChatHistory: '查看聊天记录', viewAgentHistory: '查看代理历史记录', publicSection: { title: '公开', diff --git a/src/pages/ProfilePage.tsx b/src/pages/ProfilePage.tsx index 6a90aae57aef..e809ca98a433 100755 --- a/src/pages/ProfilePage.tsx +++ b/src/pages/ProfilePage.tsx @@ -98,7 +98,7 @@ function ProfilePage({route}: ProfilePageProps) { const [guidedSetupAndTourStatus] = useOnyx(ONYXKEYS.NVP_ONBOARDING, {selector: guidedSetupAndTourStatusSelector}); const switchToDelegator = useSwitchToDelegator(); const guideCalendarLink = account?.guideDetails?.calendarLink ?? ''; - const expensifyIcons = useMemoizedLazyExpensifyIcons(['Bug', 'MagnifyingGlass', 'Pencil', 'Phone', 'UserPlus']); + const expensifyIcons = useMemoizedLazyExpensifyIcons(['Bug', 'History', 'Pencil', 'Phone', 'UserPlus']); const accountID = Number(route.params?.accountID ?? CONST.DEFAULT_NUMBER_ID); const [agentPrompt] = useOnyx(`${ONYXKEYS.COLLECTION.SHARED_NVP_AGENT_PROMPT}${accountID}`); const isCurrentUser = currentUserAccountID === accountID; @@ -331,8 +331,8 @@ function ProfilePage({route}: ProfilePageProps) { {!!accountID && !isAnonymousUserSession() && ( { const query = buildQueryStringFromFilterFormValues({ type: CONST.SEARCH.DATA_TYPES.CHAT, diff --git a/tests/ui/ProfilePageTest.tsx b/tests/ui/ProfilePageTest.tsx index 65c74b67d065..e28481374bd9 100644 --- a/tests/ui/ProfilePageTest.tsx +++ b/tests/ui/ProfilePageTest.tsx @@ -546,7 +546,7 @@ const CURRENT_USER_ACCOUNT_ID = 1; const CURRENT_USER_EMAIL = 'current@expensify.com'; const PUBLIC_PROFILE_ACCOUNT_ID = 123; -describe('ProfilePage - View member history', () => { +describe('ProfilePage - See chat history', () => { beforeAll(async () => { Onyx.init({ keys: ONYXKEYS, @@ -612,7 +612,7 @@ describe('ProfilePage - View member history', () => { renderPublicProfilePage(); await waitForBatchedUpdatesWithAct(); - expect(screen.getByText('View member history')).toBeOnTheScreen(); + expect(screen.getByText('See chat history')).toBeOnTheScreen(); expect(screen.queryByText('View agent history')).not.toBeOnTheScreen(); }); @@ -623,7 +623,7 @@ describe('ProfilePage - View member history', () => { await waitForBatchedUpdatesWithAct(); expect(screen.getByText('View agent history')).toBeOnTheScreen(); - expect(screen.queryByText('View member history')).not.toBeOnTheScreen(); + expect(screen.queryByText('See chat history')).not.toBeOnTheScreen(); }); it('navigates to a chat search filtered by the profile account when pressed', async () => { @@ -633,7 +633,7 @@ describe('ProfilePage - View member history', () => { await waitForBatchedUpdatesWithAct(); // MenuItem only forwards the press to onPress when it receives an event, so pass a minimal one. - fireEvent.press(screen.getByText('View member history'), {nativeEvent: {}}); + fireEvent.press(screen.getByText('See chat history'), {nativeEvent: {}}); await waitForBatchedUpdatesWithAct(); expect(Navigation.revealRouteBeforeDismissingModal).toHaveBeenCalledWith( @@ -655,7 +655,7 @@ describe('ProfilePage - View member history', () => { renderPublicProfilePage(); await waitForBatchedUpdatesWithAct(); - expect(screen.queryByText('View member history')).not.toBeOnTheScreen(); + expect(screen.queryByText('See chat history')).not.toBeOnTheScreen(); }); it.each(['0', 'not-a-number'])('hides the search entry for the invalid accountID %s', async (invalidAccountID) => { @@ -664,7 +664,7 @@ describe('ProfilePage - View member history', () => { renderPublicProfilePage(invalidAccountID); await waitForBatchedUpdatesWithAct(); - expect(screen.queryByText('View member history')).not.toBeOnTheScreen(); + expect(screen.queryByText('See chat history')).not.toBeOnTheScreen(); expect(screen.queryByText('View agent history')).not.toBeOnTheScreen(); }); });