From 603187393ad8404fedcfb0d0d045b859e5d1ad5b Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 8 Jul 2024 10:50:18 +0800 Subject: [PATCH] chore: hide tracing introduce detail (#6049) --- .../[appId]/overview/tracing/panel.tsx | 47 ------------------- 1 file changed, 47 deletions(-) diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx index 62b98669dba2c5..3b8009c298f1f2 100644 --- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx +++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx @@ -8,7 +8,6 @@ import { useBoolean } from 'ahooks' import type { LangFuseConfig, LangSmithConfig } from './type' import { TracingProvider } from './type' import TracingIcon from './tracing-icon' -import ToggleExpandBtn from './toggle-fold-btn' import ConfigButton from './config-button' import { LangfuseIcon, LangsmithIcon } from '@/app/components/base/icons/src/public/tracing' import Indicator from '@/app/components/header/indicator' @@ -134,46 +133,6 @@ const Panel: FC = () => { ) } - if (!isFold && !hasConfiguredTracing) { - return ( -
- - <div className='mt-2 flex justify-between p-3 pr-4 items-center bg-white border-[0.5px] border-black/8 rounded-xl shadow-md'> - <div className='flex space-x-2'> - <TracingIcon size='lg' className='m-1' /> - <div> - <div className='mb-0.5 leading-6 text-base font-semibold text-gray-900'>{t(`${I18N_PREFIX}.title`)}</div> - <div className='flex justify-between leading-4 text-xs font-normal text-gray-500'> - <span className='mr-2'>{t(`${I18N_PREFIX}.description`)}</span> - <div className='flex space-x-3'> - <LangsmithIcon className='h-4' /> - <LangfuseIcon className='h-4' /> - </div> - </div> - </div> - </div> - - <div className='flex items-center space-x-1'> - <ConfigButton - appId={appId} - readOnly={readOnly} - hasConfigured={false} - enabled={enabled} - onStatusChange={handleTracingEnabledChange} - chosenProvider={inUseTracingProvider} - onChooseProvider={handleChooseProvider} - langSmithConfig={langSmithConfig} - langFuseConfig={langFuseConfig} - onConfigUpdated={handleTracingConfigUpdated} - onConfigRemoved={handleTracingConfigRemoved} - /> - <ToggleExpandBtn isFold={isFold} onFoldChange={setFold} /> - </div> - </div> - </div> - ) - } - return ( <div className={cn('mb-3 flex justify-between items-center')}> <Title className='h-[41px]' /> @@ -214,12 +173,6 @@ const Panel: FC = () => { controlShowPopup={controlShowPopup} /> </div> - {!hasConfiguredTracing && ( - <div className='flex items-center' onClick={e => e.stopPropagation()}> - <div className='mx-2 w-px h-3.5 bg-gray-200'></div> - <ToggleExpandBtn isFold={isFold} onFoldChange={setFold} /> - </div> - )} </div> </div> )