feat(comments): allow marking comments as complete or incomplete

This commit is contained in:
yiling
2026-07-06 12:24:40 +08:00
parent af7d636f31
commit e1d3dd46db
22 changed files with 878 additions and 18 deletions
+9
View File
@@ -204,6 +204,8 @@ export type CommentInfo = {
createdAt: string
updatedAt: string
sessionId: string | null
isCompleted: boolean
completionLastChangedBy: AssetUserInfo | null
}
export const commentInfoSchema: z.ZodType<CommentInfo> = z.object({
@@ -220,8 +222,15 @@ export const commentInfoSchema: z.ZodType<CommentInfo> = z.object({
createdAt: z.string(),
updatedAt: z.string(),
sessionId: z.string().nullable(),
isCompleted: z.boolean(),
completionLastChangedBy: assetUserInfoSchema.nullable(),
})
export const completeCommentRequestSchema = z.object({
isCompleted: z.boolean(),
})
export type CompleteCommentRequest = z.infer<typeof completeCommentRequestSchema>
export const reparentAssetsRequestSchema = z.object({
newParentId: z.string(),
assetIds: z.array(z.string()),