feat: replace mock data with dynamic workflow options in test run dropdown#24320
Merged
crazywoola merged 4 commits intolanggenius:feat/triggerfrom Aug 22, 2025
Merged
Conversation
- Fix divider line issue in test run dropdown when userInput is missing - Hide Start block in block selector when already exists in workflow - Prevent duplicate Start nodes and improve UX consistency
…ture - Add new run-all-triggers.svg icon following project standards - Generate RunAllTriggers React component via pnpm gen-icons - Clean up test-run-dropdown.tsx by removing unused mock data - Optimize useDynamicTestRunOptions performance with stable function references - Maintain single source of truth pattern with clear separation of concerns
Member
Author
ZeroZ-lab
pushed a commit
to ZeroZ-lab/dify
that referenced
this pull request
Aug 25, 2025
5 tasks
Closed
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
The test run dropdown previously used hardcoded mock data instead of real workflow node data. This meant users couldn't execute workflows based on actual nodes in their canvas.
Changes Made
Core Implementation
use-dynamic-test-run-options.tsxhook that generates test run options from actual ReactFlow nodesgetWorkflowEntryNodewhen no Start node existsUI Improvements
Bug Fixes
Testing
Integration
runAllTriggerstranslation keyFiles Modified
use-dynamic-test-run-options.tsx(new, 172 lines)run-and-history.tsx(integrated dynamic options)test-run-dropdown.tsx(UI adjustments)start-blocks.tsx(duplicate prevention logic)use-dynamic-test-run-options.test.tsx(new test suite)workflow.ts(translation updates)