-
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
#26126: Tag picker sections #27765
#26126: Tag picker sections #27765
Conversation
…g_picker_sections
…g_picker_sections
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.
Left a few comments.
tests/unit/OptionsListUtilsTest.js
Outdated
keyForList: 'Engineering', | ||
searchText: 'Engineering', | ||
tooltipText: 'Engineering', | ||
isDisabled: 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.
Can you confirm that we need to show disabled tags if they they are not parents? Because, for categories, we should hide disabled ones.
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.
What do you mean parents? If you mean what you have in categories like 'Food > Meat', there isn't that in tags
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.
Good. It is much easier 😅
But, anyway, should the app show disabled tags or hide?
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.
Recent commits to the branch are not showing here, it looks like a GH problem. |
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!
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.
Looks solid! Just one minor comment :)
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.
Added two tiny little comments - in general code looks good.
Reviewer Checklist
Screenshots/VideosWeb27765-web.movMobile Web - Chrome27765-web-chrome.movMobile Web - Safari27765-web-safari.movDesktop27765-desktop.moviOSScreen.Recording.2023-09-20.at.13.13.56.movAndroid27765-android.mov |
Updated! |
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.
Reviewed, tested and approved.
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.
Looking great just a few small fixes!
@amyevans Updated! |
✋ 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/amyevans in version: 1.3.73-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.73-1 🚀
|
🚀 Deployed to staging by https://github.com/amyevans in version: 1.3.74-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.74-3 🚀
|
const initialFocusedIndex = useMemo(() => { | ||
if (isTagsCountBelowThreshold && selectedOptions.length > 0) { | ||
return _.chain(policyTagList) | ||
.values() | ||
.findIndex((policyTag) => policyTag.name === selectedOptions[0].name, true) | ||
.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.
Disabled tags should have been filtered out. It caused this issue: #30465
Details
2nd PR for wave 6: tags. Contains:
This requires using staging server and add policy tags to a policy. I asked in the wave 6 chat, but this can also be mocked.
Mock data
AuthScreens
add the following code to thecomponentDidMount
:Fixed Issues
$ #26126
Tests
NOTE: use the mock setup mentioned above and/or use staging server.
Offline tests
Same as above
QA Steps
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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
w_t.mp4
Mobile Web - Chrome
wc_t.mp4
Mobile Web - Safari
ws_t.mp4
Desktop
desk_t.mp4
iOS
ios_t.mp4
Android
android_t.mp4