Skip to content

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

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

mandiwise
Copy link
Contributor

@mandiwise mandiwise commented Oct 16, 2024

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).

Copy link

vercel bot commented Oct 16, 2024

@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.

Copy link

linux-foundation-easycla bot commented Oct 16, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link

vercel bot commented Oct 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
graphql-github-io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 19, 2024 3:05pm

Copy link
Member

@benjie benjie left a 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>
Copy link
Member

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 👍

Copy link
Contributor

@dimaMachina dimaMachina left a comment

Choose a reason for hiding this comment

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

just a little suggestion, can you round borders?
image
image

@dimaMachina
Copy link
Contributor

@benjie feel free to apply my suggestions to make it perfect ;)
image

mandiwise and others added 2 commits October 18, 2024 14:10
Co-authored-by: Dimitri POSTOLOV <[email protected]>
Co-authored-by: Dimitri POSTOLOV <[email protected]>
@benjie benjie merged commit f7e425d into graphql:source Oct 21, 2024
4 checks passed
@Urigo
Copy link
Contributor

Urigo commented Oct 27, 2024

I'm not sure if this PR is the reason, but the descriptions of the mini graphiql do not disappear ones shown:
image

@benjie
Copy link
Member

benjie commented Oct 31, 2024

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.

@dimaMachina
Copy link
Contributor

Yeah, we need improve mini graphiql at some time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants