Skip to content
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

Fix UI problems when some of the package versions mismatch #7182

Merged

Conversation

telamonian
Copy link
Member

@telamonian telamonian commented Sep 10, 2019

References

fixes #7181
and a whole bunch of other recent issues

Code changes

The latest version of eg ui-components relies on recent changes made across the codebase. There's currently an issue where a 1.0.x installation of Jlab (up to 1.0.7) will pull in the newest version of a package under certain conditions (eg install an extension and then rebuild). This in turn was causing various problems with the appearance of Jlab. This PR fixes three such appearance bugs, listed in order of descending severity:

  • The latest version of ui-components relies on changes made to the .svg loader configuration in webpack.config.js. This PR adds a shim that allows the new icon stuff in ui-components to work properly with .svg files loaded the old way.
  • The latest version of apputils relies on changes made to the schema in themes.json in the latest version of apputils-extension. The PR adds an explicit check for those changes, and graceful handling if they aren't there.
  • The PR improves the appearance of filebrowser listing icons in the case where the new icon handling machinery fails (for whatever reason) and the listing falls back to the old icon handling behavior.

User-facing changes

No more appearance glitches for v1.0.0-1.0.7

Backwards-incompatible changes

@jupyterlab-dev-mode
Copy link

Thanks for making a pull request to JupyterLab!

To try out this branch on binder, follow this link: Binder

@telamonian telamonian changed the title Fix appearance version mismatch Fix UI problems when some of the package versions mismatch Sep 10, 2019
@telamonian telamonian added this to the 1.2 milestone Sep 10, 2019
@jasongrout jasongrout self-requested a review September 10, 2019 05:23
@jasongrout
Copy link
Contributor

This looks reasonable to me, and running it in dev mode works too. @telamonian - do you think it's ready to merge?

@telamonian
Copy link
Member Author

@jasongrout Yes. I have thoroughly tested it, both in dev mode and against a broken v.1.0.7 install (which involved some painstaking copying over of built .js files).

@jasongrout jasongrout merged commit 513899e into jupyterlab:master Sep 10, 2019
@jasongrout
Copy link
Contributor

Thanks!

@jasongrout
Copy link
Contributor

@meeseeksdev backport to 1.1.x

meeseeksmachine pushed a commit to meeseeksmachine/jupyterlab that referenced this pull request Sep 10, 2019
jasongrout added a commit that referenced this pull request Sep 10, 2019
…2-on-1.1.x

Backport PR #7182 on branch 1.1.x (Fix UI problems when some of the package versions mismatch)
@jasongrout
Copy link
Contributor

Fixes #7158 as well

@lock lock bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Oct 10, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug pkg:themes pkg:ui-components status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JupyterLab 1.1.x backwards incompatibility
2 participants