Skip to content

Commit

Permalink
Merge branch 'main' into migrateConfigFilesToTypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
JKobrynski committed Mar 26, 2024
2 parents d38ea29 + 9dd66cf commit bfa7795
Show file tree
Hide file tree
Showing 113 changed files with 1,773 additions and 1,756 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001045602
versionName "1.4.56-2"
versionCode 1001045605
versionName "1.4.56-5"
}

flavorDimensions "default"
Expand Down
81 changes: 0 additions & 81 deletions docs/articles/expensify-classic/expenses/Distance-Tracking.md

This file was deleted.

66 changes: 66 additions & 0 deletions docs/articles/expensify-classic/expenses/Track-mileage-expenses.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
title: Track mileage expenses
description: Add mileage-related expenses
---

<div id="expensify-classic" markdown="1">

You can track your mileage-related expenses by logging your trips in Expensify. You have a couple of different options for logging distance:

- Web app:
- **Manually create**: Manually enter the number of miles for the trip
- **Create from map**: Automatically determine the trip distance based on the start and end location.
- Mobile app:
- **Manually create**: Manually enter the miles for the trip and your mileage rate
- **Odometer**: Enter your odometer reading before and after the trip
- **Start GPS**: Currently under development and unavailable for use.

{% include info.html %}
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.
{% include end-info.html %}

{% include selector.html values="desktop, mobile" %}

{% include option.html value="desktop" %}

1. Click the **Expenses** tab.
2. Click **New Expense**.
3. Select the expense type.
- **Manually create**:
- Enter the number of miles for the trip.
- Select your rate.
- If desired, select the category, add a description, or select a report to add the expense to.
- Click **Save**.
- **Create from map**:
- Add your start location as point A.
- Add your end location as point B.
- If applicable, click **Add Destination** to add additional stops.
- To generate a map receipt, leave the Create Receipt checkbox selected.
- Click **Save**.
- Select your rate.
- If desired, select the category, add a description, or select a report to add the expense to.
- Click **Save**.

{% include end-option.html %}

{% include option.html value="mobile" %}

1. Click the + icon in the top right corner.
2. Under the Distance section, select the expense type.
- **Manually create**:
- Enter your mileage.
- Select your rate.
- If desired, click **More Options** to select the category, add a description, or select a report to add the expense to.
- Click **Save**.
- **Odometer**:
- Enter your vehicle’s odometer reading before the trip.
- Enter your vehicle’s odometer reading after the trip.
- Select your rate.
- If desired, click **More Options** to select the category, add a description, or select a report to add the expense to.
- Click **Save**.
{% include end-option.html %}

{% include end-selector.html %}

</div>

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Change member workspace roles
description: Update a member's role for a workspace
---
<div id="expensify-classic" markdown="1">

To change the roles and permissions for members of your workspace,

1. Hover over Settings, then click **Workspaces**.
2. Click the **Group** tab on the left.
3. Click the desired workspace name.
4. Click the **Members** tab on the left.
5. Click the Settings icon next to the desired member.
6. Select a new role for the member.

| | Employee | Auditor | Workspace Admin |
|---------------------------|----------------------------------|---------|-----------------|
| Submit reports | Yes | Yes | Yes |
| Comment on reports | Yes | Yes | Yes |
| Approve workspace reports | Only reports submitted to them | Yes | Yes |
| Edit workspace settings | No | No | Yes |

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.
8. Click **Save**.

</div>
2 changes: 1 addition & 1 deletion ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.4.56.2</string>
<string>1.4.56.5</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/NewExpensifyTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.4.56.2</string>
<string>1.4.56.5</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion ios/NotificationServiceExtension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleShortVersionString</key>
<string>1.4.56</string>
<key>CFBundleVersion</key>
<string>1.4.56.2</string>
<string>1.4.56.5</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
Expand Down
2 changes: 1 addition & 1 deletion metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require('dotenv').config();
const defaultConfig = getDefaultConfig(__dirname);

const isE2ETesting = process.env.E2E_TESTING === 'true';
const e2eSourceExts = ['e2e.js', 'e2e.ts'];
const e2eSourceExts = ['e2e.js', 'e2e.ts', 'e2e.tsx'];

/**
* Metro configuration
Expand Down
79 changes: 74 additions & 5 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "new.expensify",
"version": "1.4.56-2",
"version": "1.4.56-5",
"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 Expand Up @@ -124,6 +124,7 @@
"react-content-loader": "^7.0.0",
"react-dom": "18.1.0",
"react-error-boundary": "^4.0.11",
"react-fast-pdf": "^1.0.6",
"react-map-gl": "^7.1.3",
"react-native": "0.73.2",
"react-native-android-location-enabler": "^2.0.1",
Expand Down
12 changes: 11 additions & 1 deletion scripts/build-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,18 @@ else
ENV_FILE=".env"
fi

if [[ -n "$GCP_GEOLOCATION_API_KEY" ]]; then
if grep -qE "^GCP_GEOLOCATION_API_KEY=" "$ENV_FILE"; then
# Replace the value for the existing key
sed -i "s|^GCP_GEOLOCATION_API_KEY=.*$|GCP_GEOLOCATION_API_KEY=$GCP_GEOLOCATION_API_KEY|g" "$ENV_FILE"
else
# Add the key-value pair to the config file
echo "GCP_GEOLOCATION_API_KEY=$GCP_GEOLOCATION_API_KEY" >> "$ENV_FILE"
fi
fi

SCRIPTS_DIR=$(dirname "${BASH_SOURCE[0]}")
source "$SCRIPTS_DIR/shellUtils.sh";
source "$SCRIPTS_DIR/shellUtils.sh"

title "Bundling Desktop js Bundle Using Webpack"
info " • ELECTRON_ENV: $ELECTRON_ENV"
Expand Down
9 changes: 2 additions & 7 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1851,13 +1851,6 @@ const CONST = {
MAX_INT_FOR_RANDOM_7_DIGIT_VALUE: 10000000,
IOS_KEYBOARD_SPACE_OFFSET: -30,

PDF_PASSWORD_FORM: {
// Constants for password-related error responses received from react-pdf.
REACT_PDF_PASSWORD_RESPONSES: {
NEED_PASSWORD: 1,
INCORRECT_PASSWORD: 2,
},
},
API_REQUEST_TYPE: {
READ: 'read',
WRITE: 'write',
Expand Down Expand Up @@ -4150,6 +4143,8 @@ const CONST = {
},
},
},

MAX_TAX_RATE_DECIMAL_PLACES: 4,
} as const;

type Country = keyof typeof CONST.ALL_COUNTRIES;
Expand Down
Loading

0 comments on commit bfa7795

Please sign in to comment.