Skip to content

UI: Handle empty state overlay in GraphExplorer when no files or links exist #20

Description

@eshaanag

What is missing / Why it matters

In frontend/src/components/GraphExplorer.tsx, if the selected commit has no analyzed files or import/co-change edges (e.g. an initial commit containing only unsupported files), the force-graph component displays a completely blank canvas without any user feedback.

Acceptance Criteria

  • Detect when nodes.length === 0 in GraphExplorer.
  • Render a user-friendly empty state overlay card (e.g., "No files or dependencies detected in this snapshot") instead of a blank canvas.
  • Ensure the rest of the layout (sidebars, controls) remains functional or is disabled gracefully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions