Skip to content
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

Graphiql typescript migration #1242

Merged
merged 27 commits into from
Feb 14, 2020

Conversation

acao
Copy link
Member

@acao acao commented Jan 18, 2020

For #1189 - Convert GraphiQL to Typescript with minimal production changes. True refactor is ideal.

@rohit-gohri
Copy link
Contributor

Hi, I reached here from : https://twitter.com/rikki_js/status/1222299215126302720?s=19

How can I help?

I had a look at the PR and noticed that even though it can use new TS features like optional chaining it isn't using it everywhere. If you could point me to a section that I might work on would be great (will open a PR to this branch?). Or I can just point out the things in a review first?

@acao
Copy link
Member Author

acao commented Jan 30, 2020

@rohit-smpx thanks so much for helping out! thats will be great!

what would probably work best would be for you to fork graphiql and open a PR against this branch on graphql/graphiql. just post PR here in comments, and then we can merge them into this working branch?

if you see anywhere to make improvements such as optional chaining, or improved typings in general for graphiql thats always helpful. if you pull it up in vscode you can see what’s left, mostly the top level src/ components like GraphiQL.tsx

@acao
Copy link
Member Author

acao commented Jan 30, 2020

we are keeping it as close to a refactor as possible for now, so that we can begin rearchitecting with confidence following this conversion effort

@rohit-gohri
Copy link
Contributor

we are keeping it as close to a refactor as possible for now, so that we can begin rearchitecting with confidence following this conversion effort

Got it. I'll try my hand at this by tomorrow.

@acao
Copy link
Member Author

acao commented Feb 6, 2020

Looks like next week is going to be much more realistic for me to dive in on this. Lots of planning this week

@acao
Copy link
Member Author

acao commented Feb 12, 2020

@rohit-gohri we merged your PR, thanks for your suggestions they were very helpful and important!

@acao acao marked this pull request as ready for review February 12, 2020 04:58
@rohit-gohri
Copy link
Contributor

@rohit-gohri we merged your PR, thanks for your suggestions they were very helpful and important!

Glad to be of any help :D

@acao acao force-pushed the graphiql-typescript-migration branch from 8d62451 to 329e8ae Compare February 12, 2020 05:19
@@ -11,7 +11,15 @@ import React from 'react';

import onHasCompletion from '../utility/onHasCompletion';
import commonKeys from '../utility/commonKeys';
import { SizerComponent } from 'src/utility/CodeMirrorSizer';

declare module CodeMirror {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying to fix this before, so I opened a PR in DefinitelyTyped : DefinitelyTyped/DefinitelyTyped#42194 I think this can be removed when that gets merged?

Copy link
Member Author

@acao acao Feb 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great! thank you for that! i was too lazy to do that 😆

monaco is typescript native and will be much easier, so all of the codemirror stuff will be vanishing soon, which is one of our next big steps

@acao acao force-pushed the graphiql-typescript-migration branch 3 times, most recently from 6fc5029 to 9046803 Compare February 14, 2020 04:58
@acao acao force-pushed the graphiql-typescript-migration branch from 9046803 to d8bd509 Compare February 14, 2020 05:12
@acao
Copy link
Member Author

acao commented Feb 14, 2020

@ryan-m-walker I think we're done for this pass 😆

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

Successfully merging this pull request may close these issues.

3 participants