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 simple error page - fixes #121 #191

Merged
merged 1 commit into from
Mar 22, 2024
Merged

Add simple error page - fixes #121 #191

merged 1 commit into from
Mar 22, 2024

Conversation

chrisbenincasa
Copy link
Owner

@chrisbenincasa chrisbenincasa commented Mar 20, 2024

Fixes #121

Adds a simple error page (screenshot below) at the root router level. Employs a mini-hack to make the error page appear in the overall Layout. The downside to this hack, which is probably something we should think about, is that if the error occurs in the layout (Root) component itself, we'll have an issue rendering this Error page. We could consider a barebones Error Root component; perhaps one that makes no network calls or does anything fancy... but we can do that later.

This also includes a mechanism for helping users file bugs for issues they experiencing by auto-generating a URL specific to the experienced error that prefills contextual details (browser, OS, Tunarr versions, etc).

Screenshot from 2024-03-20 10-30-59

Copy link
Collaborator

@markdavella markdavella left a comment

Choose a reason for hiding this comment

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

Just a couple non-blocking nits, LGTM!

Copy link
Collaborator

Choose a reason for hiding this comment

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

nite: this file isn't used anywhere

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thought we might randomly switch between them lmao then I forgot

Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: there is 1px of nose on the left haha

Copy link
Owner Author

Choose a reason for hiding this comment

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

lol dammit that is so annoying. I'll fix before merging

Copy link
Owner Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: this file isn't used

Copy link
Owner Author

Choose a reason for hiding this comment

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

Moving this over to design folder - just since it's the original asset and I dont wanna lose it just yet .

@chrisbenincasa chrisbenincasa merged commit 1e0b323 into main Mar 22, 2024
2 checks passed
@chrisbenincasa chrisbenincasa deleted the error-boundary branch June 14, 2024 14: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.

Add better ErrorBoundary stuff for react-router
2 participants