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

[nteract/web] Save/upload to Github and other improvements. #5240

Merged
merged 7 commits into from
Aug 5, 2020

Conversation

ramantehlan
Copy link
Member

@ramantehlan ramantehlan commented Jul 30, 2020

This PR is to save back changes to the repo or the fork.

It will also make the following changes:

  • Save back changes to the repo or the fork.

Successor of PR #5167

@nteract nteract deleted a comment from todo bot Jul 30, 2020
@ramantehlan ramantehlan self-assigned this Aug 2, 2020
@ramantehlan ramantehlan changed the title [nteract/web] Save/upload to github [nteract/web] Save/upload to Github and other improvements. Aug 2, 2020
@ramantehlan ramantehlan marked this pull request as ready for review August 2, 2020 19:01
if (!forkFound)
createFork(org, repo)
})
const getFileType = (fileName: string) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

This function is not complete, but it will be used to get file type and update the mode/language type in the editor.

onChange: handleChange
}
}


const listForks = (owner, repo) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

These functions will be moved to a separate util folder since they all are used to work with Github API and are not part of the main component.

@lgtm-com
Copy link

lgtm-com bot commented Aug 2, 2020

This pull request introduces 1 alert when merging c7039c6 into f089b66 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

Copy link
Member

@willingc willingc left a comment

Choose a reason for hiding this comment

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

Thanks @ramantehlan. I've made a few comments prior to @captainsafia's review.

@@ -302,7 +487,7 @@ function addBuffer(e){
}


// We won't be following this logic, we will render the data from github and only send changes to binder
// We won't be following this logic, we will render the data from github and only send changes to binder
Copy link
Member

Choose a reason for hiding this comment

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

Let's go ahead and remove the code if it is not being used. Thanks.

Copy link
Member Author

Choose a reason for hiding this comment

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

It will be used in the next step when will connect binder to nteract web/play. However, that comment is irrelevant now, so I will update it.

applications/web/pages/p/[...params].tsx Show resolved Hide resolved
applications/web/pages/p/[...params].tsx Show resolved Hide resolved
applications/web/pages/p/[...params].tsx Outdated Show resolved Hide resolved
Copy link
Member

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

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

Looks good so far! Left some comments about the API interfaces used.

applications/web/pages/p/[...params].tsx Outdated Show resolved Hide resolved
applications/web/pages/p/[...params].tsx Outdated Show resolved Hide resolved
applications/web/pages/p/[...params].tsx Outdated Show resolved Hide resolved
applications/web/pages/p/[...params].tsx Outdated Show resolved Hide resolved
applications/web/pages/p/[...params].tsx Outdated Show resolved Hide resolved
applications/web/pages/p/[...params].tsx Outdated Show resolved Hide resolved
@todo
Copy link

todo bot commented Aug 4, 2020

Replace all placeholder console with notification

https://github.com/nteract/nteract/blob/b1cb93ad2a1c971993a11fb093cc22f19e019ab2/applications/web/pages/p/[...params].tsx#L334-L339


This comment was generated by todo based on a TODO comment in b1cb93a in #5240. cc @ramantehlan.

@todo
Copy link

todo bot commented Aug 4, 2020

Make the below mode dynamic by identifying the language on open

https://github.com/nteract/nteract/blob/b1cb93ad2a1c971993a11fb093cc22f19e019ab2/applications/web/pages/p/[...params].tsx#L619-L623


This comment was generated by todo based on a TODO comment in b1cb93a in #5240. cc @ramantehlan.

@lgtm-com
Copy link

lgtm-com bot commented Aug 4, 2020

This pull request introduces 1 alert when merging b1cb93a into f089b66 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Aug 4, 2020

This pull request introduces 1 alert when merging 3c6647d into f089b66 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Aug 4, 2020

This pull request introduces 2 alerts when merging 7044197 into f089b66 - view on LGTM.com

new alerts:

  • 2 for Unused variable, import, function or class

@ramantehlan
Copy link
Member Author

ramantehlan commented Aug 4, 2020

@captainsafia and @willingc, Thank you for the review, I have addressed the comments and this PR is ready for review again. : )

I also wanna point out that I have created just one TODO for all the replacements for console notification with actual notification.

Copy link
Member

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

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

Looks good. I'd like to do a more detailed review of the GitHub stuff once it is split out into separate files.

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