From e4cd2c72adf60a12aac186b303e4e1c0eca9c895 Mon Sep 17 00:00:00 2001 From: yyh <92089059+lyzno1@users.noreply.github.com> Date: Wed, 26 Aug 2026 04:44:50 +0000 Subject: [PATCH] refactor(web): migrate document metadata input (#41276) --- oxlint-suppressions.json | 7 +------ .../base/auto-height-textarea/index.tsx | 3 +++ .../components/__tests__/field-info.spec.tsx | 17 ++++++++++------- .../detail/metadata/components/field-info.tsx | 8 +++++--- 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/oxlint-suppressions.json b/oxlint-suppressions.json index 893efe25108..86a540d2387 100644 --- a/oxlint-suppressions.json +++ b/oxlint-suppressions.json @@ -2234,11 +2234,6 @@ "count": 1 } }, - "web/app/components/datasets/documents/detail/metadata/components/field-info.tsx": { - "no-restricted-imports": { - "count": 1 - } - }, "web/app/components/datasets/documents/detail/metadata/index.tsx": { "no-barrel-files/no-barrel-files": { "count": 1 @@ -5475,4 +5470,4 @@ "count": 2 } } -} \ No newline at end of file +} diff --git a/web/app/components/base/auto-height-textarea/index.tsx b/web/app/components/base/auto-height-textarea/index.tsx index b621986a82a..1964f033c4b 100644 --- a/web/app/components/base/auto-height-textarea/index.tsx +++ b/web/app/components/base/auto-height-textarea/index.tsx @@ -3,6 +3,7 @@ import { useEffect, useRef } from 'react' import { sleep } from '@/utils' type IProps = { + 'aria-label'?: string placeholder?: string value: string onChange: (e: React.ChangeEvent) => void @@ -17,6 +18,7 @@ type IProps = { } const AutoHeightTextarea = ({ + 'aria-label': ariaLabel, ref: outerRef, value, onChange, @@ -74,6 +76,7 @@ const AutoHeightTextarea = ({