Feat: Add context node #9869 (#10266)

### What problem does this PR solve?

Feat: Add context node #9869
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-09-24 18:48:31 +08:00
committed by GitHub
parent 6bf0cda16f
commit afb8a84f7b
13 changed files with 155 additions and 16 deletions

View File

@ -89,9 +89,16 @@ export function DataflowTimeline({ traceList }: DataflowTimelineProps) {
>
<span>{x.datetime}</span>
{item.component_id !== 'END' && (
<span>{x.message}</span>
<span
className={cn({
'text-state-error':
x.message.startsWith('[ERROR]'),
})}
>
{x.message}
</span>
)}
<span>{x.elapsed_time.toString().slice(0, 6)}</span>
<span>{x.elapsed_time.toString().slice(0, 6)}s</span>
</section>
))}
</div>

View File

@ -40,7 +40,10 @@ export function LogSheet({
return (
<Sheet open onOpenChange={hideModal} modal={false}>
<SheetContent className={cn('top-20')}>
<SheetContent
className={cn('top-20')}
onInteractOutside={(e) => e.preventDefault()}
>
<SheetHeader>
<SheetTitle className="flex items-center gap-2.5">
<Logs className="size-4" /> {t('flow.log')}