-
Notifications
You must be signed in to change notification settings - Fork 212
feat(graphiql): complete GraphiQL section and app integration #6584
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
Draft
amcaplan
wants to merge
1
commit into
11-06-feat_graphiql_add_data_fetching_hooks
Choose a base branch
from
11-06-feat_graphiql_complete_graphiql_section_and_app_integration
base: 11-06-feat_graphiql_add_data_fetching_hooks
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
+444
−1
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Nov 6, 2025
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Nov 6, 2025
Contributor
Coverage report
Test suite run success3447 tests passing in 1401 suites. Report generated by 🧪jest coverage report action from 0de0e5b |
0c3ce5a to
ada77f5
Compare
3b8bbcc to
2e1b3ee
Compare
ada77f5 to
0de0e5b
Compare
0de0e5b to
dfabb65
Compare
dfabb65 to
af92c30
Compare
8ade16e to
70c73e5
Compare
af92c30 to
de0599e
Compare
70c73e5 to
a6fca5f
Compare
a6fca5f to
f6b80c1
Compare
de0599e to
e5b4e41
Compare
f6b80c1 to
f574269
Compare
ffeaf36 to
2fed8fb
Compare
f574269 to
1e4b9d5
Compare
48047fb to
16851d0
Compare
33e19e2 to
fa9758f
Compare
16851d0 to
530b9a5
Compare
Integrates all components into the main GraphiQL section with responsive layout. - Add main GraphiQL section with header and editor - Implement responsive layout with CSS Grid - Add API version selector, status badge, links, scopes note - Update App to use complete GraphiQL section - Include integration tests (219+ lines) Complete graphiql-console package is now functional All tests pass (89/89)
530b9a5 to
8708c64
Compare
fa9758f to
eeb9b92
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

WHY are these changes introduced?
This PR brings together all the components from previous PRs into a complete, functional GraphiQL section with responsive layout. This is the seventh PR in the 8-PR migration stack.
Context: All the building blocks are now in place (editor, components, hooks, types, validation). This PR integrates everything into a cohesive user interface that:
WHAT is this pull request doing?
This PR creates the main
GraphiQLSectioncomponent that integrates all previous components into a complete application with responsive layout.Key Changes:
1. GraphiQLSection Component (
src/sections/GraphiQL/):Main container that orchestrates all GraphiQL functionality.
Component Structure:
2. Configuration Management:
window.__GRAPHIQL_CONFIG__(injected by server)validateConfigto prevent XSS attacks3. State Management:
selectedVersion- Current API version (local state)status- Server health and app info (fromuseServerStatushook)4. Responsive Layout (
GraphiQL.module.scss):Breakpoints:
Responsive Behavior:
5. Component Integration:
All components work together seamlessly:
StatusBadgeshows real-time connection statusErrorBannerappears when server disconnects (sticky positioning)ApiVersionSelectortriggers re-fetch when version changesLinkPillsshow store/app links from server statusGraphiQLEditorreceives config and selected versionuseServerStatusprovides live server/app state6. App.tsx Update:
Testing:
Files Added/Modified:
src/sections/GraphiQL/GraphiQL.tsx- Main section component (92 lines)src/sections/GraphiQL/GraphiQL.module.scss- Responsive styles (127 lines)src/sections/GraphiQL/GraphiQL.test.tsx- Integration tests (219 lines)src/sections/GraphiQL/index.ts- Barrel exportsrc/App.tsx- Updated to use GraphiQLSectionDependencies
Builds on ALL previous PRs:
Result: Complete, functional graphiql-console package! ✅
How to test your changes?
Manual Testing - Development Mode:
cd packages/graphiql-console pnpm devManual Testing - With Server:
dev serverwindow.__GRAPHIQL_CONFIG__Responsive Testing:
Measuring impact
Checklist