-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Set default category for distance request #34012
Conversation
bump @situchan |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
'', | ||
); | ||
useEffect(() => { | ||
IOU.setMoneyRequestCategory_temporaryForRefactor(transactionID, defaultCategory); |
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.
This always resets category to default one while in money request flow.
This should be happen only when unset
Screen.Recording.2024-01-18.at.10.49.15.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.
Updated!
@situchan This needs your re-approval. |
bump @situchan |
@dylanexpensify default category should be set only for distance request or for all requests including manual? ![]() |
@dylanexpensify Can you take a look at ^ ? |
@tienifr after internal discussion, Default Distance Category should be applied to distance request only. So no need to set default category in other types of requests. |
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.
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 1.4.38-0 🚀
|
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 1.4.38-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.38-6 🚀
|
return; | ||
} | ||
IOU.setMoneyRequestCategory_temporaryForRefactor(transactionID, defaultCategory); | ||
}, [transactionID, transaction.category, requestType, defaultCategory]); |
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.
Adding transaction.category
as dependency here caused #36139.
So category was always reset to default on unselect.
Details
This PR retrieves and sets default category for distance request.
Fixed Issues
$ #33388
PROPOSAL: #33388 (comment)
Tests
Offline tests
NA
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)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
Screen.Recording.2024-01-05.at.16.20.37-compressed.mov
MacOS: Desktop
Screen.Recording.2024-01-05.at.16.20.37-compressed.mov