-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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: disabled tag is not displayed in the list as selected #36994
Conversation
@DylanDylann 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-02-21.at.15.21.35-compressed.movAndroid: mWeb Chrometag-chro.mp4iOS: NativeScreen.Recording.2024-02-21.at.15.19.17-compressed.moviOS: mWeb Safaritag-saf.mp4MacOS: Chrome / Safaritag-web.mp4MacOS: Desktoptag-desk.mp4 |
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.
LGTM
@dukenv0307 @DylanDylann can you link to the issue or slack convo about the console errors? I asked if we have a running list of these here because it seems like we've accumulated some console errors and warnings |
}); | ||
const selectedTagOptions = selectedOptions.map((option) => ({ | ||
name: option.name, | ||
enabled: true, |
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.
Sorry if I'm missing something obvious, but why this change?
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.
This PR will make the selected tag display even if it is disabled. So we also need to allow the user to unselect the tag in this case by passing enabled: true
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.
That makes sense. Please add a comment above this line explaining that
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 just added comment, @DylanDylann please check again
It seems we also need to confirm whether we want to display selected in the first position. Asking here |
Thanks for your remainder. Currently, we get this console error when editing category or tag This console error happens on A similar console error is created here but the GH issue is closed because we can't reproduce it anymore. |
@dukenv0307 It seems we need to update our PR as expected here. But let's wait design team to make a final decision |
No, that's fine, thanks for pointing it out, as well as the other issue |
@dukenv0307 what do you mean specifically, moving the selected item to the top if there's more than 9 on the list? Won't that happen as part of that issue you linked? I'll add the design label just in case, since I thought it could be a good idea to make the selected (and disabled) tag, look disabled |
Do you mean that we shouldn't allow the user to unselect the selected tag (and disabled)? (this is the same issue with category) IMO, I think we still allow the user to unselect the selected tag (and disabled). The only issue that needs confirmation is the position of the selected tag and we are discussing here If you agree, I think we don't need to add Design Label here |
I agree with you, I was only suggesting we make it look disabled, but we allow users to deselect them. I'm happy with the way things look. If design has any suggestions, they can add them here |
}); | ||
const selectedTagOptions = selectedOptions.map((option) => ({ | ||
name: option.name, | ||
enabled: true, |
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.
That makes sense. Please add a comment above this line explaining that
Confirmed here. @dukenv0307 Please update our PR as this confirmation |
There are some new updates here, @dukenv0307 Let's wait until we decide on the final expectation |
@DylanDylann I think we tackle that separately and limit the scope of this PR to displaying the selected disabled tag |
✋ 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/cead22 in version: 1.4.44-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
Details
Fixed Issues
$ #35909
PROPOSAL: #35909 (comment)
Tests
Precondition: Employee made an IOU request with a tag in WS chat. Tag is disabled after that by WS admin in OD.
Offline tests
QA Steps
Precondition: Employee made an IOU request with a tag in WS chat. Tag is disabled after that by WS admin in OD.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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 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.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov