Skip to content

Add a visual indicator when layers aren't successfully rendered #462

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Meriem-BenIsmail
Copy link
Collaborator

@Meriem-BenIsmail Meriem-BenIsmail commented Feb 12, 2025

Description

Fixes #415.
Also this PR adds error handling when updating the source.

gis.webm

Checklist

  • PR has a descriptive title and content.
  • PR description contains references to any issues the PR resolves, e.g. Resolves #XXX.
  • PR has one of the labels: documentation, bug, enhancement, feature, maintenance
  • Checks are passing.
    Failing lint checks can be resolved with:
    • pre-commit run --all-files
    • jlpm run lint

📚 Documentation preview: https://jupytergis--462.org.readthedocs.build/en/462/
💡 JupyterLite preview: https://jupytergis--462.org.readthedocs.build/en/462/lite

@Meriem-BenIsmail Meriem-BenIsmail added the enhancement New feature or request label Feb 12, 2025
Copy link
Contributor

Binder 👈 Launch a Binder on branch Meriem-BenIsmail/jupytergis/error-visual-indicator

Copy link
Contributor

github-actions bot commented Feb 12, 2025

Integration tests report: appsharing.space

@Meriem-BenIsmail Meriem-BenIsmail marked this pull request as ready for review February 12, 2025 14:36
Copy link
Member

@mfisher87 mfisher87 left a comment

Choose a reason for hiding this comment

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

Nice work :) A couple of thoughts, hopefully not too onerous!

@@ -410,6 +410,7 @@ function LayerComponent(props: ILayerProps): JSX.Element {
onDragOver={Private.onDragOver}
onDragEnd={Private.onDragEnd}
data-id={layerId}
style={{ textDecoration: layer.failed ? 'line-through' : 'none' }}
Copy link
Member

@mfisher87 mfisher87 Feb 12, 2025

Choose a reason for hiding this comment

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

What do you think about displaying a warning icon ⚠️ and when you hover it you can see the error cause(s)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a visual indicator when layers aren't rendered
3 participants