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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
refactor(web): mark Props of datasets/hit-testing components as read-only (#37118)
Archie1c0080be6f1e
diff --git a/web/app/components/datasets/hit-testing/components/child-chunks-item.tsx b/web/app/components/datasets/hit-testing/components/child-chunks-item.tsxindex dccf868b30c..e467c905254 100644--- a/web/app/components/datasets/hit-testing/components/child-chunks-item.tsx+++ b/web/app/components/datasets/hit-testing/components/child-chunks-item.tsx@@ -6,8 +6,8 @@ import { SliceContent } from '../../formatted-text/flavours/shared'import Score from './score'type Props = {- payload: HitTestingChildChunk- isShowAll: boolean+ readonly payload: HitTestingChildChunk+ readonly isShowAll: boolean}const ChildChunks: FC<Props> = ({diff --git a/web/app/components/datasets/hit-testing/components/result-item-external.tsx b/web/app/components/datasets/hit-testing/components/result-item-external.tsxindex 069ad8fa59a..a585ef9cb49 100644--- a/web/app/components/datasets/hit-testing/components/result-item-external.tsx+++ b/web/app/components/datasets/hit-testing/components/result-item-external.tsx@@ -12,8 +12,8 @@ import ResultItemMeta from './result-item-meta'const i18nPrefix = ''type Props = {- payload: ExternalKnowledgeBaseHitTesting- positionId: number+ readonly payload: ExternalKnowledgeBaseHitTesting+ readonly positionId: number}const ResultItemExternal: FC<Props> = ({ payload, positionId }) => {diff --git a/web/app/components/datasets/hit-testing/components/result-item-footer.tsx b/web/app/components/datasets/hit-testing/components/result-item-footer.tsxindex bb1b7c172dc..41e9558e833 100644--- a/web/app/components/datasets/hit-testing/components/result-item-footer.tsx+++ b/web/app/components/datasets/hit-testing/components/result-item-footer.tsx@@ -7,9 +7,9 @@ import { useTranslation } from 'react-i18next'import FileIcon from '@/app/components/base/file-uploader/file-type-icon'type Props = {- docType: FileAppearanceTypeEnum- docTitle: string- showDetailModal: () => void+ readonly docType: FileAppearanceTypeEnum+ readonly docTitle: string+ readonly showDetailModal: () => void}const i18nPrefix = ''diff --git a/web/app/components/datasets/hit-testing/components/result-item-meta.tsx b/web/app/components/datasets/hit-testing/components/result-item-meta.tsxindex dc017df4eb3..9a41a64ac16 100644--- a/web/app/components/datasets/hit-testing/components/result-item-meta.tsx+++ b/web/app/components/datasets/hit-testing/components/result-item-meta.tsx@@ -8,11 +8,11 @@ import { SegmentIndexTag } from '../../documents/detail/completed/common/segmentimport Score from './score'type Props = {- labelPrefix: string- positionId: number- wordCount: number- score: number- className?: string+ readonly labelPrefix: string+ readonly positionId: number+ readonly wordCount: number+ readonly score: number+ readonly className?: string}const ResultItemMeta: FC<Props> = ({diff --git a/web/app/components/datasets/hit-testing/components/score.tsx b/web/app/components/datasets/hit-testing/components/score.tsxindex 3cdad3f152e..b7026eb87b5 100644--- a/web/app/components/datasets/hit-testing/components/score.tsx+++ b/web/app/components/datasets/hit-testing/components/score.tsx@@ -4,8 +4,8 @@ import { cn } from '@langgenius/dify-ui/cn'import * as React from 'react'type Props = {- value: number | null- besideChunkName?: boolean+ readonly value: number | null+ readonly besideChunkName?: boolean}const Score: FC<Props> = ({