Skip to content

Commit 3a84800

Browse files
PBnicadclaude
andcommitted
feat: implement comment reply system with nested support
- Add two-level nesting comment reply functionality - Add replyToUserId field to track which user is being replied to - Refresh comments immediately after reply submission - Add numbering to comments and sort replies chronologically - Move comment numbering to the left of timestamp - Add type annotations to sort callback parameters - Remove unused replyPrefix parameter from CommentItem - Add database migration for reply functionality - Update translation files for reply feature Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 313b081 commit 3a84800

File tree

11 files changed

+465
-68
lines changed

11 files changed

+465
-68
lines changed

client/public/locales/en/translation.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@
4343
"comment": {
4444
"empty": "Comment cannot be empty",
4545
"placeholder": {
46-
"title": "Say something..."
46+
"title": "Say something...",
47+
"reply": "Reply..."
4748
},
49+
"reply": "Reply",
4850
"submit": "Submit Comment",
51+
"submitting": "Submitting...",
4952
"success": "Comment successful",
5053
"title": "Comment"
5154
},

client/public/locales/ja/translation.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@
4343
"comment": {
4444
"empty": "コメント内容は空にできません",
4545
"placeholder": {
46-
"title": "何か言ってください..."
46+
"title": "何か言ってください...",
47+
"reply": "返信..."
4748
},
49+
"reply": "返信",
4850
"submit": "コメントを投稿",
51+
"submitting": "投稿中...",
4952
"success": "コメントに成功しました",
5053
"title": "コメント"
5154
},

client/public/locales/zh-CN/translation.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@
4343
"comment": {
4444
"empty": "评论内容不能为空",
4545
"placeholder": {
46-
"title": "说点什么吧"
46+
"title": "说点什么吧",
47+
"reply": "回复..."
4748
},
49+
"reply": "回复",
4850
"submit": "发表评论",
51+
"submitting": "发表中...",
4952
"success": "评论成功",
5053
"title": "评论"
5154
},

client/public/locales/zh-TW/translation.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@
4343
"comment": {
4444
"empty": "留言内容不能為空",
4545
"placeholder": {
46-
"title": "說點什麼吧"
46+
"title": "說點什麼吧",
47+
"reply": "回覆..."
4748
},
49+
"reply": "回覆",
4850
"submit": "發表留言",
51+
"submitting": "發表中...",
4952
"success": "留言成功",
5053
"title": "留言"
5154
},

0 commit comments

Comments
 (0)