[PR #24627] Allow empty workflows and improve workflow validation #30718

Closed
opened 2026-02-21 20:48:05 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/24627

State: closed
Merged: Yes


Part of #24198
Related #23981

Summary

This PR implements support for empty workflows and improves workflow validation with the following changes:

  • Remove restrictions on deleting entry nodes from workflows
  • Add independent translation keys for checklist start node references
  • Update Web App card icons and styling improvements
  • Enhance workflow validation messages for better clarity

Changes Made

Core Workflow Changes

  • Remove entry node deletion restrictions: Allow users to delete start nodes, trigger nodes, and other entry points from workflows
  • Independent translation keys: Separate checklist start node translations from block names for better clarity
  • Improved validation messages: Update checklist to show "Start Node" instead of "User Input"

UI/UX Improvements

  • API card icons: Add ApiAggregate icon for better visual distinction
  • Icon spacing: Adjust icon margins for consistent layout
  • Translation updates: Ensure proper localization across EN/CN/JP languages

Technical Details

  • Modified workflow node deletion logic to allow empty workflows
  • Updated checklist validation to use independent translation keys
  • Enhanced error messaging for workflow validation
  • Improved visual consistency across app overview cards

Testing

  • Verified workflow editing functionality with empty workflows
  • Tested checklist validation with proper translations
  • Confirmed UI improvements across different card types
  • Validated translation keys in multiple languages

Related Issues

This change supports more flexible workflow creation and editing by allowing temporary empty states during development.

**Original Pull Request:** https://github.com/langgenius/dify/pull/24627 **State:** closed **Merged:** Yes --- Part of #24198 Related #23981 ## Summary This PR implements support for empty workflows and improves workflow validation with the following changes: - Remove restrictions on deleting entry nodes from workflows - Add independent translation keys for checklist start node references - Update Web App card icons and styling improvements - Enhance workflow validation messages for better clarity ## Changes Made ### Core Workflow Changes - **Remove entry node deletion restrictions**: Allow users to delete start nodes, trigger nodes, and other entry points from workflows - **Independent translation keys**: Separate checklist start node translations from block names for better clarity - **Improved validation messages**: Update checklist to show "Start Node" instead of "User Input" ### UI/UX Improvements - **API card icons**: Add ApiAggregate icon for better visual distinction - **Icon spacing**: Adjust icon margins for consistent layout - **Translation updates**: Ensure proper localization across EN/CN/JP languages ### Technical Details - Modified workflow node deletion logic to allow empty workflows - Updated checklist validation to use independent translation keys - Enhanced error messaging for workflow validation - Improved visual consistency across app overview cards ## Testing - Verified workflow editing functionality with empty workflows - Tested checklist validation with proper translations - Confirmed UI improvements across different card types - Validated translation keys in multiple languages ## Related Issues This change supports more flexible workflow creation and editing by allowing temporary empty states during development.
yindo added the pull-request label 2026-02-21 20:48:05 -05:00
yindo closed this issue 2026-02-21 20:48:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#30718