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
Make the results of every statement in a script reachable #844
On http://localhost:1420/?mock=connected:
Enter UPDATE products SET price = 1 WHERE id = 1; and SELECT * FROM products; on two lines and press Ctrl+Shift+Enter. The pane shows only "Query executed. 1 row(s) affected. (2ms)". There are no result tabs, so the SELECT's grid cannot be reached at all.
Reverse the order (SELECT ...; UPDATE ...;). "Result 1" and "Result 2" tabs appear above the grid. Clicking Result 2 replaces the whole pane, tab strip included, with the "1 row(s) affected" message, so there is no way back to Result 1 short of re-running.
The tabs are labelled only "Result 1 / Result 2", not by statement or row count.
FR-2.2.1 and FR-2.2.6 ask for every result set, displayed in order.
Cause
src/components/grid/ResultsGrid.tsx:304-306 returns <GridPlaceholder> whenever the active result has no columns. That return comes before the result-tab strip is rendered at :332-347.
Fix
Render the result-tab strip above both the placeholder and the grid. Label each tab with its statement (verb and table) and its row or affected count. Default to the first result that has columns.
Activity
fix(grid): keep every script result reachable