fix: Refetch expanded group data on toggle to prevent stale transactions after date edits#79207
fix: Refetch expanded group data on toggle to prevent stale transactions after date edits#79207lakchote merged 15 commits intoExpensify:mainfrom
Conversation
…ons after date edits
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@mananjadhav 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] |
src/components/SelectionListWithSections/Search/TransactionGroupListItem.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f1c4b8602e
ℹ️ 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".
src/components/SelectionListWithSections/Search/TransactionGroupListItem.tsx
Outdated
Show resolved
Hide resolved
|
@mananjadhav can you review this please. |
|
Reviewing this along with this #79168 |
|
Here's what I am thinking before I dive into the solution. The changes we made for Top spenders were similar to the other filters, yet the bug is reported only for Top spenders. Now I understand this might be different for Submit/Approved etc. but Unapproved Cash also seems to be a group by filter. So it should be an issue with that too. I am just verifying all of these. Additionally, I think if we resolve stale data issue, then #79168 should get resolved too as we would get latest data. |
Yes, I agree with you. The stale issue is an old one and was reported only for top spenders. Once this issue is resolved, both this issue and the one you tagged will be automatically resolved as well. These issues were not caused by my top-spender ticket implementation. Therefore, I think we can treat them as completely separate and close this one. #78309 |
|
Started reviewing the PR. And I am able to reproduce the same issue with |
src/components/SelectionListWithSections/Search/TransactionGroupListItem.tsx
Outdated
Show resolved
Hide resolved
src/components/SelectionListWithSections/Search/TransactionGroupListItem.tsx
Show resolved
Hide resolved
src/components/SelectionListWithSections/Search/TransactionGroupListItem.tsx
Show resolved
Hide resolved
Looking into @huult comments |
|
Thank you. |
src/components/SelectionListWithSections/Search/TransactionGroupListItem.tsx
Outdated
Show resolved
Hide resolved
|
@huult yes on main it reproducebale. Screen.Recording.2026-01-30.at.1.27.57.AM.mov |
2ac48d1
|
@huult what's the ETA here on completing the review? |
|
@trjExpensify Yes, I’ll check it within the next hour and may complete it within 2 hours |
|
Thanks! If we can get this approved and merged before the deploy cut-off in a couple of hours, that would be good. |
src/components/SelectionListWithSections/Search/TransactionGroupListItem.tsx
Outdated
Show resolved
Hide resolved
src/components/SelectionListWithSections/Search/TransactionGroupListItem.tsx
Show resolved
Hide resolved
|
✋ 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/lakchote in version: 9.3.11-16 🚀
|
|
@abbasifaizan70 while offline top spenders are not shown when expanding it, is this expected? |
Yes, we don't use state management for them; instead,d we are calling the API, so while offline, it's not possible to get updated data from APIs. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.3.12-1 🚀
|
Explanation of Change
This PR fixed the refetch expanded group data on toggle to prevent stale transactions after date edits
Fixed Issues
$ #79160
PROPOSAL:
Tests
Offline tests
same as tests.
QA Steps
same as tests.
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-01-09.at.8.11.18.PM.mov