-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Use updateMoneyRequestBillable #33245
Conversation
Not related to this PR but there are warnings in console because receipt returned is an array whereas it should be an object |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromebillableAndroidmWeb-compressed.mp4iOS: NativebillableiOSNative.mp4iOS: mWeb SafaribillableiOSSafari.mp4MacOS: Chrome / SafaribillableChrome.mp4MacOS: DesktopbillableDesktop.mp4 |
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. |
🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.4.24-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.24-3 🚀
|
return; | ||
} | ||
IOU.updateMoneyRequestBillable(transaction.transactionID, report.reportID, newBillable); | ||
Navigation.dismissModal(); |
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.
@luacmartins @c3024,Coming from this PR, why do we need to call Navigation.dismissModal();
?
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 think we just wanted to navigate the user back once they edit the billable field.
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.
@luacmartins, do you mean we want to navigate back (close the RHP) if report is opened in RHP? I don't think we should be doing that.
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 think we should do that if the report is opened from the central pane (original design in this PR). If the report is opened in the RHP, I agree that we should just navigate back.
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.
@luacmartins, I think we don't need to do anything in both cases. When report is opened in central pane we shouldn't navigate when toggling billable value and same for RHP, we should not close the RHP just because of updating billable value. The RHP should remain open like it is opened when any other field is edited. WDYT?
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 just tested again and I think that makes sense. Toggling billable when opening the thread from the central pane doesn't dismiss the modal, so we should do the same for the RHP
Details
Uses the new
updateMoneyRequestBillable
command.Fixed Issues
$ #32310
Tests
Settings > Workspaces > Expenses
and changeRe-bill expenses to clients
toDefault to Billable
Settings > Workspaces > Members
and invite another user as an employee+ > Request money
Billable
togglechanged the request to "non-billable" (previously "billable").
commentOffline tests
Step 8 above
QA Steps
Same as 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
web.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop