-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Allow admin to create report on behalf of employee #76000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow admin to create report on behalf of employee #76000
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
I think this is broken on main too? It seems that the transactions data that we get from onyx is for an old |
This should already work offline as I'm not adding new actions that would create new outcome. |
|
I can fix this for just this case to pass the transactions from the Slack thread https://expensify.slack.com/archives/C07NMDKEFMH/p1769021596645979 |
|
@DylanDylann Can you please test again. |
The new report will be created on the admin account while offline, it should actually only be displayed on the employee account Screen.Recording.2026-01-22.at.14.56.23.mov |
|
@s77rt If this bug #76000 (comment) could be fixed by #79506 I think we should do nothing here |
I'm not sure what broke this but I guess this must be something on (btw, we can't optimistically remove the data from the snapshot because we don't have the hash for that search (the ones in groups), we only have the one for the main query that contains the groups -- one way to do it is to pass down the snapshot hash) |
That's fine with me |
@s77rt My bad. It's working fine |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-01-23.at.01.21.08.movAndroid: mWeb ChromeScreen.Recording.2026-01-23.at.01.11.45.moviOS: HybridAppScreen.Recording.2026-01-23.at.01.08.41.moviOS: mWeb SafariScreen.Recording.2026-01-23.at.01.06.29.movMacOS: Chrome / SafariScreen.Recording.2026-01-23.at.01.02.51.mov |
|
✋ 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/luacmartins in version: 9.3.8-0 🚀
|
|
@s77rt @luacmartins Can this one please be tested internally, We are currently blocked from creating card expense using Expensify card. |
|
I think that's fine. I tested this locally and @DylanDylann tested too |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.8-3 🚀
|

Explanation of Change
Fixed Issues
$ #75607
PROPOSAL:
Tests
Statusfilter selectUnreportedthen clickApplyMove expenseCreate reportStatusfilter selectDraftandOutstandingthen clickApplyScreen.Recording.2026-01-13.at.3.36.02.PM.mov
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