feat(storage): add archive storage support for assets (#514)

* feat(storage): add archive storage support for assets

* fix(webui): show archive icon in front of file name in breadcrumb bar

* fix(webui): display archive icon in breadcrumbs when restoring

* refactor(transcode): simplify restore asset workflow to single while loop

* docs(configuration): add archive storage documentation and readme entries

* fix(webui): show archive icon in front of version names and prevent version card overflow

* fix(webui): fix overflow in manage versions dialog scroll area

* fix(webui): prevent manage versions dialog overflow on long file names

* docs(configuration): fix archive storage environment variables and defaults

* fix(storage): address code review findings for archive storage
This commit is contained in:
Yiling-J
2026-11-03 20:31:56 +08:00
committed by GitHub
parent 49a2d7c380
commit ba3c6dbfee
110 changed files with 7013 additions and 199 deletions
+26
View File
@@ -158,6 +158,7 @@ export const assetInfoSchema = z.object({
current: z.boolean(),
id: z.string(),
name: z.string().optional().nullable(),
status: z.string().optional().nullable(),
previewUrl: z.string().optional().nullable(),
createdAt: z.string().optional().nullable(),
creator: z
@@ -395,9 +396,34 @@ export type DownloadLinkItem = z.infer<typeof downloadLinkItemSchema>
export const getDownloadLinksResponseSchema = z.object({
files: z.array(downloadLinkItemSchema),
skippedArchivedCount: z.number().optional(),
})
export type GetDownloadLinksResponse = z.infer<typeof getDownloadLinksResponseSchema>
export const archiveAssetsRequestSchema = z.object({
ids: z.array(z.string().min(1)).min(1),
})
export type ArchiveAssetsRequest = z.infer<typeof archiveAssetsRequestSchema>
export const archiveAssetsResponseSchema = z.object({
archivedAssetIds: z.array(z.string()),
taskIds: z.array(z.string()),
skippedCount: z.number(),
})
export type ArchiveAssetsResponse = z.infer<typeof archiveAssetsResponseSchema>
export const restoreArchivedAssetsRequestSchema = z.object({
ids: z.array(z.string().min(1)).min(1),
})
export type RestoreArchivedAssetsRequest = z.infer<typeof restoreArchivedAssetsRequestSchema>
export const restoreArchivedAssetsResponseSchema = z.object({
restoredAssetIds: z.array(z.string()),
taskIds: z.array(z.string()),
skippedCount: z.number(),
})
export type RestoreArchivedAssetsResponse = z.infer<typeof restoreArchivedAssetsResponseSchema>
export const commentExportFormatSchema = z.enum([
'fcp-fiojson',
'media-composer-xml',
+2
View File
@@ -22,6 +22,8 @@ export enum AuditAction {
folder_delete = 'folder_delete',
asset_reparent = 'asset_reparent',
asset_copy = 'asset_copy',
asset_archive = 'asset_archive',
asset_restore_archive = 'asset_restore_archive',
version_stack_create = 'version_stack_create',
version_stack_update = 'version_stack_update',
share_create = 'share_create',
+1
View File
@@ -32,6 +32,7 @@ export const stackVersionInfoSchema = z.object({
id: z.string(),
version: z.number(),
name: z.string().optional().nullable(),
status: z.string().optional().nullable(),
previewUrl: z.string().optional().nullable(),
createdAt: z.string().optional().nullable(),
creator: z