add workflow comment panel

This commit is contained in:
hjlarry
2025-09-16 09:51:12 +08:00
parent b3838581fd
commit 10aa16b471
4 changed files with 109 additions and 3 deletions

View File

@ -11,6 +11,7 @@ import ChatRecord from '@/app/components/workflow/panel/chat-record'
import ChatVariablePanel from '@/app/components/workflow/panel/chat-variable-panel'
import GlobalVariablePanel from '@/app/components/workflow/panel/global-variable-panel'
import VersionHistoryPanel from '@/app/components/workflow/panel/version-history-panel'
import CommentsPanel from '@/app/components/workflow/panel/comments-panel'
import { useStore as useAppStore } from '@/app/components/app/store'
import MessageLogModal from '@/app/components/base/message-log-modal'
import type { PanelProps } from '@/app/components/workflow/panel'
@ -50,6 +51,7 @@ const WorkflowPanelOnRight = () => {
const showChatVariablePanel = useStore(s => s.showChatVariablePanel)
const showGlobalVariablePanel = useStore(s => s.showGlobalVariablePanel)
const showWorkflowVersionHistoryPanel = useStore(s => s.showWorkflowVersionHistoryPanel)
const controlMode = useStore(s => s.controlMode)
return (
<>
@ -88,6 +90,7 @@ const WorkflowPanelOnRight = () => {
<VersionHistoryPanel/>
)
}
{controlMode === 'comment' && <CommentsPanel />}
</>
)
}