Implement optimistic state updates for employee approvals#80215
Implement optimistic state updates for employee approvals#80215cretadn22 wants to merge 5 commits intoExpensify:mainfrom
Conversation
…a single updates object for employee properties
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
situchan
left a comment
There was a problem hiding this comment.
Optimistic data is not enough. Still issue after logout & re-login. We need backend fix as well. Otherwise find different solution.
|
@situchan This change only addresses the frontend side. We’ll still need a backend fix as well |
|
@francoisl should we hold frontend PR until backend is done? |
|
Yeah let's hold on a second. I'll try to finish the backend portion this week. |
JmillsExpensify
left a comment
There was a problem hiding this comment.
Nice product polish
|
Hey team, sorry for the delay here. The backend changes are merged but we've had a deploy freeze that's been delaying things a little. In the meantime, can we update the PR and change the I'll let you know once the command is deployed (hopefully tomorrow). |
|
Ok the API command |
|
The test failed because the action exceeded the timeout |
|
@situchan The PR is ready for review 👍 |
Explanation of Change
Fixed Issues
$ #72109
PROPOSAL: #72109 (comment)
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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.2026-01-22.at.19.22.28.mov
Android: mWeb Chrome
Screen.Recording.2026-01-22.at.19.20.47.mov
iOS: Native
Screen.Recording.2026-01-22.at.19.21.16.mov
iOS: mWeb Safari
Screen.Recording.2026-01-22.at.19.19.51.mov
MacOS: Chrome / Safari
Screen.Recording.2026-01-22.at.19.18.46.mov