feat(editor): Show error state in the logs overview (#14248)

This commit is contained in:
Suguru Inoue
2025-04-02 09:21:21 +02:00
committed by GitHub
parent 0e9e28356e
commit 37e5349fe1
23 changed files with 583 additions and 276 deletions

View File

@@ -101,6 +101,7 @@ import { useUniqueNodeName } from '@/composables/useUniqueNodeName';
import { isPresent } from '../utils/typesUtils';
import { useProjectsStore } from '@/stores/projects.store';
import type { CanvasLayoutEvent } from './useCanvasLayout';
import { LOGS_PANEL_STATE } from '@/components/CanvasChat/types/logs';
type AddNodeData = Partial<INodeUi> & {
type: string;
@@ -1976,7 +1977,9 @@ export function useCanvasOperations({ router }: { router: ReturnType<typeof useR
const workflow = workflowsStore.getCurrentWorkflow();
workflowsStore.setPanelState(
workflowsStore.chatPanelState === 'closed' ? 'attached' : 'closed',
workflowsStore.chatPanelState === LOGS_PANEL_STATE.CLOSED
? LOGS_PANEL_STATE.ATTACHED
: LOGS_PANEL_STATE.CLOSED,
);
const payload = {