Skip to content

Comments 0.2.1: Comment and annotation ids on each rendered comment

Comments 0.2.1 adds two HTML attributes to each comment in a thread, for developers whose pages need to connect comments with other parts of the page. Nothing changes in how comments look.

Each comment’s outer element now carries data-comment-uuid, and data-annotation-uuid when the comment’s metadata holds an annotation_uuid. A sibling component, such as a media viewer that draws annotations, can find the comment that belongs to a shape without reaching into the thread’s markup. The annotation attribute is left out when there is none.

 

 


Comments 0.2.1. Install or update: {:phoenix_kit_comments, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.