fix selected parent category is not displayed as selected#37805
Conversation
|
@hoangzinh 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] |
| shouldShow: true, | ||
| indexOffset, | ||
| data: getCategoryOptionTree(filteredCategories), | ||
| data: getCategoryOptionTree(filteredCategories, false, selectedOptionNames), |
There was a problem hiding this comment.
@dukenv0307 should we update other places calling to this method as well?
There was a problem hiding this comment.
Can you point out any similar cases that we need to fix? I am worried that adding the change to other places can leads to the regression
There was a problem hiding this comment.
Sure, these are several cases:
Case 1: Search a category
App/src/libs/OptionsListUtils.ts
Lines 984 to 996 in 79d6cda
Case 2: When there are no categories
App/src/libs/OptionsListUtils.ts
Lines 972 to 982 in 79d6cda
There was a problem hiding this comment.
- In case 1: Search a category
It will be handled in #37479
- In case 2: When there are no categories:
I cannot reproduce this case because, if there is no category, the category picker screen will display as "Hmm... it's not here"
|
@dukenv0307 it looks like we miss Android native recording |
|
@hoangzinh I updated android native video |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-03-11.at.22.18.47.android.movMacOS: Chrome / SafariScreen.Recording.2024-03-11.at.21.59.56.web.mov |
|
@blimpich looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
Author checklist was slightly off, not an emergency. |
|
🚀 Deployed to staging by https://github.com/blimpich in version: 1.4.51-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.51-3 🚀
|




Details
Fixed Issues
$ #37326
PROPOSAL: #37326 (comment)
Tests
Precondition:
Test
Test: Test 1
Test: Test 2
Offline tests
QA Steps
Precondition:
Test
Test: Test 1
Test: Test 2
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.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
Screencast.from.07-03-2024.06.46.34.webm
Android: mWeb Chrome
Screencast.from.06-03-2024.07.16.25.webm
iOS: Native
Screencast.from.06-03-2024.07.23.08.webm
iOS: mWeb Safari
Screencast.from.06-03-2024.07.11.45.webm
MacOS: Chrome / Safari
Screencast.from.06-03-2024.07.02.55.webm
MacOS: Desktop
Screencast.from.06-03-2024.07.15.04.webm