Skip to content

Commit

Permalink
Merge pull request #11357 from Expensify/update-staging-from-main
Browse files Browse the repository at this point in the history
Update version to 1.2.8-0 on staging
  • Loading branch information
OSBotify authored Sep 27, 2022
2 parents 89bb18c + 72ffedb commit f72770c
Show file tree
Hide file tree
Showing 14 changed files with 48 additions and 27 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001020702
versionName "1.2.7-2"
versionCode 1001020800
versionName "1.2.8-0"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

if (isNewArchitectureEnabled()) {
Expand Down
4 changes: 2 additions & 2 deletions ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.7</string>
<string>1.2.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -30,7 +30,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.2.7.2</string>
<string>1.2.8.0</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
4 changes: 2 additions & 2 deletions ios/NewExpensifyTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.7</string>
<string>1.2.8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.2.7.2</string>
<string>1.2.8.0</string>
</dict>
</plist>
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "new.expensify",
"version": "1.2.7-2",
"version": "1.2.8-0",
"author": "Expensify, Inc.",
"homepage": "https://new.expensify.com",
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
Expand Down
1 change: 1 addition & 0 deletions src/CONST.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ const CONST = {
NUMBER_PAD: 'number-pad',
DECIMAL_PAD: 'decimal-pad',
VISIBLE_PASSWORD: 'visible-password',
EMAIL_ADDRESS: 'email-address',
},

ATTACHMENT_SOURCE_ATTRIBUTE: 'data-expensify-source',
Expand Down
3 changes: 1 addition & 2 deletions src/components/AvatarCropModal/AvatarCropModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,7 @@ const AvatarCropModal = (props) => {
<Modal
onClose={props.onClose}
isVisible={props.isVisible}
type={CONST.MODAL.MODAL_TYPE.CENTERED_UNSWIPEABLE}
containerStyle={!props.isSmallScreenWidth ? styles.avatarCropModalContainer : null}
type={CONST.MODAL.MODAL_TYPE.RIGHT_DOCKED}
onModalHide={resetState}
statusBarTranslucent={false}
>
Expand Down
1 change: 1 addition & 0 deletions src/components/CopyTextToClipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class CopyTextToClipboard extends React.Component {
<Text
onPress={this.copyToClipboard}
style={[styles.flexRow, styles.cursorPointer]}
suppressHighlighting
>
<Text style={this.props.textStyles}>{this.props.text}</Text>
<Tooltip text={this.props.translate('reportActionContextMenu.copyToClipboard')}>
Expand Down
10 changes: 9 additions & 1 deletion src/components/LHNOptionsList/LHNOptionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ const propTypes = {

/** Callback to execute when the SectionList lays out */
onLayout: PropTypes.func.isRequired,

/** Whether to allow option focus or not */
shouldDisableFocusOptions: PropTypes.bool,
};

const defaultProps = {
shouldDisableFocusOptions: false,
};

class LHNOptionsList extends Component {
Expand Down Expand Up @@ -69,7 +76,7 @@ class LHNOptionsList extends Component {
<OptionRowLHN
reportID={item}
viewMode={this.props.optionMode}
isFocused={this.props.focusedIndex === index}
isFocused={!this.props.shouldDisableFocusOptions && this.props.focusedIndex === index}
onSelectRow={this.props.onSelectRow}
/>
);
Expand Down Expand Up @@ -100,5 +107,6 @@ class LHNOptionsList extends Component {
}

LHNOptionsList.propTypes = propTypes;
LHNOptionsList.defaultProps = defaultProps;

export default LHNOptionsList;
19 changes: 19 additions & 0 deletions src/libs/actions/BankAccounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,27 @@ function validateBankAccount(bankAccountID, validateCode) {
});
}

/**
* Create the bank account with manually entered data.
*
* @param {String} [bankAccountID]
* @param {String} [accountNumber]
* @param {String} [routingNumber]
* @param {String} [plaidMask]
*
*/
function connectBankAccountManually(bankAccountID, accountNumber, routingNumber, plaidMask) {
API.write('ConnectBankAccountManually', {
bankAccountID,
accountNumber,
routingNumber,
plaidMask,
}, getVBBADataForOnyx());
}

export {
addPersonalBankAccount,
connectBankAccountManually,
deletePaymentBankAccount,
clearPersonalBankAccount,
clearPlaid,
Expand Down
15 changes: 6 additions & 9 deletions src/pages/ReimbursementAccount/BankAccountManualStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,12 @@ class BankAccountManualStep extends React.Component {
if (!this.validate()) {
return;
}

const params = {
bankAccountID: ReimbursementAccountUtils.getDefaultStateForField(this.props, 'bankAccountID', 0),
mask: ReimbursementAccountUtils.getDefaultStateForField(this.props, 'plaidMask'),
bankName: ReimbursementAccountUtils.getDefaultStateForField(this.props, 'bankName'),
plaidAccountID: ReimbursementAccountUtils.getDefaultStateForField(this.props, 'plaidAccountID'),
...this.state,
};
BankAccounts.setupWithdrawalAccount(params);
BankAccounts.connectBankAccountManually(
ReimbursementAccountUtils.getDefaultStateForField(this.props, 'bankAccountID', 0),
this.state.accountNumber,
this.state.routingNumber,
ReimbursementAccountUtils.getDefaultStateForField(this.props, 'plaidMask'),
);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/sidebar/SidebarLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class SidebarLinks extends React.Component {
Navigation.navigate(ROUTES.getReportRoute(option.reportID));
this.props.onLinkClick();
}}
disableFocusOptions={this.props.isSmallScreenWidth}
shouldDisableFocusOptions={this.props.isSmallScreenWidth}
optionMode={this.props.priorityMode === CONST.PRIORITY_MODE.GSD ? 'compact' : 'default'}
onLayout={App.setSidebarLoaded}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/AddSecondaryLoginPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class AddSecondaryLoginPage extends Component {
value={this.state.login}
onChangeText={this.onSecondaryLoginChange}
keyboardType={this.formType === CONST.LOGIN_TYPE.PHONE
? CONST.KEYBOARD_TYPE.PHONE_PAD : undefined}
? CONST.KEYBOARD_TYPE.PHONE_PAD : CONST.KEYBOARD_TYPE.EMAIL_ADDRESS}
returnKeyType="done"
/>
</View>
Expand Down
4 changes: 0 additions & 4 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2623,10 +2623,6 @@ const styles = {
height: 153,
},

avatarCropModalContainer: {
maxWidth: 450, // this width was chosen to match layout to average mobile device
},

imageCropContainer: {
borderRadius: variables.componentBorderRadiusCard,
overflow: 'hidden',
Expand Down

0 comments on commit f72770c

Please sign in to comment.