Components
RFCErrorDialog
src/lib/components/ui/rfc-error-dialog.svelte
Purpose
Full-screen dialog for inspecting an RFC7807 problem-details error object.
Renders two preview modes via a Dock switcher:
- Aesthetic —
JsonTableViewerrendering of the error (orerror.extra.issueswhen present). - Raw — syntax-highlighted JSON via
shiki(light-plustheme).
A right-hand metadata panel shows id, impact, scope, message,
timestamp, and tags. The dialog is opened by the shell's error panel when
a user clicks an event card to inspect a backend error in detail.
Origin
Custom — Primebrick-built. Composes DialogBordered, JsonTableViewer,
ui/dock, ui/badge, and shiki for highlighting.
Usage
Basic open/close
Code
With a captured RFC7807 error
Code
Warning severity without close button
Code
Props
Full prop table: see API reference — rfc-error-dialog.
Key props:
open(boolean, bindable, required) — controls dialog visibility.error(RFC7807Error | null, required) — the error object to render. The shape follows RFC 7807 with Primebrick extensions (impact,scope,internal_code,severity,tags,extra).showCloseButton(boolean, defaultfalse) — forwarded toDialogBordered.color("critical" | "error" | "warning" | "info", default"error") — drives the icon and color of theimpactrow in the metadata panel.
The RFC7807Error shape (excerpt):
Code
Next steps
Last modified on