Skip to content

fix(workflow): handle file-preview URLs in node output display#34150

Merged
Blackoutta merged 1 commit into
langgenius:mainfrom
shawny011717:fix/file-preview-url-display
May 8, 2026
Merged

fix(workflow): handle file-preview URLs in node output display#34150
Blackoutta merged 1 commit into
langgenius:mainfrom
shawny011717:fix/file-preview-url-display

Conversation

@shawny011717
Copy link
Copy Markdown
Contributor

@shawny011717 shawny011717 commented Mar 26, 2026

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

Fixes #34006.

The CodeEditor component already extracts file objects from JSON data via getFilesInLogs and builds a file list, but the showFileList prop was not enabled on the process data and output editors in node.tsx and result-panel.tsx. This meant file-preview URLs were only visible as raw text in the JSON viewer and could not be clicked or downloaded.

This adds showFileList to the CodeEditor instances for process data and outputs in both the node panel (used in workflow run logs) and the result panel (used in the side panel detail view), matching the existing behavior in output-panel.tsx which already had this prop set.

Screenshots

N/A

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. Contribution guidelines
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran cd web && npx lint-staged to appease the lint gods

Enable showFileList on CodeEditor components for process_data and
outputs in both the node panel and result panel views. The CodeEditor
already extracts file objects via getFilesInLogs but the file list was
never rendered because showFileList was not set. This matches the
existing behavior in output-panel.tsx which already had showFileList
enabled.
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 26, 2026
@github-actions github-actions Bot added the web This relates to changes on the web. label Mar 26, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Mar 31, 2026
@nikkoyuthinkcol
Copy link
Copy Markdown

Hi @crazywoola @iamjoel @zxhlyh can anyone merge this request to fix the file-preview? Thanks.

@Blackoutta Blackoutta added this pull request to the merge queue May 8, 2026
Merged via the queue into langgenius:main with commit 82f24b3 May 8, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File-preview url cannot be recognized and displayed correctly in 1.13.2

4 participants