-
Notifications
You must be signed in to change notification settings - Fork 673
Render the overview page with React #1096
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
Conversation
Title bar looks pretty good, actions are not wired. Co-Authored-By: Stanley Goldman <stanleygoldman@github.com>
Co-Authored-By: Stanley Goldman <stanleygoldman@github.com>
Co-Authored-By: Tilde Ann Thurium <annthurium@github.com>
Co-Authored-By: Tilde Ann Thurium <annthurium@github.com>
Co-Authored-By: Tilde Ann Thurium <annthurium@github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
Okay, got through those changes, and finally got us saving and restoring draft comments appropriately. PTAL @RMacfarlane @StanleyGoldman |
Co-Authored-By: stanleygoldman@github.com
Co-Authored-By: stanleygoldman@github.com
Co-Authored-By: stanleygoldman@github.com
Co-Authored-By: stanleygoldman@github.com
|
Two things just noticed, don't want to forget.
|
Co-Authored-By: stanleygoldman@github.com
…omment Checking if the repository returns avatars
…ithub into qv/react
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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: