Fix - Open Categories - Default spend categories are missing when workspace is created offline#56349
Conversation
|
@allgandalf 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] |
|
|
||
| function buildOptimisticMccGroup() { | ||
| const optimisticMccGroup: Record<'mccGroup', Record<string, MccGroup>> = { | ||
| mccGroup: { |
There was a problem hiding this comment.
@FitseTLT can help me by checking if we do the same when we update the MccGroup, my first thought is that we should create a const, but haven't looked much, can you please check?
There was a problem hiding this comment.
When we update mcc group we only update the category of a specific groupID as in here
App/src/libs/actions/Policy/Policy.ts
Lines 3661 to 3668 in 2af94ab
but I have now updated the category part to take the values from default workspace categories const 👍
|
@FitseTLT can you merge main please |
|
Done @allgandalf |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-24.at.6.20.53.PM.movAndroid: mWeb ChromeScreen.Recording.2025-02-24.at.6.24.16.PM.moviOS: NativeScreen.Recording.2025-02-24.at.6.29.02.PM.moviOS: mWeb SafariScreen.Recording.2025-02-24.at.6.30.02.PM.movMacOS: Chrome / SafariScreen.Recording.2025-02-24.at.6.08.00.PM.movMacOS: DesktopScreen.Recording.2025-02-24.at.6.12.27.PM.mov |
|
Hey @FitseTLT, this is looking great, the code is clean and achieves the expected result. Looking at your original proposal, seems we are missing a suggested test case:
Let's add a test case to check this optimistic data is being correctly set for |
Updated test |
MarioExpensify
left a comment
There was a problem hiding this comment.
Nice, moving forward!
|
✋ 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/MarioExpensify in version: 9.1.6-0 🚀
|
|
🚀 Deployed to staging by https://github.com/MarioExpensify in version: 9.1.6-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.6-1 🚀
|
Details
Fixed Issues
$ #55994
PROPOSAL: #55994 (comment)
Tests
Offline tests
Same as above
QA Steps
Same as above
PR 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(themeColors.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
a.wsp.mp4
Android: mWeb Chrome
aw.wsp.mp4
iOS: Native
ii.wsp.mp4
iOS: mWeb Safari
iw.wsp.mp4
MacOS: Chrome / Safari
w.wsp.mp4
MacOS: Desktop
d.wsp.mp4