[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
@@ -4,16 +4,14 @@ import { ConnectionHandler, Environment } from "relay-runtime";
import {
commitMutationPromiseNormalized,
createMutationContainer,
MutationInput,
MutationResponsePromise,
} from "talk-framework/lib/relay";
import { Omit } from "talk-framework/types";
import { RejectCommentMutation as MutationTypes } from "talk-admin/__generated__/RejectCommentMutation.graphql";
import { getQueueConnection } from "talk-admin/helpers";
export type RejectCommentInput = Omit<
MutationTypes["variables"]["input"],
"clientMutationId"
>;
export type RejectCommentInput = MutationInput<MutationTypes>;
const mutation = graphql`
mutation RejectCommentMutation($input: RejectCommentInput!) {
@@ -78,4 +76,4 @@ export const withRejectCommentMutation = createMutationContainer(
export type RejectCommentMutation = (
input: RejectCommentInput
) => Promise<MutationTypes["response"]["rejectComment"]>;
) => MutationResponsePromise<MutationTypes, "rejectComment">;