Skip to content

Add GraphQL playground page#9407

Merged
fregante merged 14 commits into
mainfrom
copilot/create-graphql-input-output-page
May 10, 2026
Merged

Add GraphQL playground page#9407
fregante merged 14 commits into
mainfrom
copilot/create-graphql-input-output-page

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 9, 2026

chrome-extension___jialghbnladbdlhaibaoejjlnihkmemc_assets_graphql html_ (1)

@fregante
Copy link
Copy Markdown
Member

fregante commented May 9, 2026

@copilot using the default, I get this response:

{
	"errors": [
		{
			"message": "Expected NAME, actual: LCURLY (\"{\") at [1, 8]",
			"locations": [
				{
					"line": 1,
					"column": 8
				}
			]
		}
	]
}

@fregante
Copy link
Copy Markdown
Member

fregante commented May 9, 2026

Very cool once it works. We no longer have the public GraphiQL explorer so I was longing for an authenticated alternative. What's better than dogfooding?

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 9, 2026

@copilot using the default, I get this response:

{

...

Fixed in f4568f5: the default input now starts as a query body (viewer { login }) so api.v4uncached wraps it correctly instead of producing query {{...}}.
Screenshot: I GOT NO CAMMERA

Copilot AI requested a review from fregante May 9, 2026 14:25
@fregante
Copy link
Copy Markdown
Member

fregante commented May 9, 2026

@copilot

  • add a link to it in the Debugging section in the options
  • fix this error in the other component: (!) [plugin svelte] source/helpers/rgh-related-issues-count.svelte: This reference only captures the initial value of featureId. Did you mean to reference it inside a closure instead?

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 9, 2026

@copilot

  • add a link to it in the Debugging section in the options
  • fix this error in the other component: `(!) [plugin svelte] source/helpers/rgh-related-issues-count.svelte: This reference only...

Implemented in a633ef2.

  • Added “Open GraphQL tester” in Options → Debugging.
  • Fixed the Svelte warning in rgh-related-issues-count.svelte by referencing featureId inside $derived.by closures.
    Screenshot: I GOT NO CAMMERA

@fregante fregante marked this pull request as ready for review May 9, 2026 14:31
@fregante fregante changed the title graphql-tester - Add standalone GraphQL query playground page Add GraphQL playground page May 9, 2026
Copy link
Copy Markdown
Member

@SunsetTechuila SunsetTechuila left a comment

Choose a reason for hiding this comment

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

This is really cool and useful, but I don't think it should be part of the extension itself. We can make it a separate project.

@fregante
Copy link
Copy Markdown
Member

fregante commented May 9, 2026

There are tons of projects that already do this, I just want something that works right out of the box thanks to using the same plumbing and token Refined GitHub uses. Being a few lines long there isn't much reason to not add it here. It's like Chrome shipping its own dev tools, except it's a single html page and it won't be actively developed.

Comment thread source/graphql.svelte
Comment thread source/graphql.svelte Outdated
Comment thread source/options.html Outdated
Comment thread source/options.html Outdated
@SunsetTechuila
Copy link
Copy Markdown
Member

As a separate project, it can have more features like schema-based autocomplete and validation

Copilot AI requested a review from fregante May 9, 2026 18:40
@fregante
Copy link
Copy Markdown
Member

fregante commented May 9, 2026

I already answered: you can already use a separate project for that. This is not a separate project, it just works.

@fregante fregante enabled auto-merge (squash) May 10, 2026 06:58
@fregante fregante added the meta Related to Refined GitHub itself label May 10, 2026
@fregante fregante merged commit 266518a into main May 10, 2026
11 of 12 checks passed
@fregante fregante deleted the copilot/create-graphql-input-output-page branch May 10, 2026 06:59
@fregante
Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

3 participants