-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Keyboard shortcuts and fuzzy search #141
Conversation
Okay. This is super. |
Shall we keep the current filter box as it is. |
@@ -194,4 +217,5 @@ StorybookControls.propTypes = { | |||
selectedStory: React.PropTypes.string, | |||
onKind: React.PropTypes.func, | |||
onStory: React.PropTypes.func, | |||
syncedStore: React.PropTypes.object, |
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.
Hey, is there anyway we can use a function rather not passing the syncedStore.
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.
Yes , we can. will do it.
@mnmtanish Could you go on this as well. |
@A few ideas:
I think, we can break this PR in multiple and then we can easily review this and pull into core. What do you think of dividing this PR into three:
Then we can review individual components and take them in quicker. @ritz078 What do you think? |
I will definitely add Edit : I am removing the full screen part from this PR. |
There's no point in keeping a separate search box which can't search through stories. The two search boxes will differ in behaviour and that's not good. Even the editors don't have separate search bars because on small screens it takes considerable space. But I may be wrong. |
Okay. Let's remove other shortcuts from this as well. Having the filter box is pretty important. Here's why: We have a lot of stories (and a lot of kinds) in one of our app. |
I have already fixed all the other shortcuts so why remove them now ? |
Ah okay. Then fine. |
You can even search for a kind and the results of that kind will come at a top with the name of the kind written to the right. Eventually, you land at a story anyways. Till now we were landing at the first story by default. There's nothing like a separate page for kind. |
Yes. true. Sometimes it's not just a single kind but some similar. |
Cool. I will restore the filter . |
Let's keep the filter as it is. |
Ha ha. You reply faster. |
A suggestion for future : We can keep both kind and story filter. If you add a prefix like |
@ritz078 That's good. |
@arunoda have a look now. |
Cool. Will do a review tommorow morning for sure. |
Okay. This looks great.
|
If only CMD+SHIFT+B is not working then maybe some other software that is open uses that shortcut. The solution will be to change the shortcut but anyways no shortcut is safe. Which browser and OS are you using ? |
I'm using Chrome on Mac. |
I have checked and its working fine on chrome. Definitely, some other app is using that shortcut on app level. I can change the shortcut but that may fail in someone else's computer if that is being used by some other software. |
That's fine. Let's keep it like this for now. |
I'll take this. |
Published this as: : |
Hi @ritz078, I re-wrote the whole storybook again for a modular release. (did with `v1.20.0) I'm planning to do it by next-week. If you've some time I'm looking for your help. |
No problem. I am developing a separate fuzzy search component named react-fuzzy-search . I will integrate it once the tests for that are completed. |
@ritz078 that'sweet. |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit ab52c45. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
Need to add some tests.
Current key bindings:
Ctrl + Shift + O
=> Open search boxCtrl + Shift + L
=> Toggle left panelCtrl + Shift + B
=> Toggle bottom panelCtrl + Shift + F
=> Toggle Full screen viewCloses #59 and #121