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
1 change: 1 addition & 0 deletions src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9370,6 +9370,7 @@ const CONST = {
REQUEST_EARLY_CANCELLATION: 'SettingsSubscription-RequestEarlyCancellation',
},
SETTINGS_HELP: {
CONCIERGE_CHAT: 'SettingsHelp-ConciergeChat',
HELP_DOCS: 'SettingsHelp-HelpDocs',
},
SETTINGS_ABOUT: {
Expand Down
8 changes: 7 additions & 1 deletion src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1997,7 +1997,13 @@ const translations: TranslationDeepObject<typeof en> = {
accountSettings: 'Kontoeinstellungen',
account: 'Konto',
general: 'Allgemein',
helpPage: {title: 'Hilfe und Support', description: 'Wir sind rund um die Uhr für Sie da', helpSite: 'Hilfeseite'},
helpPage: {
title: 'Hilfe und Support',
description: 'Wir sind rund um die Uhr für Sie da',
helpSite: 'Hilfeseite',
conciergeChat: 'Concierge',
conciergeChatDescription: 'Ihr persönlicher KI-Agent',
},
},
closeAccountPage: {
closeAccount: 'Konto schließen',
Expand Down
2 changes: 2 additions & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2066,6 +2066,8 @@ const translations = {
title: 'Help and support',
description: 'We are here to help you 24/7',
helpSite: 'Help site',
conciergeChat: 'Concierge',
conciergeChatDescription: 'Your personal AI agent',
},
whatIsNew: "What's new",
accountSettings: 'Account settings',
Expand Down
2 changes: 2 additions & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1925,6 +1925,8 @@ const translations: TranslationDeepObject<typeof en> = {
title: 'Ayuda y soporte',
description: 'Estamos aquí para ayudarte las 24 horas, los 7 días de la semana',
helpSite: 'Sitio de ayuda',
conciergeChat: 'Concierge',
conciergeChatDescription: 'Tu agente personal de IA',
},
whatIsNew: 'Qué hay de nuevo',
accountSettings: 'Configuración de la cuenta',
Expand Down
8 changes: 7 additions & 1 deletion src/languages/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,13 @@ const translations: TranslationDeepObject<typeof en> = {
accountSettings: 'Paramètres du compte',
account: 'Compte',
general: 'Général',
helpPage: {title: 'Aide et assistance', description: 'Nous sommes là pour vous aider 24 h/24, 7 j/7', helpSite: 'Site d’aide'},
helpPage: {
title: 'Aide et assistance',
description: 'Nous sommes là pour vous aider 24 h/24, 7 j/7',
helpSite: 'Site d’aide',
conciergeChat: 'Concierge',
conciergeChatDescription: 'Votre agent IA personnel',
},
},
closeAccountPage: {
closeAccount: 'Fermer le compte',
Expand Down
8 changes: 7 additions & 1 deletion src/languages/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,13 @@ const translations: TranslationDeepObject<typeof en> = {
accountSettings: 'Impostazioni account',
account: 'Account',
general: 'Generale',
helpPage: {title: 'Aiuto e supporto', description: 'Siamo qui per aiutarti 24 ore su 24, 7 giorni su 7', helpSite: 'Sito di assistenza'},
helpPage: {
title: 'Aiuto e supporto',
description: 'Siamo qui per aiutarti 24 ore su 24, 7 giorni su 7',
helpSite: 'Sito di assistenza',
conciergeChat: 'Concierge',
conciergeChatDescription: 'Il tuo assistente IA personale',
},
},
closeAccountPage: {
closeAccount: 'Chiudi account',
Expand Down
8 changes: 7 additions & 1 deletion src/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,13 @@ const translations: TranslationDeepObject<typeof en> = {
accountSettings: 'アカウント設定',
account: 'アカウント',
general: '一般',
helpPage: {title: 'ヘルプとサポート', description: '24時間365日いつでもサポートいたします', helpSite: 'ヘルプサイト'},
helpPage: {
title: 'ヘルプとサポート',
description: '24時間365日いつでもサポートいたします',
helpSite: 'ヘルプサイト',
conciergeChat: 'Concierge',
conciergeChatDescription: 'あなた専用のAIエージェント',
},
},
closeAccountPage: {
closeAccount: 'アカウントを閉じる',
Expand Down
8 changes: 7 additions & 1 deletion src/languages/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,13 @@ const translations: TranslationDeepObject<typeof en> = {
accountSettings: 'Accountinstellingen',
account: 'Account',
general: 'Algemeen',
helpPage: {title: 'Hulp en ondersteuning', description: 'We zijn er om je 24/7 te helpen', helpSite: 'Helppagina'},
helpPage: {
title: 'Hulp en ondersteuning',
description: 'We zijn er om je 24/7 te helpen',
helpSite: 'Helppagina',
conciergeChat: 'Concierge',
conciergeChatDescription: 'Je persoonlijke AI-agent',
},
},
closeAccountPage: {
closeAccount: 'Account sluiten',
Expand Down
8 changes: 7 additions & 1 deletion src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,13 @@ const translations: TranslationDeepObject<typeof en> = {
accountSettings: 'Ustawienia konta',
account: 'Konto',
general: 'Ogólne',
helpPage: {title: 'Pomoc i wsparcie', description: 'Jesteśmy tu, żeby pomagać ci 24/7', helpSite: 'Centrum pomocy'},
helpPage: {
title: 'Pomoc i wsparcie',
description: 'Jesteśmy tu, żeby pomagać ci 24/7',
helpSite: 'Centrum pomocy',
conciergeChat: 'Concierge',
conciergeChatDescription: 'Twój osobisty agent AI',
},
},
closeAccountPage: {
closeAccount: 'Zamknij konto',
Expand Down
8 changes: 7 additions & 1 deletion src/languages/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,13 @@ const translations: TranslationDeepObject<typeof en> = {
accountSettings: 'Configurações da conta',
account: 'Conta',
general: 'Geral',
helpPage: {title: 'Ajuda e suporte', description: 'Estamos aqui para ajudar você 24 horas por dia, 7 dias por semana', helpSite: 'Site de ajuda'},
helpPage: {
title: 'Ajuda e suporte',
description: 'Estamos aqui para ajudar você 24 horas por dia, 7 dias por semana',
helpSite: 'Site de ajuda',
conciergeChat: 'Concierge',
conciergeChatDescription: 'Seu agente de IA pessoal',
},
},
closeAccountPage: {
closeAccount: 'Encerrar conta',
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 @@ -1943,7 +1943,7 @@ const translations: TranslationDeepObject<typeof en> = {
accountSettings: '账户设置',
account: '账户',
general: '常规',
helpPage: {title: '帮助与支持', description: '我们全天候 24/7 为您提供帮助', helpSite: '帮助网站'},
helpPage: {title: '帮助与支持', description: '我们全天候 24/7 为您提供帮助', helpSite: '帮助网站', conciergeChat: 'Concierge', conciergeChatDescription: '你的个人 AI 助理'},
},
closeAccountPage: {
closeAccount: '关闭账户',
Expand Down
29 changes: 28 additions & 1 deletion src/pages/settings/HelpPage/HelpPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,49 @@ import MenuItemList from '@components/MenuItemList';
import ScreenWrapper from '@components/ScreenWrapper';
import ScrollView from '@components/ScrollView';
import Section from '@components/Section';
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
import {useMemoizedLazyExpensifyIcons, useMemoizedLazyIllustrations} from '@hooks/useLazyAsset';
import useLocalize from '@hooks/useLocalize';
import useOnyx from '@hooks/useOnyx';
import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useSidePanelActions from '@hooks/useSidePanelActions';
import useThemeStyles from '@hooks/useThemeStyles';
import {openExternalLink} from '@libs/actions/Link';
import {navigateToConciergeChat} from '@libs/actions/Report';
import getPlatform from '@libs/getPlatform';
import Navigation from '@libs/Navigation/Navigation';
import colors from '@styles/theme/colors';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import {hasSeenTourSelector} from '@src/selectors/Onboarding';

const isWeb = getPlatform() === CONST.PLATFORM.WEB;

function HelpPage() {
const icons = useMemoizedLazyExpensifyIcons(['NewWindow', 'Monitor']);
const icons = useMemoizedLazyExpensifyIcons(['ConciergeAvatar', 'NewWindow', 'Monitor']);
const illustrations = useMemoizedLazyIllustrations(['LifeRing', 'TopiaryDollarSign']);
const {translate} = useLocalize();
const {shouldUseNarrowLayout} = useResponsiveLayout();
const styles = useThemeStyles();
const [conciergeReportID] = useOnyx(ONYXKEYS.CONCIERGE_REPORT_ID);
const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED);
const [isSelfTourViewed] = useOnyx(ONYXKEYS.NVP_ONBOARDING, {selector: hasSeenTourSelector});
const [betas] = useOnyx(ONYXKEYS.BETAS);
const {accountID: currentUserAccountID} = useCurrentUserPersonalDetails();
const {openSidePanel} = useSidePanelActions();

const menuItems = [
{
key: 'initialSettingsPage.helpPage.conciergeChat',
title: translate('initialSettingsPage.helpPage.conciergeChat'),
description: translate('initialSettingsPage.helpPage.conciergeChatDescription'),
icon: icons.ConciergeAvatar,
iconType: CONST.ICON_TYPE_AVATAR,
onPress: () => (isWeb ? openSidePanel() : navigateToConciergeChat(conciergeReportID, introSelected, currentUserAccountID, isSelfTourViewed, betas)),
shouldShowRightIcon: true,
wrapperStyle: [styles.sectionMenuItemTopDescription],
sentryLabel: CONST.SENTRY_LABEL.SETTINGS_HELP.CONCIERGE_CHAT,
},
{
key: 'initialSettingsPage.helpPage.helpSite',
title: translate('initialSettingsPage.helpPage.helpSite'),
Expand All @@ -30,6 +56,7 @@ function HelpPage() {
onPress: () => openExternalLink(CONST.NEWHELP_URL),
shouldShowRightIcon: true,
wrapperStyle: [styles.sectionMenuItemTopDescription],
link: CONST.NEWHELP_URL,
sentryLabel: CONST.SENTRY_LABEL.SETTINGS_HELP.HELP_DOCS,
},
];
Expand Down
Loading