Skip to content

Commit f6a7589

Browse files
committed
Merge branch 'main' into refactor-661
2 parents 54ce6f7 + 6d7eaa6 commit f6a7589

322 files changed

Lines changed: 6723 additions & 3781 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.

.github/ISSUE_TEMPLATE/Standard.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,29 +38,8 @@ Select the officially supported platforms where the issue was reproduced:
3838
- [ ] iOS: mWeb Chrome
3939
- [ ] Windows: Chrome
4040
- [ ] MacOS: Chrome / Safari
41-
- [ ] MacOS: Desktop
42-
43-
<details>
44-
<summary>Platforms Tested:</summary>
45-
On which of our officially supported platforms was this issue tested:
46-
47-
- [ ] Android: App
48-
- [ ] Android: mWeb Chrome
49-
- [ ] iOS: App
50-
- [ ] iOS: mWeb Safari
51-
- [ ] iOS: mWeb Chrome
52-
- [ ] Windows: Chrome
53-
- [ ] MacOS: Chrome / Safari
54-
- [ ] MacOS: Desktop
55-
56-
</details>
5741

5842
## Screenshots/Videos
5943

60-
<details>
61-
<summary>Add any screenshot/video evidence</summary>
62-
63-
64-
</details>
6544

6645
[View all open jobs on GitHub](https://github.com/Expensify/App/issues?q=is%3Aopen+is%3Aissue+label%3A%22Help+Wanted%22)

.github/actions/javascript/getPullRequestIncrementalChanges/index.js

Lines changed: 36 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12624,6 +12624,7 @@ class Git {
1262412624
const files = [];
1262512625
let currentFile = null;
1262612626
let currentHunk = null;
12627+
let oldFilePath = null; // Track old file path to determine fileDiffType
1262712628
for (const line of lines) {
1262812629
// File header: diff --git a/file b/file
1262912630
if (line.startsWith('diff --git')) {
@@ -12636,13 +12637,41 @@ class Git {
1263612637
}
1263712638
currentFile = null;
1263812639
currentHunk = null;
12640+
oldFilePath = null; // Reset for next file
1263912641
continue;
1264012642
}
12641-
// File path: +++ b/file
12642-
if (line.startsWith('+++ b/')) {
12643-
const diffFilePath = line.slice(6); // Remove '+++ b/'
12643+
// Old file path: --- a/file or --- /dev/null (for new files)
12644+
// This comes before +++ in git diff output
12645+
if (line.startsWith('--- ')) {
12646+
oldFilePath = line.slice(4); // Store the old file path (remove '--- ')
12647+
continue;
12648+
}
12649+
// New file path: +++ b/file or +++ /dev/null (for removed files)
12650+
if (line.startsWith('+++ ')) {
12651+
const newFilePath = line.slice(4); // Remove '+++ '
12652+
// Determine fileDiffType based on old and new file paths
12653+
// Note: oldFilePath should always be set by the time we see +++, but handle null for type safety
12654+
let fileDiffType = 'modified';
12655+
let diffFilePath;
12656+
const oldPath = oldFilePath ?? '';
12657+
if (oldPath === '/dev/null') {
12658+
// New file: use the new file path
12659+
fileDiffType = 'added';
12660+
diffFilePath = newFilePath.startsWith('b/') ? newFilePath.slice(2) : newFilePath;
12661+
}
12662+
else if (newFilePath === '/dev/null') {
12663+
// Removed file: use the old file path
12664+
fileDiffType = 'removed';
12665+
diffFilePath = oldPath.startsWith('a/') ? oldPath.slice(2) : oldPath;
12666+
}
12667+
else {
12668+
// Modified file: use the new file path
12669+
fileDiffType = 'modified';
12670+
diffFilePath = newFilePath.startsWith('b/') ? newFilePath.slice(2) : newFilePath;
12671+
}
1264412672
currentFile = {
1264512673
filePath: diffFilePath,
12674+
diffType: fileDiffType,
1264612675
hunks: [],
1264712676
addedLines: new Set(),
1264812677
removedLines: new Set(),
@@ -12697,6 +12726,10 @@ class Git {
1269712726
// Context line - skip it (we only care about added/removed lines)
1269812727
continue;
1269912728
}
12729+
else if (firstChar === '\\') {
12730+
// "No newline at end of file" marker - skip it (metadata, not content)
12731+
continue;
12732+
}
1270012733
else {
1270112734
throw new Error(`Unknown line type! First character of line is ${firstChar}`);
1270212735
}
@@ -12746,24 +12779,6 @@ class Git {
1274612779
hasChanges: files.length > 0,
1274712780
};
1274812781
}
12749-
/**
12750-
* Check if a file from a Git diff is added.
12751-
*
12752-
* @param file - The file to check
12753-
* @returns true if the file is added, false otherwise
12754-
*/
12755-
static isAddedDiffFile(file) {
12756-
const hasAddedLines = file.addedLines.size > 0;
12757-
const hasModifiedLines = file.modifiedLines.size > 0;
12758-
const hasRemovedLines = file.removedLines.size > 0;
12759-
if (!hasAddedLines || hasModifiedLines || hasRemovedLines) {
12760-
return false;
12761-
}
12762-
if (file.hunks.length === 1 && file.hunks.at(0)?.oldStart === 0 && file.hunks.at(0)?.oldCount === 0) {
12763-
return true;
12764-
}
12765-
return false;
12766-
}
1276712782
/**
1276812783
* Calculate the line number for a diff line based on the hunk and line type.
1276912784
*/

.github/workflows/validateGithubActions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
types: [opened, synchronize]
66
branches-ignore: [staging, production]
7-
paths: ['.github/**', 'package.json', 'package-lock.json', 'tsconfig.json']
7+
paths: ['.github/**', 'scripts/**', 'package.json', 'package-lock.json', 'tsconfig.json']
88

99
jobs:
1010
verify:

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 1009027500
118-
versionName "9.2.75-0"
117+
versionCode 1009027806
118+
versionName "9.2.78-6"
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"

assets/images/columns.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

assets/images/product-illustrations/planet-with-mobile-app.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)