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
<.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
{:phoenix_kit_comments, "~> 0.5"}
2 Fetch it and run its migrations
$ mix deps.get && mix phoenix_kit.update
3
Switch it on in /admin/modules
- Package
- phoenix_kit_comments
- Releases
-
- 0.5.0
- 0.4.10
- 0.4.9
- Admin
-
/admin/comments - Links
- HexDocs ↗ GitHub ↗ Changelog ↗
Related modules
What it needs, what builds on it, and its neighbours in Content & community.
CRM
Contacts, companies and logged interactions, with per-role access
Needs Comments
Manufacturing
A machines reference book with machine types and a dashboard
Needs Comments, Entities, Locations
Posts
Social, feed-style user posts with likes, tags, boards and mentions
Needs Comments
Projects
Projects built from a reusable task library, with dependencies and schedules
Needs AI, Staff, Comments, Entities
Staff
Departments, teams and staff profiles linked to user accounts
Needs Comments
Warehouse
Stock per item and location, with receipts, issues, transfers and stocktakes
Needs Billing, AI, Catalogue, Comments, Locations