-
Notifications
You must be signed in to change notification settings - Fork 3k
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
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.
Thanks!
✋ 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 category
switch.Enable tag
switch.Offline tests
Enable category
switch.Enable tag
switch.QA Steps
Enable category
switch.Enable tag
switch.PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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_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