Skip to content

Commit e7c543b

Browse files
committed
Merge branch 'main' into @szymczak/add-feeds-to-card-filter
2 parents 185b375 + 6868deb commit e7c543b

File tree

91 files changed

+2907
-1806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+2907
-1806
lines changed

.eslintrc.changed.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ module.exports = {
77
rules: {
88
'deprecation/deprecation': 'error',
99
'rulesdir/no-default-id-values': 'error',
10+
'no-restricted-syntax': [
11+
'error',
12+
{
13+
selector: 'ImportNamespaceSpecifier[parent.source.value=/^@libs/]',
14+
message: 'Namespace imports from @libs are not allowed. Use named imports instead. Example: import { method } from "@libs/module"',
15+
},
16+
{
17+
selector: 'ImportNamespaceSpecifier[parent.source.value=/^@userActions/]',
18+
message: 'Namespace imports from @userActions are not allowed. Use named imports instead. Example: import { action } from "@userActions/module"',
19+
},
20+
],
1021
},
1122
overrides: [
1223
{
@@ -24,5 +35,21 @@ module.exports = {
2435
'rulesdir/no-default-id-values': 'off',
2536
},
2637
},
38+
{
39+
files: ['**/libs/**/*.{ts,tsx}'],
40+
rules: {
41+
'no-restricted-syntax': [
42+
'error',
43+
{
44+
selector: 'ImportNamespaceSpecifier[parent.source.value=/^\\.\\./]',
45+
message: 'Namespace imports are not allowed. Use named imports instead. Example: import { method } from "../libs/module"',
46+
},
47+
{
48+
selector: 'ImportNamespaceSpecifier[parent.source.value=/^\\./]',
49+
message: 'Namespace imports are not allowed. Use named imports instead. Example: import { method } from "./libs/module"',
50+
},
51+
],
52+
},
53+
},
2754
],
2855
};
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Comment on native files changed
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'main'
7+
paths:
8+
- '**.kt'
9+
- '**.java'
10+
- '**.swift'
11+
- '**.mm'
12+
- '**.h'
13+
- '**.cpp'
14+
- 'AndroidManifest.xml'
15+
- 'project.pbxproj'
16+
17+
jobs:
18+
commentOnNativeFilesChanged:
19+
name: Create comment
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Comment
23+
run: |
24+
gh pr comment ${{ github.event.number }} --body \
25+
":warning: This PR is possibly changing native code. It may cause problems in Hybrid App. Please ask Hybrid App team to review those changes in the Slack open-source channel. The C+ can help you with that. :warning:"
26+
env:
27+
GITHUB_TOKEN: ${{ github.token }}

Mobile-Expensify

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ android {
110110
minSdkVersion rootProject.ext.minSdkVersion
111111
targetSdkVersion rootProject.ext.targetSdkVersion
112112
multiDexEnabled rootProject.ext.multiDexEnabled
113-
versionCode 1009008401
114-
versionName "9.0.84-1"
113+
versionCode 1009008405
114+
versionName "9.0.84-5"
115115
// Supported language variants must be declared here to avoid from being removed during the compilation.
116116
// This also helps us to not include unnecessary language variants in the APK.
117117
resConfigs "en", "es"

ios/NewExpensify/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</dict>
4141
</array>
4242
<key>CFBundleVersion</key>
43-
<string>9.0.84.1</string>
43+
<string>9.0.84.5</string>
4444
<key>FullStory</key>
4545
<dict>
4646
<key>OrgId</key>

ios/NewExpensifyTests/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>9.0.84.1</string>
22+
<string>9.0.84.5</string>
2323
</dict>
2424
</plist>

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.0.84</string>
1515
<key>CFBundleVersion</key>
16-
<string>9.0.84.1</string>
16+
<string>9.0.84.5</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionPointIdentifier</key>

metro.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ const config = {
2525
// When we run the e2e tests we want files that have the extension e2e.js to be resolved as source files
2626
sourceExts: [...(isE2ETesting ? e2eSourceExts : []), ...defaultSourceExts, 'jsx'],
2727
},
28+
// We are merging the default config from Expo and React Native and expo one is overriding the React Native one so inlineRequires is set to false so we want to set it to true
29+
// for fix cycling dependencies and improve performance of app startup
30+
transformer: {
31+
getTransformOptions: async () => ({
32+
transform: {
33+
inlineRequires: true,
34+
},
35+
}),
36+
},
2837
};
2938

