mirror of
https://github.com/langgenius/dify.git
synced 2026-03-27 01:00:13 +08:00
Extract reusable hooks and components from debug/index.tsx: - useInputValidation, useFormattingChangeConfirm, useModalWidth hooks - useTextCompletion hook for text completion logic - DebugHeader component for header UI - TextCompletionResult component for completion display Add comprehensive test coverage for debug-with-multiple-model: - chat-item.spec.tsx (23 tests) - debug-item.spec.tsx (25 tests) - model-parameter-trigger.spec.tsx (14 tests) - text-generation-item.spec.tsx (16 tests) - index.spec.tsx expanded (84 tests) Total: 183 tests passing with 95%+ coverage Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>