Skip to content

Commit 34e14b4

Browse files
committed
Merge branch 'main' of github.com:gijoe0295/App into gijoe/72505
2 parents bdf143e + 6f24ae1 commit 34e14b4

558 files changed

Lines changed: 36953 additions & 27489 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.

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ USE_REDUX_DEVTOOLS=false
1414
CAPTURE_METRICS=false
1515
ONYX_METRICS=false
1616
USE_THIRD_PARTY_SCRIPTS=false
17+
IS_EXPENSIFY_EMPLOYEE=false
1718

1819
EXPENSIFY_ACCOUNT_ID_ACCOUNTING=-1
1920
EXPENSIFY_ACCOUNT_ID_ACCOUNTS_PAYABLE=-1

.github/ISSUE_TEMPLATE/Standard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ___
1010
**Version Number:**
1111
**Reproducible in staging?:**
1212
**Reproducible in production?:**
13-
**If this was caught during regression testing, add the test name, ID and link from TestRail:**
13+
**If this was caught during regression testing, add the test name, ID and link from BrowserStack:**
1414
**Email or phone of affected tester (no customers):**
1515
**Logs:** https://stackoverflow.com/c/expensify/questions/4856
1616
**Expensify/Expensify Issue URL:**
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Get Java version
2+
description: Reads the Java version from .java-version file
3+
4+
outputs:
5+
version:
6+
description: The Java version from .java-version file
7+
value: ${{ steps.getVersion.outputs.VERSION }}
8+
9+
runs:
10+
using: composite
11+
steps:
12+
- name: Get Java version
13+
id: getVersion
14+
shell: bash
15+
run: echo "VERSION=$(cat .java-version | tr -d '\n')" >> "$GITHUB_OUTPUT"

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12746,6 +12746,24 @@ class Git {
1274612746
hasChanges: files.length > 0,
1274712747
};
1274812748
}
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+
}
1274912767
/**
1275012768
* Calculate the line number for a diff line based on the hunk and line type.
1275112769
*/

.github/actions/javascript/proposalPoliceComment/index.js

