Repository navigation
Closed
Labels
bugSomething isn't working
Description
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 categoryConfirmDialog. - 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 titledshop.customersholding 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 runsLIMIT 1000; the table menu correctly says "Select Top 1,000 Rows". Cause:SchemaTree.tsx:760. Fix: useselectTopRowsLabel(maxResultRows), as:599does. - 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 atSchemaTree.tsx:248-254says 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 throughrunSchemaChange, as tables do. - Mark the connection's default database in the tree. On load the status bar shows
shop, but the tree does not highlightshopand its menu still offers "Set as Default". Cause:SchemaTree.tsx:111-112reads onlyactiveTab?.database, whilesrc/components/layout/StatusBar.tsx:150falls 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
Labels
bugSomething isn't working
Activity
fix: tree clicks open a named tab; refresh drops
fix: show composite index column order
fix: confirm before deleting a favorite
feat: UX review fixes for schema tree and designer (#888)