fix(storybook): add required handler props and fix TypeScript errors in component stories (#27187)

This commit is contained in:
GuanMu
2025-10-21 17:44:26 +08:00
committed by GitHub
parent 82219c1162
commit c327cfa86e
12 changed files with 189 additions and 62 deletions

View File

@@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/nextjs'
import { WorkflowRunningStatus } from '@/app/components/workflow/types'
import type { ChatItem } from '../../types'
import { markdownContent } from './__mocks__/markdownContent'
import { markdownContentSVG } from './__mocks__/markdownContentSVG'
@@ -33,7 +34,7 @@ const mockedBaseChatItem = {
} satisfies ChatItem
const mockedWorkflowProcess = {
status: 'succeeded',
status: WorkflowRunningStatus.Succeeded,
tracing: [],
}