-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Implement Workspaces GUI #15946
Implement Workspaces GUI #15946
Conversation
Fix sidebars and commands missing await Add the menus and sidebars schema Fixup integrity Fix yarn lock Fix margin around close buttons in sidebar
Thanks for making a pull request to jupyterlab! |
workspace from file, adding workspaces by command, and context menu. Fix minor issue with docs formatting/linking.
@krassowski Thanks for your work so far on this! Please let me know when you'd like some feedback on it. |
7e5d4f6
to
505e5c7
Compare
Wait for launcher to avoid flaky snapshot Add snapshot for sidebar
Add snapshot for workspaces submenu
505e5c7
to
5dc0a2e
Compare
Note to reviewers: failures of |
docs/source/user/workspaces.rst
Outdated
|
||
The `metadata` must be a mapping with an `id` | ||
key that has the same value as the ID of the workspace. This should also be the relative URL path to access the workspace, | ||
like `/lab/workspaces/foo`. Additionally, `metadata` may contain `created` and `last_modified` fields with date and time creation and most recent modification, respectively. The date and time are encoded using ISO 8601 format. |
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.
Done in 8134d1f.
galata/test/jupyterlab/menus.test.ts
Outdated
@@ -7,6 +7,7 @@ import type { ISettingRegistry } from '@jupyterlab/settingregistry'; | |||
const menuPaths = [ | |||
'File', | |||
'File>New', | |||
'File>Workspaces…', |
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.
Done in 2872d00.
Co-authored-by: Jason Weill <93281816+JasonWeill@users.noreply.github.com>
Thank you for the review @JasonWeill!
Done in 2872d00. What I was trying to do was being consistent with "Save and Export Notebook As..." just above which does have an ellipsis. Do you think that should be changed too (if so, let's open an issue to track it)?
Done in 19f3ad8.
Done in f15ed80.
This wording was taken from mockups in #6944. While I agree that "deleting a URL" sounds odd, I do not think that "URLs that refer to this workspace will go to a different workspace" is accurate (it will not - it will either show an error dialog that workspace does not exist and load the default workspace, or create a new one; I have no idea why it sometimes does one or the other). I suggest to discuss this in #6944 and we can adjust it after this PR is merged (as it staying open has a high cost due to merge conflicts).
You can resize them by dragging. Changes to the logic for managing sizes of the panels is out of scope for this PR, but if you want to suggest a better behaviour I would advise to open a new issue.
This comes from the jupyterlab/packages/running/src/index.tsx Lines 356 to 378 in a1166c1
Yes, because they all generated by
Done in c257f6d. |
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.
Thanks for opening related issues! I think we're good to proceed now.
bot please update snapshots |
Documentation snapshots updated. |
Galata snapshots updated. |
Note to self: one docs test needs work before merging:
|
I'm planning to merge and cut a new pre-release early on Monday. |
References
Closes #6944
Code changes
workspaces
andworkspaces-extension
packagesapputils-extension:workspaces
(which retains only the mime extension for opening.jupyter-workspace
files on click)workspaces-extension:sidebar
plugin which populates therunning
sidebar with the workspaces as per mockups in Create a workspaces GUI #6944workspaces-extension:menu
plugin which populates a "Workspaces..." submenu in the main "File" menu; the existing "Save Workspace" and "Save Workspace As..." menu entries are moved to this new sub-menu.workspaces-extension:commands
plugin which implements all the new commands and adds them to the command paletteOther (less relevant) code changes
saveAs
logic by usingInputDialog.getText()
(which gives us pre-selection and placeholder)defaultButton
on input dialogs; this is just passed to dialog which supports thedefaultButton
alreadyUser-facing changes
Backwards-incompatible changes
None