In the past when user selects schema and table name, SQL Lab displays list of columns on the left side and switches automatically to "Preview tab", so that the user can preview the data immediately. After the recent changes in SQL Lab, the default tab stays at "Results" (which are SQL Lab query results) so user needs to make an extra click to switch to the preview tab to preview their data.
Tab automatically switches to "Preview: table-name"
Tab remains as "Results"
user selects schema & table

Default tab should change to "Preview: table-name" (this was past behavior)

(please complete the following information):
Make sure these boxes are checked before submitting your issue - thank you!
Issue-Label Bot is automatically applying the label #enhancement to this issue, with a confidence of 0.82. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
@junlincc this could be related to recent antd <Tab/> work by @kgabryje (?)
I'll check it out!
@zuzana-vej @mistercrunch Here's a fix: https://github.com/apache/incubator-superset/pull/11343
@kgabryje thank you!
Fix merged!
I am still seeing the issue. Switching tabs works. But in the past, when user selects a table name on left side from the schema, it automatically switched to the tab with the preview. Currently the tab shows up, but user needs to manually switch.
Is this new behavior as designed or a bug?
Image 1: Searching for the table I selected

Image 2: See the data preview isn't default tab

@zuzana-vej Are you sure you're testing it on the latest master? For me it works exactly like you expect (see gif).


Yes latest master, just synced it yesterday. Using Chrome.
@zuzana-vej I'm sorry, but I cannot reproduce it 馃檨 Does anybody else still experience this issue?
Yeah. No problem. I'll close this and if necessary reopen. Thanks for checking @kgabryje
EDIT: confirmed works as expected thank you!
Most helpful comment
@zuzana-vej @mistercrunch Here's a fix: https://github.com/apache/incubator-superset/pull/11343