Skip to content

Render the table structure panel: "View Structure" opens an empty SQL editor #787

Closed

Description

@EVWorth

Severity: P1 (a whole feature cannot be reached)

What happens

  1. Open http://localhost:1420/?mock=connected.
  2. Expand shop > Tables, right-click orders, and pick View Structure. Clicking the hover icon on the row does the same.
  3. A tab titled "⊞ orders" opens. It shows the ordinary query toolbar, an empty Monaco editor and "Execute a query to see results".

The Overview, Columns, Indexes, Foreign Keys, Triggers, Partitions and DDL sub-tabs never render, so FR-4.2.1 cannot be reached from the UI.

Cause

src/components/layout/MainPanel.tsx:29-69 has branches for admin, designer and routine tabs. It has none for type === "structure", so a structure tab falls through to the query editor. TableStructure (src/components/schema/TableStructure.tsx:57) is not imported anywhere except its own test.

Fix

Add a branch that renders <TableStructure connectionId={…} database={…} tableName={…} /> for structure tabs. Add a MainPanel test that renders every tab kind, so a missing branch fails CI.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 21, 2026
    326b6e0
  3. added a commit that references this issue on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions