Files
FFXN 83743d5af0 feat: evaluation (#35419)
Co-authored-by: jyong <718720800@qq.com>
Co-authored-by: Yansong Zhang <916125788@qq.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: hj24 <mambahj24@gmail.com>
Co-authored-by: hj24 <huangjian@dify.ai>
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Co-authored-by: CodingOnStar <hanxujiang@dify.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-04-20 15:43:22 +08:00

43 lines
1.8 KiB
TypeScript

import type { NodeProps } from 'reactflow'
import { RiHome5Fill } from '@remixicon/react'
import { memo } from 'react'
import { useTranslation } from 'react-i18next'
import Tooltip from '@/app/components/base/tooltip'
import { NodeSourceHandle } from '@/app/components/workflow/nodes/_base/components/node-handle'
const IterationStartNode = ({ id, data }: NodeProps) => {
const { t } = useTranslation()
return (
<div className="nodrag group mt-1 flex h-11 w-11 items-center justify-center rounded-2xl border border-workflow-block-border bg-workflow-block-bg shadow-xs">
<Tooltip popupContent={t('blocks.iteration-start', { ns: 'workflow' })} asChild={false}>
<div className="flex h-6 w-6 items-center justify-center rounded-full border-[0.5px] border-components-panel-border-subtle bg-util-colors-blue-brand-blue-brand-500">
<RiHome5Fill className="h-3 w-3 text-text-primary-on-surface" />
</div>
</Tooltip>
<NodeSourceHandle
id={id}
data={data}
handleClassName="top-1/2! -right-[9px]! -translate-y-1/2!"
handleId="source"
/>
</div>
)
}
export const IterationStartNodeDumb = () => {
const { t } = useTranslation()
return (
<div className="nodrag relative left-[17px] top-[21px] z-11 flex h-11 w-11 items-center justify-center rounded-2xl border border-workflow-block-border bg-workflow-block-bg">
<Tooltip popupContent={t('blocks.iteration-start', { ns: 'workflow' })} asChild={false}>
<div className="flex h-6 w-6 items-center justify-center rounded-full border-[0.5px] border-components-panel-border-subtle bg-util-colors-blue-brand-blue-brand-500">
<RiHome5Fill className="h-3 w-3 text-text-primary-on-surface" />
</div>
</Tooltip>
</div>
)
}
export default memo(IterationStartNode)