-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works good!
@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 elsewhere
optionHere's what you should see for the different scenarios:
Admin/Manager
Export to QuickBooks Online
in the money report previewExport to QuickBooks Online
in the top right positionMember
Export to QuickBooks Online
in the money report previewExport to QuickBooks Online
in the top right positionQA Steps
Same as in tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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