-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Conversation
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 |
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 |
I love the blank state proposal from @kasiazjc , agreed that it's more user friendly than showing an error on closing. |
@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 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 :) |
cc @yousoph |
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 |
Closing this PR since #18817 took it to completion |
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
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION