-
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
Add Pay as Business option for invoices sent to an individual who is admin of their primary workspace #43036
Add Pay as Business option for invoices sent to an individual who is admin of their primary workspace #43036
Conversation
# Conflicts: # src/libs/ReportUtils.ts
# Conflicts: # src/components/ReportActionItem/ReportPreview.tsx # src/components/SettlementButton.tsx
@@ -674,6 +674,7 @@ export default { | |||
settledExpensify: 'Pagado', | |||
settledElsewhere: 'Pagado de otra forma', | |||
individual: 'Individual', | |||
business: 'Empresa', |
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.
I've asked about translation confirmation in the slack
@@ -252,7 +274,7 @@ function SettlementButton({ | |||
|
|||
return ( | |||
<KYCWall | |||
onSuccessfulKYC={onPress} | |||
onSuccessfulKYC={(paymentType) => onPress(paymentType)} |
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.
onSuccessfulKYC={(paymentType) => onPress(paymentType)} | |
onSuccessfulKYC={onPress} |
I think it will work right?
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.
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-app-2024-06-14_13.30.00.mp4Android: mWeb Chromeandroid-chrome-2024-06-14_13.33.55.mp4iOS: Nativeios-app-2024-06-14_13.20.03.mp4iOS: mWeb Safariios-safari-2024-06-14_13.17.55.mp4MacOS: Chrome / Safaridesktop-chrome-2024-06-13_16.29.43.mp4MacOS: Desktopdesktop-app-2024-06-14_11.31.09.mp4 |
This comment was marked as resolved.
This comment was marked as resolved.
@jjcoffee It's a known issue caused by API returns empty cc @cristipaval Have you had a chance to take a look at it? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I think I've tested this use case and it worked for me, could you provide a video please 🙏 |
This comment was marked as resolved.
This comment was marked as resolved.
@jjcoffee It looks like it works for me, did I miss something? INV1.mp4 |
# Conflicts: # src/libs/actions/Policy/Policy.ts
@VickyStash Hmm, interesting! What if you try with User B as a new account that User A has never chatted with before? |
@VickyStash I guess this is related to the empty desktop-app-delayed.mp4 |
This comment was marked as resolved.
This comment was marked as resolved.
@jjcoffee |
Same issue is reproduced on the main branch, so it would be better to fix it separately |
Issues, that should be fixed by API updates:
Bug exists on main, should be tracked in a separate ticket:
Let's leave it to a follow up:
Fixed in the app:
Note: I'm going to be OOO Jul 1- Jul 7 🌴 |
Thanks for the summary @VickyStash! @jjcoffee, I think you can approve the PR, and I can test it when the backend fixes get into production. If nothing else occurs, I'll merge this PR and @VickyStash will create a follow-up issue to fix the redirection when the invoice is moved to an existing b2b invoice room. This way you can go ooo and don't worry about this PR. |
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.
LGTM!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
The issue with the avatar is still reproducible on the room header, but I think we can fix it in a follow-up PR to keep things going |
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.0.4-0 🚀
|
🚀 Cherry-picked to staging by https://github.com/tgolen in version: 9.0.4-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.0.5-0 🚀
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.0.5-2 🚀
|
@mountinyThe QA team is only seeing the "Pay as individual" option. This was reverted in this PR. Are we good to check it off? Recording.3432.mp4 |
@cristipaval could you please verify this before closing the issue? In the meantime I am checking this off our checklist as it isn't a blocker. |
This PR was reverted, @Julesssss |
This is the PR that should not have been added to the checklist, it was reverted |
Details
This PR implements the Pay as business option in the App for the individuals who are admins of their primary workspace.
Fixed Issues
$ #40438
PROPOSAL: N/A
Tests
Pay as business
->Pay elsewhere
Offline tests
Repeat steps 5-7 from the Tests section.
QA Steps
Same as in the Tests section
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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_receiver.mp4
Android: mWeb Chrome
android_web_receiver.mp4
iOS: Native
ios_receiver.mp4
iOS: mWeb Safari
ios_web_receiver.mp4
MacOS: Chrome / Safari
web_receiver.mp4
MacOS: Desktop
desktop_receiver.mp4