[CP Staging] Fix export integration next step showing for workspace members#45577
Conversation
|
@allroundexperts 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] |
|
Thank you @lakchote for handling that |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-17.at.3.10.04.PM.movScreen.Recording.2024-07-17.at.3.08.35.PM.movAndroid: mWeb ChromeScreen.Recording.2024-07-17.at.3.09.25.PM.movScreen.Recording.2024-07-17.at.3.10.42.PM.moviOS: NativeScreen.Recording.2024-07-17.at.3.06.21.PM.movScreen.Recording.2024-07-17.at.3.07.42.PM.moviOS: mWeb SafariScreen.Recording.2024-07-17.at.3.04.55.PM.movScreen.Recording.2024-07-17.at.3.05.52.PM.movMacOS: Chrome / SafariScreen.Recording.2024-07-17.at.3.00.52.PM.movScreen.Recording.2024-07-17.at.3.03.24.PM.movMacOS: DesktopScreen.Recording.2024-07-17.at.3.04.03.PM.mov |
|
@marcochavezf 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] |
|
🎯 @allroundexperts, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #45585. |
|
@lakchote just checking something you said in a linked issue. On OldDot, only admins can manually export reports to connected accounting solutions, right? |
Yes. |
|
Okay cool, so a "manager" (i.e a submitsTo that's not an admin) can't manually export either, yeah? |
He can't in OldDot. However, our backend logic allows exporting if the user is the report's manager OR an admin of the policy (https://github.com/Expensify/Auth/blob/9da0e11669612308496a700c3d22a8765f45d68a/auth/command/QueueReportExport.cpp#L68-L70). EDIT: I've talked with Tom in DM, we should be consistent with the frontend here, so I'm going to update the PR to only allow admins. |
Cool yeah, so I think we should be consistent with OldDot here. Only admins can see the manual export options to connected accounting integrations. 👍 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…n-nextStep Fix export integration next step showing for workspace members (cherry picked from commit 5377e04)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.0.8-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.0.8-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.9-5 🚀
|


Details
Right now we're displaying the option to export to integration for workspace members in two areas:
This is wrong as they don't have the authorization to do that.
We need to display the export to integration button only if the user is an admin or a manager, just like in QueueReport.cpp.
(Logsearch error example)
cc @arosiclair @kosmydel as you've worked on the PR for the manual export
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/413328
PROPOSAL:
Tests
Prerequisites
Steps
Pay elsewhereoptionHere's what you should see for the different scenarios:
Admin/Manager
Export to QuickBooks Onlinein the money report previewExport to QuickBooks Onlinein the top right positionMember
Export to QuickBooks Onlinein the money report previewExport to QuickBooks Onlinein the top right positionQA Steps
Same as in tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
Screenshots are posted above in the test steps.
MacOS: Desktop