Skip to content

[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

Closed

Description

@EVWorth

Context

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.

Needs human verify

No.

Activity

  1. added
    audit
    severity/p1
    kind/bug
    kind/doc-drift
    area/schema
    on Jul 24, 2026
  2. EVWorth commented on Sep 11, 2026

    @EVWorth
    OwnerAuthor

    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.

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

    area/schemaauditkind/bugkind/doc-driftseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions