The discussion modal has the title Discussion and, on the right, the status buttons and a close cross. The reply composer sits at the bottom with a commit Reply button.
Tagging is set up per client: typing the tag's trigger character, such as @, lists matching records, and the toolbar can offer a button per tag type. The picked record is saved as a relation of the comment. A click on a tag opens that record in a modal.
composer open; Post stays disabled until there is text or a tag, and the extra fields are valid
New discussion
Open
Open chip; replies allowed; a Resolve button in the modal
a new discussion
Resolved
grey Resolved chip; no reply composer but This discussion is resolved. Reopen it to reply.; Reopen, and Archive for those who took part
Resolve
Archived
gone from the panel's list; Reopen when the discussion is opened
Archive
Read-only
no New discussion, no status buttons, no reply composer, no Edit or Delete
the panel is configured read-only
Edit and delete. Only the author sees Edit and Delete on a comment. Edit shows only while the discussion is open. Delete asks for confirmation in a modal. Deleting the first comment deletes the whole discussion, replies of others included, and the modal says so.
Comments
Discussions about a record: a list of threads on the record's page, each opened in a modal to read and reply.
components-comments--listOpen in Storybook ↗When to use
When not to use
Anatomy
Comments panel: an element panel with the configured title and a collapse chevron.
New discussion: a small commit button with a plus icon at the top of the panel. It opens the composer in place.
Composer: a WYSIWYG editor that is open for typing, the client's extra fields (such as a category) under it, then Cancel and a commit Post button.
Discussion card, newest first. The header line holds:
The comment text follows under the header.
Tag: a record named in the text, as an inline chip in
--color-accent-lightwith an accent outline.Variants
components-comments--threadOpen in Storybook ↗The discussion modal has the title Discussion and, on the right, the status buttons and a close cross. The reply composer sits at the bottom with a commit Reply button.
components-comments--composerOpen in Storybook ↗Tagging is set up per client: typing the tag's trigger character, such as
@, lists matching records, and the toolbar can offer a button per tag type. The picked record is saved as a relation of the comment. A click on a tag opens that record in a modal.States
Edit and delete. Only the author sees Edit and Delete on a comment. Edit shows only while the discussion is open. Delete asks for confirmation in a modal. Deleting the first comment deletes the whole discussion, replies of others included, and the modal says so.
Keyboard & accessibility
Content
comments.new-thread,comments.post,comments.reply,comments.save,comments.cancel,comments.edit,comments.edited,comments.delete,comments.resolve,comments.archive,comments.reopen,comments.thread-title,comments.empty,comments.loading,comments.unknown-author,comments.new,comments.reply-count,comments.status.*,comments.resolved-hint,comments.archived-hint,confirm.delete-comment.*.Related
WYSIWYG editor · Modal · Panel & block shells · Button · History diff