Skip to content

show formatted json from errors in a separate dialog - #450

Merged
trean merged 1 commit into
masterfrom
improve-error-reports
Sep 25, 2026
Merged

trean merged 1 commit into
masterfrom
improve-error-reports

Conversation

@trean

@trean trean commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No blocking issues were identified; the remaining test-coverage note is minor.

Review effort: Lite
Findings: None

What changed in this PR

Adds formatted JSON extraction and a dedicated dialog for viewing JSON embedded in error messages.

Changes:

  • Extracts and tests embedded JSON objects and arrays.
  • Adds a custom error snackbar with a “More info” action.
  • Adds a shared store and globally mounted formatted-details dialog.

Review note: component coverage for the “More info” interaction remains a minor follow-up.

File Description
src/​lib/​tests/​extract-json-from-message.test.js Tests JSON extraction behavior.
src/​lib/​extract-json-from-message.js Extracts embedded JSON objects and arrays.
src/​index.jsx Registers the custom error snackbar.
src/​components/​ToastNotifications/​ErrorSnackbar.jsx Displays shortened errors and the details action.
src/​components/​ToastNotifications/​ErrorDetailsDialog.jsx Displays formatted error details.
src/​components/​ToastNotifications/​error-details-store.js Shares selected error details with the dialog.
src/​App.jsx Mounts the error details dialog.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@trean
trean marked this pull request as ready for review September 24, 2026 15:16
@trean
trean requested a review from generall September 24, 2026 15:16
@trean
trean merged commit 0dee588 into master Sep 25, 2026
2 checks passed
@trean
trean deleted the improve-error-reports branch September 25, 2026 16:02
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