Skip to content

Commit dfad5d1

Browse files
committed
Merge remote-tracking branch 'upstream/main' into perf/recalculate-changed-options
2 parents a208f34 + c93cde5 commit dfad5d1

64 files changed

Lines changed: 353 additions & 240 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.

Mobile-Expensify

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ android {
114114
minSdkVersion rootProject.ext.minSdkVersion
115115
targetSdkVersion rootProject.ext.targetSdkVersion
116116
multiDexEnabled rootProject.ext.multiDexEnabled
117-
versionCode 1009013205
118-
versionName "9.1.32-5"
117+
versionCode 1009013207
118+
versionName "9.1.32-7"
119119
// Supported language variants must be declared here to avoid from being removed during the compilation.
120120
// This also helps us to not include unnecessary language variants in the APK.
121121
resConfigs "en", "es"

ios/NewExpensify/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</dict>
4545
</array>
4646
<key>CFBundleVersion</key>
47-
<string>9.1.32.5</string>
47+
<string>9.1.32.7</string>
4848
<key>FullStory</key>
4949
<dict>
5050
<key>OrgId</key>

ios/NotificationServiceExtension/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleShortVersionString</key>
1414
<string>9.1.32</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.1.32.5</string>
16+
<string>9.1.32.7</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionPointIdentifier</key>

ios/ShareViewController/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleShortVersionString</key>
1414
<string>9.1.32</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.1.32.5</string>
16+
<string>9.1.32.7</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionAttributes</key>

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "new.expensify",
3-
"version": "9.1.32-5",
3+
"version": "9.1.32-7",
44
"author": "Expensify, Inc.",
55
"homepage": "https://new.expensify.com",
66
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",

src/CONST.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3448,6 +3448,7 @@ const CONST = {
34483448
SSN_LAST_FOUR: /^(?!0000)[0-9]{4}$/,
34493449
SSN_FULL_NINE: /^(?!0000)[0-9]{9}$/,
34503450
NUMBER: /^[0-9]+$/,
3451+
PHONE_NUMBER: /^\+?[0-9]{4,17}$/,
34513452
CARD_NUMBER: /^[0-9]{15,16}$/,
34523453
CARD_SECURITY_CODE: /^[0-9]{3,4}$/,
34533454
CARD_EXPIRATION_DATE: /^(0[1-9]|1[0-2])([^0-9])?([0-9]{4}|([0-9]{2}))$/,
@@ -6998,6 +6999,7 @@ const CONST = {
69986999
SCAN_TEST_TOOLTIP: 'scanTestTooltip',
69997000
SCAN_TEST_TOOLTIP_MANAGER: 'scanTestTooltipManager',
70007001
SCAN_TEST_CONFIRMATION: 'scanTestConfirmation',
7002+
EXPENSE_REPORTS_FILTER: 'expenseReportsFilter',
70017003
},
70027004
CHANGE_POLICY_TRAINING_MODAL: 'changePolicyModal',
70037005
SMART_BANNER_HEIGHT: 152,

src/components/AddPlaidBankAccount.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import useLocalize from '@hooks/useLocalize';
66
import useNetwork from '@hooks/useNetwork';
77
import useTheme from '@hooks/useTheme';
88
import useThemeStyles from '@hooks/useThemeStyles';
9+
import {handlePlaidError, openPlaidBankAccountSelector, openPlaidBankLogin, setPlaidEvent} from '@libs/actions/BankAccounts';
910
import KeyboardShortcut from '@libs/KeyboardShortcut';
1011
import Log from '@libs/Log';
11-
import * as App from '@userActions/App';
12-
import * as BankAccounts from '@userActions/BankAccounts';
12+
import {handleRestrictedEvent} from '@userActions/App';
1313
import CONST from '@src/CONST';
1414
import ONYXKEYS from '@src/ONYXKEYS';
1515
import type {PlaidData} from '@src/types/onyx';
@@ -91,7 +91,7 @@ function AddPlaidBankAccount({
9191
const defaultSelectedPlaidAccountID = defaultSelectedPlaidAccount?.plaidAccountID ?? '-1';
9292
const defaultSelectedPlaidAccountMask = plaidBankAccounts.find((account) => account.plaidAccountID === selectedPlaidAccountID)?.mask ?? '';
9393
const subscribedKeyboardShortcuts = useRef<Array<() => void>>([]);
94-
const previousNetworkState = useRef<boolean | undefined>();
94+
const previousNetworkState = useRef<boolean | undefined>(undefined);
9595
const [selectedPlaidAccountMask, setSelectedPlaidAccountMask] = useState(defaultSelectedPlaidAccountMask);
9696

9797
const {translate} = useLocalize();
@@ -149,7 +149,7 @@ function AddPlaidBankAccount({
149149
if (isAuthenticatedWithPlaid()) {
150150
return unsubscribeToNavigationShortcuts;
151151
}
152-
BankAccounts.openPlaidBankLogin(allowDebit, bankAccountID);
152+
openPlaidBankLogin(allowDebit, bankAccountID);
153153
return unsubscribeToNavigationShortcuts;
154154

155155
// disabling this rule, as we want this to run only on the first render
@@ -160,7 +160,7 @@ function AddPlaidBankAccount({
160160
// If we are coming back from offline and we haven't authenticated with Plaid yet, we need to re-run our call to kick off Plaid
161161
// previousNetworkState.current also makes sure that this doesn't run on the first render.
162162
if (previousNetworkState.current && !isOffline && !isAuthenticatedWithPlaid()) {
163-
BankAccounts.openPlaidBankLogin(allowDebit, bankAccountID);
163+
openPlaidBankLogin(allowDebit, bankAccountID);
164164
}
165165
previousNetworkState.current = isOffline;
166166
}, [allowDebit, bankAccountID, isAuthenticatedWithPlaid, isOffline]);
@@ -187,7 +187,7 @@ function AddPlaidBankAccount({
187187
onInputChange(plaidAccountID);
188188
};
189189

190-
const handlePlaidError = useCallback((error: ErrorEvent | null) => {
190+
const handlePlaidLinkError = useCallback((error: ErrorEvent | null) => {
191191
Log.hmmm('[PlaidLink] Error: ', error?.message);
192192
}, []);
193193

@@ -206,22 +206,22 @@ function AddPlaidBankAccount({
206206
token={token}
207207
onSuccess={({publicToken, metadata}) => {
208208
Log.info('[PlaidLink] Success!');
209-
BankAccounts.openPlaidBankAccountSelector(publicToken, metadata?.institution?.name ?? '', allowDebit, bankAccountID);
209+
openPlaidBankAccountSelector(publicToken, metadata?.institution?.name ?? '', allowDebit, bankAccountID);
210210
}}
211-
onError={handlePlaidError}
211+
onError={handlePlaidLinkError}
212212
onEvent={(event, metadata) => {
213-
BankAccounts.setPlaidEvent(event);
213+
setPlaidEvent(event);
214214
// Handle Plaid login errors (will potentially reset plaid token and item depending on the error)
215215
if (event === 'ERROR') {
216216
Log.hmmm('[PlaidLink] Error: ', {...metadata});
217217
if (bankAccountID && metadata && 'error_code' in metadata) {
218-
BankAccounts.handlePlaidError(bankAccountID, metadata.error_code ?? '', metadata.error_message ?? '', metadata.request_id);
218+
handlePlaidError(bankAccountID, metadata.error_code ?? '', metadata.error_message ?? '', metadata.request_id);
219219
}
220220
}
221221

222222
// Limit the number of times a user can submit Plaid credentials
223223
if (event === 'SUBMIT_CREDENTIALS') {
224-
App.handleRestrictedEvent(event);
224+
handleRestrictedEvent(event);
225225
}
226226
}}
227227
// User prematurely exited the Plaid flow

src/components/AttachmentPicker/index.native.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function AttachmentPicker({
109109
const theme = useTheme();
110110

111111
const completeAttachmentSelection = useRef<(data: FileObject[]) => void>(() => {});
112-
const onModalHide = useRef<() => void>();
112+
const onModalHide = useRef<(() => void) | undefined>(undefined);
113113
const onCanceled = useRef<() => void>(() => {});
114114
const onClosed = useRef<() => void>(() => {});
115115
const popoverRef = useRef(null);

0 commit comments

Comments
 (0)