forked from netcreateorg/netcreate-2018
-
Notifications
You must be signed in to change notification settings - Fork 1
Comment Template
benloh edited this page Feb 7, 2025
·
1 revision
See PR #319
Comment types can be defined in the project's *.template.toml
file.
[[commentTypes]]
slug = "cmt"
label = "Comment"
[[commentTypes.prompts]]
format = "text"
prompt = "My Comment"
help = "You might start with 'I think...'"
feedback = "Feedback is displayed below the input field."
[[commentTypes]]
slug = "evidence"
label = "Evidence Critique or Suggestion"
[[commentTypes.prompts]]
format = "dropdown"
prompt = "Is this supported by evidence?"
options = ['😀 Yes', '🤔 Some', '🥲 No']
help = "Select one."
feedback = "Only one is selectable"
[[commentTypes.prompts]]
format = "text"
prompt = "What would you change?"
help = "Please be specific to help your friend."
- By default, the first comment type defined in
*.template.toml
is used as the default comment type. - Any new project will use the comment types defined in
_default.template.toml
. You can edit that file to have new projects automatically use the comment types defined in_default.template.toml
. - If there is no type defined in the
*.template.toml
file, the system will first try to use the types definedDEFAULT_CommentTypes
indc-comments
. This allows you to assign a standard set of comments if you're comfortable code diving, but is not intended for regular use. - If
DEFAULT_CommentTypes
is not defined indc-comments
, the system will fall back to a single generic template. This ensures that there is ALWAYS a usable comment type even if the project anddc-comments
are not defined:
const DEFAULT_COMMENTTYPE: TCommentType = {
slug: 'cmt',
label: 'Comment', // comment type label
prompts: [
{
format: 'text',
prompt: 'Comment', // prompt label
help: 'Use this for any general comment.',
feedback: ''
}
]
};
Currently (as of 1/6/2025), known CType
slugs are:
export type CType =
| 'cmt'
| 'tellmemore'
| 'source'
| 'evidence'
| 'clarity'
| 'steps'
| 'response'
| string;
...but you can also use any other string for a custom comment.
- HOME
- Releases
- Installation Guide
-
User Guide
- Advanced Panel
-
Using Templates
- Edit Template
- Template Filed Types Reference:
- Template Technical Overview
- Filters
- Import/Export
- Database Version Documentation
- Deployment
- Using Turbo360
- Documentation ToDo
- Decision Log
- Useful Reading
- Design Goals
- Code Review: Old UI Dataflow and followup UI Dataflow Design
- UNISYS Architecture
- User Sessions
- Developer Reference
- Migrating Data -- Deprecated