-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
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 <zephraph@gmail.com> Co-Authored-By: ryan-m-walker <ryan.matthew.walker@gmail.com> Co-Authored-By: Cristina Shaver <cristina.shaver@gmail.com> Co-Authored-By: Nick Cuthbert <nick@cuthbert.co.za>
Co-Authored-By: Cristina Shaver <cristina.shaver@gmail.com> Co-Authored-By: Ryan Walker <ryan.matthew.walker@gmail.com>
just implements layout
Co-Authored-By: Harshith Pabbati <pabbatiharshith@gmail.com>
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 <zephraph@gmail.com> Co-authored-by: ryan-m-walker <ryan.matthew.walker@gmail.com> Co-authored-by: Cristina Shaver <cristina.shaver@gmail.com> Co-authored-by: Nick Cuthbert <nick@cuthbert.co.za> Co-authored-by: Ryan Walker <ryan.matthew.walker@gmail.com> Co-authored-by: Harshith Pabbati <pabbatiharshith@gmail.com> Co-authored-by: mohammed osama <mohammedosama@ieee.org>
(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/
f1
command palette for the full experience!Context for State Management
useReducers
SchemaProvider
,SchemaContext
SessionProvider
,SessionContext
EditorProvider
,EditorContext
thank 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/