feat(file-browser): add context-aware copy submenu (#517)

* feat(file-browser): add context-aware copy submenu

* refactor(file-browser): address code review feedback for copy submenu

* fix(webui): align submenu trigger text and widen file context menu

* test(e2e): guard clipboard permissions in copy-menu spec for cross-browser support
This commit is contained in:
Yiling-J
2026-11-05 09:57:34 +08:00
committed by GitHub
parent 2ecbd49d18
commit 0dc0bbeb03
30 changed files with 2285 additions and 106 deletions
+19
View File
@@ -400,6 +400,25 @@ export const getDownloadLinksResponseSchema = z.object({
})
export type GetDownloadLinksResponse = z.infer<typeof getDownloadLinksResponseSchema>
export const getStoragePathsRequestSchema = z.object({
ids: z.array(z.string()).max(100),
})
export type GetStoragePathsRequest = z.infer<typeof getStoragePathsRequestSchema>
export const storagePathItemSchema = z.object({
id: z.string(),
name: z.string(),
path: z.string(),
backend: z.enum(['s3', 'local']),
isArchived: z.boolean(),
})
export type StoragePathItem = z.infer<typeof storagePathItemSchema>
export const getStoragePathsResponseSchema = z.object({
paths: z.array(storagePathItemSchema),
})
export type GetStoragePathsResponse = z.infer<typeof getStoragePathsResponseSchema>
export const archiveAssetsRequestSchema = z.object({
ids: z.array(z.string().min(1)).min(1),
})