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

fix(Sql Lab tabs): Empty SQL lab tabs #17700

Closed
wants to merge 4 commits into from

Conversation

Yahyakiani
Copy link
Contributor

@Yahyakiani Yahyakiani commented Dec 9, 2021

SUMMARY

This PR fixes the problem in which all SQL Lab tabs could be closed leaving an empty window. Now instead of trying to close the last window an error modal will pop up.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

before
after

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

@ofekisr
Copy link
Contributor

ofekisr commented Dec 9, 2021

I don't think popping up an error message is a good way, IMO its better to create automatically a new tab when the last tab is deleted. If the user would like to delete its tab why harden him

@kasiazjc
Copy link
Contributor

kasiazjc commented Dec 9, 2021

Hi! I agree that adding an error message is quite agressive as there is no real reason why user cannot have all of the tabs closed (and they may want to have like this for their peace of mind).

I would say that the easiest way to go and most user friendly would be improving an error state, below is a solution that I'd like to propose

image

sql empty state

@yousoph
Copy link
Member

yousoph commented Dec 9, 2021

I love the blank state proposal from @kasiazjc , agreed that it's more user friendly than showing an error on closing.

@villebro
Copy link
Member

@Yahyakiani thanks so much for the contribution! My apologies for not checking in with design on the original issue in #17630 🙁 Do you think you would be able to implement the proposed design? If not we'll be happy to help; just ping me on Slack if you want to discuss!

@Yahyakiani
Copy link
Contributor Author

@Yahyakiani thanks so much for the contribution! My apologies for not checking in with design on the original issue in #17630 🙁 Do you think you would be able to implement the proposed design? If not we'll be happy to help; just ping me on Slack if you want to discuss!

Certainly, I will let you know in case of any questions.

@Yahyakiani
Copy link
Contributor Author

Yahyakiani commented Dec 10, 2021

des
Thanks for the feed. Which can I find or import this design from ? or will I have to create it . Any direction would be helpful.

Hi! I agree that adding an error message is quite agressive as there is no real reason why user cannot have all of the tabs closed (and they may want to have like this for their peace of mind).

I would say that the easiest way to go and most user friendly would be improving an error state, below is a solution that I'd like to propose

image

sql empty state

@kasiazjc
Copy link
Contributor

@Yahyakiani I added it all to the figma file. You should be able to export all of the details, objects, check the colours etc.

I do not have the correct design for the implemented tabs, so I guess you should use the spacings etc that we already have and do not mind the details of the design too much.

Let me know if you can access the file :)

@eschutho
Copy link
Member

cc @yousoph

@pull-request-size pull-request-size bot added size/M and removed size/S labels Dec 17, 2021
@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Apr 16, 2022
@yousoph
Copy link
Member

yousoph commented Apr 18, 2022

Closing this PR since #18817 took it to completion

@yousoph yousoph closed this Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Closing all tabs on SQL Lab leaves the screen blank
6 participants