Fix Agroal Dev UI table switching and move SQL input to the top #46762
+43
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #46761.
I noticed that if we set the current dataset to
null
while waiting for theexecuteSQL
RPC call, triggering rendering of theFetching data...
progress bar while the query executes instead of the table (which is also nice for long-running queries), then the columns are refreshed correctly. I'm guessing this happens because the previous table is removed from the interface before displaying the updated results.I also took the liberty of moving the SQL input to the top of the data grid, as suggested by @phillip-kruger here, and I've also aligned the buttons for clearing / executing current SQL to look the same as #46728. LMK what you think.