Files
talk/src/core/client/admin/local/local.graphql
T
Vinh 413f3e2f1e [CORL-166] Live Updates on Mod Queues (#2368)
* feat: client implementation of subscriptions and modqueue live counts

* fix: unit tests

* feat: live status update in moderation

* feat: live update of new comments in moderation

* chore: View New instead of View More

* feat: fade in transition for new comments

* chore: turn websocket proxy back on

* feat: initial server impl

* fix: make it work :-)

* fix: add box shadow

* chore: make test subscriptions only support 1 top level field following the spec

* fix: linting

* feat: support clientID

* fix: linting

* feat: support commentStatusUpdated subscription

* fix: disabled styles for approve and reject button

* feat: show moderated by system and update flags

* feat: support metrics recording on websocket connections

* fix: handle when same comment enters but leaves again
2019-06-21 17:01:07 +00:00

40 lines
693 B
GraphQL

# Extend graph with local types
type Network {
isOffline: Boolean!
}
enum View {
SIGN_IN
CREATE_USERNAME
CREATE_PASSWORD
ADD_EMAIL_ADDRESS
}
extend type Comment {
# If true then Comment status was live updated.
statusLiveUpdated: Boolean
# If true then Comment came in live.
enteredLive: Boolean
}
extend type CommentsConnection {
# Contains comment that came in live and is still behind the `View New` button.
viewNewEdges: [CommentEdge!]
}
type Local {
network: Network!
accessToken: String
accessTokenExp: Int
accessTokenJTI: String
loggedIn: Boolean!
redirectPath: String
authView: View
authError: String
}
extend type Query {
local: Local!
}