[CORL-681] Configurable Staff Badges (#2620)

* feat: added configurable staff badge

* fix: removed ambigous styles
This commit is contained in:
Wyatt Johnson
2019-10-04 20:22:31 +00:00
committed by GitHub
parent e7ab0b27f9
commit 918ba10867
32 changed files with 428 additions and 44 deletions
@@ -1085,16 +1085,29 @@ type CommenterAccountFeatures {
changeUsername when true, non-sso user may change username every 14 days
"""
changeUsername: Boolean!
"""
downloadComments when true, user may download their comment history
"""
downloadComments: Boolean!
"""
deleteAccount when true, non-sso user may permanently delete their account
"""
deleteAccount: Boolean!
}
"""
StaffConfiguration specifies the configuration for the staff badges assigned to
users with any role above COMMENTER.
"""
type StaffConfiguration {
"""
label is the string used when displaying the STAFF badge to users.
"""
label: String!
}
"""
Settings stores the global settings for a given Tenant.
"""
@@ -1210,6 +1223,12 @@ type Settings {
"""
reaction: ReactionConfiguration!
"""
staff specifies the configuration for the staff badges assigned to users with
any role above COMMENTER.
"""
staff: StaffConfiguration!
"""
accountFeatures stores the configuration for commenter account features.
"""
@@ -3280,8 +3299,8 @@ input StoryConfigurationInput {
}
"""
ReactionConfigurationInput stores the configuration for reactions used across this
Tenant.
ReactionConfigurationInput stores the configuration for reactions used across
this Tenant.
"""
input ReactionConfigurationInput {
"""
@@ -3318,6 +3337,17 @@ input ReactionConfigurationInput {
color: String
}
"""
StaffConfigurationInput specifies the configuration for the staff badges
assigned to users with any role above COMMENTER.
"""
input StaffConfigurationInput {
"""
label is the string used when displaying the STAFF badge to users.
"""
label: String
}
"""
CommenterAccountFeatures stores the configuration for commenter account features.
"""
@@ -3435,6 +3465,12 @@ input SettingsInput {
"""
reaction: ReactionConfigurationInput
"""
staff specifies the configuration for the staff badges assigned to users with
any role above COMMENTER.
"""
staff: StaffConfigurationInput
"""
accountFeatures specifies the configuration for accounts.
"""