Add error boundary to frontend (#24255)

* add error boundary

on frontend errors, show a page-level recovery panel and a separate compact strip for the sidebar/status/bottombar so failures there don't take down the rest of the page

* tweaks

* fix test
This commit is contained in:
Josh Hawkins
2026-09-12 10:32:22 -06:00
committed by GitHub
parent dcfe5307c9
commit 4861a668b1
4 changed files with 495 additions and 11 deletions
+11 -1
View File
@@ -164,7 +164,8 @@
"saveAll": "Save All",
"savingAll": "Saving All…",
"undoAll": "Undo All",
"retry": "Retry"
"retry": "Retry",
"reload": "Reload"
},
"menu": {
"system": "System",
@@ -314,6 +315,15 @@
"title": "404",
"desc": "Page not found"
},
"error": {
"title": "This page stopped working",
"desc": "The page ran into an unexpected error. Reloading usually clears it. If it keeps happening, copy the details and attach them to a discussion on GitHub.",
"staleTitle": "Reload required",
"staleDesc": "Part of the interface could not be loaded, which usually means Frigate was updated while this tab was open. Reload to pick up the new version.",
"partial": "Part of the interface stopped working.",
"copyDetails": "Copy details",
"copyFailed": "Could not copy details to clipboard"
},
"selectItem": "Select {{item}}",
"readTheDocumentation": "Read the documentation",
"information": {