Commit Graph

11366 Commits

Author SHA1 Message Date
f331a1f5c6 add test for skills 2026-04-02 14:43:22 +08:00
4419d14887 refactor(web): streamline skill dependency fetching and batch upload flows 2026-04-01 16:58:20 +08:00
9ef53a3179 feat(collaboration): enhance SkillCollaborationManager with open file tracking and lifecycle management
- Made SkillCollaborationManager exportable for external use.
- Introduced openCounts to track the number of open instances for each file.
- Updated lifecycle methods to manage file state more effectively, ensuring proper cleanup on close.
- Added a new test suite for SkillCollaborationManager to validate collaboration state and lifecycle behavior.
2026-04-01 16:13:43 +08:00
yyh
0d7f6f26c8 fix(web): stabilize featured block selector item width 2026-04-01 12:56:34 +08:00
yyh
571a960c18 fix(web): migrate workflow overlay previews 2026-04-01 12:34:41 +08:00
e650109f94 feat(collaboration): enhance collaboration features with Loro integration and improved hooks
- Introduced a new  module to manage Loro integration for web environments.
- Updated  to ensure Loro is initialized before establishing connections.
- Enhanced  hook to conditionally enable collaboration based on workflow state.
- Added tests for  to verify connection handling and initialization behavior.
- Refactored components to utilize the updated collaboration hooks, improving overall workflow collaboration experience.
2026-03-31 17:57:29 +08:00
yyh
8843a62b4e fix(web): force render sandbox provider dialog backdrops 2026-03-31 13:54:28 +08:00
yyh
b5996085e1 fix: unify skill file upload status handling 2026-03-31 13:38:11 +08:00
6c0123c5d2 refactor(overview): update imports and enhance chart and card views with new types and tests
- Changed import paths for app card and chart types to use the new app-chart-types module.
- Refactored state initialization in ChartView for improved readability.
- Added unit tests for CardView, ChartView, and LongTimeRangePicker components to ensure functionality and reliability.
- Introduced new test cases for time range picker and tracing components to enhance test coverage.
2026-03-31 13:24:54 +08:00
d99ca80f48 feat(log): implement list detail panel and conversation drawer with associated tests
- Added  component for displaying detailed log information.
- Introduced  hook to manage conversation state and interactions.
- Created unit tests for the new components and hooks to ensure functionality and reliability.
- Updated utility functions for better handling of conversation logs and chat items.
2026-03-31 10:22:06 +08:00
11895d07c1 chore: upload file and auto insert 2026-03-30 16:55:11 +08:00
yyh
09b3e53c43 fix: support dropping file tree nodes to root blank area 2026-03-30 16:35:55 +08:00
9ae94b3217 fix(skill-editor): fix blur effects of tool-picker and file-picker 2026-03-30 16:03:31 +08:00
5e4481453e Merge branch 'feat/support-agent-sandbox' of https://github.com/langgenius/dify into feat/support-agent-sandbox 2026-03-30 15:57:32 +08:00
7f2705591e fix(prompt-editor): fix unexpected blur effect in prompt editor (#34069)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-30 15:57:14 +08:00
e652abbfc7 refactor(app-info): remove unused app-info component and add tests for app-info actions and dropdown menu 2026-03-30 15:56:08 +08:00
7046fd6728 test: enhance download operation tests to cover text and binary file handling scenarios 2026-03-30 15:06:31 +08:00
ce2403e0db test: add unit tests for app store and configuration components, enhancing coverage for state management and UI interactions 2026-03-30 14:42:17 +08:00
bfce8c5b2c test: add unit tests for configuration components including instruction editor, prompt toast, and variable management 2026-03-30 11:24:43 +08:00
d331915340 refactor(app-publisher): streamline app publisher component and introduce custom hook for improved state management 2026-03-30 10:45:48 +08:00
4bb364411c fix: user editor can also choose file 2026-03-30 10:39:34 +08:00
e6e9b7ae94 fix(skill): fallback to direct save for collaboration followers on sync failure or timeout 2026-03-27 17:30:21 +08:00
4e397a97a5 chore: try to track why nodes missing 2026-03-27 17:09:18 +08:00
ee093a21c8 fix: click file missing 2026-03-27 16:05:53 +08:00
976fa30664 chore: try to track why node missing 2026-03-27 16:00:52 +08:00
yyh
018b213ae1 fix(web): restore skill tab unsaved close dialog styling 2026-03-27 15:51:30 +08:00
yyh
327bbfa96a refactor: use Base UI popover anchor for skill file picker 2026-03-27 15:29:28 +08:00
4c44fd7ca8 feat: add sandbox corner mark 2026-03-27 15:16:29 +08:00
43b1042285 chore: portoal to follow to popover 2026-03-27 15:16:28 +08:00
1907ea6ef9 refactor(web): split app publisher menu content into sections and add tests 2026-03-27 15:04:41 +08:00
yyh
e13100098a fix(skill): guard file collaboration initialization 2026-03-27 14:53:16 +08:00
de62fd15bd refactor(web): improve app component testability and raise coverage
- refactor config-modal, create-from-dsl-modal, and sub-graph for lower complexity
- add missing tests for config-modal-body, sandbox-provider-page, and install-bundle flows
- raise targeted worktree source coverage to 90%+ for lines and statements
2026-03-27 14:22:49 +08:00
edd2b040f3 fix: file upload bg 2026-03-27 14:12:53 +08:00
yyh
c43e496cc2 fix(skill): pin preview tabs when remote sync only dirties metadata 2026-03-27 14:04:40 +08:00
yyh
9e1638ca74 fix: use isClient 2026-03-27 14:00:17 +08:00
yyh
517f42ec3f refactor(skill): split file content panel architecture 2026-03-27 13:59:07 +08:00
yyh
86bfbfc51a perf(skill): cache normalized asset tree index 2026-03-27 12:51:00 +08:00
yyh
53bba21dd9 fix: type 2026-03-26 18:46:09 +08:00
c0c2a9ef9e chore: enchance @ insert copywritig 2026-03-26 18:20:36 +08:00
3cb7a5b613 chore: file to files 2026-03-26 18:07:14 +08:00
yyh
4169f0e5d0 fix test 2026-03-26 17:11:04 +08:00
yyh
4e76d7e619 refactor(app-card): replace Popover with DropdownMenu for improved UI interactions 2026-03-26 17:05:21 +08:00
yyh
e03c2be0ad fix: use literal parser for view param 2026-03-26 16:34:16 +08:00
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