You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Render the table structure panel: "View Structure" opens an empty SQL editor #787
Open http://localhost:1420/?mock=connected.
Expand shop > Tables, right-click orders, and pick View Structure. Clicking the hover icon on the row does the same.
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.
Activity
fix(ui): render TableStructure for structure tabs
release: 1.4.0 (#871)