Refactor: clean up submit-to-destination-visible code to conform to coding standards#88581
Conversation
d11ec34 to
ab39cf6
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ab39cf6caa
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a5494c274
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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. Keep in mind that this project uses React Compiler. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a5494c274
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
FYI: Reverted |
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ 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". |
|
@jayeshmangwani @mountiny One of you needs to 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-04-24.at.8.45.02.PM.movAndroid: mWeb ChromeScreen.Recording.2026-04-24.at.8.47.36.PM.moviOS: HybridAppScreen.Recording.2026-04-24.at.8.18.48.PM.moviOS: mWeb SafariScreen.Recording.2026-04-24.at.8.37.10.PM.movMacOS: Chrome / SafariScreen.Recording.2026-04-24.at.8.38.36.PM.mov |
|
Bug: Only 1 expense gets created via multi-scan flow.
Screen.Recording.2026-04-23.at.8.17.17.PM.mov |
|
No new product considerations - removing my assignment and unsubscribing. |
|
@ShridharGoel fixed, may you take another look? fixed.mov |
|
🚧 @mountiny 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/mountiny in version: 9.3.66-0 🚀
|
|
I reviewed all changes in this PR. This is purely an internal code refactoring/cleanup:
No user-facing behavior, UI labels, settings, or workflows are changed. No help site updates are required. |
Explanation of Change
Cleanup pass across submit-to-destination-visible PRs to conform to coding standards. Removes manual memoization (
useMemo/useCallback/React.memo) from files that compile with React Compiler, replaces deprecatedInteractionManager.runAfterInteractionswithTransitionTracker.runAfterTransitions, inlines internal render helpers, fixes magic values, alignsStaticSearchTypeMenuwith the interactive version by passingaccountID, collapses duplicated deferral logic indeferOrExecuteWrite, and fixes aflushedWatchKeysmemory leak indeferredLayoutWrite. Extracts deferred-rendering and deferred-write-flush logic fromReportScreenintouseDeferNonEssentialsanduseFlushDeferredWriteOnFocushooks, and moves dismiss navigation strategies fromSubmitExpenseOrchestratorinto a dedicatedsubmitDismissStrategies.tsmodule.Fixed Issues
$ #88583
PROPOSAL: N/A
Tests
accountIDfor its query hashOffline tests
N/A
QA Steps
Same as tests
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