Skip to content

Comments

v0.5.0

Threaded comments for any resource, with reactions and moderation

Install Comments

Comments that attach to any record by resource type and UUID, without schema coupling. Comments nest without depth limit and have one like or dislike per user, with an optional approval workflow. It stores comments, likes and dislikes, and is used by CRM, staff, projects, posts, warehouse and manufacturing for their comment threads.

Use it when

  • You need a comment thread under posts, tickets or any of your own records
  • You want comments held for approval and moderated from an admin page

What it gives you

  • Polymorphic comments keyed by (resource_type, resource_uuid)
  • Unlimited nested threading
  • Like/dislike reactions, one per user, with counters
  • Optional moderation: comments start as pending
  • Admin page with search, filters and bulk actions
  • Embeddable CommentsComponent LiveComponent

Example

From the README
<.live_component
  module={PhoenixKitComments.Web.CommentsComponent}
  id="comments"
  resource_type="post"
  resource_uuid={@post.uuid}
  current_user={@current_user}
/>

Comments news

Nothing posted about Comments yet. Read its changelog or see all PhoenixKit news.

Install

1 Add to mix.exs

deps
{:phoenix_kit_comments, "~> 0.5"}

2 Fetch it and run its migrations

Terminal
$ mix deps.get && mix phoenix_kit.update

3 Switch it on in /admin/modules

Releases
  1. 0.5.0
  2. 0.4.10
  3. 0.4.9
Admin
/admin/comments

Related modules

What it needs, what builds on it, and its neighbours in Content & community.