-
Notifications
You must be signed in to change notification settings - Fork 1.5k
landing β interactive editor #2113
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
base: source
Are you sure you want to change the base?
landing β interactive editor #2113
Conversation
* Render MiniGraphiQL with `graphiql` string in node.meta * Don't validate in Marked: not its responsibility * Change interactive code snippet colors * Remove global .miniGraphiQL class * Refactor MiniGraphiQL to separate files * Add a TODO comment * Run Playwright on CI * wip * color codemirrors properly * Style codemirrors properly * Upgrade pnpm from 9.15.9 to 10.15.0 * Update 2025 conference schedule and speaker details * Improve syntax highlighting for comments and diffs * Remove focus outline * Extract CodeBlockLabel * Remove unused marked dependency * Rename `marked` to `interactive-code-block` * Update codemirror styles * Allow running esbuild builds * Remove duplicate image * Format * Change syntax theme names to avoid a bug * Fix heights and properly chain handlers * Fix tests for new editor * Run Playwright on CI * Use the same colors for VariableEditor * Use the same font for interactive code blocks * Match the coloring on t.separator [,:] between Lezer and Shiki
@hasparus 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 GitHub.
|
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.
@martinbonnin What do you think about adding something like this info message instead? ![]() |
It wouldn't be hover, right? It'd be something else? I kind of liked that the comment was where the user would look and therefore impossible to miss but no strong opinion at this stage. |
I'm changing the PR to a draft because we noticed a schema discrepancy and I need to write a small script first. |
Description
@martinbonnin proposed making the "How it Works" code samples interactive on Slack.
We already had CodeMirror, and I already needed to restyle it for the docs, so it required just a new schema, some refactoring and shuffling things around.
I think the idea makes sense, and lets the user experience GraphQL immediately. Even if they're non-programmers, they can maybe get a feel how the data flows and what the experience is like.
I changed the section CTA to state "Try GraphiQL", because we're already trying it out live.
To-do
dynamic(import
instead ofdynamic(() => import
initially so it's good I double checked).