can mention user in the create comment

This commit is contained in:
hjlarry
2025-09-15 16:42:31 +08:00
parent dd8577f832
commit affbe7ccdb
3 changed files with 162 additions and 14 deletions

View File

@ -37,10 +37,10 @@ export const useWorkflowComment = () => {
loadComments()
}, [loadComments])
const handleCommentSubmit = useCallback(async (content: string) => {
const handleCommentSubmit = useCallback(async (content: string, mentionedUserIds: string[] = []) => {
if (!pendingComment) return
console.log('Submitting comment:', { appId, pendingComment, content })
console.log('Submitting comment:', { appId, pendingComment, content, mentionedUserIds })
if (!appId) {
console.error('AppId is missing')
@ -52,7 +52,7 @@ export const useWorkflowComment = () => {
position_x: pendingComment.x,
position_y: pendingComment.y,
content,
mentioned_user_ids: [],
mentioned_user_ids: mentionedUserIds,
})
console.log('Comment created successfully:', newComment)