feat(comments): add internal comments and author comment editing (#552)

* feat(comments): add internal comments and author comment editing

* chore(i18n): add Korean comment translations and update AGENTS.md i18n rule

* style(comments): refine visibility selector corner radius and align send button height

* fix(webui): avoid ResizeObserver loop when resizing file browser
This commit is contained in:
Yiling-J
2026-11-26 14:54:45 +08:00
committed by GitHub
parent 1066900c78
commit fee6f39828
43 changed files with 2751 additions and 301 deletions
+11
View File
@@ -238,9 +238,18 @@ export const createCommentRequestSchema = z.object({
annotations: z.any().optional(),
second: z.number().optional(),
attachmentIds: z.array(z.string()),
isInternal: z.boolean().optional(),
})
export type CreateCommentRequest = z.infer<typeof createCommentRequestSchema>
export const updateCommentRequestSchema = z.object({
message: z.string().optional(),
isInternal: z.boolean().optional(),
second: z.number().min(0).nullable().optional(),
attachmentIds: z.array(z.string()).optional(),
})
export type UpdateCommentRequest = z.infer<typeof updateCommentRequestSchema>
export const attachmentInfoSchema = z.object({
id: z.string(),
assetId: z.string(),
@@ -282,6 +291,7 @@ export type CommentInfo = {
updatedAt: string
sessionId: string | null
isCompleted: boolean
isInternal: boolean
completionLastChangedBy: AssetUserInfo | null
reactionCounts: CommentReactionCount[]
}
@@ -301,6 +311,7 @@ export const commentInfoSchema: z.ZodType<CommentInfo> = z.object({
updatedAt: z.string(),
sessionId: z.string().nullable(),
isCompleted: z.boolean(),
isInternal: z.boolean(),
completionLastChangedBy: assetUserInfoSchema.nullable(),
reactionCounts: z.array(commentReactionCountSchema),
})