-
Notifications
You must be signed in to change notification settings - Fork 0
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
Pep/search box tag query support #107
Conversation
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.
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.
Seems to work fine functional wise. This is a request outside of the issue itself, but do you think you can make a button to clear all the input fields?
yep doing it now |
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.
Nice, thanks for adding the clear tag feature.
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.
Code style changes.
web/src/components/SearchBox.tsx
Outdated
|
||
const clearTagButton = () => { | ||
if (context.tagQuery.length === 0) { | ||
return (<></>); |
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.
Return null
if there is no element.
return (<></>); | |
return null; |
web/src/components/SearchBox.tsx
Outdated
@@ -14,11 +47,30 @@ export const SearchBox: React.VoidFunctionComponent = () => { | |||
}); | |||
}; | |||
|
|||
const removeTagFromQuery = (tag:ITag) => ( |
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.
Whitespace.
const removeTagFromQuery = (tag:ITag) => ( | |
const removeTagFromQuery = (tag: ITag) => ( |
|
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 good to me.
Show tags in the query next to the search bar.
Remove tag from query when the "X" button is pressed.
close #87