-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Label mini GraphiQL panels. #1796
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
Conversation
@mandiwise is attempting to deploy a commit to the The GraphQL Foundation Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement 👍
return <div className="query-editor" ref={e => (this.domNode = e)} /> | ||
return ( | ||
<div className="query-editor" ref={e => (this.domNode = e)}> | ||
<span className="editor-name">Operation</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically this is a "document" since it may contain fragments and multiple operations; but I think that's probably a little too technical for people learning the technology so I think you've made the right choice of term here 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benjie feel free to apply my suggestions to make it perfect ;) |
Co-authored-by: Dimitri POSTOLOV <[email protected]>
Co-authored-by: Dimitri POSTOLOV <[email protected]>
Doesn't seem to be related; I've looked at the preview of #1765 which predates this change and it has the same issue. I think it's been an issue for a long time. |
Yeah, we need improve mini graphiql at some time |
Partially addresses #250 (addresses the second bullet point, a subsequent PR will address the first)
Description
This PR adds labels to each panel in the mini GraphiQL editors to help disambiguate the different elements of the code examples (Operation, Variables, and Response).