Skip to content

Commit 7bb19ed

Browse files
authored
Merge pull request langgenius#90 from langgenius/chore/hide-workflow-run-detail
chore: hide workflow run detail
2 parents 96bd12a + 5a85f0d commit 7bb19ed

File tree

2 files changed

+1
-52
lines changed

2 files changed

+1
-52
lines changed

app/components/workflow/node.tsx

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@ import type { FC } from 'react'
33
import { useEffect, useState } from 'react'
44
import cn from 'classnames'
55
import BlockIcon from './block-icon'
6-
import CodeEditor from './code-editor'
7-
import { CodeLanguage } from '@/types/app'
86
import AlertCircle from '@/app/components/base/icons/line/alert-circle'
97
import AlertTriangle from '@/app/components/base/icons/line/alert-triangle'
108
import Loading02 from '@/app/components/base/icons/line/loading-02'
119
import CheckCircle from '@/app/components/base/icons/line/check-circle'
12-
import ChevronRight from '@/app/components/base/icons/line/chevron-right'
1310
import type { NodeTracing } from '@/types/app'
1411

1512
type Props = {
@@ -52,12 +49,6 @@ const NodePanel: FC<Props> = ({ nodeInfo, hideInfo = false }) => {
5249
)}
5350
onClick={() => setCollapseState(!collapseState)}
5451
>
55-
<ChevronRight
56-
className={cn(
57-
'shrink-0 w-3 h-3 mr-1 text-gray-400 transition-all group-hover:text-gray-500',
58-
!collapseState && 'rotate-90',
59-
)}
60-
/>
6152
<BlockIcon size={hideInfo ? 'xs' : 'sm'} className={cn('shrink-0 mr-2', hideInfo && '!mr-1')} type={nodeInfo.node_type} toolIcon={nodeInfo.extras?.icon || nodeInfo.extras} />
6253
<div className={cn(
6354
'grow text-gray-700 text-[13px] leading-[16px] font-semibold truncate',
@@ -82,48 +73,6 @@ const NodePanel: FC<Props> = ({ nodeInfo, hideInfo = false }) => {
8273
</div>
8374
)}
8475
</div>
85-
{!collapseState && (
86-
<div className='pb-2'>
87-
<div className={cn('px-[10px] py-1', hideInfo && '!px-2 !py-0.5')}>
88-
{nodeInfo.status === 'failed' && (
89-
<div className='px-3 py-[10px] bg-[#fef3f2] rounded-lg border-[0.5px] border-[rbga(0,0,0,0.05)] text-xs leading-[18px] text-[#d92d20] shadow-xs'>{nodeInfo.error}</div>
90-
)}
91-
</div>
92-
{nodeInfo.inputs && (
93-
<div className={cn('px-[10px] py-1', hideInfo && '!px-2 !py-0.5')}>
94-
<CodeEditor
95-
readOnly
96-
title={<div>INPUT</div>}
97-
language={CodeLanguage.json}
98-
value={nodeInfo.inputs}
99-
isJSONStringifyBeauty
100-
/>
101-
</div>
102-
)}
103-
{nodeInfo.process_data && (
104-
<div className={cn('px-[10px] py-1', hideInfo && '!px-2 !py-0.5')}>
105-
<CodeEditor
106-
readOnly
107-
title={<div>PROCESS DATA</div>}
108-
language={CodeLanguage.json}
109-
value={nodeInfo.process_data}
110-
isJSONStringifyBeauty
111-
/>
112-
</div>
113-
)}
114-
{nodeInfo.outputs && (
115-
<div className={cn('px-[10px] py-1', hideInfo && '!px-2 !py-0.5')}>
116-
<CodeEditor
117-
readOnly
118-
title={<div>OUTPUT</div>}
119-
language={CodeLanguage.json}
120-
value={nodeInfo.outputs}
121-
isJSONStringifyBeauty
122-
/>
123-
</div>
124-
)}
125-
</div>
126-
)}
12776
</div>
12877
</div>
12978
)

config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const APP_INFO: AppInfo = {
77
description: '',
88
copyright: '',
99
privacy_policy: '',
10-
default_language: 'es',
10+
default_language: 'en',
1111
}
1212

1313
export const isShowPrompt = false

0 commit comments

Comments
 (0)