Skip to content

Commit 452b7fa

Browse files
Merge branch 'Expensify:main' into onyx/session-6
2 parents 8fd2263 + 1ca1d27 commit 452b7fa

117 files changed

Lines changed: 3366 additions & 2172 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 0 deletions
Loading

contributingGuides/SETUP_ANDROID.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ If you haven't done any intentional edits outside of `src/` (like adding new dep
7373
- Changes applied to Javascript will be applied automatically, any changes to native code will require a recompile
7474

7575
### Expensify Employees
76-
If you are an Expensify employee and want to point the emulator to your local VM, follow [this](https://stackoverflow.com/c/expensify/questions/7699)
76+
- To point the **Development Emulator** at your local VM, follow [these steps](https://stackoverflow.com/c/expensify/questions/7699).
77+
- You must configure the local dev email account; follow [these instructions](https://stackoverflowteams.com/c/expensify/questions/23537/23538#23538).
7778

7879
## Enabling Prebuilt React Native Artifacts
7980

contributingGuides/SETUP_IOS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ For an M1 Mac, read this [Stack Overflow post](https://stackoverflow.com/questio
8080
If you want to run the app on an actual physical iOS device, please follow the instructions [here](https://github.com/Expensify/App/blob/main/contributingGuides/HOW_TO_BUILD_APP_ON_PHYSICAL_IOS_DEVICE.md).
8181

8282
### Expensify Employees
83-
If you are an Expensify employee and want to point the emulator to your local VM, follow [this](https://stackoverflow.com/c/expensify/questions/7699)
83+
- To point the **Development Simulator** at your local VM, follow [these steps](https://stackoverflow.com/c/expensify/questions/7699).
84+
- You must configure the local dev email account; follow [these instructions](https://stackoverflowteams.com/c/expensify/questions/23537/23538#23538).
8485

8586
## Push Notifications Setup
8687

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"perf-test": "NODE_OPTIONS=--experimental-vm-modules npx reassure",
4646
"typecheck": "NODE_OPTIONS=--max_old_space_size=8192 tsc",
4747
"typecheck-tsgo": "tsgo --noEmit --incremental --tsBuildInfoFile tsconfig.tsgo.tsbuildinfo",
48-
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=313 --cache --cache-location=node_modules/.cache/eslint --cache-strategy content --concurrency=auto",
48+
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=292 --cache --cache-location=node_modules/.cache/eslint --cache-strategy content --concurrency=auto",
4949
"lint-changed": "NODE_OPTIONS=--max_old_space_size=8192 ./scripts/lintChanged.sh",
5050
"lint-watch": "npx eslint-watch --watch --changed",
5151
"shellcheck": "./scripts/shellCheck.sh",

src/CONST/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ const CONST = {
886886
PAY_INVOICE_VIA_EXPENSIFY: 'payInvoiceViaExpensify',
887887
SUGGESTED_FOLLOWUPS: 'suggestedFollowups',
888888
GUSTO: 'gustoNewDot',
889+
BULK_DUPLICATE_REPORT: 'bulkDuplicateReport',
889890
BULK_EDIT: 'bulkEdit',
890891
NEW_MANUAL_EXPENSE_FLOW: 'newManualExpenseFlow',
891892
BULK_SUBMIT_APPROVE_PAY: 'bulkSubmitApprovePay',
@@ -7554,6 +7555,7 @@ const CONST = {
75547555
CHANGE_REPORT: 'changeReport',
75557556
SPLIT: 'split',
75567557
DUPLICATE: 'duplicate',
7558+
DUPLICATE_REPORT: 'duplicateReport',
75577559
UNDELETE: 'undelete',
75587560
},
75597561
BULK_DUPLICATE_LIMIT: 50,

src/components/AddUnreportedExpenseFooter.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ function AddUnreportedExpenseFooter({selectedIds, report, reportToConfirm, repor
5858
const [quickAction] = useOnyx(ONYXKEYS.NVP_QUICK_ACTION_GLOBAL_CREATE);
5959
const [betas] = useOnyx(ONYXKEYS.BETAS);
6060
const [chatReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${report?.chatReportID}`);
61+
const [policyTagList] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_TAGS}${policy?.id}`);
6162

6263
const handleConfirm = () => {
6364
if (selectedIds.size === 0) {
@@ -93,6 +94,7 @@ function AddUnreportedExpenseFooter({selectedIds, report, reportToConfirm, repor
9394
reportNextStep,
9495
policyCategories,
9596
allTransactions: selectedTransactions,
97+
policyTagList,
9698
});
9799
}
98100
});

src/components/Hoverable/ActiveHoverable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {cloneElement, useCallback, useEffect, useMemo, useRef, useState} from 'react';
22
import {DeviceEventEmitter} from 'react-native';
3+
import getReturnValue from '@libs/getReturnValue';
34
import mergeRefs from '@libs/mergeRefs';
4-
import {getReturnValue} from '@libs/ValueUtils';
55
import CONST from '@src/CONST';
66
import type HoverableProps from './types';
77

src/components/Hoverable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {cloneElement} from 'react';
22
import {hasHoverSupport} from '@libs/DeviceCapabilities';
3+
import getReturnValue from '@libs/getReturnValue';
34
import mergeRefs from '@libs/mergeRefs';
4-
import {getReturnValue} from '@libs/ValueUtils';
55
import ActiveHoverable from './ActiveHoverable';
66
import type HoverableProps from './types';
77

src/components/Icon/chunks/illustrations.chunk.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ import CalendarMonthly from '@assets/images/simple-illustrations/simple-illustra
113113
import CarIce from '@assets/images/simple-illustrations/simple-illustration__car-ice.svg';
114114
import Car from '@assets/images/simple-illustrations/simple-illustration__car.svg';
115115
import Chair from '@assets/images/simple-illustrations/simple-illustration__chair.svg';
116+
import Chalkboard from '@assets/images/simple-illustrations/simple-illustration__chalkboard.svg';
116117
import ChatBubbles from '@assets/images/simple-illustrations/simple-illustration__chatbubbles.svg';
117118
import CheckboxText from '@assets/images/simple-illustrations/simple-illustration__checkboxtext.svg';
118119
import CheckmarkCircle from '@assets/images/simple-illustrations/simple-illustration__checkmarkcircle.svg';
@@ -398,6 +399,7 @@ const Illustrations = {
398399
Trophy,
399400
Trophy1,
400401
FoodTruck,
402+
Chalkboard,
401403

402404
// Multifactor Authentication Illustrations
403405
MagnifyingGlassSpyMouthClosed,

src/components/KYCWall/BaseKYCWall.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function KYCWall({
171171
}
172172

173173
const lastWorkspaceNumber = lastWorkspaceNumberSelector(policies, currentUserEmail);
174-
const {policyID, workspaceChatReportID, reportPreviewReportActionID, adminsChatReportID} =
174+
const {policyID, workspaceChatReportID, adminsChatReportID} =
175175
createWorkspaceFromIOUPayment(
176176
iouReport,
177177
reportPreviewAction,
@@ -188,12 +188,11 @@ function KYCWall({
188188
savePreferredPaymentMethod(iouReport.policyID, policyID, CONST.LAST_PAYMENT_METHOD.IOU, lastPaymentMethod?.[iouReport?.policyID]);
189189
}
190190
completePaymentOnboarding(CONST.PAYMENT_SELECTED.BBA, introSelected, isSelfTourViewed, betas, adminsChatReportID, policyID);
191-
if (workspaceChatReportID) {
192-
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(workspaceChatReportID, reportPreviewReportActionID));
193-
}
191+
const workspaceReportRoute = workspaceChatReportID ? ROUTES.REPORT_WITH_ID.getRoute(workspaceChatReportID) : undefined;
194192

195-
// Navigate to the bank account set up flow for this specific policy
196-
Navigation.navigate(ROUTES.BANK_ACCOUNT_WITH_STEP_TO_OPEN.getRoute({policyID}));
193+
setNavigationActionToMicrotaskQueue(() => {
194+
Navigation.navigate(ROUTES.BANK_ACCOUNT_WITH_STEP_TO_OPEN.getRoute({policyID, backTo: workspaceReportRoute}));
195+
});
197196
return;
198197
}
199198

0 commit comments

Comments
 (0)