Files
talk/src/core/client/stream/local/local.graphql
T
Tessa ThorntonandKim Gardner ac203607ae [CORL-561, CORL-562] Comment stream and account profile styling cleanup (#2517)
* update styles for comment stream

* more comment styling fixes

* reconfigure settings tab and account settings in stream

* add new button variant

* style settings tab

* style change username/email/password

* clean up settings tab

* integrate account deletion to account settings

* update comment history styles

* more history comment styles

* update snaps

* move userbox

* fix tests

* fix delete account tests

* update message box styling

* update snap

* update snaps

* fix lints

* update snaps again

* userbox styles

* history comment styling

* update snaps

* fix ts

* Integrate notifications settings

* clean up account setting styles

* update snaps and tests

* fix lints

* fix: PENDING_DELETION permissions

* chore: sync stable classnames, rename settings to account

* simplify css

* update snaps
2019-09-06 13:41:55 -04:00

76 lines
1.3 KiB
GraphQL

enum VIEW {
SIGN_UP
SIGN_IN
FORGOT_PASSWORD
}
enum TAB {
COMMENTS
PROFILE
}
enum PROFILE_TAB {
MY_COMMENTS
ACCOUNT
NOTIFICATIONS
}
enum COMMENTS_TAB {
"""
NONE is used before the active tab can be determined. The active tab is
determined after we count how many featured comments there are.
"""
NONE
FEATURED_COMMENTS
ALL_COMMENTS
}
enum COMMENT_VIEWER_ACTION {
EDIT
APPROVE
REJECT
}
type AuthPopup {
open: Boolean!
focus: Boolean!
view: VIEW
}
extend type Comment {
# pending is true during the optimistic response.
pending: Boolean
# 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
# 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 {
accessToken: String
accessTokenExp: Int
accessTokenJTI: String
activeTab: TAB!
authPopup: AuthPopup!
storyID: String
storyURL: String
commentID: String
commentsOrderBy: COMMENT_SORT!
profileTab: PROFILE_TAB!
commentsTab: COMMENTS_TAB!
}
extend type Query {
local: Local!
}