mirror of
https://github.com/wassname/talk.git
synced 2026-09-11 12:51:33 +08:00
[CORL-681] Configurable Staff Badges (#2620)
* feat: added configurable staff badge * fix: removed ambigous styles
This commit is contained in:
@@ -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.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user