Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SqlLab] 1-click tab closing in SqlLab #4738

Conversation

gabe-lyons
Copy link
Contributor

As discussed in the #superset slack group, I felt like the general consensus was adding 1-click to close SqlLab tabs would be nice. This was also a personal pet peeve of mine.

tabs

test plan:

  • create a tab
  • click the x button on a tab and verify it closes
  • verify clicking the rest of the tab doesn't trigger a close
  • run the specs

reviewers:
@michellethomas @williaster @graceguo-supercat
cc @mistercrunch @hughhhh @fabianmenges

@gabe-lyons gabe-lyons force-pushed the gabe_making_it_easy_to_close_sqllab_tabs branch from 2e23e34 to f8a36b1 Compare April 2, 2018 20:38
@codecov-io
Copy link

codecov-io commented Apr 2, 2018

Codecov Report

Merging #4738 into master will increase coverage by 0.02%.
The diff coverage is 94.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4738      +/-   ##
==========================================
+ Coverage   72.22%   72.24%   +0.02%     
==========================================
  Files         204      205       +1     
  Lines       15324    15343      +19     
  Branches     1181     1183       +2     
==========================================
+ Hits        11067    11085      +18     
- Misses       4254     4255       +1     
  Partials        3        3
Impacted Files Coverage Δ
...javascripts/SqlLab/components/TabbedSqlEditors.jsx 91.74% <100%> (+0.07%) ⬆️
...ts/javascripts/SqlLab/components/TabStatusIcon.jsx 94.44% <94.44%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 11c9e67...f8a36b1. Read the comment docs.

@hughhhh
Copy link
Member

hughhhh commented Apr 2, 2018

This is dope! but i think we should make it really clear on how to close the tab. I think moving the down arrow to another location and putting the x there would be best. Not sure where we would put the dropdown though :p

@fabianmenges
Copy link
Contributor

fabianmenges commented Apr 2, 2018

This is cool, does it make sense to just get rid of the drop down menu and move the "close" button to where the drop down is (the right side)?
The drop down contains only 2 elements that are not already on the main page, rename tab and hide tool bar. Rename tab could be triggered when you click on the name of the tab. Hide toolbar could just be a control on the page. Overall I'm still in favor of just getting rid of tabs in SQLLab all together and using the tabs of my browser.

Copy link

@graceguo-supercat graceguo-supercat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gabe-lyons
Copy link
Contributor Author

@fabianmenges agree that would be an even better design- lets take care of that in a followup

@graceguo-supercat graceguo-supercat merged commit e0f541f into apache:master Apr 2, 2018
graceguo-supercat pushed a commit to graceguo-supercat/superset that referenced this pull request Apr 4, 2018
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
timifasubaa pushed a commit to timifasubaa/incubator-superset that referenced this pull request May 31, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.25.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.25.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants