Bỏ qua, đến nội dung

@digiforce-nc/plugin-comments

Plugin bình luận trên record — cho phép người dùng thảo luận, bình luận và trao đổi trực tiếp trên từng bản ghi (record) trong collection.

Plugin này làm gì?

Thay vì phải gửi email hoặc chat riêng khi cần trao đổi về một record (đơn hàng, ticket, task...), plugin bổ sung phần bình luận ngay bên trong detail view. Người dùng có thể viết comment, mention đồng nghiệp, đính kèm file và xem lịch sử thảo luận.

Cơ chế hoạt động

Tính năng chính

#Tính năngMô tả
1Comment threadBình luận dạng timeline trên record
2@mentionTag đồng nghiệp trong comment
3Rich textHỗ trợ markdown, bold, italic, link
4File attachmentĐính kèm file vào comment
5Edit/DeleteSửa hoặc xóa comment của mình
6NotificationThông báo khi được mention hoặc có reply
7Per-collectionBật/tắt comment cho từng collection

API endpoints

EndpointMô tả
comments:createTạo comment mới trên record
comments:listDanh sách comments của record
comments:updateSửa comment
comments:deleteXóa comment

Database

BảngMô tả
commentsNội dung comment (content, userId, collectionName, recordId)
commentMentionsDanh sách @mention trong comment
commentAttachmentsFile đính kèm

Thành phần client

Thành phầnMô tả
CommentBlockBlock bình luận trong record detail
CommentInputÔ nhập comment (rich text + @mention autocomplete)
CommentTimelineTimeline hiển thị comments theo thời gian
MentionSelectorPopup chọn user khi gõ @

Dependencies

PackageVai trò
@digiforce-nc/serverServer framework
@digiforce-nc/databaseDatabase ORM
@digiforce-nc/clientClient UI framework
@digiforce-nc/plugin-notificationsGửi thông báo mention

Mục lục chi tiết