-
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] Make sure that split bills follow the correct routes for editing category/tag #32541
Conversation
@rushatgabhane 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] |
src/pages/EditSplitBillPage.js
Outdated
key: ({route}) => `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${route.params.reportID}`, | ||
canEvict: false, | ||
}, | ||
report: { | ||
key: ({route}) => `${ONYXKEYS.COLLECTION.REPORT}${route.params.reportID}`, | ||
} | ||
}), | ||
// eslint-disable-next-line rulesdir/no-multiple-onyx-in-file | ||
withOnyx({ |
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.
Why do we have two calls to withOnyx
here?
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Desktop |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[CP Staging] Make sure that split bills follow the correct routes for editing category/tag (cherry picked from commit e349d69)
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
Thanks! |
defaultCategory={transactionCategory} | ||
policyID={lodashGet(report, 'policyID', '')} | ||
onSubmit={(transactionChanges) => { | ||
setDraftSplitTransaction({category: transactionChanges.category.trim()}); |
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.
Coming from #37146, this has caused a bug where you can't un-select a category when editing split bill
Puller bearing (@rushatgabhane)
cc @srikarparsi @youssef-lr @rezkiy37 @cubuspl42 @puneetlath
Details
Fixes what I believe is an oversight from #31647. The SplitBill flow uses a different route than IOUs for editing transactions. So use the proper route and add analogous handlers to the
EditSplitBillPage
for editing a split bill.Fixed Issues
$ #32517
Tests
Kapture.2023-12-05.at.19.22.44.mp4
Offline tests
QA Steps
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)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
Kapture.2023-12-06.at.10.04.39.mp4
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Kapture.2023-12-05.at.19.22.44.mp4
MacOS: Desktop