Repository navigation
refactor markRejectViolationAsResolved to use isOffline - #86829
Conversation
|
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@dukenv0307 Could you resolve failed checks? |
|
@DylanDylann Done |
| } | ||
|
|
||
| function markRejectViolationAsResolved(transactionID: string, reportID?: string) { | ||
| function markRejectViolationAsResolved(transactionID: string, isOfflineParam: boolean, reportID?: string) { |
There was a problem hiding this comment.
Just noticed, we should rename the current isOffline to deprecatedIsOffline and use isOffline as the parameter name.
|
@codex review |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-04-10.at.14.29.46.mov |
|
@dukenv0307 It displayed the Submit button on my side on rejected report. Could you update the correct steps?
|
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@DylanDylann updated |
|
@dukenv0307 It still doesn't work for me Screen.Recording.2026-04-07.at.13.29.14.mov |
|
@dukenv0307 Could you check ☝️ |
|
@DylanDylann Today I also can't find the way to reproduce, can you please run the command to mock the transaction violation? |
|
conflicts |
726f18e to
95bbf29
Compare
|
@roryabraham all yours! |
|
🚧 @roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.3.60-0 🚀
Bundle Size Analysis (Sentry): |
|
I reviewed the changes in this PR. It's a pure internal code refactoring that makes the There are no user-facing changes — no new features, UI changes, workflow changes, or changes to button labels/settings. No help site changes are required. |
|
Hi @dukenv0307. Would it be enough to test this on the Web? If not, how can we execute the code in the console of the native apps? |
|
I think just web is sufficient |
|
Hey @dukenv0307, it looks like the "Mark as resolved" button is not showing up after running the snippet and following the steps. Could you let us know if we're missing something? 2026-04-16.17-01-33.mp4 |
|
@nlemma Ah I see the issue, I added more details in the test steps, we should replace the Screen.Recording.2026-04-16.at.21.36.20.mov |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.60-22 🚀
|

Explanation of Change
Fixed Issues
$ #66407
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-04-01.at.10.58.48.mov