[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:
Kiwi
2019-02-13 18:06:42 +01:00
committed by GitHub
parent f4037ce6fb
commit 51880bcfc9
64 changed files with 1365 additions and 184 deletions
@@ -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