feat(comments): add printable comments page with frame thumbnails and markup overlays (#550)

* feat(comments): add printable comments page with frame thumbnails and markup overlays

* fix(comments): guarantee frame-accurate ffmpeg seeking for printable comment thumbnails

* fix(comments): address printable comments review findings
This commit is contained in:
Yiling-J
2026-11-25 19:53:39 +08:00
committed by GitHub
parent e32445684f
commit 5a1655e4ef
25 changed files with 3428 additions and 51 deletions
+15
View File
@@ -485,3 +485,18 @@ export type ExportCommentsRequest = z.infer<typeof exportCommentsRequestSchema>
export const exportCommentsQuerySchema = exportCommentsRequestSchema
/** @deprecated Use ExportCommentsRequest */
export type ExportCommentsQuery = ExportCommentsRequest
export const commentFrameQuerySchema = z.object({
second: z.coerce.number().refine((val) => Number.isFinite(val) && val >= 0, {
message: 'second must be a non-negative finite number',
}),
width: z.coerce.number().int().min(64).max(1280).optional().default(400),
})
export type CommentFrameQuery = z.infer<typeof commentFrameQuerySchema>
export const printCommentsResponseSchema = z.object({
asset: assetInfoSchema,
breadcrumbs: z.array(z.string()),
comments: z.array(commentInfoSchema),
})
export type PrintCommentsResponse = z.infer<typeof printCommentsResponseSchema>