Skip to content

Commit

Permalink
feat: Use comments for feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
attiks committed Nov 8, 2023
1 parent f71dade commit c27f25c
Show file tree
Hide file tree
Showing 35 changed files with 1,586 additions and 922 deletions.
24 changes: 0 additions & 24 deletions config/admin_feedback.settings.yml

This file was deleted.

38 changes: 0 additions & 38 deletions config/block.block.common_design_subtheme_adminfeedbackblock.yml

This file was deleted.

3 changes: 3 additions & 0 deletions config/comment.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_core:
default_config_hash: YNUW2Ij5uE7a4oaXp3i_2lvaFdYM1zNKPPfnEjB0jEc
log_ip_addresses: false
8 changes: 8 additions & 0 deletions config/comment.type.ai_feedback.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uuid: c3aec219-4b3c-4e26-9153-0a530e881e14
langcode: en
status: true
dependencies: { }
id: ai_feedback
label: 'AI Feedback'
target_entity_type_id: node
description: ''
1 change: 1 addition & 0 deletions config/config_split.config_split.config_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ label: config_dev
description: 'Dev modules and settings not suitable for production.'
weight: 0
stackable: false
no_patching: false
storage: folder
folder: ../config_dev
module:
Expand Down
37 changes: 37 additions & 0 deletions config/core.entity_form_display.comment.ai_feedback.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
uuid: d89a11eb-3a7e-453c-8256-d576e8d5ef8d
langcode: en
status: true
dependencies:
config:
- comment.type.ai_feedback
- field.field.comment.ai_feedback.comment_body
- field.field.comment.ai_feedback.field_rating
module:
- text
id: comment.ai_feedback.default
targetEntityType: comment
bundle: ai_feedback
mode: default
content:
author:
weight: 0
region: content
settings: { }
third_party_settings: { }
comment_body:
type: text_textarea
weight: 2
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_rating:
type: options_select
weight: 1
region: content
settings: { }
third_party_settings: { }
hidden:
langcode: true
subject: true
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ dependencies:
config:
- field.field.node.action_points.field_action_points
- field.field.node.action_points.field_ai_brain
- field.field.node.action_points.field_ai_feedback
- field.field.node.action_points.field_auto_create
- field.field.node.action_points.field_automatic_mode
- field.field.node.action_points.field_document
- field.field.node.action_points.field_document_text
- node.type.action_points
- workflows.workflow.action_points
module:
- comment
- content_moderation
- file
- path
Expand Down Expand Up @@ -42,6 +44,12 @@ content:
region: content
settings: { }
third_party_settings: { }
field_ai_feedback:
type: comment_default
weight: 26
region: content
settings: { }
third_party_settings: { }
field_auto_create:
type: boolean_checkbox
weight: 4
Expand Down
8 changes: 8 additions & 0 deletions config/core.entity_form_display.node.summary.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- field.field.node.summary.field_ai_brain
- field.field.node.summary.field_ai_feedback
- field.field.node.summary.field_auto_create
- field.field.node.summary.field_automatic_mode
- field.field.node.summary.field_document
Expand All @@ -13,6 +14,7 @@ dependencies:
- node.type.summary
- workflows.workflow.summarize
module:
- comment
- content_moderation
- file
- path
Expand All @@ -34,6 +36,12 @@ content:
region: content
settings: { }
third_party_settings: { }
field_ai_feedback:
type: comment_default
weight: 26
region: content
settings: { }
third_party_settings: { }
field_auto_create:
type: boolean_checkbox
weight: 4
Expand Down
33 changes: 33 additions & 0 deletions config/core.entity_view_display.comment.ai_feedback.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
uuid: d057b8d8-5c15-46eb-9e78-1fe21ae3e26c
langcode: en
status: true
dependencies:
config:
- comment.type.ai_feedback
- field.field.comment.ai_feedback.comment_body
- field.field.comment.ai_feedback.field_rating
module:
- options
- text
id: comment.ai_feedback.default
targetEntityType: comment
bundle: ai_feedback
mode: default
content:
comment_body:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 1
region: content
field_rating:
type: list_default
label: inline
settings: { }
third_party_settings: { }
weight: 0
region: content
hidden:
langcode: true
links: true
18 changes: 13 additions & 5 deletions config/core.entity_view_display.node.action_points.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ langcode: en
status: true
dependencies:
config:
- core.entity_view_display.comment.ai_feedback.default
- field.field.node.action_points.field_action_points
- field.field.node.action_points.field_ai_brain
- field.field.node.action_points.field_ai_feedback
- field.field.node.action_points.field_auto_create
- field.field.node.action_points.field_automatic_mode
- field.field.node.action_points.field_document
- field.field.node.action_points.field_document_text
- node.type.action_points
module:
- comment
- file
- options
- text
Expand Down Expand Up @@ -39,6 +42,15 @@ content:
third_party_settings: { }
weight: 1
region: content
field_ai_feedback:
type: comment_default
label: above
settings:
view_mode: default
pager_id: 0
third_party_settings: { }
weight: 5
region: content
field_automatic_mode:
type: boolean
label: inline
Expand All @@ -57,13 +69,9 @@ content:
third_party_settings: { }
weight: 2
region: content
links:
settings: { }
third_party_settings: { }
weight: 5
region: content
hidden:
field_auto_create: true
field_document_text: true
langcode: true
links: true
private: true
2 changes: 2 additions & 0 deletions config/core.entity_view_display.node.action_points.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- core.entity_view_mode.node.teaser
- field.field.node.action_points.field_action_points
- field.field.node.action_points.field_ai_brain
- field.field.node.action_points.field_ai_feedback
- field.field.node.action_points.field_auto_create
- field.field.node.action_points.field_automatic_mode
- field.field.node.action_points.field_document
Expand Down Expand Up @@ -39,6 +40,7 @@ content:
hidden:
field_action_points: true
field_ai_brain: true
field_ai_feedback: true
field_auto_create: true
field_automatic_mode: true
field_document: true
Expand Down
18 changes: 13 additions & 5 deletions config/core.entity_view_display.node.summary.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ langcode: en
status: true
dependencies:
config:
- core.entity_view_display.comment.ai_feedback.default
- field.field.node.summary.field_ai_brain
- field.field.node.summary.field_ai_feedback
- field.field.node.summary.field_auto_create
- field.field.node.summary.field_automatic_mode
- field.field.node.summary.field_document
Expand All @@ -12,6 +14,7 @@ dependencies:
- field.field.node.summary.field_summary
- node.type.summary
module:
- comment
- file
- options
- user
Expand All @@ -32,6 +35,15 @@ content:
third_party_settings: { }
weight: 1
region: content
field_ai_feedback:
type: comment_default
label: above
settings:
view_mode: default
pager_id: 0
third_party_settings: { }
weight: 6
region: content
field_automatic_mode:
type: boolean
label: inline
Expand Down Expand Up @@ -64,13 +76,9 @@ content:
third_party_settings: { }
weight: 4
region: content
links:
settings: { }
third_party_settings: { }
weight: 6
region: content
hidden:
field_auto_create: true
field_document_text: true
langcode: true
links: true
private: true
2 changes: 2 additions & 0 deletions config/core.entity_view_display.node.summary.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.summary.field_ai_brain
- field.field.node.summary.field_ai_feedback
- field.field.node.summary.field_auto_create
- field.field.node.summary.field_automatic_mode
- field.field.node.summary.field_document
Expand Down Expand Up @@ -39,6 +40,7 @@ content:
region: content
hidden:
field_ai_brain: true
field_ai_feedback: true
field_auto_create: true
field_automatic_mode: true
field_document: true
Expand Down
12 changes: 12 additions & 0 deletions config/core.entity_view_mode.comment.full.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
uuid: a9918c3f-a048-417d-80df-1f750c78ec01
langcode: en
status: false
dependencies:
module:
- comment
_core:
default_config_hash: K7eNlfU7NEUajz01wItywZklr2oaPgL6s1_97fmDXLA
id: comment.full
label: 'Full comment'
targetEntityType: comment
cache: true
2 changes: 1 addition & 1 deletion config/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ _core:
default_config_hash: R4IF-ClDHXxblLcG0L7MgsLvfBIMAvi_skumNFQwkDc
module:
admin_denied: 0
admin_feedback: 0
allowed_formats: 0
block: 0
breakpoint: 0
ckeditor5: 0
comment: 0
components: 0
config: 0
config_split: 0
Expand Down
22 changes: 22 additions & 0 deletions config/field.field.comment.ai_feedback.comment_body.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: f2bf0aa1-874b-4273-adc8-e9301c4741ab
langcode: en
status: true
dependencies:
config:
- comment.type.ai_feedback
- field.storage.comment.comment_body
module:
- text
id: comment.ai_feedback.comment_body
field_name: comment_body
entity_type: comment
bundle: ai_feedback
label: Comment
description: ''
required: true
translatable: true
default_value: { }
default_value_callback: ''
settings:
allowed_formats: { }
field_type: text_long
Loading

0 comments on commit c27f25c

Please sign in to comment.