feat: [RFC] GraphiQL rewrite for monaco editor, react context and redesign, i18n#1523
feat: [RFC] GraphiQL rewrite for monaco editor, react context and redesign, i18n#1523
Conversation
2b8ff67 to
e8e1295
Compare
|
rebasing this one after the monaco mode merge! this PR should reduce in size quite substantially |
b6b56fd to
a8b9a93
Compare
a8b9a93 to
659b700
Compare
|
Looks like my i18n PR is failing. I will try to fix it @acao |
|
@harshithpabbati no worries! working on it as well, it seems to be this:
funky that it worked before and not now, haha |
|
Yeah, it's weird |
|
@harshithpabbati you can re-create it locally by running |
|
@harshithpabbati the funny thing is that this bug is only with storybook, however all of these are builds that pass (thus, they are able to resolve these files):
methinks the answer is a storykbook config |
|
@harshithpabbati i think i've found the resolution! turns out you were very close with |
e13b591 to
8de442a
Compare
- convert all components to functional components - leverage useEffects dependencies for efficient component subscriptions - convert editorand query history to use context - made errors consitent across providers - allowed for multiple errors - preserved error objects to allow more custom usage - SchemaProvider Co-Authored-By: Justin Bennett <[email protected]> Co-Authored-By: ryan-m-walker <[email protected]> Co-Authored-By: Cristina Shaver <[email protected]> Co-Authored-By: Nick Cuthbert <[email protected]>
Co-Authored-By: Cristina Shaver <[email protected]> Co-Authored-By: Ryan Walker <[email protected]>
just implements layout
Co-Authored-By: Harshith Pabbati <[email protected]>
1ca3ed5 to
236c261
Compare
|
1.0.0 has been released, now for the 2.0.0 rewrite to be merged to master! |
…esign, i18n (graphql#1523) - rewrite for modern react and context/hooks API - adopt some of the new components by @walaura - adopt monaco editor - adopt i18n-next Co-authored-by: Justin Bennett <[email protected]> Co-authored-by: ryan-m-walker <[email protected]> Co-authored-by: Cristina Shaver <[email protected]> Co-authored-by: Nick Cuthbert <[email protected]> Co-authored-by: Ryan Walker <[email protected]> Co-authored-by: Harshith Pabbati <[email protected]> Co-authored-by: mohammed osama <[email protected]>
(here, we've re-created #1468 against a non-forked branch, so RFCs are visible in pull requests here) (see: #1446 for details)
go ahead and give this rewrite PR a whirl! this is what the new GraphiQL 2.0.0 beta will be based on.
Note: use right click context menu/
f1command palette for the full experience!Context for State Management
useReducersSchemaProvider,SchemaContextSessionProvider,SessionContextEditorProvider,EditorContextthank you so much to @cshaver , @zephraph , @ryan-m-walker, @ncthbrt , and @sgrove for contributing to or chiming in on this effort! no small effort by any means.
Monaco Editor
we spiked on and integrated the fantastic monaco-editor with this PR, using our now monaco-graphql mode.
Redesigned Components and Theme UI
thanks to @walaura 's original work, and @cshaver and @harshithpabbati for moving it forward. we are well underway with implementing the redesign!
Temporary Breakages
some features are temporarily disabled by this effort, in the interest of rapid iteration:
Preview
(use right click/f1 context menu for funsies!)
https://deploy-preview-1523--graphiql-test.netlify.app/bundle/dist/