[CORL-218] In Stream Approve and Reject (#2340)

* feat: instream moderation

* fix: tests

* test: add tests for in stream moderation

* fix: lint

* fix: snapshots
This commit is contained in:
Kiwi
2019-06-04 19:27:15 +02:00
committed by GitHub
parent 1cf2f61bfb
commit 593d94ddbb
74 changed files with 1106 additions and 297 deletions
+15 -6
View File
@@ -1,23 +1,29 @@
enum View {
enum VIEW {
SIGN_UP
SIGN_IN
FORGOT_PASSWORD
}
enum Tab {
enum TAB {
COMMENTS
PROFILE
}
enum ProfileTab {
enum PROFILE_TAB {
MY_COMMENTS
SETTINGS
}
enum COMMENT_VIEWER_ACTION {
EDIT
ACCEPT
REJECT
}
type AuthPopup {
open: Boolean!
focus: Boolean!
view: View
view: VIEW
}
extend type Comment {
@@ -26,6 +32,9 @@ extend type Comment {
# localReplies contains only comments created by the user
# on the ultimate threading level.
localReplies: [Comment!]
# Remember last viewer action that could have caused a status change.
lastViewerAction: COMMENT_VIEWER_ACTION
}
type Local {
@@ -33,13 +42,13 @@ type Local {
accessTokenExp: Int
accessTokenJTI: String
loggedIn: Boolean!
activeTab: Tab!
activeTab: TAB!
authPopup: AuthPopup!
storyID: String
storyURL: String
commentID: String
defaultStreamOrderBy: COMMENT_SORT!
profileTab: ProfileTab!
profileTab: PROFILE_TAB!
bla: [String]
}