Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2202,7 +2202,7 @@ const translations: TranslationDeepObject<typeof en> = {
profileAvatar: 'Profil-Avatar',
customInstructions: 'Benutzerdefinierte Anweisungen',
copilotIntoAccount: 'Copilot in Konto',
viewMemberHistory: 'Mitgliedsverlauf anzeigen',
seeChatHistory: 'Chatverlauf anzeigen',
viewAgentHistory: 'Agentenverlauf anzeigen',
publicSection: {
title: 'Öffentlich',
Expand Down
2 changes: 1 addition & 1 deletion src/languages/el.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,7 @@ const translations: TranslationDeepObject<typeof en> = {
profileAvatar: 'Εικόνα προφίλ',
customInstructions: 'Προσαρμοσμένες οδηγίες',
copilotIntoAccount: 'Οδηγός εντός λογαριασμού',
viewMemberHistory: 'Προβολή ιστορικού μέλους',
seeChatHistory: 'Δείτε το ιστορικό συνομιλιών',
viewAgentHistory: 'Προβολή ιστορικού αντιπροσώπου',
publicSection: {
title: 'Δημόσιο',
Expand Down
2 changes: 1 addition & 1 deletion src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2118,7 +2118,7 @@ const translations: TranslationDeepObject<typeof en> = {
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',
Expand Down
2 changes: 1 addition & 1 deletion src/languages/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2208,7 +2208,7 @@ const translations: TranslationDeepObject<typeof en> = {
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',
Expand Down
2 changes: 1 addition & 1 deletion src/languages/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2195,7 +2195,7 @@ const translations: TranslationDeepObject<typeof en> = {
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',
Expand Down
2 changes: 1 addition & 1 deletion src/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2176,7 +2176,7 @@ const translations: TranslationDeepObject<typeof en> = {
profileAvatar: 'プロフィールアバター',
customInstructions: 'カスタム指示',
copilotIntoAccount: 'アカウントにCopilot',
viewMemberHistory: 'メンバー履歴を表示',
seeChatHistory: 'チャット履歴を表示',
viewAgentHistory: 'エージェント履歴を表示',
publicSection: {
title: '公開',
Expand Down
2 changes: 1 addition & 1 deletion src/languages/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2193,7 +2193,7 @@ const translations: TranslationDeepObject<typeof en> = {
profileAvatar: 'Profielavatar',
customInstructions: 'Aangepaste instructies',
copilotIntoAccount: 'Copilot naar account',
viewMemberHistory: 'Ledengeschiedenis bekijken',
seeChatHistory: 'Chatgeschiedenis bekijken',
viewAgentHistory: 'Agentgeschiedenis bekijken',
publicSection: {
title: 'Openbaar',
Expand Down
2 changes: 1 addition & 1 deletion src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2228,7 +2228,7 @@ const translations: TranslationDeepObject<typeof en> = {
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',
Expand Down
2 changes: 1 addition & 1 deletion src/languages/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2186,7 +2186,7 @@ const translations: TranslationDeepObject<typeof en> = {
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',
Expand Down
2 changes: 1 addition & 1 deletion src/languages/zh-hans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2117,7 +2117,7 @@ const translations: TranslationDeepObject<typeof en> = {
profileAvatar: '个人头像',
customInstructions: '自定义指令',
copilotIntoAccount: 'Copilot 到账户',
viewMemberHistory: '查看成员历史记录',
seeChatHistory: '查看聊天记录',
viewAgentHistory: '查看代理历史记录',
publicSection: {
title: '公开',
Expand Down
6 changes: 3 additions & 3 deletions src/pages/ProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -331,8 +331,8 @@ function ProfilePage({route}: ProfilePageProps) {
{!!accountID && !isAnonymousUserSession() && (
<MenuItem
shouldShowRightIcon
title={translate(isCustomAgent || isAgentEmail(login) ? 'profilePage.viewAgentHistory' : 'profilePage.viewMemberHistory')}
icon={expensifyIcons.MagnifyingGlass}
title={translate(isCustomAgent || isAgentEmail(login) ? 'profilePage.viewAgentHistory' : 'profilePage.seeChatHistory')}
icon={expensifyIcons.History}
onPress={() => {
const query = buildQueryStringFromFilterFormValues({
type: CONST.SEARCH.DATA_TYPES.CHAT,
Expand Down
12 changes: 6 additions & 6 deletions tests/ui/ProfilePageTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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();
});

Expand All @@ -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 () => {
Expand All @@ -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(
Expand All @@ -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) => {
Expand All @@ -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();
});
});
Expand Down
Loading