fix: After editing expense details, page not scrolled and focused to system message#77318
fix: After editing expense details, page not scrolled and focused to system message#77318blimpich merged 23 commits intoExpensify:mainfrom
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppios.moviOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-01-26.at.3.18.12.AM.mov |
|
@nkdengineer please fix conflict |
|
Fixed |
I don't think this is the root cause. |
|
I asked for clarification here. |
|
@nkdengineer please fix conflict |
|
You added 6 |
|
Please merge main again. It fixes failing test job 4 |
|
|
Please fix conflict |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3ef017baf4
ℹ️ 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".
situchan
left a comment
There was a problem hiding this comment.
@nkdengineer there's missing case
Screen.Recording.2026-01-26.at.3.20.27.AM.mov
|
@situchan Updated. |
|
Prettier check / Prettier check (pull_request) |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0616fb06a9
ℹ️ 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".
| } | ||
| const {params, onyxData} = data; | ||
| params.description = parsedComment; | ||
| notifyNewAction(Navigation.getSearchTopmostReportId(), currentUserAccountIDParam); |
There was a problem hiding this comment.
Pass modified reportAction to notifyNewAction
The new notifyNewAction calls don’t pass the modified report action created in getUpdateMoneyRequestParams. In MoneyRequestReportActionsList.scrollToBottomForCurrentUserAction, the scroll is skipped unless reportAction.actionName === ADD_COMMENT, so a MODIFIED_EXPENSE system action (the edit result) won’t trigger the scroll on money request/expense reports. This means editing expense details still won’t scroll to the system message in those views; consider passing the optimistic modified action or broadening the scroll predicate for edit actions.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Please check if this makes sense
There was a problem hiding this comment.
@situchan MoneyRequestReportActionsList is displayed in the expense report with multiple transaction so it isn't a valid case here.
|
@nkdengineer can we add test coverage so that we're not reducing coverage as shown here? |
|
@blimpich I updated. |
|
Thank you! |
|
✋ 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/blimpich in version: 9.3.11-19 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.3.12-1 🚀
|
Explanation of Change
Fixed Issues
$ #75344
PROPOSAL: #75344 (comment)
Tests
Offline tests
Same
QA Steps
Same as test
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
Screen.Recording.2025-12-11.at.12.07.44.mov
Android: mWeb Chrome
Screen.Recording.2025-12-11.at.12.06.42.mov
iOS: Native
Screen.Recording.2025-12-11.at.12.09.25.mov
iOS: mWeb Safari
Screen.Recording.2025-12-11.at.12.08.26.mov
MacOS: Chrome / Safari
Screen.Recording.2025-12-11.at.12.05.12.mov
Screen.Recording.2026-01-08.at.21.49.07.mov