3039
module.exports = wrapWithReanimatedMetroConfig(mergeConfig(defaultConfig, expoConfig, config));

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.0.84-1",
3+
"version": "9.0.84-5",
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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type {ValueOf} from 'type-fest';
77
import type {Video} from './libs/actions/Report';
88
import type {MileageRate} from './libs/DistanceRequestUtils';
99
import BankAccount from './libs/models/BankAccount';
10-
import * as Url from './libs/Url';
10+
import {addTrailingForwardSlash} from './libs/Url';
1111
import SCREENS from './SCREENS';
1212
import type PlaidBankAccount from './types/onyx/PlaidBankAccount';
1313

@@ -18,7 +18,7 @@ const EMPTY_OBJECT = Object.freeze({});
1818

1919
const CLOUDFRONT_DOMAIN = 'cloudfront.net';
2020
const CLOUDFRONT_URL = `https://d2k5nsl2zxldvw.${CLOUDFRONT_DOMAIN}`;
21-
const ACTIVE_EXPENSIFY_URL = Url.addTrailingForwardSlash(Config?.NEW_EXPENSIFY_URL ?? 'https://new.expensify.com');
21+
const ACTIVE_EXPENSIFY_URL = addTrailingForwardSlash(Config?.NEW_EXPENSIFY_URL ?? 'https://new.expensify.com');
2222
const USE_EXPENSIFY_URL = 'https://use.expensify.com';
2323
const EXPENSIFY_URL = 'https://www.expensify.com';
2424
const PLATFORM_OS_MACOS = 'Mac OS';
@@ -917,6 +917,7 @@ const CONST = {
917917
COPILOT_HELP_URL: 'https://help.expensify.com/articles/expensify-classic/copilots-and-delegates/Assign-or-remove-a-Copilot',
918918
DELAYED_SUBMISSION_HELP_URL: 'https://help.expensify.com/articles/expensify-classic/reports/Automatically-submit-employee-reports',
919919
PLAN_TYPES_AND_PRICING_HELP_URL: 'https://help.expensify.com/articles/new-expensify/billing-and-subscriptions/Plan-types-and-pricing',
920+
TEST_RECEIPT_URL: `${CLOUDFRONT_URL}/images/fake-receipt__tacotodds.png`,
920921
// Use Environment.getEnvironmentURL to get the complete URL with port number
921922
DEV_NEW_EXPENSIFY_URL: 'https://dev.new.expensify.com:',
922923
NAVATTIC: {

src/components/AnchorForAttachmentsOnly/BaseAnchorForAttachmentsOnly.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,21 @@ function BaseAnchorForAttachmentsOnly({style, source = '', displayName = '', onP
5151
if (isDisabled) {
5252
return;
5353
}
54-
showContextMenuForReport(event, anchor, report?.reportID ?? '-1', action, checkIfContextMenuActive, ReportUtils.isArchivedRoom(report, reportNameValuePairs));
54+
showContextMenuForReport(event, anchor, report?.reportID, action, checkIfContextMenuActive, ReportUtils.isArchivedRoom(report, reportNameValuePairs));
5555
}}
5656
shouldUseHapticsOnLongPress
5757
accessibilityLabel={displayName}
5858
role={CONST.ROLE.BUTTON}
5959
>
6060
<AttachmentView
61-
source={sourceURLWithAuth}
61+
source={source}
6262
file={{name: displayName}}
6363
shouldShowDownloadIcon={!!sourceID && !isOffline}
6464
shouldShowLoadingSpinnerIcon={isDownloading}
6565
isUsedAsChatAttachment
6666
isDeleted={!!isDeleted}
6767
isUploading={!sourceID}
68+
isAuthTokenRequired={!!sourceID}
6869
/>
6970
</PressableWithoutFeedback>
7071
)}

src/components/Attachments/AttachmentView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function AttachmentView({
177177
// will appear with a source that is a blob
178178
const isSourcePDF = typeof source === 'string' && Str.isPDF(source);
179179
const isFilePDF = file && Str.isPDF(file.name ?? translate('attachmentView.unknownFilename'));
180-
if (!hasPDFFailedToLoad && (isSourcePDF || isFilePDF)) {
180+
if (!hasPDFFailedToLoad && !isUploading && (isSourcePDF || isFilePDF)) {
181181
const encryptedSourceUrl = isAuthTokenRequired ? addEncryptedAuthTokenToURL(source as string) : (source as string);
182182

183183
const onPDFLoadComplete = (path: string) => {

0 commit comments

Comments
 (0)