fix: Categories & Tags - Row is not grayed out entirely when disabled offline. - #38443
Conversation
… offline. Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
@cubuspl42 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] |
|
Tags have already been fixed. @Krishna2323 you might want to update the PR title. |
|
@allroundexperts, do you have link which pr/commit fixed it? I don't think it has been fixed. |
|
@cubuspl42, do you prefer adding Edit: we can use pendingAction: value.pendingAction || Object.values(value.pendingFields ?? {}).length > 0 |
|
@allroundexperts, I think you misunderstood this issue, its about the tags/categories not being greyed out when updated. |
|
Ah gotcha. False ⏰ |
Uuhh, I'm... not sure. Are you saying you found a bug/undesired behavior in your solution? Or are you asking me to confirm whether the scenario is actually a bug? If you are sure that you found a bug/undesired behavior, fix it. It's easiest to discuss the code in the "Files changed" view, after it's actually written. If you're unsure about how to classify this scenario and ask for help in this aspect, please provide more specific reproduction steps, similarly as we do in the "Tests" steps. |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
sorry @cubuspl42, I asked this question in #38443 (comment), you can ignore. |
| src={Expensicons.ArrowRight} | ||
| fill={theme.icon} | ||
| /> | ||
| Object.values(policyTagList.tags || []).map((value) => { |
There was a problem hiding this comment.
I know we only update this function, but as we touch these lines, let's change the name value to tag or policyTag
Is this request done? |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Bump on the question 🙂 I just want to confirm whether what Vit asked for is already taken care of. |
|
@cubuspl42, sorry for delay, I'm currently looking at that, it seems like it has been fixed on the main. We can just move forward with what we currently have. I'm adding recordings. |
|
@cubuspl42, I'm facing a weird issue on android simulator, it always stays offline. Do you have any suggestions? I tried creating different versions/models. |
|
Cold booting sometimes helps, but if freshly created virtual devices are offline, then I'm not sure 🤔 |
|
@cubuspl42, thanks for looking into that, seems like there was an issue with the hotel's wifi, it got fixed when I connected to my mobile's wifi. |
|
@cubuspl42 recordings added. |
|
Is it expected that I can't open the category/tag details while the UI element is grayed out? Edit: Not expected. |
|
@cubuspl42, can you pls review if you have sometime, we don't need to make any further changes? Thanks |
Reviewer Checklist
Screenshots/VideosAndroid: Nativecategories-gray-out-android-compressed.mp4Android: mWeb Chromecategories-gray-out-android-web-compressed.mp4iOS: Nativecategories-gray-out-ios-compressed.mp4iOS: mWeb Safaricategories-gray-out-ios-web-compressed.mp4MacOS: Chrome / Safaricategories-gray-out-web-converted.mp4MacOS: 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. |

Details
Fixed Issues
$ #38262
PROPOSAL: #38262 (comment)
Tests
Enable categoryswitch.Enable tagswitch.Offline tests
Enable categoryswitch.Enable tagswitch.QA Steps
Enable categoryswitch.Enable tagswitch.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 and/or tagged@Expensify/designso 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_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4