-
Notifications
You must be signed in to change notification settings - Fork 26
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
Conversation
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)"> |
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.
I added the shortcut in brackets so that it is easier to find for users. @daniel-wer do you think this is too much?
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.
I think it's very helpful as part of the tooltip :)
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.
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)"> |
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.
I think it's very helpful as part of the tooltip :)
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 theenter
shortcut to cycle forward existed. As far as I can remember theenter+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:
shift+crtl+f
) or/and via the button. Both should work out fine.enter
(select next) andshift+enter
(select previous) shortcut.Issues:
[ ] Updated migration guide if applicable[ ] Updated documentation if applicable[ ] Adapted wk-connect if datastore API changes[ ] Needs datastore update after deployment