mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 14:34:40 +00:00
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:
@@ -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),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user