Skip to content

Add ErrorBoundary component and PlanGate test coverage #29

@n3-rd

Description

@n3-rd

PlanGate is the only component under space/ without tests; every sibling (SpacePicker, SpaceCreator, SpaceList, SpaceEnsurer, FileViewer, SharingTool, ImportSpace) already has a spec file. A test suite for PlanGate would close that gap.

Separately, there's no way to recover from render-time errors. Async errors are caught in try/catch callbacks, but a thrown error during render takes down the whole React tree — which for an embeddable library means crashing the host app. A StorachaErrorBoundary component would let consumers wrap subtrees, show fallback UI, and optionally report errors.

Scope: new test file for PlanGate, new ErrorBoundary component + tests, export wiring in index.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions