Skip to content

Polish: schema browser and designer P3s from the UX review #829

Closed

Description

@EVWorth

Severity: P3 (polish)

Reproduce each item on ?mock=connected.

  • Confirm or allow undo when deleting a favorite. Save a query as a favorite, open the FAVORITES panel, right-click the favorite and pick Delete. It disappears at once, with no dialog and no undo. Deleting a category does ask. Cause: src/components/favorites/QueryFavorites.tsx:446-449. Fix: show an undo notice (the panel already has a notice slot at about :300) or reuse the category ConfirmDialog.
  • Name tree-click results and stop them replacing the current query's results. Single-click shop > Tables > customers. 1000 rows replace whatever was in the current tab's result pane, the editor is unchanged, and nothing names the table or the query that produced the grid. Cause: src/components/schema/SchemaTree.tsx:228-240. Fix: open or reuse a per-table data tab titled shop.customers holding the SELECT, or at least label the result header with the statement.
  • Fix the stale "Select Top 100 Rows" label on views. Right-click view order_totals. The menu says "Select Top 100 Rows" but runs LIMIT 1000; the table menu correctly says "Select Top 1,000 Rows". Cause: SchemaTree.tsx:760. Fix: use selectTopRowsLabel(maxResultRows), as :599 does.
  • Refresh the tree after drop and enable/disable of views, routines, triggers and events. These menu items use executeQuery(...).then(refreshFolder), the pattern the comment at SchemaTree.tsx:248-254 says returns before the production confirmation ([P1][bug] Most FR-4.3 context-menu operations are missing #293). The refresh then runs against unchanged data and does not run again after the user confirms. Seen in code only (the fixture connection is DEV). Cause: SchemaTree.tsx:791, :867, :943, :1012, :1081-1087, :1097-1101. Fix: route them through runSchemaChange, as tables do.
  • Mark the connection's default database in the tree. On load the status bar shows shop, but the tree does not highlight shop and its menu still offers "Set as Default". Cause: SchemaTree.tsx:111-112 reads only activeTab?.database, while src/components/layout/StatusBar.tsx:150 falls back to the connection's database. Fix: use the same fallback in the tree.
  • Show composite index column order in the designer. Design Table orders > Indexes. Selected column chips appear in table order with no position, so (status, placed_at) cannot be told from (placed_at, status). The stored order is click order. Cause: src/components/designer/TableDesigner.tsx:813-825. Fix: show 1, 2, … badges on selected chips plus an ordered list of the selected columns that can be reordered.

Part of #783.

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