diff --git a/src/components/ui/SectionErrorBoundary.tsx b/src/components/ui/SectionErrorBoundary.tsx index 88d7f84..e69de29 100644 --- a/src/components/ui/SectionErrorBoundary.tsx +++ b/src/components/ui/SectionErrorBoundary.tsx @@ -1,90 +0,0 @@ -import { Component, type ErrorInfo, type ReactNode } from "react"; - -/** - * Per-section error boundary inserted around every assembled section by the - * backend's page-assembler. Goal: a single section that throws at runtime - * (missing required prop, broken `.map`, etc.) shows a small placeholder - * instead of taking down the entire page with a white screen. - * - * Also reports the failure via the `/__webild/render-status` probe channel - * so Bob-AI's post-commit poll picks up the section name + error message and - * the model gets the signal to fix the right section on the next loop turn. - * - * The probe POST is best-effort and silent — sandbox-only (gated by - * `window.parent !== window`), so production deploys never call it. - */ - -interface Props { - /** Section slug — same value the wrapping `
- This section failed to render. -
-
- Section: {this.props.name}
-
- {this.state.errorMessage} -
- ) : null} -- Tell Bob exactly what's wrong (e.g. "fix the {this.props.name} section") to retry. -
-