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

Render resolved conversations differently on description page #2471

Merged
merged 1 commit into from
Feb 8, 2021

Conversation

RMacfarlane
Copy link
Contributor

@RMacfarlane RMacfarlane commented Feb 5, 2021

Fetch whether review threads are resolved, and show them collapsed on the description page.
Screen Shot 2021-02-05 at 12 00 45 PM

Screen Shot 2021-02-05 at 12 00 52 PM

First part of #339

@@ -255,7 +255,7 @@ export function convertGraphQLEventType(text: string) {
}
}

export function parseGraphQLComment(comment: GraphQL.ReviewComment): IComment {
export function parseGraphQLComment(comment: GraphQL.ReviewComment, isResolved: boolean): IComment {
Copy link
Member

Choose a reason for hiding this comment

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

Why not update GraphQL.ReviewComment to include the resolved property so that you don't have to pass it as an additional param here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The property is actually at the thread level instead of on individual comments, but I thought adding a concept of threads instead of the comments we use everywhere was too big of a refactoring

@RMacfarlane RMacfarlane merged commit 1d31bcf into master Feb 8, 2021
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.

2 participants