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
[P1][bug] Object details panel: only 3 of 8 FR-4.2.1 tabs implemented; view/trigger details missing (FR-4.2.1-4.2.4) #292
FR-4.2.1: "Columns, Indexes, Foreign Keys, Triggers, Partitions, DDL, Row count, Data size". FR-4.2.2-4 list view/trigger/routine detail requirements.
Problem
TableStructure exposes only Columns, Indexes, DDL. ForeignKeyInfo is declared but never queried. Views, triggers, and routines have no dedicated formatted details view; routine details omit definer metadata. Single-clicking a table runs SELECT * instead of opening the structure view.
Files
src/components/schema/TableStructure.tsx:8
Repro
Right-click users → "View Details" — only three tabs; no Foreign Keys, Triggers, Partitions, Row count, Data size. Right-click a view — no dedicated details view.
Expected
Table details include all eight FR-4.2.1 categories; view/trigger/routine have their own formatted detail panels; definer is shown for routines.
Proposed fix
Scope L. Add metadata models and Tauri commands for FKs/partitions/row_count/data_size; build all required detail tabs; route table single-click to structure view; add view/trigger/routine detail views.
Acceptance
Each supported object opens the required detail view; all FR-4.2 categories visible.
One correction and two deliberate exclusions, for the record.
Correction to the issue
ForeignKeyInfo is declared but never queried
It was queried. SchemaInspector::get_foreign_keys existed, was exposed as a Tauri command, and the table designer used it. What was missing is the panel that shows it — which is what #642 adds. Partitions genuinely had nothing behind them; that query is new (#643).
Not done, deliberately
View, trigger and routine detail panels. Each of those objects is fully described by its SHOW CREATE, which the tree already opens on click and offers in the menu — a formatted panel would restate the same text in a table. The one thing the issue names that is not in the DDL is the routine definer, and that is worth having; I will add it to the routine tab rather than build three panels around it. Say the word if you want the full panels.
Single-click a table opening the structure view. I have left single-click running SELECT, because that is what it does today and changing it would retrain everyone who uses the app for the sake of a requirement's wording. "View Structure" is on the menu and on a button in the row. Happy to flip it if you would rather match the spec exactly.
Activity
feat(schema): events, system databases, and dragging objects into the…
feat(schema): events, system databases, and dragging objects into the…
feat(schema): the details and menu operations FR-4.2 and FR-4.3 ask for
feat(schema): events, system databases, and dragging objects into the…
feat(schema): events, system databases, and dragging objects into the…
feat(schema): the details and menu operations FR-4.2 and FR-4.3 ask for
feat(schema): the details and menu operations FR-4.2 and FR-4.3 ask f…
EVWorth commentedon Sep 11, 2026
One correction and two deliberate exclusions, for the record.
Correction to the issue
It was queried.
SchemaInspector::get_foreign_keysexisted, was exposed as a Tauri command, and the table designer used it. What was missing is the panel that shows it — which is what #642 adds. Partitions genuinely had nothing behind them; that query is new (#643).Not done, deliberately
View, trigger and routine detail panels. Each of those objects is fully described by its
SHOW CREATE, which the tree already opens on click and offers in the menu — a formatted panel would restate the same text in a table. The one thing the issue names that is not in the DDL is the routine definer, and that is worth having; I will add it to the routine tab rather than build three panels around it. Say the word if you want the full panels.Single-click a table opening the structure view. I have left single-click running
SELECT, because that is what it does today and changing it would retrain everyone who uses the app for the sake of a requirement's wording. "View Structure" is on the menu and on a button in the row. Happy to flip it if you would rather match the spec exactly.