Lines changed: 46 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12699,7 +12699,7 @@ class OpenAIUtils {
1269912699
/**
1270012700
* Prompt the Chat Completions API.
1270112701
*/
12702-
async promptChatCompletions({ userPrompt, systemPrompt = '', model = 'gpt-5' }) {
12702+
async promptChatCompletions({ userPrompt, systemPrompt = '', model = 'gpt-5.1' }) {
1270312703
const messages = [{ role: 'user', content: userPrompt }];
1270412704
if (systemPrompt) {
1270512705
messages.unshift({ role: 'system', content: systemPrompt });
@@ -20712,27 +20712,12 @@ const SessionsAPI = tslib_1.__importStar(__nccwpck_require__(13223));
2071220712
const sessions_1 = __nccwpck_require__(13223);
2071320713
const ThreadsAPI = tslib_1.__importStar(__nccwpck_require__(40997));
2071420714
const threads_1 = __nccwpck_require__(40997);
20715-
const headers_1 = __nccwpck_require__(63591);
20716-
const uploads_1 = __nccwpck_require__(67620);
2071720715
class ChatKit extends resource_1.APIResource {
2071820716
constructor() {
2071920717
super(...arguments);
2072020718
this.sessions = new SessionsAPI.Sessions(this._client);
2072120719
this.threads = new ThreadsAPI.Threads(this._client);
2072220720
}
20723-
/**
20724-
* Upload a ChatKit file
20725-
*
20726-
* @example
20727-
* ```ts
20728-
* const response = await client.beta.chatkit.uploadFile({
20729-
* file: fs.createReadStream('path/to/file'),
20730-
* });
20731-
* ```
20732-
*/
20733-
uploadFile(body, options) {
20734-
return this._client.post('/chatkit/files', (0, uploads_1.maybeMultipartFormRequestOptions)({ body, ...options, headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'chatkit_beta=v1' }, options?.headers]) }, this._client));
20735-
}
2073620721
}
2073720722
exports.ChatKit = ChatKit;
2073820723
ChatKit.Sessions = sessions_1.Sessions;
@@ -22128,20 +22113,19 @@ class Files extends resource_1.APIResource {
2212822113
* up to 512 MB, and the size of all files uploaded by one organization can be up
2212922114
* to 1 TB.
2213022115
*
22131-
* The Assistants API supports files up to 2 million tokens and of specific file
22132-
* types. See the
22133-
* [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for
22134-
* details.
22135-
*
22136-
* The Fine-tuning API only supports `.jsonl` files. The input also has certain
22137-
* required formats for fine-tuning
22138-
* [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or
22139-
* [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input)
22140-
* models.
22141-
*
22142-
* The Batch API only supports `.jsonl` files up to 200 MB in size. The input also
22143-
* has a specific required
22144-
* [format](https://platform.openai.com/docs/api-reference/batch/request-input).
22116+
* - The Assistants API supports files up to 2 million tokens and of specific file
22117+
* types. See the
22118+
* [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools)
22119+
* for details.
22120+
* - The Fine-tuning API only supports `.jsonl` files. The input also has certain
22121+
* required formats for fine-tuning
22122+
* [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input)
22123+
* or
22124+
* [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input)
22125+
* models.
22126+
* - The Batch API only supports `.jsonl` files up to 200 MB in size. The input
22127+
* also has a specific required
22128+
* [format](https://platform.openai.com/docs/api-reference/batch/request-input).
2214522129
*
2214622130
* Please [contact us](https://help.openai.com/) if you need to increase these
2214722131
* storage limits.
@@ -22966,6 +22950,33 @@ exports.InputItems = InputItems;
2296622950

2296722951
/***/ }),
2296822952

22953+
/***/ 37133:
22954+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
22955+
22956+
"use strict";
22957+
22958+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22959+
Object.defineProperty(exports, "__esModule", ({ value: true }));
22960+
exports.InputTokens = void 0;
22961+
const resource_1 = __nccwpck_require__(19318);
22962+
class InputTokens extends resource_1.APIResource {
22963+
/**
22964+
* Get input token counts
22965+
*
22966+
* @example
22967+
* ```ts
22968+
* const response = await client.responses.inputTokens.count();
22969+
* ```
22970+
*/
22971+
count(body = {}, options) {
22972+
return this._client.post('/responses/input_tokens', { body, ...options });
22973+
}
22974+
}
22975+
exports.InputTokens = InputTokens;
22976+
//# sourceMappingURL=input-tokens.js.map
22977+
22978+
/***/ }),
22979+
2296922980
/***/ 96214:
2297022981
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
2297122982

@@ -22980,12 +22991,15 @@ const ResponseStream_1 = __nccwpck_require__(66784);
2298022991
const resource_1 = __nccwpck_require__(19318);
2298122992
const InputItemsAPI = tslib_1.__importStar(__nccwpck_require__(46867));
2298222993
const input_items_1 = __nccwpck_require__(46867);
22994+
const InputTokensAPI = tslib_1.__importStar(__nccwpck_require__(37133));
22995+
const input_tokens_1 = __nccwpck_require__(37133);
2298322996
const headers_1 = __nccwpck_require__(63591);
2298422997
const path_1 = __nccwpck_require__(10706);
2298522998
class Responses extends resource_1.APIResource {
2298622999
constructor() {
2298723000
super(...arguments);
2298823001
this.inputItems = new InputItemsAPI.InputItems(this._client);
23002+
this.inputTokens = new InputTokensAPI.InputTokens(this._client);
2298923003
}
2299023004
create(body, options) {
2299123005
return this._client.post('/responses', { body, ...options, stream: body.stream ?? false })._thenUnwrap((rsp) => {
@@ -23052,6 +23066,7 @@ class Responses extends resource_1.APIResource {
2305223066
}
2305323067
exports.Responses = Responses;
2305423068
Responses.InputItems = input_items_1.InputItems;
23069+
Responses.InputTokens = input_tokens_1.InputTokens;
2305523070
//# sourceMappingURL=responses.js.map
2305623071

2305723072
/***/ }),
@@ -23743,7 +23758,7 @@ tslib_1.__exportStar(__nccwpck_require__(11364), exports);
2374323758

2374423759
Object.defineProperty(exports, "__esModule", ({ value: true }));
2374523760
exports.VERSION = void 0;
23746-
exports.VERSION = '6.3.0'; // x-release-please-version
23761+
exports.VERSION = '6.9.1'; // x-release-please-version
2374723762
//# sourceMappingURL=version.js.map
2374823763

2374923764
/***/ }),

.github/workflows/buildAndroid.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,16 @@ jobs:
7575
- name: Setup Node
7676
uses: ./.github/actions/composite/setupNode
7777

78+
- name: Get Java version
79+
id: get-java-version
80+
uses: ./.github/actions/composite/getJavaVersion
81+
7882
- name: Setup Java
7983
# v4
8084
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
8185
with:
8286
distribution: oracle
83-
java-version: 17
87+
java-version: ${{ steps.get-java-version.outputs.version }}
8488

8589
- name: Setup Gradle
8690
# v4

.github/workflows/deploy.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,16 @@ jobs:
109109
cd Mobile-Expensify
110110
npm run grunt:build:shared
111111
112+
- name: Get Java version
113+
id: get-java-version
114+
uses: ./.github/actions/composite/getJavaVersion
115+
112116
- name: Setup Java
113117
# v4
114118
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
115119
with:
116-
distribution: 'oracle'
117-
java-version: '17'
120+
distribution: oracle
121+
java-version: ${{ steps.get-java-version.outputs.version }}
118122

119123
- name: Setup Ruby
120124
# v1.229.0
@@ -554,6 +558,8 @@ jobs:
554558
else
555559
npm run build-staging
556560
fi
561+
env:
562+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
557563

558564
- name: Build storybook docs
559565
continue-on-error: true

.github/workflows/prettier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Verify there's no Prettier diff
3030
run: |
31-
npm run prettier -- --log-level silent
31+
npm run prettier -- --log-level error
3232
if ! git diff --name-only --exit-code; then
3333
# shellcheck disable=SC2016
3434
echo 'Error: Prettier diff detected! Please run `npm run prettier` and commit the changes.'

.github/workflows/publishReactNativeAndroidArtifacts.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,15 @@ jobs:
148148
with:
149149
IS_HYBRID_BUILD: ${{ matrix.is_hybrid }}
150150

151+
- name: Get Java version
152+
id: get-java-version
153+
uses: ./.github/actions/composite/getJavaVersion
154+
151155
- name: Setup Java
152156
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
153157
with:
154158
distribution: oracle
155-
java-version: 17
159+
java-version: ${{ steps.get-java-version.outputs.version }}
156160

157161
- name: Setup Gradle
158162
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244

.github/workflows/react-compiler-compliance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
# In phase 0 of the React Compiler compliance check rollout,
2929
# we want to report failures but don't fail the check.
3030
# See https://github.com/Expensify/App/issues/68765#issuecomment-3487317881
31-
run: npm run react-compiler-compliance-check check-changed || true
31+
run: npm run react-compiler-compliance-check check-changed -- --filterByDiff --enforceNewComponents
3232
env:
3333
CI: true
3434
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)