Submit query lingers on other member when switching accounts via copilot#73511
Submit query lingers on other member when switching accounts via copilot#73511JS00001 merged 5 commits intoExpensify:mainfrom
Conversation
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.
|
|
@paulnjs I think there's a regression here. If you switch quickly back to the desktop-chrome-regression-2025-10-28_16.43.31.mp4 |
@jjcoffee I think it's not a problem since we cleared the preserved state then the |
|
@paulnjs It will be considered a regression since it's a change in behaviour that could potentially be confusing. |
In my opinion, the staging behavior is more confusing:
@JS00001 What do you think |
|
@trjExpensify Which behavior do you prefer? User A is on submit -> copilots into User B -> navigates to search -> Is landed on User B's submit page |
This one seems to make more logical sense to me as the topmost LHN row on the Reports page, where you expect to be "first" when you navigate to the |
Also, as a heads up, theres a PR being worked on to fix this: #72034 |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-app-2025-11-04_17.11.44.mp4Android: mWeb Chromeandroid-chrome-2025-11-04_17.13.52.mp4iOS: HybridAppios-app-2025-11-04_17.19.12.mp4iOS: mWeb Safariios-safari-2025-11-04_17.22.07.mp4MacOS: Chrome / Safaridesktop-chrome-2025-11-04_16.27.31.mp4MacOS: Desktopdesktop-app-2025-11-04_17.04.46.mp4 |
|
@jjcoffee Okay, let me investigate more and get back to you |
|
@paulnjs Isn't that the same bug, just with a different tab? I think we want the |
@jjcoffee Yup, i think that but lemme investigate more to handle it in our PR |
@jjcoffee After checking this PR, I see the bug we mentioned above was fixed and the default tab will be approve tab instead. The behavior with this PR + our PR is: User A on a any query tab > switch user B > open Reports > user B is on the user B's default tab > switch back to user A > open Reports > user A is on the user A's default tab |
|
@paulnjs Thanks! And what about the behaviour without our PR? |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good from a product perspective 👍
jjcoffee
left a comment
There was a problem hiding this comment.
LGTM!
desktop-chrome-2025-12-03_10.42.15.mp4
|
✋ 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/JS00001 in version: 9.2.71-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.71-5 🚀
|
Explanation of Change
Fixed Issues
$ #72773
PROPOSAL: #72773 (comment)
Tests
Precondition: Setup account A as account B's copilot
Offline tests
None
QA Steps
Precondition: Setup account A as account B's copilot
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-10-27.at.11.46.17.mov
Android: mWeb Chrome
Screen.Recording.2025-10-27.at.11.48.40.mov
iOS: Native
Screen.Recording.2025-10-27.at.11.49.37.mov
iOS: mWeb Safari
Screen.Recording.2025-10-27.at.11.51.19.mov
MacOS: Chrome / Safari
Screen.Recording.2025-10-27.at.11.43.56.mov
MacOS: Desktop
Screen.Recording.2025-10-27.at.11.53.57.mov