Commit 8846229
landing — interactive editor (#2113)
## 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.
<img width="1377" height="359" alt="image"
src="https://github.com/user-attachments/assets/77bcd251-475c-4aaf-a2c6-9cb6b8e0caad"
/>
### To-do
- [x] Write a small GraphQL Schema for this example
- [x] Double check if next/dynamic worked and we don't have CodeMirror
in the main bundle
- (I actually wrote `dynamic(import` instead of `dynamic(() => import`
initially so it's good I double checked).
- [x] Add a test for this
---------
Co-authored-by: Benjie <[email protected]>
Co-authored-by: Jeff Auriemma <[email protected]>
Co-authored-by: Martin Bonnin <[email protected]>1 parent 90cefbc commit 8846229
File tree
144 files changed
+46777
-345
lines changed- .github/workflows
- public
- images
- nextImageExportOptimizer
- scripts
- get-github-info
- sync-landing-schema
- generated
- src
- sync-sched
- src
- _design-system
- app
- api/contributors
- conf/2025/components
- testimonials
- components
- code-blocks
- index-page
- hero
- how-it-works
- use-cases
- what-is-graphql
- interactive-code-block
- pages
- test/e2e
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
144 files changed
+46777
-345
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
144 | 155 | | |
145 | 156 | | |
0 commit comments