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

Feature: history search#572 #577

Merged
merged 6 commits into from
Oct 12, 2022

Conversation

gpsinghsandhu
Copy link
Contributor

@gpsinghsandhu gpsinghsandhu commented Sep 21, 2022

A very simple implementation of search functionality in history. Search is implemented client-side. This currently searches only on 'user' and 'script' for the given search text. Suggestions are welcome.

Also fixed vue warning regarding mutating props. See commit - cdf8352

@bugy Need input on where to add this in documentation.

Note: I did not use the current 'SearchPanel' component, since it seemed very specific to the script search.
Screenshot 2022-10-06 at 12 28 24 PM
Screenshot 2022-10-06 at 12 28 36 PM

Copy link
Owner

@bugy bugy left a comment

Choose a reason for hiding this comment

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

Hi @gpsinghsandhu thanks for your PR! And sorry for super slow response :(
In general, the idea is good, but I would like to have it to be more Vue/reactive style, with having computed properties, instead of data+watch.

Copy link
Owner

@bugy bugy left a comment

Choose a reason for hiding this comment

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

Hi, I finally found some time and checked the behaviour locally, it would be great to improve the button behaviour and use default materialize styles for the input field :)

},

searchIconClickHandler() {
if (this.isClearSearchButton) {
Copy link
Owner

Choose a reason for hiding this comment

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

I would suggest to check searchText instead

Also, if searchText is empty, probably we could focus the field, when the button is clicked

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

I believe we should focus the field in any case (whether clearing or clicking search button).

Copy link
Owner

@bugy bugy left a comment

Choose a reason for hiding this comment

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

Thanks!

@bugy bugy added this to the 1.18.0 milestone Oct 12, 2022
@bugy bugy merged commit b6907d8 into bugy:master Oct 12, 2022
@gpsinghsandhu gpsinghsandhu mentioned this pull request Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants