-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Add menu to nteract-on-jupyter #2420
Conversation
- adds a dependency to rc-menu* - hooks up some cell-level actions - tests that user clicks trigger expected actions - adds snapshots to lock down structure/style *note that we lock this dependency down because we copy/alter css
// We export this for testing purposes. | ||
export { PureNotebookMenu }; | ||
|
||
export default NotebookMenu; |
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.
This is beautifully organized.
// to alter how the actions work to just target the currently focused cell. | ||
// That said, we *may* not have a great way of getting around this as we'll need | ||
// information about the current document to decide which menu items are | ||
// available... |
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.
Yeah that's a tricky one. We probably need to work with the focused cell and if we need to create more actions (like the "run all").
I'm confused as to why that's failing on Appveyor, I'm going to go ahead and merge it, clear the cache on appveyor and figure out the build setup. |
Howdy! I'm 🔓🤖! In order to keep information timely (based on the most recent release), we want all activity to be added to either new issues or open issues and PRs. In service to that goal, I, the lock bot close inactive closed issues when they haven't had activity in 120 days. Feel free to open a new issue for related bugs and link to relevant comments from this thread. |
🎉 first pass at some minimal menu functionality
I went with code-completeness > feature completeness. I.e., there's much more to flesh out here, but I tried my best to get this code right on the first pass so that we can easily extend.
TODO:
notebook-menu
presentation component (i made it a dir withindex.js
so it matches other components there)