Skip to content

Commit a822a32

Browse files
committed
Merge remote-tracking branch 'upstream/main' into perf/report-transactions-derived-value
2 parents ba108ec + f660f73 commit a822a32

811 files changed

Lines changed: 6896 additions & 4636 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.

.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ const restrictedImportPaths = [
100100
name: 'react-native-animatable',
101101
message: "Please use 'react-native-reanimated' instead.",
102102
},
103+
{
104+
name: 'react-native-onyx',
105+
importNames: ['useOnyx'],
106+
message: "Please use '@hooks/useOnyx' instead.",
107+
},
103108
];
104109

105110
const restrictedImportPatterns = [

.github/workflows/reassurePerformanceTests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,17 @@ jobs:
4848
BASELINE_BRANCH=${BASELINE_BRANCH:="main"}
4949
git fetch origin "$BASELINE_BRANCH" --no-tags --depth=1
5050
git switch "$BASELINE_BRANCH"
51+
cd Mobile-Expensify
52+
git checkout "$(git rev-parse HEAD)"
53+
cd ..
54+
git add Mobile-Expensify
5155
npm install --force || (rm -rf node_modules && npm install --force)
5256
NODE_OPTIONS=--experimental-vm-modules npx reassure --baseline
5357
git switch --force --detach -
58+
cd Mobile-Expensify
59+
git checkout "$(git rev-parse HEAD)"
60+
cd ..
61+
git add Mobile-Expensify
5462
git merge --no-commit --allow-unrelated-histories "$BASELINE_BRANCH" -X ours
5563
git checkout --ours .
5664
npm install --force || (rm -rf node_modules && npm install --force)

Mobile-Expensify

__mocks__/@ua/react-native-airship.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ enum EventType {
66
PushReceived = 'com.airship.push_received',
77
}
88

9-
// eslint-disable-next-line no-restricted-syntax
10-
enum PermissionStatus {
11-
Granted = 'granted',
12-
Denied = 'denied',
13-
NotDetermined = 'not_determined',
14-
}
15-
169
// eslint-disable-next-line @typescript-eslint/no-namespace
1710
namespace iOS {
1811
/**
@@ -78,4 +71,4 @@ const Airship: Partial<AirshipRoot> = {
7871

7972
export default Airship;
8073

81-
export {EventType, iOS, PermissionStatus};
74+
export {EventType, iOS};

__mocks__/react-native-onyx.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
/* eslint-disable rulesdir/prefer-onyx-connect-in-libs */
77
import type {ConnectOptions, OnyxKey} from 'react-native-onyx';
8+
// eslint-disable-next-line no-restricted-imports
89
import Onyx, {useOnyx, withOnyx} from 'react-native-onyx';
910

1011
let connectCallbackDelay = 0;

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 1009017402
118-
versionName "9.1.74-2"
117+
versionCode 1009017604
118+
versionName "9.1.76-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"

contributingGuides/NAVIGATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ In Expensify, we use an extended implementation of this function because:
503503

504504
Here are examples how the state is generated based on route:
505505

506-
- `settings/workspaces/1/overview`
506+
- `workspaces/1/overview`
507507

508508
```json
509509
{
@@ -536,7 +536,7 @@ Here are examples how the state is generated based on route:
536536
"params": {
537537
"policyID": "1"
538538
},
539-
"path": "/settings/workspaces/1/overview",
539+
"path": "workspaces/1/overview",
540540
"key": "Workspace_Overview-key"
541541
}
542542
]

contributingGuides/NAVIGATION_TESTS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333

3434
1. Open any workspace settings (Settings → Workspaces → Select any workspace)
3535
2. Click the Settings button on the bottom tab.
36-
3. Verify that the Workspace list is displayed (`/settings/workspaces`)
36+
3. Verify that the Workspace list is displayed (`/workspaces`)
3737
4. Select any workspace again.
3838
5. Reload the page.
3939
6. Click the Settings button on the bottom tab.
40-
7. Verify that the Workspace list is displayed (`/settings/workspaces`)
40+
7. Verify that the Workspace list is displayed (`/workspaces/`)
4141

4242

4343
#### The last visited screen in the settings tab is saved when switching between tabs
@@ -52,7 +52,7 @@
5252

5353
#### Going up to the workspace list page after refreshing on the workspace settings and pressing the up button
5454

55-
1. Open the workspace settings from the deep link (use a link in format: `/settings/workspaces/:policyID:/profile`)
55+
1. Open the workspace settings from the deep link (use a link in format: `/workspaces/:policyID:/profile`)
5656
2. Click the app’s back button.
5757
3. Verify if the workspace list is displayed.
5858

@@ -241,4 +241,4 @@ Linked issue: https://github.com/Expensify/App/issues/50177
241241
11. Go back.
242242
12. Verify you are navigated back to the employee size step.
243243
13. Go back.
244-
14. Verify you are navigated back to the Purpose step.
244+
14. Verify you are navigated back to the Purpose step.

contributingGuides/STYLE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,13 +535,13 @@ We need to change the `getRoute()` `policyID` argument type to allow `undefined`
535535
536536
```diff
537537
WORKSPACE_PROFILE_ADDRESS: {
538-
route: 'settings/workspaces/:policyID/profile/address',
539-
- getRoute: (policyID: string, backTo?: string) => getUrlWithBackToParam(`settings/workspaces/${policyID}/profile/address` as const, backTo),
538+
route: 'workspaces/:policyID/profile/address',
539+
- getRoute: (policyID: string, backTo?: string) => getUrlWithBackToParam(`workspaces/${policyID}/profile/address` as const, backTo),
540540
+ getRoute: (policyID: string | undefined, backTo?: string) => {
541541
+ if (!policyID) {
542542
+ Log.warn("Invalid policyID is used to build the WORKSPACE_PROFILE_ADDRESS route")
543543
+ }
544-
+ return getUrlWithBackToParam(`settings/workspaces/${policyID}/profile/address` as const, backTo);
544+
+ return getUrlWithBackToParam(`workspaces/${policyID}/profile/address` as const, backTo);
545545
+ },
546546
},
547547
```

docs/articles/expensify-classic/expenses/Add-an-expense.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Add, track, and manage all types of expenses in Expensify—from SmartScanned re
1212
# Add an Expense with SmartScan
1313

1414
💡 **Things to know when SmartScanning expenses:** 💡
15+
- Upload your receipt via SMS by texting the photo of your receipt to 47777. To start sending your receipts add your phone number as **Settings > Account > Profile > Contact Methods**.
1516
- You can edit any scanned receipt by tapping **Fill out details myself** to update the merchant, date, total, currency, category, description, attendees, report, or reimbursement settings.
1617
- On iPhone, hard-press the Expensify app icon to open the camera shortcut.
1718
- You can also email receipts to **receipts@expensify.com** from any email associated with your account. SmartScan will auto-fill the details and upload the receipt to your **Expenses** tab.

0 commit comments

Comments
 (0)