-
Notifications
You must be signed in to change notification settings - Fork 59
Make add layer menus more consistent #681
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
Make add layer menus more consistent #681
Conversation
Integration tests report: appsharing.space |
please update snapshots |
I'm a bit confused. One of the update snapshots jobs failed, but I don't understand why it failed the way it did. The Lite integration tests are failing on a snapshot that doesn't exist ( |
please update snapshots |
The GIBS layer in the france hiking example seems to be pretty unreliable, and I don't think it fits very well with that example either. Let's remove it or replace it with a different layer? |
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 a lot!
I want to suggest to remove the commands that we were using for creating layers from the left side panel. Those commands were used for creating layers without creating an associated source, since now the source panel was removed we can probably simplify this too and remove those commands.
Any thoughts on the integration tests? |
Retriggering the CI as the failure looks to be related to tile loading on map |
Yeah this test has been unreliable since some days now due to tile loading issue. We can discard it for now, but ideally we would wait more before taking the screenshot, or use another test. |
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!! That's looks much better, and the code cleanup is much welcome
@martinRenou if you have thoughts about more areas that could use urgent cleanup, let's open issues. I love refactoring and deleting code ;) |
Deleting code is the best 😆 that's the best way to remove bugs |
Description
Resolves #655
The right-click menu in the layer panel's "Add Layer" submenu looks different than the "Add Layer" menu in the toolbar.
The toolbar also contains two dedicated "Add Layer" buttons that I've moved into the "Add Layer" menu.
I extracted the raster and vector layer submenus into functions so we can create the exact same sub-menus in both the layer panel right-click and toolbar contexts.
Checklist
Resolves #XXX
.Failing lint checks can be resolved with:
pre-commit run --all-files
jlpm run lint
📚 Documentation preview: https://jupytergis--681.org.readthedocs.build/en/681/
💡 JupyterLite preview: https://jupytergis--681.org.readthedocs.build/en/681/lite