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

Show feature info panel chart error inline #7133

Closed
wants to merge 4 commits into from
Closed

Conversation

na9da
Copy link
Collaborator

@na9da na9da commented May 3, 2024

What this PR does

When feature info panel chart loading fails, show an inline error, instead of a popup.

Current behaviour is to pop an error message to the user, but the load function being connected to the react life-cycle methods, can be called several times. This results in as many pop ups to the user. Also if every feature has an error, then user will have to dismiss the errors for each one of them. I think a better solution might be to show the error inline instead of popping it to the user.

eg:
image

Test me

Compare behaviour in before and after links.

Before:
Test link for main branch.
clicking anywhere on the dataset resulted in the error popup being shown 4-5 times

After:
Test link for this branch.
no error popups are shown.

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

na9da added 4 commits May 3, 2024 16:14
Current behaviour is to pop an error message to the user, but when
the load function being connected to the react life-cycle methods, it
can be called several times. This results in as many pop ups thrown
to the user. We could appropriately handle this if we re-write the
component as a functional component.

However, I think a better solution might be to show the error message
inline instead of popping it to the user.
@na9da
Copy link
Collaborator Author

na9da commented May 31, 2024

Closing, fixed in #7156 as part of another refactor effort.

@na9da na9da closed this May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant