-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
Change request advanced search and filter #4544
Conversation
…-request-advanced-search-and-filter
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@@ -9,12 +11,15 @@ const StyledContainer = styled('div')(({ theme }) => ({ | |||
})); | |||
|
|||
export const AvatarCell = ({ value }: any) => { | |||
const { searchQuery } = useSearchHighlightContext(); |
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 highlighter to all components that were missing it
suggestedOption: | ||
filterOptions[randomRow] ?? `example-${column.filterName}`, | ||
options[randomRow] ?? `example-${column.filterName}`, |
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.
we want to suggest from the valid options after pre-processing. E.g. with quotes, with split new line
const options = [...new Set(filterOptions)] | ||
.filter(Boolean) | ||
.flatMap(item => item.split('\n')) | ||
.filter(item => !item.includes('"') && !item.includes("'")) |
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.
if your field value is using quotes (corner case) we filter it out to not mess with the search quotes
@@ -61,7 +61,7 @@ export const SearchDescription: VFC<ISearchDescriptionProps> = ({ | |||
{filter.values.join(',')} | |||
</StyledCode>{' '} | |||
in {filter.header}. Options:{' '} | |||
{filter.options.join(', ')} | |||
{filter.options.slice(0, 10).join(', ')} |
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.
we don't want to present more than 10 options. E.g. for feature names in change request list
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
About the changes
Filtering and searching change requests.
filtering options:
searching options:
Important files
Discussion points