Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: improve accessibility of app logs (#42417)

Joelf384f9e7cf26
diff --git a/oxlint-suppressions.json b/oxlint-suppressions.json
index 2ffecd2e868..72787ec204d 100644
--- a/oxlint-suppressions.json
+++ b/oxlint-suppressions.json
@@ -4748,12 +4748,6 @@
"web/app/components/workflow/run/index.tsx": {
"eslint-react/set-state-in-effect": {
"count": 1
- },
- "jsx-a11y/click-events-have-key-events": {
- "count": 3
- },
- "jsx-a11y/no-static-element-interactions": {
- "count": 3
}
},
"web/app/components/workflow/run/iteration-log/index.tsx": {
@@ -4809,12 +4803,6 @@
"web/app/components/workflow/run/node.tsx": {
"eslint-react/set-state-in-effect": {
"count": 1
- },
- "jsx-a11y/click-events-have-key-events": {
- "count": 1
- },
- "jsx-a11y/no-static-element-interactions": {
- "count": 1
}
},
"web/app/components/workflow/run/output-panel.tsx": {
diff --git a/web/app/components/app/log-annotation/page-title.tsx b/web/app/components/app/log-annotation/page-title.tsx
index b3d94bafa88..87c6c2921aa 100644
--- a/web/app/components/app/log-annotation/page-title.tsx
+++ b/web/app/components/app/log-annotation/page-title.tsx
@@ -16,7 +16,12 @@ const PageTitle = ({ title, description, learnMoreHref, learnMoreLabel }: PageTi
<h1 className="title-2xl-semi-bold text-text-primary">{title}</h1>
</div>
<div className="flex min-w-0 items-start gap-0.5 system-xs-regular text-text-tertiary">
- <p className="min-w-0 truncate">{description}</p>
+ <p
+ className="min-w-0 truncate"
+ title={typeof description === 'string' ? description : undefined}
+ >
+ {description}
+ </p>
{showLearnMore && (
<a
href={learnMoreHref}
diff --git a/web/app/components/app/log/__tests__/list.spec.tsx b/web/app/components/app/log/__tests__/list.spec.tsx
index 8ec242fce30..9951ce6b4ea 100644
--- a/web/app/components/app/log/__tests__/list.spec.tsx
+++ b/web/app/components/app/log/__tests__/list.spec.tsx
@@ -1,5 +1,5 @@
import type { ReactNode } from 'react'
-import { act, fireEvent, screen, waitFor } from '@testing-library/react'
+import { act, fireEvent, screen, waitFor, within } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { createAccountProfileQueryClient } from '@/test/console/account-profile'
import { QueryClientTestProvider } from '@/test/console/query-provider'
@@ -298,7 +298,7 @@ describe('ConversationList', () => {
await waitFor(() => {
expect(onUrlUpdate).toHaveBeenCalled()
- expect(screen.getByRole('dialog')).toBeInTheDocument()
+ expect(screen.getByRole('dialog', { name: 'appLog.runDetail.title' })).toBeInTheDocument()
})
const update = onUrlUpdate.mock.calls.at(-1)![0]
@@ -307,6 +307,23 @@ describe('ConversationList', () => {
expect(update.options.history).toBe('push')
})
+ it('exposes the unread marker only for unread conversations', () => {
+ const unreadLog = createLogs().data[0]
+ renderConversationList({
+ logs: {
+ data: [
+ unreadLog,
+ { ...unreadLog, id: 'conversation-2', name: 'read conversation', read_at: 1710000100 },
+ ],
+ },
+ })
+
+ const unreadRow = screen.getByRole('row', { name: /hello world/ })
+ const readRow = screen.getByRole('row', { name: /read conversation/ })
+ expect(within(unreadRow).getByText('appLog.table.unread')).toBeInTheDocument()
+ expect(within(readRow).queryByText('appLog.table.unread')).not.toBeInTheDocument()
+ })
+
it.each(['keyboard', 'row'])(
'restores focus to the conversation entry after %s opening',
async (opening) => {
@@ -355,6 +372,9 @@ describe('ConversationList', () => {
searchParams: '?page=2&conversation_id=conversation-1',
})
+ expect(
+ await screen.findByRole('dialog', { name: 'appLog.detail.conversationId' }),
+ ).toBeInTheDocument()
fireEvent.click(await screen.findByRole('button', { name: /(?:^|\.)operation\.close(?=$|:)/ }))
expect(mockOnRefresh).toHaveBeenCalledTimes(1)
diff --git a/web/app/components/app/log/list.tsx b/web/app/components/app/log/list.tsx
index b5364775df1..4492651676c 100644
--- a/web/app/components/app/log/list.tsx
+++ b/web/app/components/app/log/list.tsx
@@ -24,6 +24,7 @@ import {
DrawerContent,
DrawerPopup,
DrawerPortal,
+ DrawerTitle,
DrawerTrigger,
DrawerViewport,
} from '@langgenius/dify-ui/drawer'
@@ -450,11 +451,11 @@ function DetailPanel({ appDetail, detail, onClose, onFeedback }: IDetailPanel) {
{/* Panel Header */}
<div className="flex shrink-0 items-center gap-2 rounded-t-xl bg-components-panel-bg pt-3 pr-3 pb-2 pl-4">
<div className="shrink-0">
- <div className="mb-0.5 system-xs-semibold-uppercase text-text-primary">
+ <DrawerTitle className="mb-0.5 system-xs-semibold-uppercase text-text-primary">
{isChatMode
? t(($) => $['detail.conversationId'], { ns: 'appLog' })
: t(($) => $['detail.time'], { ns: 'appLog' })}
- </div>
+ </DrawerTitle>
{isChatMode && (
<div className="flex items-center system-2xs-regular-uppercase text-text-secondary">
<Tooltip>
@@ -695,7 +696,13 @@ const CompletionConversationDetailComp: FC<ConversationDetailProps> = ({
}
}
- if (!conversationDetail) return null
+ if (!conversationDetail) {
+ return (
+ <DrawerTitle className="sr-only">
+ {t(($) => $['runDetail.title'], { ns: 'appLog' })}
+ </DrawerTitle>
+ )
+ }
return (
<DetailPanel
@@ -750,7 +757,13 @@ const ChatConversationDetailComp: FC<ConversationDetailProps> = ({
}
}
- if (!conversationDetail) return null
+ if (!conversationDetail) {
+ return (
+ <DrawerTitle className="sr-only">
+ {t(($) => $['runDetail.title'], { ns: 'appLog' })}
+ </DrawerTitle>
+ )
+ }
return (
<DetailPanel
@@ -983,7 +996,13 @@ const ConversationList: FC<IConversationList> = ({ logs, appDetail, onRefresh })
<td className="h-4">
{!log.read_at && (
<div className="flex items-center p-3 pr-0.5">
- <span className="inline-block size-1.5 rounded-sm bg-util-colors-blue-blue-500"></span>
+ <span
+ aria-hidden="true"
+ className="inline-block size-1.5 rounded-sm bg-util-colors-blue-blue-500"
+ ></span>
+ <span className="sr-only">
+ {t(($) => $['table.unread'], { ns: 'appLog' })}
+ </span>
</div>
)}
</td>
diff --git a/web/app/components/base/new-audio-button/__tests__/index.spec.tsx b/web/app/components/base/new-audio-button/__tests__/index.spec.tsx
index 9b6fcc3496f..0e8de6b1b1a 100644
--- a/web/app/components/base/new-audio-button/__tests__/index.spec.tsx
+++ b/web/app/components/base/new-audio-button/__tests__/index.spec.tsx
@@ -1,10 +1,16 @@
+import type { i18n } from 'i18next'
+import type { ReactElement } from 'react'
import { act, render, screen, waitFor } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
-import i18next from 'i18next'
-import { beforeAll, beforeEach, describe, expect, it, vi } from 'vite-plus/test'
+import { createInstance } from 'i18next'
+import { I18nextProvider } from 'react-i18next'
+import { beforeEach, describe, expect, it, vi } from 'vite-plus/test'
+import appApi from '@/i18n/en-US/app-api.json'
import { useParams, usePathname } from '@/next/navigation'
import AudioBtn from '../index'
+vi.unmock('react-i18next')
+
const mockPlayAudio = vi.fn()
const mockPauseAudio = vi.fn()
const mockGetAudioPlayer = vi.fn()
@@ -23,11 +29,20 @@ vi.mock('@/app/components/base/audio-btn/audio.player.manager', () => ({
}))
describe('AudioBtn', () => {
+ let i18n: i18n
+
+ const renderAudioButton = (ui: ReactElement) =>
+ render(<I18nextProvider i18n={i18n}>{ui}</I18nextProvider>)
+
const getButton = () => screen.getByRole('button')
- const hoverAndCheckTooltip = async (expectedText: string) => {
+ const hoverAndCheckTooltip = async (
+ user: ReturnType<typeof userEvent.setup>,
+ expectedText: string,
+ ) => {
const button = getButton()
- await userEvent.hover(button)
+ await user.unhover(button)
+ await user.hover(button)
expect(await screen.findByText(expectedText))!.toBeInTheDocument()
}
@@ -43,11 +58,7 @@ describe('AudioBtn', () => {
return callback
}
- beforeAll(() => {
- i18next.init({})
- })
-
- beforeEach(() => {
+ beforeEach(async () => {
vi.clearAllMocks()
mockGetAudioPlayer.mockReturnValue({
playAudio: mockPlayAudio,
@@ -55,14 +66,22 @@ describe('AudioBtn', () => {
})
;(useParams as ReturnType<typeof vi.fn>).mockReturnValue({})
;(usePathname as ReturnType<typeof vi.fn>).mockReturnValue('/')
+ i18n = createInstance()
+ await i18n.init({
+ lng: 'en-US',
+ fallbackLng: 'en-US',
+ defaultNS: 'appApi',
+ resources: { 'en-US': { appApi } },
+ })
})
describe('URL Routing', () => {
it('should generate public URL when token is present', async () => {
+ const user = userEvent.setup()
;(useParams as ReturnType<typeof vi.fn>).mockReturnValue({ token: 'test-token' })
- render(<AudioBtn value="test" />)
- await userEvent.click(getButton())
+ renderAudioButton(<AudioBtn value="test" />)
+ await user.click(getButton())
await waitFor(() => expect(mockGetAudioPlayer).toHaveBeenCalled())
expect(mockGetAudioPlayer.mock.calls[0]![0]).toBe('/text-to-audio')
@@ -70,11 +89,12 @@ describe('AudioBtn', () => {
})
it('should generate app URL when appId is present', async () => {
+ const user = userEvent.setup()
;(useParams as ReturnType<typeof vi.fn>).mockReturnValue({ appId: '123' })
;(usePathname as ReturnType<typeof vi.fn>).mockReturnValue('/apps/123/chat')
- render(<AudioBtn value="test" />)
- await userEvent.click(getButton())
+ renderAudioButton(<AudioBtn value="test" />)
+ await user.click(getButton())
await waitFor(() => expect(mockGetAudioPlayer).toHaveBeenCalled())
expect(mockGetAudioPlayer.mock.calls[0]![0]).toBe('/apps/123/text-to-audio')
@@ -82,11 +102,12 @@ describe('AudioBtn', () => {
})
it('should generate installed app URL correctly', async () => {
+ const user = userEvent.setup()
;(useParams as ReturnType<typeof vi.fn>).mockReturnValue({ appId: '456' })
;(usePathname as ReturnType<typeof vi.fn>).mockReturnValue('/installed/456')
- render(<AudioBtn value="test" />)
- await userEvent.click(getButton())
+ renderAudioButton(<AudioBtn value="test" />)
+ await user.click(getButton())
await waitFor(() => expect(mockGetAudioPlayer).toHaveBeenCalled())
expect(mockGetAudioPlayer.mock.calls[0]![0]).toBe('/installed-apps/456/text-to-audio')
@@ -94,29 +115,32 @@ describe('AudioBtn', () => {
})
describe('State Management', () => {
- it('should start in initial state', async () => {
- render(<AudioBtn value="test" />)
+ it('should name the initial action using the provider instance without initializing the default instance', async () => {
+ const user = userEvent.setup()
+ renderAudioButton(<AudioBtn value="test" />)
- await hoverAndCheckTooltip('play')
- expect(getButton()).toHaveAccessibleName('play')
+ await hoverAndCheckTooltip(user, 'Play')
+ expect(getButton()).toHaveAccessibleName('Play')
expect(getButton()).not.toBeDisabled()
})
it('should transition to playing state', async () => {
- render(<AudioBtn value="test" />)
- await userEvent.click(getButton())
+ const user = userEvent.setup()
+ renderAudioButton(<AudioBtn value="test" />)
+ await user.click(getButton())
act(() => {
getAudioCallback()('play')
})
- await hoverAndCheckTooltip('playing')
- expect(getButton()).toHaveAccessibleName('playing')
+ await hoverAndCheckTooltip(user, 'Pause')
+ expect(getButton()).toHaveAccessibleName('Pause')
})
it('should transition to ended state', async () => {
- render(<AudioBtn value="test" />)
- await userEvent.click(getButton())
+ const user = userEvent.setup()
+ renderAudioButton(<AudioBtn value="test" />)
+ await user.click(getButton())
act(() => {
getAudioCallback()('play')
@@ -125,13 +149,14 @@ describe('AudioBtn', () => {
getAudioCallback()('ended')
})
- await hoverAndCheckTooltip('play')
- expect(getButton()).toHaveAccessibleName('play')
+ await hoverAndCheckTooltip(user, 'Play')
+ expect(getButton()).toHaveAccessibleName('Play')
})
it('should handle paused event', async () => {
- render(<AudioBtn value="test" />)
- await userEvent.click(getButton())
+ const user = userEvent.setup()
+ renderAudioButton(<AudioBtn value="test" />)
+ await user.click(getButton())
act(() => {
getAudioCallback()('play')
@@ -140,64 +165,73 @@ describe('AudioBtn', () => {
getAudioCallback()('paused')
})
- await hoverAndCheckTooltip('play')
+ await hoverAndCheckTooltip(user, 'Play')
})
it('should handle error event', async () => {
- render(<AudioBtn value="test" />)
- await userEvent.click(getButton())
+ const user = userEvent.setup()
+ renderAudioButton(<AudioBtn value="test" />)
+ await user.click(getButton())
act(() => {
getAudioCallback()('error')
})
- await hoverAndCheckTooltip('play')
+ await hoverAndCheckTooltip(user, 'Play')
})
it('should handle loaded event', async () => {
- render(<AudioBtn value="test" />)
- await userEvent.click(getButton())
+ const user = userEvent.setup()
+ renderAudioButton(<AudioBtn value="test" />)
+ await user.click(getButton())
act(() => {
getAudioCallback()('loaded')
})
- await hoverAndCheckTooltip('loading')
+ await hoverAndCheckTooltip(user, 'Loading')
})
})
describe('Play/Pause', () => {
it('should call playAudio when clicked', async () => {
- render(<AudioBtn value="test" />)
- await userEvent.click(getButton())
+ const user = userEvent.setup()
+ renderAudioButton(<AudioBtn value="test" />)
+ await user.click(getButton())
await waitFor(() => expect(mockPlayAudio).toHaveBeenCalled())
})
it('should call pauseAudio when clicked while playing', async () => {
- render(<AudioBtn value="test" />)
- await userEvent.click(getButton())
+ const user = userEvent.setup()
+ renderAudioButton(<AudioBtn value="test" />)
+ await user.click(getButton())
act(() => {
getAudioCallback()('play')
})
- await userEvent.click(getButton())
+ await user.click(screen.getByRole('button', { name: 'Pause' }))
await waitFor(() => expect(mockPauseAudio).toHaveBeenCalled())
+ expect(await screen.findByRole('button', { name: 'Play' })).toBeEnabled()
+ await user.click(screen.getByRole('button', { name: 'Play' }))
+ expect(mockPlayAudio).toHaveBeenCalledTimes(2)
})
it('should disable button when loading', async () => {
- render(<AudioBtn value="test" />)
- await userEvent.click(getButton())
+ const user = userEvent.setup()
+ renderAudioButton(<AudioBtn value="test" />)
+ await user.click(getButton())
- await waitFor(() => expect(getButton())!.toBeDisabled())
+ expect(await screen.findByRole('button', { name: 'Loading' })).toBeDisabled()
})
})
describe('Props', () => {
it('should pass props to audio player', async () => {
- render(<AudioBtn value="hello" id="msg-1" voice="en-US" />)
- await userEvent.click(getButton())
+ const user = userEvent.setup()
+ renderAudioButton(<AudioBtn value="hello" id="msg-1" voice="en-US" />)
+ await user.click(getButton())
await waitFor(() => expect(mockGetAudioPlayer).toHaveBeenCalled())
const call = mockGetAudioPlayer.mock.calls[0]
diff --git a/web/app/components/base/new-audio-button/index.tsx b/web/app/components/base/new-audio-button/index.tsx
index 0628b9e871b..493a967bce7 100644
--- a/web/app/components/base/new-audio-button/index.tsx
+++ b/web/app/components/base/new-audio-button/index.tsx
@@ -1,8 +1,8 @@
'use client'
import { IconButton } from '@langgenius/dify-ui/icon-button'
import { Tooltip, TooltipContent, TooltipTrigger } from '@langgenius/dify-ui/tooltip'
-import { t } from 'i18next'
import { useState } from 'react'
+import { useTranslation } from 'react-i18next'
import { AudioPlayerManager } from '@/app/components/base/audio-btn/audio.player.manager'
import { isInstalledAppPath } from '@/app/components/explore/installed-app/routes'
import { useParams, usePathname } from '@/next/navigation'
@@ -16,6 +16,7 @@ type AudioBtnProps = Readonly<{
type AudioState = 'initial' | 'loading' | 'playing' | 'paused' | 'ended'
const AudioBtn = ({ id, voice, value }: AudioBtnProps) => {
+ const { t } = useTranslation()
const [audioState, setAudioState] = useState<AudioState>('initial')
const params = useParams()
@@ -66,8 +67,8 @@ const AudioBtn = ({ id, voice, value }: AudioBtnProps) => {
const tooltipContent = {
initial: t(($) => $.play, { ns: 'appApi' }),
ended: t(($) => $.play, { ns: 'appApi' }),
- paused: t(($) => $.pause, { ns: 'appApi' }),
- playing: t(($) => $.playing, { ns: 'appApi' }),
+ paused: t(($) => $.play, { ns: 'appApi' }),
+ playing: t(($) => $.pause, { ns: 'appApi' }),
loading: t(($) => $.loading, { ns: 'appApi' }),
}[audioState]
diff --git a/web/app/components/workflow/run/__tests__/index.spec.tsx b/web/app/components/workflow/run/__tests__/index.spec.tsx
index b5a659f6dc3..4b606a97d03 100644
--- a/web/app/components/workflow/run/__tests__/index.spec.tsx
+++ b/web/app/components/workflow/run/__tests__/index.spec.tsx
@@ -1,6 +1,7 @@
import type { WorkflowRunDetailResponse } from '@/models/log'
import type { NodeTracing, NodeTracingListResponse } from '@/types/workflow'
-import { fireEvent, screen, waitFor } from '@testing-library/react'
+import { screen, waitFor, within } from '@testing-library/react'
+import userEvent from '@testing-library/user-event'
import { renderWorkflowComponent } from '../../__tests__/workflow-test-env'
import { BlockEnum, NodeRunningStatus } from '../../types'
import RunPanel from '../index'
@@ -138,6 +139,7 @@ describe('RunPanel', () => {
})
it('switches between detail, tracing, and result tabs with real child panels', async () => {
+ const user = userEvent.setup()
renderWorkflowComponent(
<RunPanel
activeTab="RESULT"
@@ -155,13 +157,18 @@ describe('RunPanel', () => {
expect(screen.getAllByText('SUCCESS').length).toBeGreaterThan(0)
})
- fireEvent.click(screen.getByText('runLog.tracing'))
+ expect(screen.getByRole('tab', { name: 'runLog.detail' })).toHaveAttribute(
+ 'aria-selected',
+ 'true',
+ )
+
+ await user.click(screen.getByRole('tab', { name: 'runLog.tracing' }))
await waitFor(() => {
expect(screen.getByText('Trace Node')).toBeInTheDocument()
})
- fireEvent.click(screen.getByText('runLog.result'))
+ await user.click(screen.getByRole('tab', { name: 'runLog.result' }))
await waitFor(() => {
expect(mockFetchRunDetail).toHaveBeenCalledTimes(2)
@@ -171,6 +178,38 @@ describe('RunPanel', () => {
})
})
+ it('lets keyboard users switch the logs detail and tracing panels when result is hidden', async () => {
+ const user = userEvent.setup()
+ renderWorkflowComponent(
+ <RunPanel
+ hideResult
+ activeTab="DETAIL"
+ runDetailUrl="/console/api/runs/run-1"
+ tracingListUrl="/console/api/runs/run-1/tracing"
+ />,
+ )
+
+ const detailPanel = await screen.findByRole('tabpanel', { name: 'runLog.detail' })
+ await waitFor(() =>
+ expect(within(detailPanel).getAllByText('SUCCESS').length).toBeGreaterThan(0),
+ )
+ expect(screen.queryByRole('tab', { name: 'runLog.result' })).not.toBeInTheDocument()
+
+ await user.tab()
+ expect(screen.getByRole('tab', { name: 'runLog.detail' })).toHaveFocus()
+ await user.keyboard('{ArrowRight}')
+
+ const tracingTab = screen.getByRole('tab', { name: 'runLog.tracing' })
+ expect(tracingTab).toHaveFocus()
+ await user.keyboard('{Enter}')
+ expect(tracingTab).toHaveAttribute('aria-selected', 'true')
+ const tracingPanel = screen.getByRole('tabpanel', { name: 'runLog.tracing' })
+ expect(tracingTab).toHaveAttribute('aria-controls', tracingPanel.id)
+ expect(within(tracingPanel).getByText('Trace Node')).toBeInTheDocument()
+ expect(screen.queryByRole('tabpanel', { name: 'runLog.detail' })).not.toBeInTheDocument()
+ await waitFor(() => expect(mockFetchTracingList).toHaveBeenCalledTimes(2))
+ })
+
it('reports run-detail and tracing failures through toast.error', async () => {
mockFetchRunDetail.mockRejectedValueOnce(new Error('detail boom'))
mockFetchTracingList.mockRejectedValueOnce(new Error('tracing boom'))
@@ -187,4 +226,24 @@ describe('RunPanel', () => {
expect(mockToastError).toHaveBeenCalledWith('Error: tracing boom')
})
})
+
+ it.each(['RESULT', 'DETAIL', 'TRACING'] as const)(
+ 'refreshes data when the already selected %s tab is clicked',
+ async (activeTab) => {
+ const user = userEvent.setup()
+ renderWorkflowComponent(
+ <RunPanel
+ activeTab={activeTab}
+ runDetailUrl="/console/api/runs/run-1"
+ tracingListUrl="/console/api/runs/run-1/tracing"
+ />,
+ )
+
+ await waitFor(() => expect(mockFetchTracingList).toHaveBeenCalledTimes(1))
+ await user.click(screen.getByRole('tab', { name: `runLog.${activeTab.toLowerCase()}` }))
+
+ await waitFor(() => expect(mockFetchTracingList).toHaveBeenCalledTimes(2))
+ expect(mockFetchRunDetail).toHaveBeenCalledTimes(activeTab === 'RESULT' ? 2 : 1)
+ },
+ )
})
diff --git a/web/app/components/workflow/run/__tests__/node.spec.tsx b/web/app/components/workflow/run/__tests__/node.spec.tsx
index 6a53de3f453..209502d965f 100644
--- a/web/app/components/workflow/run/__tests__/node.spec.tsx
+++ b/web/app/components/workflow/run/__tests__/node.spec.tsx
@@ -1,5 +1,6 @@
import type { NodeTracing } from '@/types/workflow'
-import { fireEvent, screen, waitFor } from '@testing-library/react'
+import { screen, waitFor } from '@testing-library/react'
+import userEvent from '@testing-library/user-event'
import { renderWithConsoleQuery as render } from '@/test/console/query-data'
import { BlockEnum, NodeRunningStatus } from '../../types'
import NodePanel from '../node'
@@ -40,6 +41,62 @@ const createNodeInfo = (overrides: Partial<NodeTracing> = {}): NodeTracing => ({
})
describe('Run NodePanel', () => {
+ it('expands and collapses trace details from the keyboard', async () => {
+ const user = userEvent.setup()
+ render(<NodePanel nodeInfo={createNodeInfo({ status: NodeRunningStatus.Stopped })} />)
+
+ const trigger = screen.getByRole('button', { name: /Code Node/ })
+ expect(trigger).toHaveAttribute('aria-expanded', 'false')
+ expect(screen.queryByText(/Alice/)).not.toBeInTheDocument()
+
+ await user.tab()
+ expect(trigger).toHaveFocus()
+ await user.keyboard('{Enter}')
+
+ expect(trigger).toHaveAttribute('aria-expanded', 'true')
+ expect(screen.getByText(/Alice/)).toBeVisible()
+ expect(document.getElementById(trigger.getAttribute('aria-controls')!)).toBeVisible()
+
+ await user.keyboard(' ')
+ expect(trigger).toHaveAttribute('aria-expanded', 'false')
+ expect(screen.queryByText(/Alice/)).not.toBeInTheDocument()
+ expect(trigger).toHaveFocus()
+ })
+
+ it.each([
+ NodeRunningStatus.Succeeded,
+ NodeRunningStatus.Failed,
+ NodeRunningStatus.Stopped,
+ NodeRunningStatus.Paused,
+ NodeRunningStatus.Exception,
+ ])('exposes the %s status before the node is expanded', (status) => {
+ render(<NodePanel nodeInfo={createNodeInfo({ status })} />)
+
+ expect(
+ screen.getByRole('button', {
+ name: new RegExp(`Code Node.*workflow.tracing.status.${status}`),
+ }),
+ ).toHaveAttribute('aria-expanded', 'false')
+ })
+
+ it('keeps process details unavailable when they are hidden', async () => {
+ const user = userEvent.setup()
+ render(
+ <NodePanel
+ hideProcessDetail
+ nodeInfo={createNodeInfo({
+ expand: true,
+ status: NodeRunningStatus.Stopped,
+ })}
+ />,
+ )
+
+ expect(screen.queryByRole('button')).not.toBeInTheDocument()
+ expect(screen.getByText('workflow.tracing.status.stopped')).toBeInTheDocument()
+ await user.click(screen.getByText('Code Node'))
+ expect(screen.queryByText(/Alice/)).not.toBeInTheDocument()
+ })
+
it('renders the running state in the header without the finished summary', () => {
render(
<NodePanel
@@ -49,7 +106,7 @@ describe('Run NodePanel', () => {
/>,
)
- expect(screen.getByText('Running')).toBeInTheDocument()
+ expect(screen.getByText('workflow.common.running')).toBeInTheDocument()
expect(screen.queryByText('1.250 s')).not.toBeInTheDocument()
})
@@ -69,6 +126,7 @@ describe('Run NodePanel', () => {
})
it('forwards iteration details through the real iteration trigger', async () => {
+ const user = userEvent.setup()
const handleShowIterationDetail = vi.fn()
const details = [
[
@@ -98,13 +156,16 @@ describe('Run NodePanel', () => {
/>,
)
- const trigger = await screen.findByRole('button')
- fireEvent.click(trigger)
+ const trigger = await screen.findByRole('button', {
+ name: /workflow.nodes.iteration.iteration/,
+ })
+ await user.click(trigger)
expect(handleShowIterationDetail).toHaveBeenCalledWith(details, iterDurationMap)
})
it('forwards retry details through the real retry trigger', async () => {
+ const user = userEvent.setup()
const handleShowRetryDetail = vi.fn()
const retryDetail = [
createNodeInfo({
@@ -126,8 +187,10 @@ describe('Run NodePanel', () => {
/>,
)
- const trigger = await screen.findByRole('button')
- fireEvent.click(trigger)
+ const trigger = await screen.findByRole('button', {
+ name: /workflow.nodes.common.retry.retries/,
+ })
+ await user.click(trigger)
expect(handleShowRetryDetail).toHaveBeenCalledWith(retryDetail)
})
diff --git a/web/app/components/workflow/run/index.tsx b/web/app/components/workflow/run/index.tsx
index 76a47781472..1c05f61732c 100644
--- a/web/app/components/workflow/run/index.tsx
+++ b/web/app/components/workflow/run/index.tsx
@@ -2,7 +2,7 @@
import type { FC } from 'react'
import type { WorkflowRunDetailResponse } from '@/models/log'
import type { NodeTracing } from '@/types/workflow'
-import { cn } from '@langgenius/dify-ui/cn'
+import { Tabs, TabsList, TabsPanel, TabsTab } from '@langgenius/dify-ui/tabs'
import { toast } from '@langgenius/dify-ui/toast'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
@@ -101,83 +101,88 @@ const RunPanel: FC<RunProps> = ({
}, [loading])
return (
- <div className="relative flex grow flex-col">
+ <Tabs
+ className="relative flex grow flex-col"
+ value={currentTab}
+ onValueChange={(value) => switchTab(value as string)}
+ >
{/* tab */}
- <div className="flex shrink-0 items-center border-b-[0.5px] border-divider-subtle px-4">
+ <TabsList className="shrink-0 items-center gap-6 border-b-[0.5px] border-divider-subtle px-4">
{!hideResult && (
- <div
- className={cn(
- 'mr-6 cursor-pointer border-b-2 border-transparent py-3 system-sm-semibold-uppercase text-text-tertiary',
- currentTab === 'RESULT' &&
- 'border-util-colors-blue-brand-blue-brand-600! text-text-primary',
- )}
- onClick={() => switchTab('RESULT')}
+ <TabsTab
+ value="RESULT"
+ className="py-3 system-sm-semibold-uppercase!"
+ onClick={() => {
+ if (currentTab === 'RESULT') switchTab('RESULT')
+ }}
>
{t(($) => $.result, { ns: 'runLog' })}
- </div>
+ </TabsTab>
)}
- <div
- className={cn(
- 'mr-6 cursor-pointer border-b-2 border-transparent py-3 system-sm-semibold-uppercase text-text-tertiary',
- currentTab === 'DETAIL' &&
- 'border-util-colors-blue-brand-blue-brand-600! text-text-primary',
- )}
- onClick={() => switchTab('DETAIL')}
+ <TabsTab
+ value="DETAIL"
+ className="py-3 system-sm-semibold-uppercase!"
+ onClick={() => {
+ if (currentTab === 'DETAIL') switchTab('DETAIL')
+ }}
>
{t(($) => $.detail, { ns: 'runLog' })}
- </div>
- <div
- className={cn(
- 'mr-6 cursor-pointer border-b-2 border-transparent py-3 system-sm-semibold-uppercase text-text-tertiary',
- currentTab === 'TRACING' &&
- 'border-util-colors-blue-brand-blue-brand-600! text-text-primary',
- )}
- onClick={() => switchTab('TRACING')}
+ </TabsTab>
+ <TabsTab
+ value="TRACING"
+ className="py-3 system-sm-semibold-uppercase!"
+ onClick={() => {
+ if (currentTab === 'TRACING') switchTab('TRACING')
+ }}
>
{t(($) => $.tracing, { ns: 'runLog' })}
- </div>
- </div>
+ </TabsTab>
+ </TabsList>
{/* panel detail */}
<div
ref={ref}
- className={cn('relative h-0 grow overflow-y-auto rounded-b-xl bg-components-panel-bg')}
+ className="relative h-0 grow overflow-y-auto rounded-b-xl bg-components-panel-bg"
>
{loading && (
<div className="flex h-full items-center justify-center bg-components-panel-bg">
<Loading />
</div>
)}
- {!loading && currentTab === 'RESULT' && runDetail && (
- <OutputPanel outputs={runDetail.outputs} error={runDetail.error} height={height} />
- )}
- {!loading && currentTab === 'DETAIL' && runDetail && (
- <ResultPanel
- inputs={runDetail.inputs}
- inputs_truncated={runDetail.inputs_truncated}
- outputs={runDetail.outputs}
- outputs_truncated={runDetail.outputs_truncated}
- outputs_full_content={runDetail.outputs_full_content}
- status={runDetail.status}
- error={runDetail.error}
- elapsed_time={runDetail.elapsed_time}
- total_tokens={runDetail.total_tokens}
- created_at={runDetail.created_at}
- created_by={executor}
- steps={runDetail.total_steps}
- exceptionCounts={runDetail.exceptions_count}
- isListening={isListening}
- workflowRunId={runDetail.id}
- onOpenTracingTab={() => switchTab('TRACING')}
- />
- )}
- {!loading && currentTab === 'DETAIL' && !runDetail && isListening && (
- <StatusPanel status={WorkflowRunningStatus.Running} isListening={true} />
- )}
- {!loading && currentTab === 'TRACING' && (
- <TracingPanel className="bg-background-section-burn" list={list} />
- )}
+ <TabsPanel value="RESULT">
+ {!loading && runDetail && (
+ <OutputPanel outputs={runDetail.outputs} error={runDetail.error} height={height} />
+ )}
+ </TabsPanel>
+ <TabsPanel value="DETAIL">
+ {!loading && runDetail && (
+ <ResultPanel
+ inputs={runDetail.inputs}
+ inputs_truncated={runDetail.inputs_truncated}
+ outputs={runDetail.outputs}
+ outputs_truncated={runDetail.outputs_truncated}
+ outputs_full_content={runDetail.outputs_full_content}
+ status={runDetail.status}
+ error={runDetail.error}
+ elapsed_time={runDetail.elapsed_time}
+ total_tokens={runDetail.total_tokens}
+ created_at={runDetail.created_at}
+ created_by={executor}
+ steps={runDetail.total_steps}
+ exceptionCounts={runDetail.exceptions_count}
+ isListening={isListening}
+ workflowRunId={runDetail.id}
+ onOpenTracingTab={() => switchTab('TRACING')}
+ />
+ )}
+ {!loading && !runDetail && isListening && (
+ <StatusPanel status={WorkflowRunningStatus.Running} isListening={true} />
+ )}
+ </TabsPanel>
+ <TabsPanel value="TRACING">
+ {!loading && <TracingPanel className="bg-background-section-burn" list={list} />}
+ </TabsPanel>
</div>
- </div>
+ </Tabs>
)
}
diff --git a/web/app/components/workflow/run/node.tsx b/web/app/components/workflow/run/node.tsx
index c9885e4dd98..ca36be3b9d6 100644
--- a/web/app/components/workflow/run/node.tsx
+++ b/web/app/components/workflow/run/node.tsx
@@ -17,7 +17,7 @@ import {
RiLoader2Line,
RiPauseCircleFill,
} from '@remixicon/react'
-import { useCallback, useEffect, useMemo, useState } from 'react'
+import { useCallback, useEffect, useId, useMemo, useState } from 'react'
import { useTranslation } from 'react-i18next'
import CodeEditor from '@/app/components/workflow/nodes/_base/components/editor/code-editor'
import ErrorHandleTip from '@/app/components/workflow/nodes/_base/components/error-handle/error-handle-tip'
@@ -79,6 +79,17 @@ const NodePanel: FC<Props> = ({
)
const { t } = useTranslation()
const docLink = useDocLink()
+ const detailsId = useId()
+ const Header = hideProcessDetail ? 'div' : 'button'
+ const statusLabels: Record<string, string> = {
+ succeeded: t(($) => $['tracing.status.succeeded'], { ns: 'workflow' }),
+ failed: t(($) => $['tracing.status.failed'], { ns: 'workflow' }),
+ stopped: t(($) => $['tracing.status.stopped'], { ns: 'workflow' }),
+ paused: t(($) => $['tracing.status.paused'], { ns: 'workflow' }),
+ exception: t(($) => $['tracing.status.exception'], { ns: 'workflow' }),
+ retry: t(($) => $['nodes.common.retry.retrying'], { ns: 'workflow' }),
+ running: t(($) => $['common.running'], { ns: 'workflow' }),
+ }
const getTime = (time: number) => {
if (time < 1) return `${(time * 1000).toFixed(3)} ms`
@@ -120,199 +131,224 @@ const NodePanel: FC<Props> = ({
return (
<div className={cn('px-2 py-1', className)}>
<div className="group rounded-[10px] border border-components-panel-border bg-background-default shadow-xs transition-all hover:shadow-md">
- <div
- className={cn(
- 'flex cursor-pointer items-center pr-3 pl-1',
- hideInfo ? 'py-2 pl-2' : 'py-1.5',
- !collapseState && (hideInfo ? 'pb-1!' : 'pb-1.5!'),
- )}
- onClick={() => setCollapseState(!collapseState)}
- >
- {!hideProcessDetail && (
- <RiArrowRightSLine
- className={cn(
- 'mr-1 size-4 shrink-0 text-text-quaternary transition-all group-hover:text-text-tertiary',
- !collapseState && 'rotate-90',
- )}
- />
- )}
- <BlockIcon
- size={inMessage ? 'xs' : 'sm'}
- className={cn('mr-2 shrink-0', inMessage && 'mr-1!')}
- type={nodeInfo.node_type}
- toolIcon={nodeInfo.extras?.icon || nodeInfo.extras}
- />
- <Tooltip>
- <TooltipTrigger
- render={
- <div
+ <Tooltip>
+ <TooltipTrigger
+ render={
+ <Header
+ type={hideProcessDetail ? undefined : 'button'}
+ aria-expanded={hideProcessDetail ? undefined : !collapseState}
+ aria-controls={hideProcessDetail ? undefined : detailsId}
+ className={cn(
+ 'flex w-full items-center rounded-[10px] pr-3 pl-1 text-left',
+ !hideProcessDetail &&
+ 'cursor-pointer focus-visible:ring-2 focus-visible:ring-state-accent-solid focus-visible:outline-hidden',
+ hideInfo ? 'py-2 pl-2' : 'py-1.5',
+ !collapseState && (hideInfo ? 'pb-1!' : 'pb-1.5!'),
+ )}
+ onClick={hideProcessDetail ? undefined : () => setCollapseState(!collapseState)}
+ >
+ {!hideProcessDetail && (
+ <RiArrowRightSLine
+ aria-hidden="true"
+ className={cn(
+ 'mr-1 size-4 shrink-0 text-text-quaternary transition-all group-hover:text-text-tertiary',
+ !collapseState && 'rotate-90',
+ )}
+ />
+ )}
+ <BlockIcon
+ size={inMessage ? 'xs' : 'sm'}
+ className={cn('mr-2 shrink-0', inMessage && 'mr-1!')}
+ type={nodeInfo.node_type}
+ toolIcon={nodeInfo.extras?.icon || nodeInfo.extras}
+ />
+ <span
className={cn(
'min-w-0 grow truncate system-xs-semibold-uppercase text-text-secondary',
hideInfo && 'text-xs!',
)}
>
{nodeInfo.title}
+ </span>
+ {!['running', 'paused'].includes(nodeInfo.status) && !hideInfo && (
+ <div className="shrink-0 system-xs-regular text-text-tertiary">
+ {nodeInfo.execution_metadata?.total_tokens
+ ? `${getTokenCount(nodeInfo.execution_metadata?.total_tokens || 0)} tokens · `
+ : ''}
+ {`${getTime(nodeInfo.elapsed_time || 0)}`}
+ </div>
+ )}
+ {nodeInfo.status !== 'running' && statusLabels[nodeInfo.status] && (
+ <span className="sr-only">{statusLabels[nodeInfo.status]}</span>
+ )}
+ {nodeInfo.status === 'succeeded' && (
+ <RiCheckboxCircleFill
+ aria-hidden="true"
+ className="ml-2 size-3.5 shrink-0 text-text-success"
+ />
+ )}
+ {nodeInfo.status === 'failed' && (
+ <RiErrorWarningFill
+ aria-hidden="true"
+ className="ml-2 size-3.5 shrink-0 text-text-destructive"
+ />
+ )}
+ {nodeInfo.status === 'stopped' && (
+ <RiAlertFill
+ aria-hidden="true"
+ className={cn(
+ 'ml-2 size-4 shrink-0 text-text-warning-secondary',
+ inMessage && 'size-3.5',
+ )}
+ />
+ )}
+ {nodeInfo.status === 'paused' && (
+ <RiPauseCircleFill
+ aria-hidden="true"
+ className={cn(
+ 'ml-2 size-4 shrink-0 text-text-warning-secondary',
+ inMessage && 'size-3.5',
+ )}
+ />
+ )}
+ {nodeInfo.status === 'exception' && (
+ <RiAlertFill
+ aria-hidden="true"
+ className={cn(
+ 'ml-2 size-4 shrink-0 text-text-warning-secondary',
+ inMessage && 'size-3.5',
+ )}
+ />
+ )}
+ {nodeInfo.status === 'running' && (
+ <div className="flex shrink-0 items-center text-[13px] leading-4 font-medium text-text-accent">
+ <span className="mr-2 text-xs font-normal">{statusLabels.running}</span>
+ <RiLoader2Line aria-hidden="true" className="size-3.5 animate-spin" />
+ </div>
+ )}
+ </Header>
+ }
+ />
+ <TooltipContent>
+ <div className="max-w-xs">{nodeInfo.title}</div>
+ </TooltipContent>
+ </Tooltip>
+ {!hideProcessDetail && (
+ <div id={detailsId} hidden={collapseState} className="px-1 pb-1">
+ {!collapseState && (
+ <>
+ {/* The nav to the iteration detail */}
+ {isIterationNode && !notShowIterationNav && onShowIterationDetail && (
+ <IterationLogTrigger
+ nodeInfo={nodeInfo}
+ allExecutions={allExecutions}
+ onShowIterationResultList={onShowIterationDetail}
+ />
+ )}
+ {/* The nav to the Loop detail */}
+ {isLoopNode && !notShowLoopNav && onShowLoopDetail && (
+ <LoopLogTrigger
+ nodeInfo={nodeInfo}
+ allExecutions={allExecutions}
+ onShowLoopResultList={onShowLoopDetail}
+ />
+ )}
+ {isRetryNode && onShowRetryDetail && (
+ <RetryLogTrigger nodeInfo={nodeInfo} onShowRetryResultList={onShowRetryDetail} />
+ )}
+ {(isAgentNode || isToolNode) && onShowAgentOrToolLog && (
+ <AgentLogTrigger
+ nodeInfo={nodeInfo}
+ onShowAgentOrToolLog={onShowAgentOrToolLog}
+ />
+ )}
+ <div className={cn('mb-1', hideInfo && 'px-2! py-0.5!')}>
+ {nodeInfo.status === 'stopped' && (
+ <StatusContainer status="stopped">
+ {t(($) => $['tracing.stopBy'], {
+ ns: 'workflow',
+ user: nodeInfo.created_by ? nodeInfo.created_by.name : 'N/A',
+ })}
+ </StatusContainer>
+ )}
+ {nodeInfo.status === 'exception' && (
+ <StatusContainer status="stopped">
+ {nodeInfo.error}
+ <a
+ href={docLink('/use-dify/debug/error-type')}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-text-accent"
+ >
+ {t(($) => $['common.learnMore'], { ns: 'workflow' })}
+ </a>
+ </StatusContainer>
+ )}
+ {nodeInfo.status === 'failed' && (
+ <StatusContainer status="failed">{nodeInfo.error}</StatusContainer>
+ )}
+ {nodeInfo.status === 'retry' && (
+ <StatusContainer status="failed">{nodeInfo.error}</StatusContainer>
+ )}
+ {nodeInfo.status === 'paused' && (
+ <StatusContainer status="paused">
+ <div className="system-xs-regular text-text-warning">
+ {t(($) => $['nodes.humanInput.log.reasonContent'], { ns: 'workflow' })}
+ </div>
+ </StatusContainer>
+ )}
</div>
- }
- />
- <TooltipContent>
- <div className="max-w-xs">{nodeInfo.title}</div>
- </TooltipContent>
- </Tooltip>
- {!['running', 'paused'].includes(nodeInfo.status) && !hideInfo && (
- <div className="shrink-0 system-xs-regular text-text-tertiary">
- {nodeInfo.execution_metadata?.total_tokens
- ? `${getTokenCount(nodeInfo.execution_metadata?.total_tokens || 0)} tokens · `
- : ''}
- {`${getTime(nodeInfo.elapsed_time || 0)}`}
- </div>
- )}
- {nodeInfo.status === 'succeeded' && (
- <RiCheckboxCircleFill className="ml-2 size-3.5 shrink-0 text-text-success" />
- )}
- {nodeInfo.status === 'failed' && (
- <RiErrorWarningFill className="ml-2 size-3.5 shrink-0 text-text-destructive" />
- )}
- {nodeInfo.status === 'stopped' && (
- <RiAlertFill
- className={cn(
- 'ml-2 size-4 shrink-0 text-text-warning-secondary',
- inMessage && 'size-3.5',
- )}
- />
- )}
- {nodeInfo.status === 'paused' && (
- <RiPauseCircleFill
- className={cn(
- 'ml-2 size-4 shrink-0 text-text-warning-secondary',
- inMessage && 'size-3.5',
- )}
- />
- )}
- {nodeInfo.status === 'exception' && (
- <RiAlertFill
- className={cn(
- 'ml-2 size-4 shrink-0 text-text-warning-secondary',
- inMessage && 'size-3.5',
- )}
- />
- )}
- {nodeInfo.status === 'running' && (
- <div className="flex shrink-0 items-center text-[13px] leading-4 font-medium text-text-accent">
- <span className="mr-2 text-xs font-normal">Running</span>
- <RiLoader2Line className="size-3.5 animate-spin" />
- </div>
- )}
- </div>
- {!collapseState && !hideProcessDetail && (
- <div className="px-1 pb-1">
- {/* The nav to the iteration detail */}
- {isIterationNode && !notShowIterationNav && onShowIterationDetail && (
- <IterationLogTrigger
- nodeInfo={nodeInfo}
- allExecutions={allExecutions}
- onShowIterationResultList={onShowIterationDetail}
- />
- )}
- {/* The nav to the Loop detail */}
- {isLoopNode && !notShowLoopNav && onShowLoopDetail && (
- <LoopLogTrigger
- nodeInfo={nodeInfo}
- allExecutions={allExecutions}
- onShowLoopResultList={onShowLoopDetail}
- />
- )}
- {isRetryNode && onShowRetryDetail && (
- <RetryLogTrigger nodeInfo={nodeInfo} onShowRetryResultList={onShowRetryDetail} />
- )}
- {(isAgentNode || isToolNode) && onShowAgentOrToolLog && (
- <AgentLogTrigger nodeInfo={nodeInfo} onShowAgentOrToolLog={onShowAgentOrToolLog} />
- )}
- <div className={cn('mb-1', hideInfo && 'px-2! py-0.5!')}>
- {nodeInfo.status === 'stopped' && (
- <StatusContainer status="stopped">
- {t(($) => $['tracing.stopBy'], {
- ns: 'workflow',
- user: nodeInfo.created_by ? nodeInfo.created_by.name : 'N/A',
- })}
- </StatusContainer>
- )}
- {nodeInfo.status === 'exception' && (
- <StatusContainer status="stopped">
- {nodeInfo.error}
- <a
- href={docLink('/use-dify/debug/error-type')}
- target="_blank"
- rel="noopener noreferrer"
- className="text-text-accent"
- >
- {t(($) => $['common.learnMore'], { ns: 'workflow' })}
- </a>
- </StatusContainer>
- )}
- {nodeInfo.status === 'failed' && (
- <StatusContainer status="failed">{nodeInfo.error}</StatusContainer>
- )}
- {nodeInfo.status === 'retry' && (
- <StatusContainer status="failed">{nodeInfo.error}</StatusContainer>
- )}
- {nodeInfo.status === 'paused' && (
- <StatusContainer status="paused">
- <div className="system-xs-regular text-text-warning">
- {t(($) => $['nodes.humanInput.log.reasonContent'], { ns: 'workflow' })}
+ {nodeInfo.inputs && (
+ <div className={cn('mb-1')}>
+ <CodeEditor
+ readOnly
+ title={<div>{inputsTitle}</div>}
+ language={CodeLanguage.json}
+ value={nodeInfo.inputs}
+ isJSONStringifyBeauty
+ footer={
+ nodeInfo.inputs_truncated && (
+ <LargeDataAlert textHasNoExport className="mx-1 mt-2 mb-1 h-7" />
+ )
+ }
+ />
</div>
- </StatusContainer>
- )}
- </div>
- {nodeInfo.inputs && (
- <div className={cn('mb-1')}>
- <CodeEditor
- readOnly
- title={<div>{inputsTitle}</div>}
- language={CodeLanguage.json}
- value={nodeInfo.inputs}
- isJSONStringifyBeauty
- footer={
- nodeInfo.inputs_truncated && (
- <LargeDataAlert textHasNoExport className="mx-1 mt-2 mb-1 h-7" />
- )
- }
- />
- </div>
- )}
- {nodeInfo.process_data && (
- <div className={cn('mb-1')}>
- <CodeEditor
- readOnly
- showFileList
- title={<div>{processDataTitle}</div>}
- language={CodeLanguage.json}
- value={nodeInfo.process_data}
- isJSONStringifyBeauty
- />
- </div>
- )}
- {nodeInfo.outputs && (
- <div>
- <CodeEditor
- readOnly
- showFileList
- title={<div>{outputTitle}</div>}
- language={CodeLanguage.json}
- value={nodeInfo.outputs}
- isJSONStringifyBeauty
- tip={<ErrorHandleTip type={nodeInfo.execution_metadata?.error_strategy} />}
- footer={
- nodeInfo.outputs_truncated && (
- <LargeDataAlert
- textHasNoExport
- downloadUrl={nodeInfo.outputs_full_content?.download_url}
- className="mx-1 mt-2 mb-1 h-7"
- />
- )
- }
- />
- </div>
+ )}
+ {nodeInfo.process_data && (
+ <div className={cn('mb-1')}>
+ <CodeEditor
+ readOnly
+ showFileList
+ title={<div>{processDataTitle}</div>}
+ language={CodeLanguage.json}
+ value={nodeInfo.process_data}
+ isJSONStringifyBeauty
+ />
+ </div>
+ )}
+ {nodeInfo.outputs && (
+ <div>
+ <CodeEditor
+ readOnly
+ showFileList
+ title={<div>{outputTitle}</div>}
+ language={CodeLanguage.json}
+ value={nodeInfo.outputs}
+ isJSONStringifyBeauty
+ tip={<ErrorHandleTip type={nodeInfo.execution_metadata?.error_strategy} />}
+ footer={
+ nodeInfo.outputs_truncated && (
+ <LargeDataAlert
+ textHasNoExport
+ downloadUrl={nodeInfo.outputs_full_content?.download_url}
+ className="mx-1 mt-2 mb-1 h-7"
+ />
+ )
+ }
+ />
+ </div>
+ )}
+ </>
)}
</div>
)}
diff --git a/web/i18n/ar-TN/app-log.json b/web/i18n/ar-TN/app-log.json
index 15c5ec30fa8..a377e91ca5a 100644
--- a/web/i18n/ar-TN/app-log.json
+++ b/web/i18n/ar-TN/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "الوقت المحدث",
"table.header.user": "المستخدم",
"table.header.userRate": "معدل المستخدم",
+ "table.unread": "غير مقروء",
"title": "السجلات",
"triggerBy.appRun": "تشغيل التطبيق",
"triggerBy.debugging": "تصحيح الأخطاء",
diff --git a/web/i18n/ar-TN/workflow.json b/web/i18n/ar-TN/workflow.json
index 3f5aec204a5..8e79136fccc 100644
--- a/web/i18n/ar-TN/workflow.json
+++ b/web/i18n/ar-TN/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "تمت إضافة عقدة بداية غير مكوّنة إلى اللوحة. أكمل الإعداد قبل المتابعة.",
"tabs.utilities": "الأدوات المساعدة",
"tabs.workflowTool": "سير العمل",
+ "tracing.status.exception": "استثناء",
+ "tracing.status.failed": "فشل",
+ "tracing.status.paused": "متوقف مؤقتًا",
+ "tracing.status.stopped": "متوقف",
+ "tracing.status.succeeded": "نجاح",
"tracing.stopBy": "توقف بواسطة {{user}}",
"triggerStatus.enabled": "مشغل",
"variableReference.assignedVarsDescription": "يجب أن تكون المتغيرات المعينة متغيرات قابلة للكتابة، مثل متغيرات المحادثة.",
diff --git a/web/i18n/de-DE/app-log.json b/web/i18n/de-DE/app-log.json
index cc05e93dd12..c61a909fe1d 100644
--- a/web/i18n/de-DE/app-log.json
+++ b/web/i18n/de-DE/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Aktualisierungszeit",
"table.header.user": "Endbenutzer oder Konto",
"table.header.userRate": "Benutzerbewertung",
+ "table.unread": "Ungelesen",
"title": "Protokolle",
"triggerBy.appRun": "Webanwendung",
"triggerBy.debugging": "Fehlerbehebung",
diff --git a/web/i18n/de-DE/workflow.json b/web/i18n/de-DE/workflow.json
index fbe2d6ae0ae..c796f6f569c 100644
--- a/web/i18n/de-DE/workflow.json
+++ b/web/i18n/de-DE/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "Ein nicht konfigurierter Startknoten wurde zur Arbeitsfläche hinzugefügt. Schließen Sie die Einrichtung ab, bevor Sie fortfahren.",
"tabs.utilities": "Dienstprogramme",
"tabs.workflowTool": "Workflow",
+ "tracing.status.exception": "Ausnahme",
+ "tracing.status.failed": "Fehlgeschlagen",
+ "tracing.status.paused": "Pausiert",
+ "tracing.status.stopped": "Gestoppt",
+ "tracing.status.succeeded": "Erfolgreich",
"tracing.stopBy": "Gestoppt von {{user}}",
"triggerStatus.enabled": "AUSLÖSER",
"variableReference.assignedVarsDescription": "Zugewiesene Variablen müssen beschreibbare Variablen sein, z. B. Konversationsvariablen.",
diff --git a/web/i18n/en-US/app-log.json b/web/i18n/en-US/app-log.json
index 13a246805af..68faeef63d8 100644
--- a/web/i18n/en-US/app-log.json
+++ b/web/i18n/en-US/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Updated time",
"table.header.user": "END USER OR ACCOUNT",
"table.header.userRate": "User Rate",
+ "table.unread": "Unread",
"title": "Logs",
"triggerBy.appRun": "WebApp",
"triggerBy.debugging": "Debugging",
diff --git a/web/i18n/en-US/workflow.json b/web/i18n/en-US/workflow.json
index 8d35645314d..f07f6a7f88c 100644
--- a/web/i18n/en-US/workflow.json
+++ b/web/i18n/en-US/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "An unconfigured start node has been added to canvas. Please complete the setup before continuing.",
"tabs.utilities": "Utilities",
"tabs.workflowTool": "Workflow",
+ "tracing.status.exception": "Exception",
+ "tracing.status.failed": "Failed",
+ "tracing.status.paused": "Paused",
+ "tracing.status.stopped": "Stopped",
+ "tracing.status.succeeded": "Success",
"tracing.stopBy": "Stop by {{user}}",
"triggerStatus.enabled": "TRIGGER",
"variableReference.assignedVarsDescription": "Assigned variables must be writable variables, such as conversation variables.",
diff --git a/web/i18n/es-ES/app-log.json b/web/i18n/es-ES/app-log.json
index bdebe5e2a83..695b684c833 100644
--- a/web/i18n/es-ES/app-log.json
+++ b/web/i18n/es-ES/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Hora actualizada",
"table.header.user": "USUARIO FINAL O CUENTA",
"table.header.userRate": "Tasa de Usuario",
+ "table.unread": "Sin leer",
"title": "Registros",
"triggerBy.appRun": "Aplicación web",
"triggerBy.debugging": "Depuración",
diff --git a/web/i18n/es-ES/workflow.json b/web/i18n/es-ES/workflow.json
index 1fc5d25d8fe..a076e792507 100644
--- a/web/i18n/es-ES/workflow.json
+++ b/web/i18n/es-ES/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "Se ha añadido al lienzo un nodo de inicio sin configurar. Completa la configuración antes de continuar.",
"tabs.utilities": "Utilidades",
"tabs.workflowTool": "Flujo de trabajo",
+ "tracing.status.exception": "Excepción",
+ "tracing.status.failed": "Fallido",
+ "tracing.status.paused": "En pausa",
+ "tracing.status.stopped": "Detenido",
+ "tracing.status.succeeded": "Correcto",
"tracing.stopBy": "Pásate por {{user}}",
"triggerStatus.enabled": "DISPARADOR",
"variableReference.assignedVarsDescription": "Las variables asignadas deben ser variables grabables, como las variables de conversación.",
diff --git a/web/i18n/fa-IR/app-log.json b/web/i18n/fa-IR/app-log.json
index 726d38fa4b2..e2c3f2f94e8 100644
--- a/web/i18n/fa-IR/app-log.json
+++ b/web/i18n/fa-IR/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "زمان به‌روزرسانی",
"table.header.user": "کاربر نهایی یا حساب",
"table.header.userRate": "امتیاز کاربر",
+ "table.unread": "خوانده‌نشده",
"title": "لاگ‌ها",
"triggerBy.appRun": "وب اپ",
"triggerBy.debugging": "رفع اشکال",
diff --git a/web/i18n/fa-IR/workflow.json b/web/i18n/fa-IR/workflow.json
index 89d51e4cc73..f87fac30d96 100644
--- a/web/i18n/fa-IR/workflow.json
+++ b/web/i18n/fa-IR/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "یک گره شروع پیکربندی‌نشده به بوم اضافه شده است. پیش از ادامه، تنظیمات را کامل کنید.",
"tabs.utilities": "ابزارهای کاربردی",
"tabs.workflowTool": "گردش کار",
+ "tracing.status.exception": "استثنا",
+ "tracing.status.failed": "ناموفق",
+ "tracing.status.paused": "موقتاً متوقف‌شده",
+ "tracing.status.stopped": "متوقف‌شده",
+ "tracing.status.succeeded": "موفق",
"tracing.stopBy": "متوقف‌شده توسط {{user}}",
"triggerStatus.enabled": "تریگر",
"variableReference.assignedVarsDescription": "متغیرهای تخصیص‌یافته باید قابل‌نوشتن باشند (مانند متغیرهای مکالمه).",
diff --git a/web/i18n/fr-FR/app-log.json b/web/i18n/fr-FR/app-log.json
index 492e687d1d8..533efb47c9d 100644
--- a/web/i18n/fr-FR/app-log.json
+++ b/web/i18n/fr-FR/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Heure de mise à jour",
"table.header.user": "UTILISATEUR FINAL OU COMPTE",
"table.header.userRate": "Taux utilisateur",
+ "table.unread": "Non lu",
"title": "Journaux",
"triggerBy.appRun": "Application Web",
"triggerBy.debugging": "Débogage",
diff --git a/web/i18n/fr-FR/workflow.json b/web/i18n/fr-FR/workflow.json
index 70d7d07f3b9..60fab14e373 100644
--- a/web/i18n/fr-FR/workflow.json
+++ b/web/i18n/fr-FR/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "Un nœud de départ non configuré a été ajouté au canevas. Terminez la configuration avant de continuer.",
"tabs.utilities": "Utilitaires",
"tabs.workflowTool": "Workflow",
+ "tracing.status.exception": "Exception",
+ "tracing.status.failed": "Échec",
+ "tracing.status.paused": "En pause",
+ "tracing.status.stopped": "Arrêté",
+ "tracing.status.succeeded": "Réussi",
"tracing.stopBy": "Arrêté par {{user}}",
"triggerStatus.enabled": "DÉCLENCHEUR",
"variableReference.assignedVarsDescription": "Les variables affectées doivent être accessibles en écriture, telles que des variables de conversation.",
diff --git a/web/i18n/hi-IN/app-log.json b/web/i18n/hi-IN/app-log.json
index abe351a4db1..9f391be5bbd 100644
--- a/web/i18n/hi-IN/app-log.json
+++ b/web/i18n/hi-IN/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "अपडेट का समय",
"table.header.user": "अंतिम उपयोगकर्ता या खाता",
"table.header.userRate": "उपयोगकर्ता दर",
+ "table.unread": "अपठित",
"title": "लॉग्स",
"triggerBy.appRun": "वेबएप",
"triggerBy.debugging": "डिबगिंग",
diff --git a/web/i18n/hi-IN/workflow.json b/web/i18n/hi-IN/workflow.json
index 9f96f4568c0..09d86435989 100644
--- a/web/i18n/hi-IN/workflow.json
+++ b/web/i18n/hi-IN/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "कैनवास में एक असंरचित प्रारंभ नोड जोड़ा गया है। जारी रखने से पहले सेटअप पूरा करें।",
"tabs.utilities": "उपयोगिताएं",
"tabs.workflowTool": "वर्कफ़्लो",
+ "tracing.status.exception": "अपवाद",
+ "tracing.status.failed": "विफल",
+ "tracing.status.paused": "विराम दिया गया",
+ "tracing.status.stopped": "रोका गया",
+ "tracing.status.succeeded": "सफल",
"tracing.stopBy": "{{user}} द्वारा रोका गया",
"triggerStatus.enabled": "ट्रिगर",
"variableReference.assignedVarsDescription": "असाइन किए गए चर लिखने योग्य चर होने चाहिए, जैसे वार्तालाप चर।",
diff --git a/web/i18n/id-ID/app-log.json b/web/i18n/id-ID/app-log.json
index 952666f5efa..f112ecf1c9e 100644
--- a/web/i18n/id-ID/app-log.json
+++ b/web/i18n/id-ID/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Waktu yang diperbarui",
"table.header.user": "Pengguna Akhir atau Akun",
"table.header.userRate": "Tarif Pengguna",
+ "table.unread": "Belum dibaca",
"title": "Log",
"triggerBy.appRun": "Aplikasi Web",
"triggerBy.debugging": "Men-debug",
diff --git a/web/i18n/id-ID/workflow.json b/web/i18n/id-ID/workflow.json
index 56f02e2ad58..03c17e823b4 100644
--- a/web/i18n/id-ID/workflow.json
+++ b/web/i18n/id-ID/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "Node awal yang belum dikonfigurasi telah ditambahkan ke kanvas. Selesaikan penyiapan sebelum melanjutkan.",
"tabs.utilities": "Utilitas",
"tabs.workflowTool": "Alur kerja",
+ "tracing.status.exception": "Pengecualian",
+ "tracing.status.failed": "Gagal",
+ "tracing.status.paused": "Dijeda",
+ "tracing.status.stopped": "Dihentikan",
+ "tracing.status.succeeded": "Berhasil",
"tracing.stopBy": "Singgah di {{user}}",
"triggerStatus.enabled": "PEICU",
"variableReference.assignedVarsDescription": "Variabel yang ditetapkan harus berupa variabel yang dapat ditulis, seperti variabel percakapan.",
diff --git a/web/i18n/it-IT/app-log.json b/web/i18n/it-IT/app-log.json
index 2f8d248e54e..94962c1a9a7 100644
--- a/web/i18n/it-IT/app-log.json
+++ b/web/i18n/it-IT/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Ora di aggiornamento",
"table.header.user": "UTENTE FINALE O ACCOUNT",
"table.header.userRate": "Valutazione Utente",
+ "table.unread": "Non letto",
"title": "Registri",
"triggerBy.appRun": "WebApp",
"triggerBy.debugging": "Debugging",
diff --git a/web/i18n/it-IT/workflow.json b/web/i18n/it-IT/workflow.json
index 0aef12b4d99..68f1829119c 100644
--- a/web/i18n/it-IT/workflow.json
+++ b/web/i18n/it-IT/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "Un nodo iniziale non configurato è stato aggiunto alla tela. Completa la configurazione prima di continuare.",
"tabs.utilities": "Utility",
"tabs.workflowTool": "Workflow",
+ "tracing.status.exception": "Eccezione",
+ "tracing.status.failed": "Non riuscito",
+ "tracing.status.paused": "In pausa",
+ "tracing.status.stopped": "Interrotto",
+ "tracing.status.succeeded": "Riuscito",
"tracing.stopBy": "Interrotto da {{user}}",
"triggerStatus.enabled": "GRILLETTO",
"variableReference.assignedVarsDescription": "Le variabili assegnate devono essere variabili scrivibili, ad esempio variabili di conversazione.",
diff --git a/web/i18n/ja-JP/app-log.json b/web/i18n/ja-JP/app-log.json
index 80f540b2405..d27b81de630 100644
--- a/web/i18n/ja-JP/app-log.json
+++ b/web/i18n/ja-JP/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "更新時間",
"table.header.user": "エンドユーザーまたはアカウント",
"table.header.userRate": "ユーザーレート",
+ "table.unread": "未読",
"title": "ログ",
"triggerBy.appRun": "ウェブアプリ",
"triggerBy.debugging": "デバッグ",
diff --git a/web/i18n/ja-JP/workflow.json b/web/i18n/ja-JP/workflow.json
index a67b5a84cb0..3ff6d14aeae 100644
--- a/web/i18n/ja-JP/workflow.json
+++ b/web/i18n/ja-JP/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "未設定の開始ノードがキャンバスに追加されています。続行する前に設定を完了してください。",
"tabs.utilities": "ツール",
"tabs.workflowTool": "ワークフロー",
+ "tracing.status.exception": "例外",
+ "tracing.status.failed": "失敗",
+ "tracing.status.paused": "一時停止",
+ "tracing.status.stopped": "停止",
+ "tracing.status.succeeded": "成功",
"tracing.stopBy": "{{user}}によって停止",
"triggerStatus.enabled": "トリガー",
"variableReference.assignedVarsDescription": "代入される変数は、会話変数などの書き込み可能な変数である必要があります。",
diff --git a/web/i18n/ko-KR/app-log.json b/web/i18n/ko-KR/app-log.json
index 22317455715..bdb0311fb19 100644
--- a/web/i18n/ko-KR/app-log.json
+++ b/web/i18n/ko-KR/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "업데이트 시간",
"table.header.user": "엔드 유저 또는 계정",
"table.header.userRate": "사용자 비율",
+ "table.unread": "읽지 않음",
"title": "로그",
"triggerBy.appRun": "웹앱",
"triggerBy.debugging": "디버깅",
diff --git a/web/i18n/ko-KR/workflow.json b/web/i18n/ko-KR/workflow.json
index 4339883ea33..93f418bad13 100644
--- a/web/i18n/ko-KR/workflow.json
+++ b/web/i18n/ko-KR/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "구성되지 않은 시작 노드가 캔버스에 추가되었습니다. 계속하기 전에 설정을 완료하세요.",
"tabs.utilities": "유틸리티",
"tabs.workflowTool": "워크플로",
+ "tracing.status.exception": "예외",
+ "tracing.status.failed": "실패",
+ "tracing.status.paused": "일시 중지됨",
+ "tracing.status.stopped": "중지됨",
+ "tracing.status.succeeded": "성공",
"tracing.stopBy": "{{user}}에 의해 중지됨",
"triggerStatus.enabled": "트리거",
"variableReference.assignedVarsDescription": "할당된 변수는 대화 변수와 같은 쓰기 가능한 변수여야 합니다.",
diff --git a/web/i18n/lo-LA/app-log.json b/web/i18n/lo-LA/app-log.json
index c2b5ea4e49f..9d00d455381 100644
--- a/web/i18n/lo-LA/app-log.json
+++ b/web/i18n/lo-LA/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "ເວລາອັບເດດ",
"table.header.user": "ຜູ້ໃຊ້ ຫຼື ບັນຊີ",
"table.header.userRate": "ຄະແນນຈາກຜູ້ໃຊ້",
+ "table.unread": "ຍັງບໍ່ໄດ້ອ່ານ",
"title": "ບັນທຶກ",
"triggerBy.appRun": "Web App",
"triggerBy.debugging": "ການດີບັກ",
diff --git a/web/i18n/lo-LA/workflow.json b/web/i18n/lo-LA/workflow.json
index 98f3eb281eb..d1b5068026d 100644
--- a/web/i18n/lo-LA/workflow.json
+++ b/web/i18n/lo-LA/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "ມີໂນດເລີ່ມຕົ້ນທີ່ຍັງບໍ່ໄດ້ຕັ້ງຄ່າໃນ Canvas. ກະລຸນາຕັ້ງຄ່າໃຫ້ສຳເລັດກ່ອນ.",
"tabs.utilities": "ເຄື່ອງມືອຳນວຍຄວາມສະດວກ",
"tabs.workflowTool": "Workflow",
+ "tracing.status.exception": "ຂໍ້ຍົກເວັ້ນ",
+ "tracing.status.failed": "ລົ້ມເຫຼວ",
+ "tracing.status.paused": "ຢຸດຊົ່ວຄາວ",
+ "tracing.status.stopped": "ຢຸດແລ້ວ",
+ "tracing.status.succeeded": "ສຳເລັດ",
"tracing.stopBy": "ຢຸດໂດຍ {{user}}",
"triggerStatus.enabled": "TRIGGER",
"variableReference.assignedVarsDescription": "ຕົວປ່ຽນທີ່ຖືກກຳນົດຄ່າຕ້ອງເປັນຕົວປ່ຽນທີ່ຂຽນໄດ້ ເຊັ່ນ ຕົວປ່ຽນການສົນທະນາ.",
diff --git a/web/i18n/nl-NL/app-log.json b/web/i18n/nl-NL/app-log.json
index 0e832564ed1..2fc485193f3 100644
--- a/web/i18n/nl-NL/app-log.json
+++ b/web/i18n/nl-NL/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Updated time",
"table.header.user": "END USER OR ACCOUNT",
"table.header.userRate": "User Rate",
+ "table.unread": "Ongelezen",
"title": "Logs",
"triggerBy.appRun": "WebApp",
"triggerBy.debugging": "Debugging",
diff --git a/web/i18n/nl-NL/workflow.json b/web/i18n/nl-NL/workflow.json
index 38c2374ad91..f7b49a77975 100644
--- a/web/i18n/nl-NL/workflow.json
+++ b/web/i18n/nl-NL/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "Er is een niet-geconfigureerde startnode aan het canvas toegevoegd. Voltooi de configuratie voordat je doorgaat.",
"tabs.utilities": "Utilities",
"tabs.workflowTool": "Workflow",
+ "tracing.status.exception": "Uitzondering",
+ "tracing.status.failed": "Mislukt",
+ "tracing.status.paused": "Gepauzeerd",
+ "tracing.status.stopped": "Gestopt",
+ "tracing.status.succeeded": "Geslaagd",
"tracing.stopBy": "Stop by {{user}}",
"triggerStatus.enabled": "TRIGGER",
"variableReference.assignedVarsDescription": "Assigned variables must be writable variables, such as conversation variables.",
diff --git a/web/i18n/pl-PL/app-log.json b/web/i18n/pl-PL/app-log.json
index 494d623bbf2..01e6ddd623e 100644
--- a/web/i18n/pl-PL/app-log.json
+++ b/web/i18n/pl-PL/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Czas aktualizacji",
"table.header.user": "UŻYTKOWNIK KOŃCOWY LUB KONTO",
"table.header.userRate": "Ocena użytkownika",
+ "table.unread": "Nieprzeczytane",
"title": "Dzienniki",
"triggerBy.appRun": "Aplikacja internetowa",
"triggerBy.debugging": "Debugowanie",
diff --git a/web/i18n/pl-PL/workflow.json b/web/i18n/pl-PL/workflow.json
index 904970b84b8..80758351cf2 100644
--- a/web/i18n/pl-PL/workflow.json
+++ b/web/i18n/pl-PL/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "Do obszaru roboczego dodano nieskonfigurowany węzeł startowy. Przed kontynuowaniem dokończ konfigurację.",
"tabs.utilities": "Narzędzia pomocnicze",
"tabs.workflowTool": "Przepływ pracy",
+ "tracing.status.exception": "Wyjątek",
+ "tracing.status.failed": "Niepowodzenie",
+ "tracing.status.paused": "Wstrzymano",
+ "tracing.status.stopped": "Zatrzymano",
+ "tracing.status.succeeded": "Sukces",
"tracing.stopBy": "Zatrzymane przez {{user}}",
"triggerStatus.enabled": "WYZWALACZ",
"variableReference.assignedVarsDescription": "Przypisane zmienne muszą być zmiennymi zapisywalnymi, takimi jak zmienne konwersacji.",
diff --git a/web/i18n/pt-BR/app-log.json b/web/i18n/pt-BR/app-log.json
index 4167ca1f59b..b6ed9b4a7db 100644
--- a/web/i18n/pt-BR/app-log.json
+++ b/web/i18n/pt-BR/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Hora de atualização",
"table.header.user": "USUÁRIO FINAL OU CONTA",
"table.header.userRate": "Taxa de Usuário",
+ "table.unread": "Não lido",
"title": "Registros",
"triggerBy.appRun": "Aplicativo Web",
"triggerBy.debugging": "Depuração",
diff --git a/web/i18n/pt-BR/workflow.json b/web/i18n/pt-BR/workflow.json
index f7e6b53a9ce..516d0a46e94 100644
--- a/web/i18n/pt-BR/workflow.json
+++ b/web/i18n/pt-BR/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "Um nó inicial não configurado foi adicionado à tela. Conclua a configuração antes de continuar.",
"tabs.utilities": "Utilitários",
"tabs.workflowTool": "Fluxo de trabalho",
+ "tracing.status.exception": "Exceção",
+ "tracing.status.failed": "Falhou",
+ "tracing.status.paused": "Pausado",
+ "tracing.status.stopped": "Interrompido",
+ "tracing.status.succeeded": "Sucesso",
"tracing.stopBy": "Parado por {{user}}",
"triggerStatus.enabled": "GATILHO",
"variableReference.assignedVarsDescription": "As variáveis atribuídas devem ser variáveis graváveis, como variáveis de conversação.",
diff --git a/web/i18n/ro-RO/app-log.json b/web/i18n/ro-RO/app-log.json
index e38fb8dbfa5..0a9753d0e07 100644
--- a/web/i18n/ro-RO/app-log.json
+++ b/web/i18n/ro-RO/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Timp actualizare",
"table.header.user": "UTILIZATOR FINAL SAU CONT",
"table.header.userRate": "Evaluare utilizator",
+ "table.unread": "Necitit",
"title": "Jurnale",
"triggerBy.appRun": "Aplicație web",
"triggerBy.debugging": "Depanare",
diff --git a/web/i18n/ro-RO/workflow.json b/web/i18n/ro-RO/workflow.json
index 98c365b5f00..23e3c7c95e9 100644
--- a/web/i18n/ro-RO/workflow.json
+++ b/web/i18n/ro-RO/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "Un nod de pornire neconfigurat a fost adăugat pe canvas. Finalizați configurarea înainte de a continua.",
"tabs.utilities": "Utilități",
"tabs.workflowTool": "Flux de lucru",
+ "tracing.status.exception": "Excepție",
+ "tracing.status.failed": "Eșuat",
+ "tracing.status.paused": "În pauză",
+ "tracing.status.stopped": "Oprit",
+ "tracing.status.succeeded": "Reușit",
"tracing.stopBy": "Oprit de {{user}}",
"triggerStatus.enabled": "DECLANȘATOR",
"variableReference.assignedVarsDescription": "Variabilele atribuite trebuie să fie variabile inscripționabile, cum ar fi variabilele de conversație.",
diff --git a/web/i18n/ru-RU/app-log.json b/web/i18n/ru-RU/app-log.json
index 82b03c4d616..9ae68f9ec8d 100644
--- a/web/i18n/ru-RU/app-log.json
+++ b/web/i18n/ru-RU/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Время обновления",
"table.header.user": "Конечный пользователь или аккаунт",
"table.header.userRate": "Оценка пользователя",
+ "table.unread": "Непрочитанные",
"title": "Логирование",
"triggerBy.appRun": "Веб-приложение",
"triggerBy.debugging": "Отладка",
diff --git a/web/i18n/ru-RU/workflow.json b/web/i18n/ru-RU/workflow.json
index 61f5b811898..34e8a0218af 100644
--- a/web/i18n/ru-RU/workflow.json
+++ b/web/i18n/ru-RU/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "На холст добавлен ненастроенный начальный узел. Завершите настройку, прежде чем продолжить.",
"tabs.utilities": "Утилиты",
"tabs.workflowTool": "Рабочий процесс",
+ "tracing.status.exception": "Исключение",
+ "tracing.status.failed": "Ошибка",
+ "tracing.status.paused": "Приостановлено",
+ "tracing.status.stopped": "Остановлено",
+ "tracing.status.succeeded": "Успешно",
"tracing.stopBy": "Остановлено {{user}}",
"triggerStatus.enabled": "СПУСКОВОЙ МЕХАНИЗМ",
"variableReference.assignedVarsDescription": "Назначаемые переменные должны быть доступными для записи, например переменными беседы.",
diff --git a/web/i18n/sl-SI/app-log.json b/web/i18n/sl-SI/app-log.json
index 7cd40847bca..25ca1864388 100644
--- a/web/i18n/sl-SI/app-log.json
+++ b/web/i18n/sl-SI/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Čas posodobitve",
"table.header.user": "Končni uporabnik ali račun",
"table.header.userRate": "Ocena uporabnika",
+ "table.unread": "Neprebrano",
"title": "Dnevniki",
"triggerBy.appRun": "Spletna aplikacija",
"triggerBy.debugging": "Razhroščevanje",
diff --git a/web/i18n/sl-SI/workflow.json b/web/i18n/sl-SI/workflow.json
index 32b19157697..b85af022826 100644
--- a/web/i18n/sl-SI/workflow.json
+++ b/web/i18n/sl-SI/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "Na platno je bilo dodano nekonfigurirano začetno vozlišče. Pred nadaljevanjem dokončajte nastavitev.",
"tabs.utilities": "Komunalne storitve",
"tabs.workflowTool": "Potek dela",
+ "tracing.status.exception": "Izjema",
+ "tracing.status.failed": "Neuspešno",
+ "tracing.status.paused": "Začasno ustavljeno",
+ "tracing.status.stopped": "Ustavljeno",
+ "tracing.status.succeeded": "Uspešno",
"tracing.stopBy": "Ohranjaj se pri {{user}}",
"triggerStatus.enabled": "SPROŽILEC",
"variableReference.assignedVarsDescription": "Dodeljene spremenljivke morajo biti spremenljivke, ki jih je mogoče pisati, kot so spremenljivke za pogovor.",
diff --git a/web/i18n/th-TH/app-log.json b/web/i18n/th-TH/app-log.json
index d291231ccd7..738d915a0cc 100644
--- a/web/i18n/th-TH/app-log.json
+++ b/web/i18n/th-TH/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "อัพเดทเวลา",
"table.header.user": "ผู้ใช้ปลายทางหรือบัญชี",
"table.header.userRate": "อัตราผู้ใช้",
+ "table.unread": "ยังไม่ได้อ่าน",
"title": "บันทึก",
"triggerBy.appRun": "เว็บแอป",
"triggerBy.debugging": "การแก้ไขข้อบกพร่อง",
diff --git a/web/i18n/th-TH/workflow.json b/web/i18n/th-TH/workflow.json
index 9c088fce9af..282cc783c57 100644
--- a/web/i18n/th-TH/workflow.json
+++ b/web/i18n/th-TH/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "มีการเพิ่มโหนดเริ่มต้นที่ยังไม่ได้กำหนดค่าลงในแคนวาส โปรดตั้งค่าให้เสร็จก่อนดำเนินการต่อ",
"tabs.utilities": "สาธารณูปโภค",
"tabs.workflowTool": "เวิร์กโฟลว์",
+ "tracing.status.exception": "ข้อยกเว้น",
+ "tracing.status.failed": "ล้มเหลว",
+ "tracing.status.paused": "หยุดชั่วคราว",
+ "tracing.status.stopped": "หยุดแล้ว",
+ "tracing.status.succeeded": "สำเร็จ",
"tracing.stopBy": "แวะที่ {{user}}",
"triggerStatus.enabled": "ทริกเกอร์",
"variableReference.assignedVarsDescription": "ตัวแปรที่กําหนดต้องเป็นตัวแปรที่เขียนได้ เช่น ตัวแปรการสนทนา",
diff --git a/web/i18n/tr-TR/app-log.json b/web/i18n/tr-TR/app-log.json
index 5f29385cf9c..c7c4cf28187 100644
--- a/web/i18n/tr-TR/app-log.json
+++ b/web/i18n/tr-TR/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Güncellenme zamanı",
"table.header.user": "SON KULLANICI VEYA HESAP",
"table.header.userRate": "Kullanıcı Puanı",
+ "table.unread": "Okunmamış",
"title": "Günlükler",
"triggerBy.appRun": "Web Uygulaması",
"triggerBy.debugging": "Hata ayıklama",
diff --git a/web/i18n/tr-TR/workflow.json b/web/i18n/tr-TR/workflow.json
index 8a4a8611e7b..f6c149a2f8d 100644
--- a/web/i18n/tr-TR/workflow.json
+++ b/web/i18n/tr-TR/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "Tuvale yapılandırılmamış bir başlangıç düğümü eklendi. Devam etmeden önce kurulumu tamamlayın.",
"tabs.utilities": "Yardımcı Araçlar",
"tabs.workflowTool": "İş akışı",
+ "tracing.status.exception": "İstisna",
+ "tracing.status.failed": "Başarısız",
+ "tracing.status.paused": "Duraklatıldı",
+ "tracing.status.stopped": "Durduruldu",
+ "tracing.status.succeeded": "Başarılı",
"tracing.stopBy": "{{user}} tarafından durduruldu",
"triggerStatus.enabled": "TETİK",
"variableReference.assignedVarsDescription": "Atanan değişkenler, konuşma değişkenleri gibi yazılabilir değişkenler olmalıdır.",
diff --git a/web/i18n/uk-UA/app-log.json b/web/i18n/uk-UA/app-log.json
index 1a6af17feb6..3f63045da09 100644
--- a/web/i18n/uk-UA/app-log.json
+++ b/web/i18n/uk-UA/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Час оновлення",
"table.header.user": "КІНЦЕВИЙ КОРИСТУВАЧ АБО ОБЛІКОВИЙ ЗАПИС",
"table.header.userRate": "Рейтинг Користувача",
+ "table.unread": "Непрочитані",
"title": "Журнали",
"triggerBy.appRun": "Веб-додаток",
"triggerBy.debugging": "Налагодження",
diff --git a/web/i18n/uk-UA/workflow.json b/web/i18n/uk-UA/workflow.json
index daa116b7e00..4642be63fa5 100644
--- a/web/i18n/uk-UA/workflow.json
+++ b/web/i18n/uk-UA/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "На полотно додано неналаштований початковий вузол. Завершіть налаштування, перш ніж продовжити.",
"tabs.utilities": "Утиліти",
"tabs.workflowTool": "Робочий процес",
+ "tracing.status.exception": "Виняток",
+ "tracing.status.failed": "Помилка",
+ "tracing.status.paused": "Призупинено",
+ "tracing.status.stopped": "Зупинено",
+ "tracing.status.succeeded": "Успішно",
"tracing.stopBy": "Зупинено користувачем {{user}}",
"triggerStatus.enabled": "СПУСКОВИЙ МЕХАНІЗМ",
"variableReference.assignedVarsDescription": "Призначені змінні мають бути доступними для запису, такими як змінні розмови.",
diff --git a/web/i18n/vi-VN/app-log.json b/web/i18n/vi-VN/app-log.json
index 799f8fb7868..2848609ab07 100644
--- a/web/i18n/vi-VN/app-log.json
+++ b/web/i18n/vi-VN/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "Thời gian cập nhật",
"table.header.user": "NGƯỜI DÙNG CUỐI HOẶC TÀI KHOẢN",
"table.header.userRate": "Đánh giá người dùng",
+ "table.unread": "Chưa đọc",
"title": "Nhật ký",
"triggerBy.appRun": "Ứng dụng web",
"triggerBy.debugging": "Gỡ lỗi",
diff --git a/web/i18n/vi-VN/workflow.json b/web/i18n/vi-VN/workflow.json
index 5aceab1d3c0..1f27f8e5c40 100644
--- a/web/i18n/vi-VN/workflow.json
+++ b/web/i18n/vi-VN/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "Một nút bắt đầu chưa được cấu hình đã được thêm vào canvas. Vui lòng hoàn tất thiết lập trước khi tiếp tục.",
"tabs.utilities": "Tiện ích",
"tabs.workflowTool": "Quy trình làm việc",
+ "tracing.status.exception": "Ngoại lệ",
+ "tracing.status.failed": "Thất bại",
+ "tracing.status.paused": "Đã tạm dừng",
+ "tracing.status.stopped": "Đã dừng",
+ "tracing.status.succeeded": "Thành công",
"tracing.stopBy": "Dừng bởi {{user}}",
"triggerStatus.enabled": "KÍCH HOẠT",
"variableReference.assignedVarsDescription": "Các biến được gán phải là các biến có thể ghi, chẳng hạn như các biến hội thoại.",
diff --git a/web/i18n/zh-Hans/app-log.json b/web/i18n/zh-Hans/app-log.json
index 90bdb4a7567..76cbe22a6e3 100644
--- a/web/i18n/zh-Hans/app-log.json
+++ b/web/i18n/zh-Hans/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "更新时间",
"table.header.user": "用户或账户",
"table.header.userRate": "用户反馈",
+ "table.unread": "未读",
"title": "日志",
"triggerBy.appRun": "网页应用",
"triggerBy.debugging": "调试",
diff --git a/web/i18n/zh-Hans/workflow.json b/web/i18n/zh-Hans/workflow.json
index d952292f1f4..6fcc983a667 100644
--- a/web/i18n/zh-Hans/workflow.json
+++ b/web/i18n/zh-Hans/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "画布上已有未配置的开始节点。请先完成设置后再继续。",
"tabs.utilities": "工具",
"tabs.workflowTool": "工作流",
+ "tracing.status.exception": "异常",
+ "tracing.status.failed": "失败",
+ "tracing.status.paused": "已暂停",
+ "tracing.status.stopped": "已停止",
+ "tracing.status.succeeded": "成功",
"tracing.stopBy": "由{{user}}终止",
"triggerStatus.enabled": "触发器",
"variableReference.assignedVarsDescription": "赋值变量必须是可写入的变量,例如会话变量。",
diff --git a/web/i18n/zh-Hant/app-log.json b/web/i18n/zh-Hant/app-log.json
index 6aba8383df6..2449973159d 100644
--- a/web/i18n/zh-Hant/app-log.json
+++ b/web/i18n/zh-Hant/app-log.json
@@ -91,6 +91,7 @@
"table.header.updatedTime": "更新時間",
"table.header.user": "使用者或賬戶",
"table.header.userRate": "使用者反饋",
+ "table.unread": "未讀",
"title": "日誌",
"triggerBy.appRun": "網頁應用程式",
"triggerBy.debugging": "除錯",
diff --git a/web/i18n/zh-Hant/workflow.json b/web/i18n/zh-Hant/workflow.json
index dbf76924d45..c7599573fb0 100644
--- a/web/i18n/zh-Hant/workflow.json
+++ b/web/i18n/zh-Hant/workflow.json
@@ -1070,6 +1070,11 @@
"tabs.unconfiguredStartDisabledTip": "畫布上已有未設定的開始節點。請先完成設定後再繼續。",
"tabs.utilities": "工具",
"tabs.workflowTool": "工作流",
+ "tracing.status.exception": "異常",
+ "tracing.status.failed": "失敗",
+ "tracing.status.paused": "已暫停",
+ "tracing.status.stopped": "已停止",
+ "tracing.status.succeeded": "成功",
"tracing.stopBy": "由{{user}}終止",
"triggerStatus.enabled": "觸發",
"variableReference.assignedVarsDescription": "分配的變數必須是可寫變數,例如對話變數。",