Skip to content

Commit 3aff03c

Browse files
committed
Merge branch 'main' of https://github.com/Expensify/App into feat/62281-business-tax-id-desc
2 parents 7e5dba2 + ee04ec8 commit 3aff03c

13 files changed

Lines changed: 44 additions & 52 deletions

File tree

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 1009016902
118-
versionName "9.1.69-2"
117+
versionCode 1009016903
118+
versionName "9.1.69-3"
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.69.2</string>
47+
<string>9.1.69.3</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.69</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.1.69.2</string>
16+
<string>9.1.69.3</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.69</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.1.69.2</string>
16+
<string>9.1.69.3</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionAttributes</key>

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "new.expensify",
3-
"version": "9.1.69-2",
3+
"version": "9.1.69-3",
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.",
@@ -45,7 +45,7 @@
4545
"test": "TZ=utc NODE_OPTIONS=--experimental-vm-modules jest",
4646
"perf-test": "NODE_OPTIONS=--experimental-vm-modules npx reassure",
4747
"typecheck": "NODE_OPTIONS=--max_old_space_size=8192 tsc",
48-
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=0 --cache --cache-location=node_modules/.cache/eslint",
48+
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=332 --cache --cache-location=node_modules/.cache/eslint",
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",
@@ -304,7 +304,7 @@
304304
"electron-builder": "25.0.0",
305305
"eslint": "^8.57.0",
306306
"eslint-config-airbnb-typescript": "^18.0.0",
307-
"eslint-config-expensify": "2.0.78",
307+
"eslint-config-expensify": "2.0.82",
308308
"eslint-config-prettier": "^9.1.0",
309309
"eslint-plugin-deprecation": "^3.0.0",
310310
"eslint-plugin-jest": "^28.6.0",

scripts/lintChanged.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fi
3636
# Run eslint on the changed files
3737
if [[ -n "$GIT_DIFF_OUTPUT" ]] ; then
3838
# shellcheck disable=SC2086 # For multiple files in variable
39-
eslint --max-warnings=0 --config ./.eslintrc.changed.js $GIT_DIFF_OUTPUT
39+
eslint --max-warnings=332 --config ./.eslintrc.changed.js $GIT_DIFF_OUTPUT
4040
else
4141
info "No TypeScript files changed"
4242
fi

src/components/ReportActionItem/TransactionPreview/index.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import useTransactionViolations from '@hooks/useTransactionViolations';
99
import ControlSelection from '@libs/ControlSelection';
1010
import {convertToDisplayString} from '@libs/CurrencyUtils';
1111
import {canUseTouchScreen} from '@libs/DeviceCapabilities';
12-
import {getIOUActionForReportID, getOriginalMessage, isMoneyRequestAction as isMoneyRequestActionReportActionsUtils} from '@libs/ReportActionsUtils';
12+
import {getOriginalMessage, isMoneyRequestAction as isMoneyRequestActionReportActionsUtils} from '@libs/ReportActionsUtils';
1313
import {getTransactionDetails} from '@libs/ReportUtils';
1414
import {getReviewNavigationRoute} from '@libs/TransactionPreviewUtils';
1515
import {getOriginalTransactionWithSplitInfo, isCardTransaction, removeSettledAndApprovedTransactions} from '@libs/TransactionUtils';
@@ -78,15 +78,11 @@ function TransactionPreview(props: TransactionPreviewProps) {
7878
Navigation.navigate(getReviewNavigationRoute(route, report, transaction, duplicates));
7979
}, [duplicates, report, route, transaction]);
8080

81-
let transactionPreview = transaction;
81+
const transactionPreview = transaction;
8282

8383
const {originalTransaction, isBillSplit} = getOriginalTransactionWithSplitInfo(transaction);
8484

85-
if (isBillSplit) {
86-
transactionPreview = originalTransaction;
87-
}
88-
89-
const iouAction = isBillSplit && originalTransaction ? (getIOUActionForReportID(chatReportID, originalTransaction.transactionID) ?? action) : action;
85+
const iouAction = action;
9086

9187
const shouldDisableOnPress = isBillSplit && isEmptyObject(transaction);
9288
const isTransactionMadeWithCard = isCardTransaction(transaction);
@@ -108,7 +104,7 @@ function TransactionPreview(props: TransactionPreviewProps) {
108104
/* eslint-disable-next-line react/jsx-props-no-spreading */
109105
{...props}
110106
action={iouAction}
111-
isBillSplit={isBillSplit}
107+
isBillSplit={isBillSplit && !transaction?.comment?.originalTransactionID}
112108
chatReport={chatReport}
113109
personalDetails={personalDetails}
114110
transaction={transactionPreview}

src/libs/WorkspaceReportFieldUtils.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import type {TranslationPaths} from '@src/languages/types';
44
import type ONYXKEYS from '@src/ONYXKEYS';
55
import type {InputID} from '@src/types/form/WorkspaceReportFieldForm';
66
import type {PolicyReportField, PolicyReportFieldType} from '@src/types/onyx/Policy';
7-
import * as ErrorUtils from './ErrorUtils';
8-
import * as Localize from './Localize';
9-
import * as ValidationUtils from './ValidationUtils';
7+
import {addErrorMessage} from './ErrorUtils';
8+
import {translateLocal} from './Localize';
9+
import {isRequiredFulfilled} from './ValidationUtils';
1010

1111
/**
1212
* Gets the translation key for the report field type.
@@ -45,17 +45,13 @@ function validateReportFieldListValueName(
4545
): FormInputErrors<typeof ONYXKEYS.FORMS.WORKSPACE_REPORT_FIELDS_FORM> {
4646
const errors: FormInputErrors<typeof ONYXKEYS.FORMS.WORKSPACE_REPORT_FIELDS_FORM> = {};
4747

48-
if (!ValidationUtils.isRequiredFulfilled(valueName)) {
49-
errors[inputID] = Localize.translateLocal('workspace.reportFields.listValueRequiredError');
48+
if (!isRequiredFulfilled(valueName)) {
49+
errors[inputID] = translateLocal('workspace.reportFields.listValueRequiredError');
5050
} else if (priorValueName !== valueName && listValues.some((currentValueName) => currentValueName === valueName)) {
51-
errors[inputID] = Localize.translateLocal('workspace.reportFields.existingListValueError');
51+
errors[inputID] = translateLocal('workspace.reportFields.existingListValueError');
5252
} else if ([...valueName].length > CONST.WORKSPACE_REPORT_FIELD_POLICY_MAX_LENGTH) {
5353
// Uses the spread syntax to count the number of Unicode code points instead of the number of UTF-16 code units.
54-
ErrorUtils.addErrorMessage(
55-
errors,
56-
inputID,
57-
Localize.translateLocal('common.error.characterLimitExceedCounter', {length: [...valueName].length, limit: CONST.WORKSPACE_REPORT_FIELD_POLICY_MAX_LENGTH}),
58-
);
54+
addErrorMessage(errors, inputID, translateLocal('common.error.characterLimitExceedCounter', {length: [...valueName].length, limit: CONST.WORKSPACE_REPORT_FIELD_POLICY_MAX_LENGTH}));
5955
}
6056

6157
return errors;
@@ -80,7 +76,7 @@ function getReportFieldInitialValue(reportField: PolicyReportField | null): stri
8076
}
8177

8278
if (reportField.type === CONST.REPORT_FIELD_TYPES.DATE) {
83-
return Localize.translateLocal('common.initialValue');
79+
return translateLocal('common.currentDate');
8480
}
8581

8682
return reportField.value ?? reportField.defaultValue;

0 commit comments

Comments
 (0)