dify/web/types
yyh 12ca422c8a
fix(app-assets): restore atomic batch upload for nested folder targets
The previous nested folder upload flow bypassed the backend batch-upload
contract when parentId was set. Instead of creating the whole metadata
tree in one backend operation, the frontend recursively called
createFolder/getFileUploadUrl for each node.

That introduced two regressions for uploads into subfolders:

- consistency regression: mid-sequence failures could leave partially
  created folder trees under the destination folder
- performance regression: metadata creation degraded from a single
  batch request to O(files + folders) round-trips before file bytes
  were uploaded

This change moves nested uploads back to the original batch semantics:

- add optional parent_id support to app asset batch-upload payload
- create the whole nested tree under the target parent in
  AppAssetService.batch_create_from_tree
- pass parentId through useBatchUpload instead of using per-node
  createFolder/getFileUploadUrl calls
- remove the now-unnecessary useBatchUploadOperation wrapper
- add a backend unit test covering batch tree creation under an
  existing parent folder

After this change, both root uploads and subfolder uploads use the same
single-request metadata creation path, preserving atomic tree creation
semantics and avoiding avoidable metadata round-trips.
2026-03-26 15:16:55 +08:00
..
app-asset.ts fix(app-assets): restore atomic batch upload for nested folder targets 2026-03-26 15:16:55 +08:00
app.ts feat: combine 2 export 2026-01-23 15:50:33 +08:00
assets.d.ts refactor: update install status handling in plugin installation process (#27594) 2025-10-29 18:31:02 +08:00
common.ts feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
doc-paths.ts fix: update docs path (#34052) 2026-03-25 11:35:20 +08:00
feature.ts feat: add Creators Platform helper for DSL upload and OAuth redirect (Vibe Kanban) (#32232) 2026-02-11 21:10:48 +08:00
i18n.d.ts chore: fix type for useTranslation in #i18n (#32134) 2026-02-09 16:47:23 +08:00
jsx.d.ts refactor: update TypeScript definitions for custom JSX elements and clean up global declarations in emoji picker (#26985) 2025-10-16 15:51:39 +08:00
lamejs.d.ts Fix type error (#27217) 2025-10-22 11:43:37 +08:00
mdx.d.ts Fix type error (#27152) 2025-10-20 19:35:46 +08:00
model-provider.ts feat: enhance quota panel to support additional model providers and integrate trial models feature (#31443) 2026-01-26 14:04:12 +08:00
pipeline.tsx feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
react-18-input-autosize.d.ts chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
sandbox-file.ts feat(sandbox): refactor sandbox file handling to include app_id 2026-01-30 22:45:28 +08:00
sandbox-provider.ts fix(sandbox-provider): align frontend types with backend API after refactor 2026-01-19 10:50:57 +08:00
try-app.ts fix: remove explore context and migrate query to orpc contract (#32320) 2026-02-14 16:18:26 +08:00
workflow.ts fix: populate sequence in workflow LLM generation and render outputs_as_generation 2026-03-25 16:47:50 +08:00