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

Add loading indicator and error handling to pages #71

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

benjeffery
Copy link
Member

@benjeffery benjeffery commented Aug 29, 2023

Adds a spinner to indicate that the page is being prepared, and display an error with stacktrace if the page code errors.
Screenshot from 2023-08-29 23-17-16

@benjeffery benjeffery changed the title Add loading indicator to pages Add loading indicator and error handling to pages Aug 29, 2023
@jeromekelleher
Copy link
Member

What do you think @savitakartik ?

@savitakartik
Copy link
Collaborator

Looks good to me.

I love both features. A really minor thing I find with the loading indicator is that it doesn't show up for the very first page you click on. Works fine every other time. The error display is also really nice, makes it really easy to debug.

Thanks so much, @benjeffery !

@savitakartik
Copy link
Collaborator

I'm not sure I understand why the linting check failed though. Seems like formatting changes, so not sure why they didn't get automatically fixed?

@benjeffery
Copy link
Member Author

I'm not sure I understand why the linting check failed though. Seems like formatting changes, so not sure why they didn't get automatically fixed?

My bad, didn't install pre-commit locally!

@jeromekelleher jeromekelleher merged commit 12a46bb into tskit-dev:main Aug 30, 2023
3 checks passed
@benjeffery benjeffery deleted the progress branch August 30, 2023 11:29
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.

3 participants