Add updateMoneyRequestCategory command#34073
Conversation
…date-moneyrequest-category
…date-moneyrequest-category
…date-moneyrequest-category
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-native-2024-01-17_15.58.47.mp4Android: mWeb Chromeandroid-chrome-2024-01-17_16.14.02.mp4iOS: Nativeios-native-2024-01-17_15.33.23.mp4iOS: mWeb Safariios-safari-2024-01-17_15.49.05.mp4MacOS: Chrome / Safaridesktop-chrome-2024-01-17_15.18.11.mp4MacOS: Desktopdesktop-app-2024-01-17_15.30.17.mp4 |
|
@NikkiWines Looks good! Just missing native/mWeb screenshots 🙇 |
|
Ah yeah, I've been having troubles with my iOS and Android emulators lately, hence the lack of videos. I'll try to get those sorted today but otherwise - since this doesn't actually impact the UI it should be consistent across all platforms - I think we can merge. |
…date-moneyrequest-category
|
@NikkiWines Ah no worries, I'll just approve then! |
|
@MonilBhavsar 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] |
|
|
||
| const saveCategory = useCallback( | ||
| ({category: newCategory}) => { | ||
| const updatedCategory = newCategory === transactionCategory ? '' : newCategory; |
There was a problem hiding this comment.
Should we prevent making an API call if newCategory is same as current?
Oops, let's add this comment
// In case the same category has been selected, do reset of the category.
|
@MonilBhavsar thanks for the review, updated! |
…date-moneyrequest-category
|
✋ 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 production by https://github.com/thienlnam in version: 1.4.31-7 🚀
|
Details
Adds a new
UpdateMoneyRequestCategorycommand in place of the broadEditMoneyRequestcommand for editing money request categoryFixed Issues
$ #32313
PROPOSAL: N/A
Tests
+>Request MoneyOffline tests
+>Request MoneyQA Steps
Same as
TestsstepsPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-01-10.at.16.30.47.mov
MacOS: Desktop
Screen.Recording.2024-01-10.at.17.00.24.mov