Skip to content

feat: [RFC] Rewrite for monaco editor, react context and the beginnings of the redesign #1468

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

Closed
wants to merge 45 commits into from

Conversation

acao
Copy link
Member

@acao acao commented Apr 6, 2020

moved to a non forked branch, #1523

acao and others added 20 commits March 15, 2020 14:56
…hql#1380)

* Initial migration context wrapper
* Pull out other static properties
* Fix refs bug by properly accessing current
* made errors consitent across providers
* allowed for multiple errors
* preserved error objects to allow more custom usage
* eslint-plugin-react-hooks
* Move query facts out of session state
* Rename sessionReducer
* used the return type of the action creators for the action types
@acao acao changed the title Feat/use context hooks feat: schema provider and operation session context using context/useReducer Apr 6, 2020
@harshithpabbati
Copy link
Contributor

next steps:

  • merge in @harshithpabbati's PR above
  • yank out changes to most everywhere except packages/graphiql, thus maybe a few smaller, pre-cursory PRs. for example, improvements to monaco-graphql anbd the LSP to suit this PR can be broken out into it's own PR. this PR should be packages/graphiql and whatever tooling/etc changes required

new directions:

  • if someone wants to spike a PR adding react-i18n-next to this, that would be rad. there's a lingering closed PR that did this with russian translations. the author had also rewrote a significant portion of the codebase in the PR and he didn't make a simplified version.
  • A PR to pull doc explorer into a new, seperate npm package named @graphiql-plugins/doc-explorer-classic and import as a prop, or to replace it with a green plugin component for the new doc explorer :D. repeat with query explorer!
  • spike off this PR to add a PluginManagerContext for rendering plugin components that invoke API behaviors
  • adding a bunch of cool components and improvements to the new src/components/common

@acao shall I start with pulling the doc-explorer component to @graphiql-plugins/doc-explorer-classic ?

@acao
Copy link
Member Author

acao commented May 7, 2020

@harshithpabbati I've been working on that and the props interface for tabs today, taking care of a sick family member as well so I haven't finished. Would you be interested in taking a pass at adding react-i18n-next? just to add tooling and to handle the english locale strings for one or a few components to get started, or you could go all out on that if you want!

@harshithpabbati
Copy link
Contributor

@harshithpabbati I've been working on that and the props interface for tabs today, taking care of a sick family member as well so I haven't finished. Would you be interested in taking a pass at adding react-i18n-next? just to add tooling and to handle the english locale strings for one or a few components to get started, or you could go all out on that if you want!

Yeah, sure I will look into it.

@harshithpabbati
Copy link
Contributor

@harshithpabbati I've been working on that and the props interface for tabs today, taking care of a sick family member as well so I haven't finished. Would you be interested in taking a pass at adding react-i18n-next? just to add tooling and to handle the english locale strings for one or a few components to get started, or you could go all out on that if you want!

I wish he/she get well soon

@acao
Copy link
Member Author

acao commented May 8, 2020

thank you! she will be ok, she doesn’t have covid thankfully, still taking care of her though

so, the effort of pluginifying doc explorer is taking a bit longer but we’re almost there! i fixed the editor display locally.

@acao
Copy link
Member Author

acao commented May 9, 2020

@harshithpabbati merged! now you'll want to update your i18n PR

@harshithpabbati
Copy link
Contributor

@acao yeah, I am on it!

@acao acao force-pushed the feat/use-context-hooks branch from c6193c4 to d199a94 Compare May 9, 2020 15:53
@acao acao force-pushed the feat/use-context-hooks branch from d1b4851 to f3925b6 Compare May 9, 2020 16:21
@acao
Copy link
Member Author

acao commented May 11, 2020

hmm... I've think I've gone one bridge too far bringing the plugin ecosystem into this PR. heads up @harshithpabbati, going to revert my last three commits and we can make another branch for the plugin effort to be based off of

@acao acao force-pushed the feat/use-context-hooks branch 2 times, most recently from 5dec9be to 429b488 Compare May 11, 2020 21:28
@acao acao changed the title feat: [RFC] Rewrite for Monaco, Context, Plugins and Redesign feat: [RFC] Rewrite for Monaco, Context and the beginnings of the Redesign May 11, 2020
@acao acao force-pushed the feat/use-context-hooks branch 2 times, most recently from b384999 to 87a5570 Compare May 11, 2020 22:35
@acao acao force-pushed the feat/use-context-hooks branch from 87a5570 to 9fd2682 Compare May 11, 2020 23:29
@harshithpabbati
Copy link
Contributor

harshithpabbati commented May 12, 2020

@acao type in commit-msg
it should be Co-authored-by: harshithpabbati <[email protected]>

@acao acao changed the title feat: [RFC] Rewrite for Monaco, Context and the beginnings of the Redesign feat: [RFC] Rewrite for monaco editor, react context and the beginnings of the redesign May 13, 2020
@acao acao changed the title feat: [RFC] Rewrite for monaco editor, react context and the beginnings of the redesign feat: [RFC] Rewrite for monaco editor, react context and the beginnings of the redesign May 13, 2020
@acao
Copy link
Member Author

acao commented May 13, 2020

moving to #1523

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphiql rfc Request for Comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GraphiQL Plugins (2.0.0-beta.0) Meta Issue
6 participants