Skip to content
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

Merged
merged 5 commits into from
Sep 27, 2021
Merged

Conversation

pep1032314
Copy link
Collaborator

Show tags in the query next to the search bar.
Remove tag from query when the "X" button is pressed.

close #87

@pep1032314 pep1032314 added the enhancement New feature or request label Sep 24, 2021
@pep1032314 pep1032314 added this to the Sprint 2 milestone Sep 24, 2021
@pep1032314 pep1032314 self-assigned this Sep 24, 2021
@pep1032314 pep1032314 added this to Sprint 2 in Product backlog via automation Sep 24, 2021
@pep1032314 pep1032314 added this to In progress in Sprint 2 via automation Sep 24, 2021
@pep1032314
Copy link
Collaborator Author

image
^ example

Copy link
Collaborator

@waltervan00 waltervan00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
While the presentation may cause the search bar to shrink, it may be resolved in styling. Functionality of presenting Tags in the bar is satisfied.

Copy link
Collaborator

@oldbugo oldbugo left a 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?

@pep1032314
Copy link
Collaborator Author

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

Copy link
Collaborator

@oldbugo oldbugo left a 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.

Sprint 2 automation moved this from In progress to In review Sep 25, 2021
Copy link
Collaborator

@shangzhel shangzhel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code style changes.


const clearTagButton = () => {
if (context.tagQuery.length === 0) {
return (<></>);
Copy link
Collaborator

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.

Suggested change
return (<></>);
return null;

@@ -14,11 +47,30 @@ export const SearchBox: React.VoidFunctionComponent = () => {
});
};

const removeTagFromQuery = (tag:ITag) => (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace.

Suggested change
const removeTagFromQuery = (tag:ITag) => (
const removeTagFromQuery = (tag: ITag) => (

@pep1032314
Copy link
Collaborator Author

Code style changes.
Thanks for the review, fixed

Copy link
Owner

@chomosuke chomosuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Collaborator

@shangzhel shangzhel left a 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.

@pep1032314 pep1032314 merged commit 9838522 into master Sep 27, 2021
Sprint 2 automation moved this from In review to Done Sep 27, 2021
Product backlog automation moved this from Sprint 2 to Sprint 2 Done Sep 27, 2021
@pep1032314 pep1032314 deleted the Pep/search-box-tag-query-support branch September 27, 2021 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Product backlog
  
Sprint 2 Done
Sprint 2
  
Done
Development

Successfully merging this pull request may close these issues.

Modify search box to present tag queries
5 participants