[CORL-130] Handle non-visible comment status (#2213)

* feat: support blue color in message

* feat: Show message when comment is in review

* feat: handle non-visible comment status

* test: add feature test for handling invisible comment status

* fix: apply review

* chore: better comment :-)

* Update isVisible.ts
This commit is contained in:
Kiwi
2019-03-05 19:15:33 +01:00
committed by GitHub
parent 4e043638f6
commit 37959f9398
60 changed files with 874 additions and 318 deletions
@@ -14,5 +14,6 @@ export const Story: GQLStoryTypeResolver<story.Story> = {
closedAt: (s, input, ctx) => getStoryClosedAt(ctx.tenant, s),
commentActionCounts: s => decodeActionCounts(s.commentCounts.action),
commentCounts: s => s.commentCounts.status,
moderation: (s, input, ctx) => ctx.tenant.moderation,
moderationQueues: storyModerationInputResolver,
};
@@ -1581,6 +1581,11 @@ type Story {
createdAt is the date that the Story was created at.
"""
createdAt: Time!
"""
moderation determines whether or not this is a PRE or POST moderated story.
"""
moderation: MODERATION_MODE!
}
################################################################################
@@ -1697,7 +1702,7 @@ type CreateCommentPayload {
"""
edge is the possibly created comment edge.
"""
edge: CommentEdge
edge: CommentEdge!
"""
clientMutationId is required for Relay support.
@@ -1747,7 +1752,7 @@ type CreateCommentReplyPayload {
"""
edge is the possibly created comment edge.
"""
edge: CommentEdge
edge: CommentEdge!
"""
clientMutationId is required for Relay support.
@@ -1787,7 +1792,7 @@ type EditCommentPayload {
"""
comment is the possibly edited comment.
"""
comment: Comment
comment: Comment!
"""
clientMutationId is required for Relay support.