Skip to content

Commit 748dfe1

Browse files
authored
Merge pull request Expensify#68021 from callstack-internal/uber-partner-page
Uber Connection page
2 parents 15e889b + 16c4760 commit 748dfe1

30 files changed

Lines changed: 494 additions & 6 deletions

File tree

Lines changed: 105 additions & 0 deletions
Loading

src/CONST/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const ACTIVE_EXPENSIFY_URL = addTrailingForwardSlash(Config?.NEW_EXPENSIFY_URL ?
3030
const USE_EXPENSIFY_URL = 'https://use.expensify.com';
3131
const EXPENSIFY_MOBILE_URL = 'https://expensify.com/mobile';
3232
const EXPENSIFY_URL = 'https://www.expensify.com';
33+
const UBER_CONNECT_URL = 'https://business-integrations.uber.com/connect';
3334
const PLATFORM_OS_MACOS = 'Mac OS';
3435
const PLATFORM_IOS = 'iOS';
3536
const ANDROID_PACKAGE_NAME = 'org.me.mobiexpensifyg';
@@ -417,6 +418,7 @@ const CONST = {
417418
},
418419

419420
NEW_EXPENSIFY_URL: ACTIVE_EXPENSIFY_URL,
421+
UBER_CONNECT_URL,
420422
APP_DOWNLOAD_LINKS: {
421423
ANDROID: `https://play.google.com/store/apps/details?id=${ANDROID_PACKAGE_NAME}`,
422424
IOS: 'https://apps.apple.com/us/app/expensify-travel-expense/id471713959',
@@ -2956,6 +2958,12 @@ const CONST = {
29562958
TOBACCO: 'tobacco',
29572959
ADULT_ENTERTAINMENT: 'adultEntertainment',
29582960
},
2961+
RECEIPT_PARTNERS: {
2962+
NAME: {UBER: 'uber'},
2963+
NAME_USER_FRIENDLY: {
2964+
uber: 'Uber for Business',
2965+
},
2966+
},
29592967
CONNECTIONS: {
29602968
NAME: {
29612969
// Here we will add other connections names when we add support for them

src/ROUTES.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,6 +1855,15 @@ const ROUTES = {
18551855
return getUrlWithBackToParam(`workspaces/${policyID}/per-diem`, backTo);
18561856
},
18571857
},
1858+
WORKSPACE_RECEIPT_PARTNERS: {
1859+
route: 'workspaces/:policyID/receipt-partners',
1860+
getRoute: (policyID: string | undefined, backTo?: string) => {
1861+
if (!policyID) {
1862+
Log.warn('Invalid policyID is used to build the WORKSPACE_RECEIPT_PARTNERS route');
1863+
}
1864+
return getUrlWithBackToParam(`workspaces/${policyID}/receipt-partners`, backTo);
1865+
},
1866+
},
18581867
WORKSPACE_PER_DIEM_IMPORT: {
18591868
route: 'workspaces/:policyID/per-diem/import',
18601869
getRoute: (policyID: string) => `workspaces/${policyID}/per-diem/import` as const,

src/components/FocusTrap/WIDE_LAYOUT_INACTIVE_SCREENS.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const WIDE_LAYOUT_INACTIVE_SCREENS: string[] = [
3434
SCREENS.SETTINGS.SAVE_THE_WORLD,
3535
SCREENS.WORKSPACE.RULES,
3636
SCREENS.WORKSPACE.PER_DIEM,
37+
SCREENS.WORKSPACE.RECEIPT_PARTNERS,
3738
];
3839

3940
export default WIDE_LAYOUT_INACTIVE_SCREENS;

src/components/Icon/Expensicons.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ import QBOCircle from '@assets/images/integrationicons/qbo-icon-circle.svg';
138138
import QBOSquare from '@assets/images/integrationicons/qbo-icon-square.svg';
139139
import SageIntacctSquare from '@assets/images/integrationicons/sage-intacct-icon-square.svg';
140140
import SapSquare from '@assets/images/integrationicons/sap-icon-square.svg';
141+
import Uber from '@assets/images/integrationicons/uber.svg';
141142
import XeroCircle from '@assets/images/integrationicons/xero-icon-circle.svg';
142143
import XeroSquare from '@assets/images/integrationicons/xero-icon-square.svg';
143144
import InvoiceGeneric from '@assets/images/invoice-generic.svg';
@@ -417,6 +418,7 @@ export {
417418
ThreeDots,
418419
Transfer,
419420
Trashcan,
421+
Uber,
420422
Unlock,
421423
UpArrow,
422424
Upload,

src/languages/de.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3512,6 +3512,11 @@ const translations = {
35123512
policyExpenseChatName: ({displayName}: PolicyExpenseChatNameParams) => `Ausgaben von ${displayName}`,
35133513
deepDiveExpensifyCard: `<muted-text-label>Expensify Card-Transaktionen werden automatisch in ein mit <a href="${CONST.DEEP_DIVE_EXPENSIFY_CARD}">unserer Integration</a> erstelltes „Expensify Card Liability Account“ exportiert.</muted-text-label>`,
35143514
},
3515+
receiptPartners: {
3516+
uber: {
3517+
subtitle: 'Automatisieren Sie die Reisekosten und Essenslieferungskosten in Ihrem gesamten Unternehmen.',
3518+
},
3519+
},
35153520
perDiem: {
35163521
subtitle: 'Setzen Sie Tagespauschalen, um die täglichen Ausgaben der Mitarbeiter zu kontrollieren.',
35173522
amount: 'Betrag',

src/languages/en.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3509,6 +3509,11 @@ const translations = {
35093509
policyExpenseChatName: ({displayName}: PolicyExpenseChatNameParams) => `${displayName}'s expenses`,
35103510
deepDiveExpensifyCard: `<muted-text-label>Expensify Card transactions will automatically export to an "Expensify Card Liability Account" created with <a href="${CONST.DEEP_DIVE_EXPENSIFY_CARD}">our integration</a>.</muted-text-label>`,
35113511
},
3512+
receiptPartners: {
3513+
uber: {
3514+
subtitle: 'Automate travel and meal delivery expenses across your organization.',
3515+
},
3516+
},
35123517
perDiem: {
35133518
subtitle: 'Set per diem rates to control daily employee spend. ',
35143519
amount: 'Amount',

src/languages/es.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3497,6 +3497,11 @@ const translations = {
34973497
policyExpenseChatName: ({displayName}: PolicyExpenseChatNameParams) => `${displayName}'s gastos`,
34983498
deepDiveExpensifyCard: `<muted-text-label>Las transacciones de la Tarjeta Expensify se exportan automáticamente a una "Cuenta de Responsabilidad de la Tarjeta Expensify" creada con <a href="${CONST.DEEP_DIVE_EXPENSIFY_CARD}">nuestra integración</a>.</muted-text-label>`,
34993499
},
3500+
receiptPartners: {
3501+
uber: {
3502+
subtitle: 'Automatice los gastos de viajes y entrega de comidas en toda su organización.',
3503+
},
3504+
},
35003505
perDiem: {
35013506
subtitle: 'Establece las tasas per diem para controlar los gastos diarios de los empleados. ',
35023507
amount: 'Cantidad',

src/languages/fr.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3520,6 +3520,11 @@ const translations = {
35203520
policyExpenseChatName: ({displayName}: PolicyExpenseChatNameParams) => `Les dépenses de ${displayName}`,
35213521
deepDiveExpensifyCard: `<muted-text-label>Les transactions Expensify Card seront automatiquement exportées vers un « Expensify Card Liability Account » créé avec <a href="${CONST.DEEP_DIVE_EXPENSIFY_CARD}">notre intégration</a>.</muted-text-label>`,
35223522
},
3523+
receiptPartners: {
3524+
uber: {
3525+
subtitle: 'Automatisez les dépenses de déplacement et de livraison de repas dans toute votre organisation.',
3526+
},
3527+
},
35233528
perDiem: {
35243529
subtitle: 'Définissez des taux de per diem pour contrôler les dépenses quotidiennes des employés.',
35253530
amount: 'Montant',

src/languages/it.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3525,6 +3525,11 @@ const translations = {
35253525
policyExpenseChatName: ({displayName}: PolicyExpenseChatNameParams) => `Spese di ${displayName}`,
35263526
deepDiveExpensifyCard: `<muted-text-label>Le transazioni della carta Expensify verranno esportate automaticamente in un “Conto di responsabilità della carta Expensify” creato con la <a href="${CONST.DEEP_DIVE_EXPENSIFY_CARD}">nostra integrazione</a>.</muted-text-label>`,
35273527
},
3528+
receiptPartners: {
3529+
uber: {
3530+
subtitle: 'Automatizza le spese di viaggio e di consegna dei pasti in tutta la tua organizzazione.',
3531+
},
3532+
},
35283533
perDiem: {
35293534
subtitle: 'Imposta le tariffe di diaria per controllare la spesa giornaliera dei dipendenti.',
35303535
amount: 'Importo',

0 commit comments

Comments
 (0)