Skip to content

Commit bfa7795

Browse files
committed
Merge branch 'main' into migrateConfigFilesToTypeScript
2 parents d38ea29 + 9dd66cf commit bfa7795

File tree

113 files changed

+1773
-1756
lines changed

Some content is hidden

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

113 files changed

+1773
-1756
lines changed

android/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ android {
9898
minSdkVersion rootProject.ext.minSdkVersion
9999
targetSdkVersion rootProject.ext.targetSdkVersion
100100
multiDexEnabled rootProject.ext.multiDexEnabled
101-
versionCode 1001045602
102-
versionName "1.4.56-2"
101+
versionCode 1001045605
102+
versionName "1.4.56-5"
103103
}
104104

105105
flavorDimensions "default"

docs/articles/expensify-classic/expenses/Distance-Tracking.md

-81
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: Track mileage expenses
3+
description: Add mileage-related expenses
4+
---
5+
6+
<div id="expensify-classic" markdown="1">
7+
8+
You can track your mileage-related expenses by logging your trips in Expensify. You have a couple of different options for logging distance:
9+
10+
- Web app:
11+
- **Manually create**: Manually enter the number of miles for the trip
12+
- **Create from map**: Automatically determine the trip distance based on the start and end location.
13+
- Mobile app:
14+
- **Manually create**: Manually enter the miles for the trip and your mileage rate
15+
- **Odometer**: Enter your odometer reading before and after the trip
16+
- **Start GPS**: Currently under development and unavailable for use.
17+
18+
{% include info.html %}
19+
When adding a distance expense, the rates available are determined by the rates set in your workspace rate settings. To update these rates or add a new rate, you must be a Workspace Admin.
20+
{% include end-info.html %}
21+
22+
{% include selector.html values="desktop, mobile" %}
23+
24+
{% include option.html value="desktop" %}
25+
26+
1. Click the **Expenses** tab.
27+
2. Click **New Expense**.
28+
3. Select the expense type.
29+
- **Manually create**:
30+
- Enter the number of miles for the trip.
31+
- Select your rate.
32+
- If desired, select the category, add a description, or select a report to add the expense to.
33+
- Click **Save**.
34+
- **Create from map**:
35+
- Add your start location as point A.
36+
- Add your end location as point B.
37+
- If applicable, click **Add Destination** to add additional stops.
38+
- To generate a map receipt, leave the Create Receipt checkbox selected.
39+
- Click **Save**.
40+
- Select your rate.
41+
- If desired, select the category, add a description, or select a report to add the expense to.
42+
- Click **Save**.
43+
44+
{% include end-option.html %}
45+
46+
{% include option.html value="mobile" %}
47+
48+
1. Click the + icon in the top right corner.
49+
2. Under the Distance section, select the expense type.
50+
- **Manually create**:
51+
- Enter your mileage.
52+
- Select your rate.
53+
- If desired, click **More Options** to select the category, add a description, or select a report to add the expense to.
54+
- Click **Save**.
55+
- **Odometer**:
56+
- Enter your vehicle’s odometer reading before the trip.
57+
- Enter your vehicle’s odometer reading after the trip.
58+
- Select your rate.
59+
- If desired, click **More Options** to select the category, add a description, or select a report to add the expense to.
60+
- Click **Save**.
61+
{% include end-option.html %}
62+
63+
{% include end-selector.html %}
64+
65+
</div>
66+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Change member workspace roles
3+
description: Update a member's role for a workspace
4+
---
5+
<div id="expensify-classic" markdown="1">
6+
7+
To change the roles and permissions for members of your workspace,
8+
9+
1. Hover over Settings, then click **Workspaces**.
10+
2. Click the **Group** tab on the left.
11+
3. Click the desired workspace name.
12+
4. Click the **Members** tab on the left.
13+
5. Click the Settings icon next to the desired member.
14+
6. Select a new role for the member.
15+
16+
| | Employee | Auditor | Workspace Admin |
17+
|---------------------------|----------------------------------|---------|-----------------|
18+
| Submit reports | Yes | Yes | Yes |
19+
| Comment on reports | Yes | Yes | Yes |
20+
| Approve workspace reports | Only reports submitted to them | Yes | Yes |
21+
| Edit workspace settings | No | No | Yes |
22+
23+
7. If your workspace uses Advanced Approvals, select an “Approves to.” This determines who the member’s reports must be approved by, if applicable. If “no one” is selected, then any one with the Auditor or Workspace Admin role can approve the member’s reports.
24+
8. Click **Save**.
25+
26+
</div>

