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

Advanced search for comments #4238

Merged
merged 7 commits into from
Aug 21, 2019
Merged

Conversation

MichaelBuessemeyer
Copy link
Contributor

@MichaelBuessemeyer MichaelBuessemeyer commented Aug 16, 2019

I replaced the search in comments tab with the new advanced search. I also added the enter+shift shortcut to cycle backward through the results. Previously only the enter shortcut to cycle forward existed. As far as I can remember the enter+shift shortcut is common for all kind of search functionalities and therefore should be more or less discoverable.

URL of deployed dev instance (used for testing):

Steps to test:

  • Open a skeleton/hybrid tracing and create some trees with nodes.
  • Then open the comment tab and add comments to the nodes.
  • Then open up the search via the shortcut (shift+crtl+f) or/and via the button. Both should work out fine.
  • Then just use the search as any other search. Everything should work as expected. This also counts for the enter(select next) and shift+enter (select previous) shortcut.

Issues:


@MichaelBuessemeyer
Copy link
Contributor Author

on hold for #4225

onChange={evt =>
this.setState({ searchQuery: evt.target.value, currentPosition: null })
}
addonAfter={`${currentPosition + 1}/${numberOfAvailableOptions}`}
autoFocus
/>
<Tooltip title="Previous">
<Tooltip title="Previous (shift+enter)">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added the shortcut in brackets so that it is easier to find for users. @daniel-wer do you think this is too much?

Copy link
Member

Choose a reason for hiding this comment

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

I think it's very helpful as part of the tooltip :)

@MichaelBuessemeyer MichaelBuessemeyer marked this pull request as ready for review August 21, 2019 08:56
Copy link
Member

@daniel-wer daniel-wer left a comment

Choose a reason for hiding this comment

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

Awesome, works very well :)

onChange={evt =>
this.setState({ searchQuery: evt.target.value, currentPosition: null })
}
addonAfter={`${currentPosition + 1}/${numberOfAvailableOptions}`}
autoFocus
/>
<Tooltip title="Previous">
<Tooltip title="Previous (shift+enter)">
Copy link
Member

Choose a reason for hiding this comment

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

I think it's very helpful as part of the tooltip :)

@MichaelBuessemeyer MichaelBuessemeyer merged commit 1cbffc2 into master Aug 21, 2019
@philippotto philippotto deleted the advanced-search-for-comments branch June 14, 2022 11:36
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.

Add enhanced search also for comment tab
2 participants