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
Don't sort context menu items by selector #10666
Conversation
Thanks for making a pull request to JupyterLab! To try out this branch on binder, follow this link: |
Lumino release done |
Nice! I guess we could either:
jupyterlab/packages/notebook-extension/src/index.ts Lines 1218 to 1232 in 7c228f1
|
12fc78b
to
2882245
Compare
Thanks a lot for the review @krassowski I update the label to display |
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.
LGTM, thank you!
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.
LGTM.
Small note (no action requested): there is a slight inconsistency in how creating the file enters the edit mode on the listing item but creating the notebook does not. It actually makes sense given that for notebook we need to choose kernel first because "Choose kernel" modal blocks user interactions. Maybe we could have New notebook
→ IPython
/Xeus
/R
/Julia
and then enter the edit mode immediately, but I am not sure if this would be better.
This may be tricky as the user may have multiple environments and so multiple choices even for a single language. |
2882245
to
f716d25
Compare
Update lumino Remove eslint warning Upgrade lumino Reorder context items Upload new ui reference screenshots Fix UI tests Correct console context menu Update label for new notebook on context menu
f716d25
to
e41cff6
Compare
@meeseeksdev please backport to 3.4.x |
@meeseeksdev please backport to 3.4.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
* Backport PR #10666: Don't sort context menu items by selector * Fix UI tests
References
Follow-up of jupyterlab/lumino#203 and jupyterlab/lumino#206
on top of the context menuat the bottom (they will be at the same position as before)The two later tasks will make the context menu more meaningful for JupyterLab as the primary document type is the notebooks and those documents cannot be empty plain text files. The markdown can be added by the
New file
entry while renaming the extension.Code changes
The context menu items will only be sorted by rank.
User-facing changes
Items order in the context menu are expected to change.
context menu on file (Before / After)
context menu on folder (Before / After)
context menu on empty filebrowser space (After)
Backwards-incompatible changes
Yes