mirror of
https://github.com/wassname/talk.git
synced 2026-08-15 12:55:10 +08:00
[CORL-129] Render Community Guidelines (#2191)
* chore: Rename InnerProps to Props * feat: Render community guidelines * chore: refactor schema communityGuidelines* settings into it's own type * test: update snapshots
This commit is contained in:
@@ -821,6 +821,22 @@ type ReactionConfiguration {
|
||||
color: String
|
||||
}
|
||||
|
||||
################################################################################
|
||||
## CommunityGuidelines
|
||||
################################################################################
|
||||
|
||||
type CommunityGuidelines {
|
||||
"""
|
||||
enable set to true will show the guidelines above the question box.
|
||||
"""
|
||||
enabled: Boolean!
|
||||
|
||||
"""
|
||||
content of the guidelines.
|
||||
"""
|
||||
content: String
|
||||
}
|
||||
|
||||
################################################################################
|
||||
## Settings
|
||||
################################################################################
|
||||
@@ -870,14 +886,9 @@ type Settings {
|
||||
requireEmailConfirmation: Boolean!
|
||||
|
||||
"""
|
||||
communityGuidelinesEnable will show the guidelines above the question box.
|
||||
communityGuidelines will be shown in the comments stream.
|
||||
"""
|
||||
communityGuidelinesEnable: Boolean!
|
||||
|
||||
"""
|
||||
communityGuidelines is the content of the guidelines.
|
||||
"""
|
||||
communityGuidelines: String
|
||||
communityGuidelines: CommunityGuidelines!
|
||||
|
||||
"""
|
||||
questionBoxEnable will enable the Question Box's content to be visible above
|
||||
@@ -2085,6 +2096,18 @@ input SettingsKarmaInput {
|
||||
thresholds: SettingsKarmaThresholdsInput
|
||||
}
|
||||
|
||||
input SettingsCommunityGuidelinesInput {
|
||||
"""
|
||||
enable set to true will show the guidelines above the question box.
|
||||
"""
|
||||
enabled: Boolean
|
||||
|
||||
"""
|
||||
content of the guidelines.
|
||||
"""
|
||||
content: String
|
||||
}
|
||||
|
||||
input SettingsCharCountInput {
|
||||
"""
|
||||
enabled when true, enables the character count moderation phase.
|
||||
@@ -2122,15 +2145,9 @@ input SettingsInput {
|
||||
requireEmailConfirmation: Boolean
|
||||
|
||||
"""
|
||||
communityGuidelinesEnable will enable the Info Box content visible above the question
|
||||
box.
|
||||
communityGuidelines will be shown in the comments stream.
|
||||
"""
|
||||
communityGuidelinesEnable: Boolean
|
||||
|
||||
"""
|
||||
communityGuidelines is the content of the Info Box.
|
||||
"""
|
||||
communityGuidelines: String
|
||||
communityGuidelines: SettingsCommunityGuidelinesInput
|
||||
|
||||
"""
|
||||
questionBoxEnable will enable the Question Box's content to be visible above
|
||||
|
||||
Reference in New Issue
Block a user