Skip to content

perf: Improve error handling - #731

Open
aXenDeveloper wants to merge 1 commit into
canaryfrom
perf/improve_error_handling
Open

perf: Improve error handling#731
aXenDeveloper wants to merge 1 commit into
canaryfrom
perf/improve_error_handling

Conversation

@aXenDeveloper

Copy link
Copy Markdown
Owner

Improving Documentation

Description

What?

Why?

@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vitnode-docs Ready Ready Preview Aug 2, 2026 5:04pm

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8ec94c1e5d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

type RouteErrorViewProps,
} from "@vitnode/core/views/error/route-error-view";

export default function ErrorBoundary({ error, retry }: RouteErrorViewProps) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use the reset callback supplied by Next.js

When any new route boundary, modified global boundary, or generated-app boundary renders, Next.js supplies a reset callback rather than retry; destructuring retry therefore passes undefined into the view, and clicking “Try again” throws instead of rerendering the failed segment. Accept reset and pass it through, optionally renaming it during destructuring.

Useful? React with 👍 / 👎.

@@ -272,7 +272,6 @@ export const DashboardBoardProvider = ({
}

setIsEditing(false);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restore confirmation after saving the dashboard

After a successful layout mutation, this path now exits editing and refreshes without confirming that the update was saved. Restore a sonner success toast with a description so the completed edit provides the repository-required feedback.

AGENTS.md reference: AGENTS.md:L11-L11

Useful? React with 👍 / 👎.

@@ -121,14 +121,6 @@ export const WidgetSettingsDialog = ({
}

setOpen(false);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restore confirmation after saving widget settings

When widget settings save successfully, the dialog now closes and schedules the card refresh without showing any confirmation; users cannot distinguish a completed save from a dismissal until they inspect the widget. Restore the removed sonner success toast and its description.

AGENTS.md reference: AGENTS.md:L11-L11

Useful? React with 👍 / 👎.

type RouteErrorViewProps,
} from "@vitnode/core/views/error/route-error-view";

export default function ErrorBoundary({ error, retry }: RouteErrorViewProps) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Declare the new entrypoints as arrow components

This and the other newly added ErrorBoundary, GlobalError, and Loading entrypoints use function declarations, contrary to the repository-wide requirement that React components use arrow functions. Convert these entrypoint components to arrow declarations and export them as defaults.

AGENTS.md reference: AGENTS.md:L7-L7

Useful? React with 👍 / 👎.

</p>

{error.digest ? (
<p className="text-muted-foreground/70 font-mono text-xs">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep error reference text at least 14px

The error digest is rendered with Tailwind's text-xs size, which is normally 12px; the same class is used by the route error view. These references are user-facing text that may need to be read or relayed to support, so use at least text-sm to satisfy the repository's 14px minimum.

AGENTS.md reference: AGENTS.md:L50-L50

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚀 Performerce Improves performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant