Skip to content

Commit d08debe

Browse files
committed
Merge remote-tracking branch 'origin' into fix/65746
2 parents 1fb4579 + d959b62 commit d08debe

38 files changed

Lines changed: 561 additions & 482 deletions

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 1009018303
118-
versionName "9.1.83-3"
117+
versionCode 1009018304
118+
versionName "9.1.83-4"
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.83.3</string>
47+
<string>9.1.83.4</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.83</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.1.83.3</string>
16+
<string>9.1.83.4</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.83</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.1.83.3</string>
16+
<string>9.1.83.4</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.83-3",
3+
"version": "9.1.83-4",
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/index.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6422,7 +6422,21 @@ const CONST = {
64226422
ONYXKEYS.PERSONAL_DETAILS_LIST,
64236423
ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS,
64246424
],
6425-
SUGGESTED_SEARCH_KEYS: {
6425+
SEARCH_LIST: {
6426+
EXPENSES: 'expenses',
6427+
REPORTS: 'reports',
6428+
CHATS: 'chats',
6429+
SUBMIT: 'submit',
6430+
APPROVE: 'approve',
6431+
PAY: 'pay',
6432+
EXPORT: 'export',
6433+
STATEMENTS: 'statements',
6434+
UNAPPROVED_CASH: 'unapprovedCash',
6435+
UNAPPROVED_COMPANY_CARDS: 'unapprovedCompanyCards',
6436+
UNAPPROVED_CASH_ONLY: 'unapprovedCashOnly',
6437+
UNAPPROVED_COMPANY_CARDS_ONLY: 'unapprovedCompanyCardsOnly',
6438+
},
6439+
SEARCH_KEYS: {
64266440
EXPENSES: 'expenses',
64276441
REPORTS: 'reports',
64286442
CHATS: 'chats',
@@ -6431,7 +6445,6 @@ const CONST = {
64316445
PAY: 'pay',
64326446
EXPORT: 'export',
64336447
STATEMENTS: 'statements',
6434-
UNAPPROVED: 'unapproved',
64356448
UNAPPROVED_CASH: 'unapprovedCash',
64366449
UNAPPROVED_COMPANY_CARDS: 'unapprovedCompanyCards',
64376450
},

src/components/AddPlaidBankAccount.tsx

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React, {useCallback, useEffect, useRef, useState} from 'react';
22
import {ActivityIndicator, View} from 'react-native';
33
import type {OnyxEntry} from 'react-native-onyx';
4-
import {withOnyx} from 'react-native-onyx';
54
import useLocalize from '@hooks/useLocalize';
65
import useNetwork from '@hooks/useNetwork';
6+
import useOnyx from '@hooks/useOnyx';
77
import useTheme from '@hooks/useTheme';
88
import useThemeStyles from '@hooks/useThemeStyles';
99
import {handlePlaidError, openPlaidBankAccountSelector, openPlaidBankLogin, setPlaidEvent} from '@libs/actions/BankAccounts';
@@ -22,15 +22,7 @@ import PlaidLink from './PlaidLink';
2222
import RadioButtons from './RadioButtons';
2323
import Text from './Text';
2424

25-
type AddPlaidBankAccountOnyxProps = {
26-
/** If the user has been throttled from Plaid */
27-
isPlaidDisabled: OnyxEntry<boolean>;
28-
29-
/** Plaid SDK token to use to initialize the widget */
30-
plaidLinkToken: OnyxEntry<string>;
31-
};
32-
33-
type AddPlaidBankAccountProps = AddPlaidBankAccountOnyxProps & {
25+
type AddPlaidBankAccountProps = {
3426
/** Contains plaid data */
3527
plaidData: OnyxEntry<PlaidData>;
3628

@@ -71,15 +63,13 @@ type AddPlaidBankAccountProps = AddPlaidBankAccountOnyxProps & {
7163
function AddPlaidBankAccount({
7264
plaidData,
7365
selectedPlaidAccountID = '',
74-
plaidLinkToken,
7566
onExitPlaid = () => {},
7667
onSelect = () => {},
7768
text = '',
7869
receivedRedirectURI,
7970
plaidLinkOAuthToken = '',
8071
bankAccountID = 0,
8172
allowDebit = false,
82-
isPlaidDisabled,
8373
errorText = '',
8474
onInputChange = () => {},
8575
isDisplayedInWalletFlow = false,
@@ -88,12 +78,13 @@ function AddPlaidBankAccount({
8878
const styles = useThemeStyles();
8979
const plaidBankAccounts = plaidData?.bankAccounts ?? [];
9080
const defaultSelectedPlaidAccount = plaidBankAccounts.find((account) => account.plaidAccountID === selectedPlaidAccountID);
91-
const defaultSelectedPlaidAccountID = defaultSelectedPlaidAccount?.plaidAccountID ?? '-1';
81+
const defaultSelectedPlaidAccountID = defaultSelectedPlaidAccount?.plaidAccountID;
9282
const defaultSelectedPlaidAccountMask = plaidBankAccounts.find((account) => account.plaidAccountID === selectedPlaidAccountID)?.mask ?? '';
9383
const subscribedKeyboardShortcuts = useRef<Array<() => void>>([]);
9484
const previousNetworkState = useRef<boolean | undefined>(undefined);
9585
const [selectedPlaidAccountMask, setSelectedPlaidAccountMask] = useState(defaultSelectedPlaidAccountMask);
96-
86+
const [plaidLinkToken] = useOnyx(ONYXKEYS.PLAID_LINK_TOKEN, {canBeMissing: true, initWithStoredValues: false});
87+
const [isPlaidDisabled] = useOnyx(ONYXKEYS.IS_PLAID_DISABLED, {canBeMissing: true});
9788
const {translate} = useLocalize();
9889
const {isOffline} = useNetwork();
9990

@@ -287,12 +278,4 @@ function AddPlaidBankAccount({
287278

288279
AddPlaidBankAccount.displayName = 'AddPlaidBankAccount';
289280

290-
export default withOnyx<AddPlaidBankAccountProps, AddPlaidBankAccountOnyxProps>({
291-
plaidLinkToken: {
292-
key: ONYXKEYS.PLAID_LINK_TOKEN,
293-
initWithStoredValues: false,
294-
},
295-
isPlaidDisabled: {
296-
key: ONYXKEYS.IS_PLAID_DISABLED,
297-
},
298-
})(AddPlaidBankAccount);
281+
export default AddPlaidBankAccount;

src/components/DownloadAppBanner.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import {View} from 'react-native';
3+
import type {LayoutChangeEvent} from 'react-native';
34
import useHasLoggedIntoMobileApp from '@hooks/useHasLoggedIntoMobileApp';
45
import useLocalize from '@hooks/useLocalize';
56
import useThemeStyles from '@hooks/useThemeStyles';
@@ -9,7 +10,11 @@ import ROUTES from '@src/ROUTES';
910
import Button from './Button';
1011
import {ExpensifyMobileApp} from './Icon/Illustrations';
1112

12-
function DownloadAppBanner() {
13+
type DownloadAppBannerProps = {
14+
onLayout?: (e: LayoutChangeEvent) => void;
15+
};
16+
17+
function DownloadAppBanner({onLayout}: DownloadAppBannerProps) {
1318
const styles = useThemeStyles();
1419
const {translate} = useLocalize();
1520
const {hasLoggedIntoMobileApp, isLastMobileAppLoginLoaded} = useHasLoggedIntoMobileApp();
@@ -19,7 +24,10 @@ function DownloadAppBanner() {
1924
}
2025

2126
return (
22-
<View style={[styles.ph2, styles.mb2, styles.stickToBottom]}>
27+
<View
28+
style={[styles.ph2, styles.mb2, styles.stickToBottom, styles.pt2]}
29+
onLayout={onLayout}
30+
>
2331
<BillingBanner
2432
icon={ExpensifyMobileApp}
2533
title={translate('common.getTheApp')}

0 commit comments

Comments
 (0)