Skip to content

Conversation

HaudinFlorence
Copy link
Member

@HaudinFlorence HaudinFlorence commented Nov 7, 2023

Add logics to display selected drives to the filebrowser.

Copy link

github-actions bot commented Nov 7, 2023

Binder 👈 Launch a Binder on branch HaudinFlorence/jupyter-drives/display_selected_drives_in_filebrowser

@HaudinFlorence HaudinFlorence force-pushed the display_selected_drives_in_filebrowser branch from 8d188ec to 3e335b4 Compare November 7, 2023 15:12
@HaudinFlorence HaudinFlorence added the feature Add a new feature label Nov 7, 2023
…with the default file browser and the added drive one.
@HaudinFlorence HaudinFlorence force-pushed the display_selected_drives_in_filebrowser branch 4 times, most recently from 0949308 to 519065a Compare November 9, 2023 16:57
…ddDrivesPlugin and moved hard coded inputs mimicking backend side inputs , outside from the plugins and methods.
@HaudinFlorence HaudinFlorence force-pushed the display_selected_drives_in_filebrowser branch from 519065a to 762b483 Compare November 10, 2023 08:29
src/index.ts Outdated
toolbarRegistry,
settingRegistry,
FILE_BROWSER_FACTORY,
FILE_BROWSER_PLUGIN_ID,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should match the id of this plugin. I strongly advice you to use that constant as the id to avoid mistake here.

Copy link
Member Author

@HaudinFlorence HaudinFlorence Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be fair I don't understand this point because it seems that FILE_BROWSER_PLUGIN_ID is refering to a plugin ID but then if a plugin name is given there, the following error message appears in the console:

jlab_core.96e0941fd34af0e81382.js?v=96e0941fd34af0e81382:1 Failed to load toolbar items for factory FileBrowser from @jupyter/drives:add-drives Error: Schema not found: /home/florence/micromamba/envs/new-jupyter-drives-dev/share/jupyter/lab/schemas/@jupyter/drives/add-drives.json
    at Function.create (jlab_core.96e0941fd34af0e81382.js?v=96e0941fd34af0e81382:1:1272526)
    at async a.fetch

It is a settings json file in the schemadirectory that seems expected

src/index.ts Outdated
if (settingRegistry) {
setToolbar(
driveBrowser,
createToolbarFactory(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this to work you need to add a property toolbar in the setting JSON schema file like for the default browser:
https://github.com/jupyterlab/jupyterlab/blob/1c1058cc4933a4c67d10bc46927e59365aff9aaa/packages/filebrowser-extension/schema/widget.json#L55

@HaudinFlorence HaudinFlorence force-pushed the display_selected_drives_in_filebrowser branch 4 times, most recently from 53300ba to 3dc1c2b Compare November 14, 2023 16:36
Add logics to add the content of the drive to the filebrowser when adding a drive in the dialog.
@HaudinFlorence HaudinFlorence force-pushed the display_selected_drives_in_filebrowser branch 3 times, most recently from 19db95c to 41e8774 Compare November 16, 2023 08:15
…nterface, when picking a drive by its name in the list of available drives.

Add a toolbar to all the drive filebrowsers.
@HaudinFlorence HaudinFlorence force-pushed the display_selected_drives_in_filebrowser branch from 41e8774 to becd51b Compare November 16, 2023 08:20
@HaudinFlorence HaudinFlorence force-pushed the display_selected_drives_in_filebrowser branch from 269613b to 60fb2b5 Compare November 20, 2023 11:11
@HaudinFlorence HaudinFlorence force-pushed the display_selected_drives_in_filebrowser branch from a1fa360 to 5cb95bc Compare November 28, 2023 17:28
Create a BreadCrumbsLayout to enable to have the breadcrumbs inside the AccordionPanel title section
@HaudinFlorence HaudinFlorence force-pushed the display_selected_drives_in_filebrowser branch from 5cb95bc to 2e46f8a Compare November 28, 2023 17:31
…multidrivesbrowser.ts, dirlisting.ts -> drivelisting.ts. Restore in index.ts a proper logics to add the content of an added driveBrowser to the multidrives browser when a drive is selected and added in the dialog.
@HaudinFlorence HaudinFlorence force-pushed the display_selected_drives_in_filebrowser branch from c2f1eeb to 60c8eec Compare November 30, 2023 14:56
@DenisaCG
Copy link
Member

Closing this as it is outdated. Thanks for the work!

@DenisaCG DenisaCG closed this May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Add a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants