[Home Page] "Recently added" slot doesn't update after creating an expense while offline#94180
Conversation
|
@ZhenjaHorbach 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6f25290b41
ℹ️ 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".
An offline-created personal tracked expense is absent from the Search snapshot, so its transaction thread couldn't be resolved and the Recently added row navigated to report "0". Fall back to local report actions to find the IOU action's childReportID when the snapshot has no thread yet.
|
FYI I need to add support for deleting |
|
@adamgrzybowski can you merge main for tests? |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@ZhenjaHorbach let's move it forward to avoid merge conflicts |
|
Will check soon! |
|
I suppose the removed expense shouldn't be clickable 2026-06-29.15.49.36.mov |
A deleted expense in the Recently added section stayed clickable while offline since OfflineWithFeedback only strikes the row through. Make the row's onPress a no-op and show the default cursor when the expense is pending deletion.
Prefer the local transactions_ copy so an offline edit's updated values and pendingFields drive the row, rendering the offline pending treatment for edits (UPDATE) alongside creates (ADD) and deletes (DELETE).
Splitting reassigns the original transaction to the synthetic SPLIT_REPORT_ID and adds the split children as new expenses, but the slot still surfaced the orphaned original alongside the splits. Filter out transactions whose effective reportID is SPLIT_REPORT_ID, preferring the local copy so it works before the snapshot refreshes (offline splits).
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-07-01.14.30.30.movAndroid: mWeb Chrome2026-07-01.14.32.56.moviOS: HybridApp2026-07-01.14.30.30.moviOS: mWeb Safari2026-07-01.14.32.56.movMacOS: Chrome / Safari2026-07-01.14.23.25.mov |
|
LGTM |
|
Still have lint issues |
grgia
left a comment
There was a problem hiding this comment.
NAB comment but please take a look before we merge @adamgrzybowski
…ll report actions Addresses PR review comment: reuse getIOUActionForReportID(findSelfDMReportID(), ...) and remove the getThreadReportIDForTransaction helper and its tests.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 grgia 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.4.28-0 🚀
|
Help site review — no docs changes requiredI reviewed this PR against the help site articles under Why: This is an offline-sync bug fix, not a change to any user-facing feature, setting, tab, or button. It makes an expense created while offline appear in the Home Recently added section immediately (rendered with the standard offline pending / greyed-out treatment) and reconcile without duplicating once it syncs. The relevant help article —
This fix simply makes that documented behavior hold true offline as well. Nothing in the article contradicts the new behavior, so there's no stale copy to correct. The greyed-out "pending" treatment for offline-created rows is the same app-wide Files reviewed in this PR
None introduce or rename a user-facing feature, setting, or workflow. adamgrzybowski, if you believe the offline behavior of the Recently added section should be explicitly documented (e.g. a short FAQ entry), reply with |
|
Deploy Blocker #95414 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.28-2 🚀
Bundle Size Analysis (Sentry): |


Explanation of Change
Fixed Issues
$ #94162
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, 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.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-06-22.at.14.58.10.mov