ios/NewExpensify/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</dict>
4141
</array>
4242
<key>CFBundleVersion</key>
43-
<string>1.4.56.2</string>
43+
<string>1.4.56.5</string>
4444
<key>ITSAppUsesNonExemptEncryption</key>
4545
<false/>
4646
<key>LSApplicationQueriesSchemes</key>

ios/NewExpensifyTests/Info.plist

+1-1
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>1.4.56.2</string>
22+
<string>1.4.56.5</string>
2323
</dict>
2424
</plist>

ios/NotificationServiceExtension/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<key>CFBundleShortVersionString</key>
1414
<string>1.4.56</string>
1515
<key>CFBundleVersion</key>
16-
<string>1.4.56.2</string>
16+
<string>1.4.56.5</string>
1717
<key>NSExtension</key>
1818
<dict>
1919
<key>NSExtensionPointIdentifier</key>

metro.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require('dotenv').config();
77
const defaultConfig = getDefaultConfig(__dirname);
88

99
const isE2ETesting = process.env.E2E_TESTING === 'true';
10-
const e2eSourceExts = ['e2e.js', 'e2e.ts'];
10+
const e2eSourceExts = ['e2e.js', 'e2e.ts', 'e2e.tsx'];
1111

1212
/**
1313
* Metro configuration

package-lock.json

+74-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "new.expensify",
3-
"version": "1.4.56-2",
3+
"version": "1.4.56-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.",
@@ -124,6 +124,7 @@
124124
"react-content-loader": "^7.0.0",
125125
"react-dom": "18.1.0",
126126
"react-error-boundary": "^4.0.11",
127+
"react-fast-pdf": "^1.0.6",
127128
"react-map-gl": "^7.1.3",
128129
"react-native": "0.73.2",
129130
"react-native-android-location-enabler": "^2.0.1",

scripts/build-desktop.sh

+11-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,18 @@ else
1313
ENV_FILE=".env"
1414
fi
1515

16+
if [[ -n "$GCP_GEOLOCATION_API_KEY" ]]; then
17+
if grep -qE "^GCP_GEOLOCATION_API_KEY=" "$ENV_FILE"; then
18+
# Replace the value for the existing key
19+
sed -i "s|^GCP_GEOLOCATION_API_KEY=.*$|GCP_GEOLOCATION_API_KEY=$GCP_GEOLOCATION_API_KEY|g" "$ENV_FILE"
20+
else
21+
# Add the key-value pair to the config file
22+
echo "GCP_GEOLOCATION_API_KEY=$GCP_GEOLOCATION_API_KEY" >> "$ENV_FILE"
23+
fi
24+
fi
25+
1626
SCRIPTS_DIR=$(dirname "${BASH_SOURCE[0]}")
17-
source "$SCRIPTS_DIR/shellUtils.sh";
27+
source "$SCRIPTS_DIR/shellUtils.sh"
1828

1929
title "Bundling Desktop js Bundle Using Webpack"
2030
info " • ELECTRON_ENV: $ELECTRON_ENV"

src/CONST.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -1851,13 +1851,6 @@ const CONST = {
18511851
MAX_INT_FOR_RANDOM_7_DIGIT_VALUE: 10000000,
18521852
IOS_KEYBOARD_SPACE_OFFSET: -30,
18531853

1854-
PDF_PASSWORD_FORM: {
1855-
// Constants for password-related error responses received from react-pdf.
1856-
REACT_PDF_PASSWORD_RESPONSES: {
1857-
NEED_PASSWORD: 1,
1858-
INCORRECT_PASSWORD: 2,
1859-
},
1860-
},
18611854
API_REQUEST_TYPE: {
18621855
READ: 'read',
18631856
WRITE: 'write',
@@ -4150,6 +4143,8 @@ const CONST = {
41504143
},
41514144
},
41524145
},
4146+
4147+
MAX_TAX_RATE_DECIMAL_PLACES: 4,
41534148
} as const;
41544149

41554150
type Country = keyof typeof CONST.ALL_COUNTRIES;

0 commit comments

Comments
 (0)