Fix - Reports - New expense is not briefly highlighted in the list after expense is submitted#60282
Fix - Reports - New expense is not briefly highlighted in the list after expense is submitted#60282FitseTLT wants to merge 6 commits into
Conversation
|
@QichenZhu 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] |
|
@QichenZhu, there are some changes that are different from the proposal. I couldn't remove hasNewItemsRef logic because I still noticed the original bug of scrolling to old items when transaction is deleted. p.mp4So instead of removing it, because this problem doesn't exist in |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
Hi @FitseTLT, thanks for the note.
What's the issue number for this bug? |
|
It is not an independent issue, I encountered it while working on here. To consistently reproduce it you can remove the new items ref here
But also note that this happens without clearing cache I am just suggesting the clear reproducing steps. |
|
Can you reproduce the original issue #59449 without this PR? I can't reproduce it on the main branch now. Screen.Recording.2025-04-21.at.23.40.45.mov |
Yep. Correct. Because on main @QichenZhu FYI now the main bug is not reproducible on main. This is due to this pr that started creating transaction items optimistically on expense creation. But our PR can still serve as refactoring WDYT |
Thanks for the work here! If this PR brings some benefits, such as simplifying the code or improving performance, we can ask an internal member to consider it a refactor. Otherwise, let's wait for QA to retest the original issue and close it. |
|
@FitseTLT I can reproduce the original issue again. Could you help confirm? |
|
Don't reproduce it on latest main 2025-04-30.16-08-24.mp4 |
|
@FitseTLT I can reproduce it after clearing cache. search-highlight.mov |
|
I can't reproduce with the same steps @QichenZhu but if you do let's continue on this pr then? WDYT 2025-04-30.17-18-51.mp4 |
|
I'll retest tomorrow and complete the checklist if it's still reproducible. |
|
I cannot reproduce it today. I think PR #60896 merged yesterday already includes most of our changes. |
|
Closing this in favor of #64111 |
Details
Fixed Issues
$ #59449
PROPOSAL: #59449 (comment)
Tests
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
2025-04-15.18-02-18.mp4
Android: mWeb Chrome
2025-04-15.17-27-04.mp4
iOS: Native
2025-04-15.17-15-43.mp4
iOS: mWeb Safari
2025-04-15.17-16-56.mp4
MacOS: Chrome / Safari
2025-04-15.17-13-04.mp4
MacOS: Desktop
2025-04-15.17-14-18.mp4