Repository navigation
Render the overview page with React - #1096
Merged
Merged
Conversation
Title bar looks pretty good, actions are not wired. Co-Authored-By: Stanley Goldman <[email protected]>
Co-Authored-By: Stanley Goldman <[email protected]>
Co-Authored-By: Tilde Ann Thurium <[email protected]>
Co-Authored-By: Tilde Ann Thurium <[email protected]>
Co-Authored-By: Tilde Ann Thurium <[email protected]>
Closed
1 of 7 tasks
Rachel Macfarlane (RMacfarlane)
left a comment
Contributor
There was a problem hiding this comment.
I like the structure of this!! Breaking things up into smaller files is really nice. I think having a components folder within preview-src for tsx files would be helpful.
One other piece I noticed was missing is the reviewers/labels sidebar section
added 4 commits
May 3, 2019 12:57
Contributor
Author
|
Okay, got through those changes, and finally got us saving and restoring draft comments appropriately. PTAL Rachel Macfarlane (@RMacfarlane) Stanley Goldman (@StanleyGoldman) |
Ashi Krishnan (queerviolet)
requested review from
Rachel Macfarlane (RMacfarlane) and
Stanley Goldman (StanleyGoldman)
May 3, 2019 18:08
added 3 commits
May 6, 2019 16:08
Co-Authored-By: [email protected]
Ashi Krishnan (queerviolet)
force-pushed
the
qv/react
branch
from
May 6, 2019 20:44
c5d72c8 to
3992696
Compare
Contributor
|
Two things just noticed, don't want to forget.
|
Co-Authored-By: [email protected]
…omment Checking if the repository returns avatars
…ithub into qv/react
Ashi Krishnan (queerviolet)
requested a review
from Rachel Macfarlane (RMacfarlane)
May 7, 2019 17:58
Stanley Goldman (StanleyGoldman)
approved these changes
May 8, 2019
Rachel Macfarlane (RMacfarlane)
approved these changes
May 8, 2019
Rachel Macfarlane (RMacfarlane)
left a comment
Contributor
There was a problem hiding this comment.
LGTM!
5 tasks done
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces React, which we then use to render the preview page.
The conversion is fairly straightforward, mostly maintaining the page structure and appearance while converting the plumbing to React. We now use a React context—the
PullRequestContext, defined incontext.tsx, to pass mutation functions down to components. The context object, initialized at page load time, also maintains the current state of the PR, and sends it to the root component via an event listener.Fixes #416
TODO: