[PR #29503] refactor: split text generation item and add tests #32444

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

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

State: closed
Merged: No


Summary

  • refactor GenerationItem into focused content/meta sections with shared hooks for workflow tabs and more-like-this state while preserving existing behaviors (including auto-switching to RESULT on new outputs)
  • extract log formatting and keep handler memoization/guards clearer for copy, more-like-this, and log modal actions
  • add GenerationItem tests covering more-like-this flow, log modal payload, copy behavior, feedback updates, child clearing, depth limits, and handler stability

Testing

  • Passed
**Original Pull Request:** https://github.com/langgenius/dify/pull/29503 **State:** closed **Merged:** No --- ## Summary - refactor GenerationItem into focused content/meta sections with shared hooks for workflow tabs and more-like-this state while preserving existing behaviors (including auto-switching to RESULT on new outputs) - extract log formatting and keep handler memoization/guards clearer for copy, more-like-this, and log modal actions - add GenerationItem tests covering more-like-this flow, log modal payload, copy behavior, feedback updates, child clearing, depth limits, and handler stability ## Testing - Passed
yindo added the pull-request label 2026-02-21 20:51:25 -05:00
yindo closed this issue 2026-02-21 20:51:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32444