Skip to content

Friendlier graph empty & error states #34

Description

@spinsirr

When the graph can't load, the UI shows one generic line — No graph data. Check GBRAIN_MCP_URL / GBRAIN_TOKEN. (src/components/App.tsx) — and /api/graph returns a 502 couldn't reach the brain (src/app/api/graph/route.ts). These three cases should read differently:

  • Backend unreachable (bad/missing GBRAIN_MCP_URL, network) → "Can't reach gbrain at …"
  • Auth failed (401/403 from gbrain) → "gbrain rejected the credentials"
  • Reachable but empty (no pages yet) → "This brain has no linked pages yet"

Acceptance

  • The graph tab renders a tailored message per case, plus a Retry button.
  • No behavior change when the graph loads normally.

Pointers

src/app/api/graph/route.ts (surface the upstream status), src/components/App.tsx (the empty/error branch).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions