-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fix the handling of the file browser configuration #16870
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
Conversation
|
Thanks for making a pull request to jupyterlab! |
|
Adding to |
|
On a local install from Switching to this branch: So moving the logic to a separate plugin seems to introduce a small delay that has some effect on the final columns widths, which also seems to be reflected in the UI tests. Maybe it's then still fine to update the reference snapshots, as the differences are quite minor in the end. |
|
bot please update snapshots |
|
Documentation snapshots updated. |
a263665 to
fe794f1
Compare
|
bot please update snapshots |
|
Documentation snapshots updated. |
|
Galata snapshots updated. |
|
Looks like CI is now passing ✔️ (except for If we are fine with the minor updates to the snapshots, this should be ready to go. |
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
krassowski
left a comment
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.
Thank you @jtpio!
* Fix setting of the file browser defaults * Move handling of the file browser settings to a separate plugin * add docstring * rename plugin * add description * handle no settingRegistry * fix settings * keep same logic as before * keep previous assignment * Update Playwright Snapshots * Update Playwright Snapshots * revert partial snapshot update * update example snapshots * more snapshot update * simplify * Update packages/filebrowser-extension/src/index.ts Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>



References
Fixes #14623
Code changes
Move the handling of the file browser settings to a separate plugin, so it's easier to change the settings and not have them collide in downstream applications such as Notebook 7.
User-facing changes
None for JupyterLab users.
For Notebook users, using jupyter/notebook#7481, the file browser will show different defaults than JupyterLab (checkboxes, file size column, single click navigation), without having to modify the settings and have these defaults be reflected in JupyterLab too:
filebrowser-settings-notebook-lab.webm
Backwards-incompatible changes
None