-
Notifications
You must be signed in to change notification settings - Fork 218
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
feat(playground): add new query button #4135
base: main
Are you sure you want to change the base?
Conversation
71e404d
to
7eb2755
Compare
for more information, see https://pre-commit.ci
Thanks — I think this sort of thing is good. Rather than interrupting the flow with a popup asking for a query name, how about a button for "Clear query" which clears the query and sets the name to "Clear query" (or something similar) also is clear that it's a destructive event — I can imagine clicking "New query" and not realizing my existing query is about to be deleted if I hadn't saved it... |
What about saving the query before clearing the query and notifying the user before that? I think it's a better experience for the user |
I don't think we want to get in the way of the user — so we don't want a box popping up asking "Do you want to save??" — instead if the button's actions are obvious, the user can decide whether to save before clicking the button. So I do think that "Clear query" is better than "New query" in that regard... |
I'm sorry for the late response. I'm away from my machine these days. So I hope you'll excuse me. Anyway. Is "Clear query" really useful? I don't know why we would just put a button to remove queries only. The user can use |
I think it's somewhat useful... :) Isn't "Clear query" + "Rename" the same as "New Query"? Minimum surprise is important — and the current "New Query" clears the existing query, which might be surprising... |
Technically, yes. but the difference is that
To avoid that, I think we should work on |
Yes, tabs could be good! (It does seem like a much bigger project, though...) |
Yeah sure. Next week, I will try to work on it and maybe cancel this PR |
Preview
Close #3631