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 @@ -7266,6 +7266,7 @@ const CONST = {
SPLIT_EXPENSE: 'splitExpense',
REVIEW_WORKSPACE_SETTINGS: 'reviewWorkspaceSettings',
INVITE_ACCOUNTANT: 'inviteAccountant',
ADD_EXPENSE_APPROVALS: 'addExpenseApprovals',
},
} as const;

Expand Down
17 changes: 17 additions & 0 deletions src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,23 @@ const translations = {
title: ({testDriveURL}) => `Mache eine [Probefahrt](${testDriveURL})`,
description: ({testDriveURL}) => `Probiere uns in einer [Probefahrt](${testDriveURL}) aus und sichere deinem Team *3 Monate Expensify gratis!*`,
},
addExpenseApprovalsTask: {
title: 'Ausgabengenehmigungen hinzufügen',
description: ({workspaceMoreFeaturesLink}) =>
`*Füge Ausgabengenehmigungen hinzu*, um die Ausgaben deines Teams zu überprüfen und unter Kontrolle zu halten.\n` +
'\n' +
`So geht’s:\n` +
'\n' +
'1. Gehe zu *Arbeitsbereiche*.\n' +
'2. Wähle deinen Arbeitsbereich aus.\n' +
'3. Klicke auf *Weitere Funktionen*.\n' +
'4. Aktiviere *Workflows*.\n' +
'5. Navigiere im Arbeitsbereich-Editor zu *Workflows*.\n' +
'6. Aktiviere *Genehmigungen hinzufügen*.\n' +
`7. Du wirst als Ausgabengenehmiger festgelegt. Du kannst dies nach dem Einladen deines Teams auf einen beliebigen Administrator ändern.\n` +
'\n' +
`[Zu weiteren Funktionen](${workspaceMoreFeaturesLink}).`,
},
createTestDriveAdminWorkspaceTask: {
title: ({workspaceConfirmationLink}) => `[Erstelle](${workspaceConfirmationLink}) einen Workspace`,
description: 'Erstelle einen Workspace und konfiguriere die Einstellungen mit Hilfe deines Einrichtungsspezialisten!',
Expand Down
17 changes: 17 additions & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2335,6 +2335,23 @@ const translations = {
title: ({testDriveURL}) => `Take a [test drive](${testDriveURL})`,
description: ({testDriveURL}) => `Take us for a [test drive](${testDriveURL}) and get your team *3 free months of Expensify!*`,
},
addExpenseApprovalsTask: {
title: 'Add expense approvals',
description: ({workspaceMoreFeaturesLink}) =>
`*Add expense approvals* to review your team's spend and keep it under control.\n` +
'\n' +
`Here's how:\n` +
'\n' +
'1. Go to *Workspaces*.\n' +
'2. Select your workspace.\n' +
'3. Click *More features*.\n' +
'4. Enable *Workflows*.\n' +
'5. Navigate to *Workflows* in the workspace editor.\n' +
'6. Enable *Add approvals*.\n' +
`7. You'll be set as the expense approver. You can change this to any admin once you invite your team.\n` +
'\n' +
`[Take me to more features](${workspaceMoreFeaturesLink}).`,
},
createTestDriveAdminWorkspaceTask: {
title: ({workspaceConfirmationLink}) => `[Create](${workspaceConfirmationLink}) a workspace`,
description: 'Create a workspace and configure the settings with the help of your setup specialist!',
Expand Down
17 changes: 17 additions & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2330,6 +2330,23 @@ const translations = {
title: ({testDriveURL}) => `Haz una [prueba](${testDriveURL})`,
description: ({testDriveURL}) => `Haz una [prueba](${testDriveURL}) y consigue *3 meses gratis de Expensify para tu equipo!*`,
},
addExpenseApprovalsTask: {
title: 'Añadir aprobaciones de gastos',
description: ({workspaceMoreFeaturesLink}) =>
`*Añade aprobaciones de gastos* para revisar los gastos de tu equipo y mantenerlos bajo control.\n` +
'\n' +
`Así es como puedes añadir aprobaciones de gastos:\n` +
'\n' +
'1. Ve a *Espacios de trabajo*.\n' +
'2. Selecciona tu espacio de trabajo.\n' +
'3. Haz clic en *Más funciones*.\n' +
'4. Activa *Flujos de trabajo*.\n' +
'5. Navega a *Flujos de trabajo* en el editor del espacio de trabajo.\n' +
'6. Activa *Añadir aprobaciones*.\n' +
`7. Serás asignado como aprobador de gastos. Podrás cambiarlo a cualquier administrador una vez que lo invites a tu equipo.\n` +
'\n' +
`[Llévame a más funciones](${workspaceMoreFeaturesLink}).`,
},
createTestDriveAdminWorkspaceTask: {
title: ({workspaceConfirmationLink}) => `[Crea](${workspaceConfirmationLink}) un espacio de trabajo`,
description: 'Crea un espacio de trabajo y configura los ajustes con la ayuda de tu especialista asignado.',
Expand Down
17 changes: 17 additions & 0 deletions src/languages/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2369,6 +2369,23 @@ const translations = {
title: ({testDriveURL}) => `Faites un [essai gratuit](${testDriveURL})`,
description: ({testDriveURL}) => `Essayez-nous avec un [essai gratuit](${testDriveURL}) et offrez à votre équipe *3 mois gratuits sur Expensify !*`,
},
addExpenseApprovalsTask: {
title: 'Ajouter des validations de dépenses',
description: ({workspaceMoreFeaturesLink}) =>
`*Ajoutez des validations de dépenses* pour examiner les dépenses de votre équipe et les garder sous contrôle.\n` +
'\n' +
`Voici comment faire :\n` +
'\n' +
'1. Allez dans *Espaces de travail*.\n' +
'2. Sélectionnez votre espace de travail.\n' +
'3. Cliquez sur *Plus de fonctionnalités*.\n' +
'4. Activez *Flux de travail*.\n' +
'5. Accédez à *Flux de travail* dans l’éditeur de l’espace de travail.\n' +
'6. Activez *Ajouter des validations*.\n' +
`7. Vous serez défini comme validateur des dépenses. Vous pourrez changer cela pour un autre administrateur après avoir invité votre équipe.\n` +
'\n' +
`[Aller à plus de fonctionnalités](${workspaceMoreFeaturesLink}).`,
},
createTestDriveAdminWorkspaceTask: {
title: ({workspaceConfirmationLink}) => `[Créez](${workspaceConfirmationLink}) un espace de travail`,
description: 'Créez un espace de travail et configurez les paramètres avec l’aide de votre spécialiste de configuration !',
Expand Down
17 changes: 17 additions & 0 deletions src/languages/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2354,6 +2354,23 @@ const translations = {
title: ({testDriveURL}) => `Fai un [test drive](${testDriveURL})`,
description: ({testDriveURL}) => `Prova un [test drive](${testDriveURL}) e ottieni *3 mesi gratuiti di Expensify!* per il tuo team`,
},
addExpenseApprovalsTask: {
title: 'Aggiungi approvazioni spese',
description: ({workspaceMoreFeaturesLink}) =>
`*Aggiungi approvazioni spese* per controllare le spese del tuo team e mantenerle sotto controllo.\n` +
'\n' +
`Ecco come fare:\n` +
'\n' +
'1. Vai a *Spazi di lavoro*.\n' +
'2. Seleziona il tuo spazio di lavoro.\n' +
'3. Clicca su *Altre funzionalità*.\n' +
'4. Abilita *Flussi di lavoro*.\n' +
'5. Vai su *Flussi di lavoro* nell’editor dello spazio di lavoro.\n' +
'6. Abilita *Aggiungi approvazioni*.\n' +
`7. Sarai impostato come approvatore delle spese. Potrai cambiarlo con un amministratore una volta invitato il tuo team.\n` +
'\n' +
`[Vai a altre funzionalità](${workspaceMoreFeaturesLink}).`,
},
createTestDriveAdminWorkspaceTask: {
title: ({workspaceConfirmationLink}) => `[Crea](${workspaceConfirmationLink}) uno spazio di lavoro`,
description: 'Crea uno spazio di lavoro e configura le impostazioni con l’aiuto del tuo specialista di configurazione!',
Expand Down
17 changes: 17 additions & 0 deletions src/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2345,6 +2345,23 @@ const translations = {
title: ({testDriveURL}) => `[テストドライブ](${testDriveURL})を行う`,
description: ({testDriveURL}) => `[テストドライブ](${testDriveURL})を行い、チームに *3 か月間の Expensify 無料クーポン*を手に入れましょう!`,
},
addExpenseApprovalsTask: {
title: '経費承認を追加',
description: ({workspaceMoreFeaturesLink}) =>
`チームの支出を確認し、管理するために*経費承認を追加*しましょう。\n` +
'\n' +
`手順は以下の通りです:\n` +
'\n' +
'1. *ワークスペース* に移動します。\n' +
'2. 自分のワークスペースを選択します。\n' +
'3. *その他の機能* をクリックします。\n' +
'4. *ワークフロー* を有効にします。\n' +
'5. ワークスペースエディターで *ワークフロー* に移動します。\n' +
'6. *承認を追加* を有効にします。\n' +
`7. あなたが経費承認者として設定されます。チームを招待した後、管理者に変更することもできます。\n` +
'\n' +
`[その他の機能に移動](${workspaceMoreFeaturesLink})。`,
},
createTestDriveAdminWorkspaceTask: {
title: ({workspaceConfirmationLink}) => `[ワークスペースの作成](${workspaceConfirmationLink})`,
description: 'セットアップスペシャリストと共にワークスペースを作成し、設定を構成します!',
Expand Down
17 changes: 17 additions & 0 deletions src/languages/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2354,6 +2354,23 @@ const translations = {
title: ({testDriveURL}) => `Neem een [proefrit](${testDriveURL})`,
description: ({testDriveURL}) => `Neem ons mee voor een [proefrit](${testDriveURL}) en uw team krijgt *3 maanden Expensify gratis!*`,
},
addExpenseApprovalsTask: {
title: 'Uitgaven goedkeuringen toevoegen',
description: ({workspaceMoreFeaturesLink}) =>
`*Voeg uitgaven goedkeuringen toe* om de uitgaven van je team te controleren en onder controle te houden.\n` +
'\n' +
`Zo doe je dat:\n` +
'\n' +
'1. Ga naar *Werkruimten*.\n' +
'2. Selecteer je werkruimte.\n' +
'3. Klik op *Meer functies*.\n' +
'4. Schakel *Workflows* in.\n' +
'5. Ga in de werkruimte-editor naar *Workflows*.\n' +
'6. Schakel *Goedkeuringen toevoegen* in.\n' +
`7. Jij wordt ingesteld als uitgaven goedkeurder. Je kunt dit wijzigen naar een beheerder zodra je team is uitgenodigd.\n` +
'\n' +
`[Ga naar meer functies](${workspaceMoreFeaturesLink}).`,
},
createTestDriveAdminWorkspaceTask: {
title: ({workspaceConfirmationLink}) => `[Maak](${workspaceConfirmationLink}) een werkruimte`,
description: 'Maak een werkruimte en configureer de instellingen met de hulp van uw setup specialist!',
Expand Down
17 changes: 17 additions & 0 deletions src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2350,6 +2350,23 @@ const translations = {
title: ({testDriveURL}) => `Neem een [proefrit](${testDriveURL})`,
description: ({testDriveURL}) => `Neem ons mee voor een [proefrit](${testDriveURL}) en uw team krijgt *3 maanden Expensify gratis!*`,
},
addExpenseApprovalsTask: {
title: 'Dodaj zatwierdzanie wydatków',
description: ({workspaceMoreFeaturesLink}) =>
`*Dodaj zatwierdzanie wydatków*, aby kontrolować wydatki swojego zespołu i utrzymać je pod kontrolą.\n` +
'\n' +
`Jak to zrobić:\n` +
'\n' +
'1. Przejdź do *Obszary robocze*.\n' +
'2. Wybierz swój obszar roboczy.\n' +
'3. Kliknij *Więcej funkcji*.\n' +
'4. Włącz *Przepływy pracy*.\n' +
'5. Przejdź do *Przepływy pracy* w edytorze obszaru roboczego.\n' +
'6. Włącz *Dodaj zatwierdzenia*.\n' +
`7. Zostaniesz ustawiony jako osoba zatwierdzająca wydatki. Możesz to zmienić na dowolnego administratora po zaproszeniu zespołu.\n` +
'\n' +
`[Przejdź do więcej funkcji](${workspaceMoreFeaturesLink}).`,
},
createTestDriveAdminWorkspaceTask: {
title: ({workspaceConfirmationLink}) => `[Maak](${workspaceConfirmationLink}) een werkruimte`,
description: 'Maak een werkruimte en configureer de instellingen met de hulp van uw setup specialist!',
Expand Down
17 changes: 17 additions & 0 deletions src/languages/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2353,6 +2353,23 @@ const translations = {
title: ({testDriveURL}) => `Faça um [test drive](${testDriveURL})`,
description: ({testDriveURL}) => `[Faça um test drive](${testDriveURL}) conosco e sua equipe ganha *3 meses grátis de Expensify!*`,
},
addExpenseApprovalsTask: {
title: 'Adicionar aprovações de despesas',
description: ({workspaceMoreFeaturesLink}) =>
`*Adicione aprovações de despesas* para revisar os gastos da sua equipe e mantê-los sob controle.\n` +
'\n' +
`Veja como fazer:\n` +
'\n' +
'1. Vá para *Espaços de trabalho*.\n' +
'2. Selecione seu espaço de trabalho.\n' +
'3. Clique em *Mais recursos*.\n' +
'4. Ative *Fluxos de trabalho*.\n' +
'5. Vá para *Fluxos de trabalho* no editor do espaço de trabalho.\n' +
'6. Ative *Adicionar aprovações*.\n' +
`7. Você será definido como o aprovador de despesas. Pode alterar isso para qualquer administrador após convidar sua equipe.\n` +
'\n' +
`[Ir para mais recursos](${workspaceMoreFeaturesLink}).`,
},
createTestDriveAdminWorkspaceTask: {
title: ({workspaceConfirmationLink}) => `[Crie](${workspaceConfirmationLink}) um espaço de trabalho`,
description: 'Crie um espaço de trabalho e configure as definições com a ajuda do seu especialista em configuração!',
Expand Down
17 changes: 17 additions & 0 deletions src/languages/zh-hans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2323,6 +2323,23 @@ const translations = {
title: ({testDriveURL}) => `进行[试驾](${testDriveURL})`,
description: ({testDriveURL}) => `进行[试驾](${testDriveURL})即可获得团队 *3 个月的 Expensify 免费使用权!*`,
},
addExpenseApprovalsTask: {
title: '添加费用审批',
description: ({workspaceMoreFeaturesLink}) =>
`*添加费用审批*,以便查看团队支出并保持控制。\n` +
'\n' +
`操作步骤如下:\n` +
'\n' +
'1. 前往 *工作区*。\n' +
'2. 选择你的工作区。\n' +
'3. 点击 *更多功能*。\n' +
'4. 启用 *工作流*。\n' +
'5. 在工作区编辑器中进入 *工作流*。\n' +
'6. 启用 *添加审批*。\n' +
`7. 你将被设置为费用审批人。邀请团队后,你可以将其更改为任意管理员。\n` +
'\n' +
`[前往更多功能](${workspaceMoreFeaturesLink})。`,
},
createTestDriveAdminWorkspaceTask: {
title: ({workspaceConfirmationLink}) => `[创建](${workspaceConfirmationLink})一个工作区`,
description: '创建一个工作区,并在您的设置专家的帮助下配置各项设置!',
Expand Down
19 changes: 18 additions & 1 deletion src/libs/actions/Welcome/OnboardingFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import type {Locale, Onboarding} from '@src/types/onyx';

let onboardingValues: Onboarding;
Onyx.connect({

Check warning on line 20 in src/libs/actions/Welcome/OnboardingFlow.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.NVP_ONBOARDING,
callback: (value) => {
if (value === undefined) {
Expand Down Expand Up @@ -169,6 +169,13 @@
MERCHANT: "Tommy's Tires",
},
};
const addExpenseApprovalsTask: OnboardingTask = {
type: CONST.ONBOARDING_TASK_TYPE.ADD_EXPENSE_APPROVALS,
autoCompleted: false,
title: () => translate(resolvedLocale, 'onboarding.tasks.addExpenseApprovalsTask.title'),
description: ({workspaceMoreFeaturesLink}) => translate(resolvedLocale, 'onboarding.tasks.addExpenseApprovalsTask.description', {workspaceMoreFeaturesLink}),
mediaAttributes: {},
};
const createReportTask: OnboardingTask = {
type: CONST.ONBOARDING_TASK_TYPE.CREATE_REPORT,
autoCompleted: false,
Expand Down Expand Up @@ -342,7 +349,17 @@

const onboardingManageTeamMessage: OnboardingMessage = {
message: translate(resolvedLocale, 'onboarding.messages.onboardingManageTeamMessage', {hasIntroSelected}),
tasks: [createWorkspaceTask, testDriveAdminTask, addAccountingIntegrationTask, connectCorporateCardTask, inviteTeamTask, setupCategoriesAndTags, setupCategoriesTask, setupTagsTask],
tasks: [
createWorkspaceTask,
testDriveAdminTask,
addAccountingIntegrationTask,
connectCorporateCardTask,
inviteTeamTask,
setupCategoriesAndTags,
setupCategoriesTask,
setupTagsTask,
addExpenseApprovalsTask,
],
};

const onboardingTrackWorkspaceMessage: OnboardingMessage = {
Expand Down
Loading