Commit Graph

11323 Commits

Author SHA1 Message Date
9c8a5ff527 chore: skill in query to file 2026-03-26 16:21:20 +08:00
yyh
a1a527902b refactor: remove redundant skill file sync ref guard 2026-03-26 16:10:58 +08:00
d3c8af6aa9 chore: tests 2026-03-26 16:00:38 +08:00
e5947d518e feat: add insert @ info 2026-03-26 16:00:37 +08:00
yyh
5ce1dfa0bf fix(skill): keep upload inputs mounted outside overlays 2026-03-26 15:55:26 +08:00
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
4d95cee44e chore: change copywriting 2026-03-26 15:00:04 +08:00
yyh
6408300c35 feat: implement batch upload operation and integrate with create operations 2026-03-26 14:59:06 +08:00
ff63af495c feat: support click and show cmd 2026-03-26 14:36:59 +08:00
a015209622 chore: update tests 2026-03-26 14:36:59 +08:00
yyh
90225f07d9 fix(web): align data contracts with backend schema 2026-03-26 14:34:06 +08:00
f8e5421a01 feat: support hover hightlight cmd 2026-03-26 14:25:11 +08:00
1c01bd773b chore: refactor sandbox placeholder 2026-03-26 13:54:25 +08:00
yyh
37d59222cf Revert "Refactor variable inspect panel layout and scrolling"
This reverts commit 9ab18b3ef6.
2026-03-26 13:32:18 +08:00
8fa5aa9c0d test(workflow): add comprehensive tests for context generation modal components
- Introduced unit tests for the context generation modal, including left, right, and chat view panels.
- Enhanced test coverage for hooks related to context generation, ensuring proper functionality and state management.
- Implemented tests for clipboard functionality in the CopyId component.
- Added tests for input variable list interactions and tooltip feedback.
- Verified language fallback behavior in various components.
- Ensured proper rendering and interaction of UI elements across different states.
2026-03-26 13:28:04 +08:00
yyh
9ab18b3ef6 Refactor variable inspect panel layout and scrolling 2026-03-26 12:21:32 +08:00
yyh
80c5434f6f chore: update skills templates 2026-03-26 10:49:25 +08:00
yyh
b263af12f9 chore: update 2026-03-26 10:45:31 +08:00
12be211a6d feat(workflow): merge tool agent insertions into slash menu 2026-03-26 10:29:07 +08:00
d66b0d2d11 refactor(tests): reorganize test files and enhance test coverage for utility functions
- Moved test files for completion parameters, clipboard, app redirection, and emoji utilities to the appropriate directory structure.
- Added comprehensive tests for clipboard functionality, including modern and legacy methods.
- Implemented tests for app redirection logic based on user permissions and app modes.
- Enhanced tests for completion parameters validation and error handling.
- Introduced tests for emoji search functionality with various scenarios.
- Updated icon utility tests to cover edge cases and security concerns.
- Improved formatting tests for numbers, file sizes, and time representation.
2026-03-26 09:42:09 +08:00
yyh
20dea1faa2 use base ui toast 2026-03-25 20:38:44 +08:00
a7178b4d5c tix test 2026-03-25 19:25:22 +08:00
yyh
f0041ec619 Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox
# Conflicts:
#	web/app/components/workflow-app/hooks/__tests__/use-nodes-sync-draft.spec.ts
#	web/app/components/workflow-app/hooks/__tests__/use-workflow-refresh-draft.spec.ts
#	web/app/components/workflow-app/hooks/use-workflow-run.ts
#	web/app/components/workflow-app/index.tsx
#	web/app/components/workflow/panel/chat-variable-panel/components/use-variable-modal-state.ts
#	web/app/components/workflow/panel/chat-variable-panel/components/variable-modal.helpers.ts
2026-03-25 18:41:16 +08:00
yyh
ab6993b6e7 fix(workflow): tighten tsgo types in workflow editor 2026-03-25 18:35:51 +08:00
449d8c7768 test(workflow-app): enhance unit tests for workflow components and hooks (#34065)
Co-authored-by: CodingOnStar <hanxujiang@dify.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: lif <1835304752@qq.com>
Co-authored-by: hjlarry <hjlarry@163.com>
Co-authored-by: Stephen Zhou <hi@hyoban.cc>
Co-authored-by: tmimmanuel <14046872+tmimmanuel@users.noreply.github.com>
Co-authored-by: Desel72 <pedroluiscolmenares722@gmail.com>
Co-authored-by: Renzo <170978465+RenzoMXD@users.noreply.github.com>
Co-authored-by: Krishna Chaitanya <krishnabkc15@gmail.com>
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-25 18:34:32 +08:00
yyh
3571bee55f fix(web): use ScrollArea in skill start tab 2026-03-25 18:29:32 +08:00
yyh
9fe089d355 Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-03-25 17:52:16 +08:00
yyh
7636e3a3bb Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-03-25 17:49:36 +08:00
0e6d97acf9 fix: HumanInput node should unable to paste into container (#34077) 2026-03-25 17:22:21 +08:00
7fbb1c96db feat(workflow): add selection context menu helpers and integrate with context menu component (#34013)
Co-authored-by: CodingOnStar <hanxujiang@dify.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: lif <1835304752@qq.com>
Co-authored-by: hjlarry <hjlarry@163.com>
Co-authored-by: Stephen Zhou <hi@hyoban.cc>
Co-authored-by: tmimmanuel <14046872+tmimmanuel@users.noreply.github.com>
Co-authored-by: Desel72 <pedroluiscolmenares722@gmail.com>
Co-authored-by: Renzo <170978465+RenzoMXD@users.noreply.github.com>
Co-authored-by: Krishna Chaitanya <krishnabkc15@gmail.com>
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-25 17:21:48 +08:00
6189d3f778 fix: populate sequence in workflow LLM generation and render outputs_as_generation 2026-03-25 16:47:50 +08:00
f87dafa229 fix: partner stack not recorded when not login (#34062) 2026-03-25 16:16:52 +08:00
yyh
10c1c96ea5 Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-03-25 16:07:02 +08:00
yyh
a8e1ff85db feat(web): base-ui slider (#34064)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 16:03:49 +08:00
1789988be7 fix(api): fix concurrency issues in StreamsBroadcastChannel (#34061) 2026-03-25 15:47:31 +08:00
yyh
e35561d3d6 Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-03-25 14:16:51 +08:00
yyh
b4af0d0f9a refactor: add composable avatar slot wrappers (#34058) 2026-03-25 14:16:37 +08:00
yyh
fe4d07476a Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox
# Conflicts:
#	web/i18n/zh-Hans/workflow.json
#	web/i18n/zh-Hant/workflow.json
2026-03-25 14:02:27 +08:00
yyh
beeb07bc70 refactor(web): simplify avatar composition api 2026-03-25 13:53:54 +08:00
af3069e3be chore(i18n): sync translations with en-US (#34055)
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
2026-03-25 13:53:00 +08:00
yyh
1a2baa431e refactor(web): compose avatar fallbacks from primitives 2026-03-25 13:47:59 +08:00
yyh
76b8f7ee4b Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-03-25 13:45:58 +08:00
yyh
b1cfd835f5 refactor(web): expose avatar primitives for composition (#34057) 2026-03-25 13:43:46 +08:00
yyh
720c950f9e refactor(web): remove tooltip-plus and migrate to ui tooltip 2026-03-25 13:35:43 +08:00
e94c689dd3 [autofix.ci] apply automated fixes (attempt 2/3) 2026-03-25 05:25:02 +00:00
2ce4c21be2 [autofix.ci] apply automated fixes 2026-03-25 05:20:02 +00:00
yyh
4763c80a1b fix(skill): align node menu to the right 2026-03-25 12:58:26 +08:00
yyh
9213c1e572 fix: lint 2026-03-25 12:45:59 +08:00
yyh
ede716fca3 Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-03-25 12:45:48 +08:00
5f82ccc750 test: migrate workflow app service tests to testcontainers (#34036)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-25 13:43:06 +09:00