From beb1448441708b8f03254f886c115a202d02540e Mon Sep 17 00:00:00 2001
From: Copilot <198982749+Copilot@users.noreply.github.com>
Date: Sun, 28 Sep 2025 13:43:43 +0800
Subject: [PATCH] [Chore/Refactor] Add missing 'type' attribute on 'button'
components (#26249)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: asukaminato0721 <30024051+asukaminato0721@users.noreply.github.com>
---
.../document-detail-navigation-fix.test.tsx | 2 +-
web/app/components/app-sidebar/app-info.tsx | 2 +-
.../app-sidebar/sidebar-animation-issues.spec.tsx | 4 ++--
.../components/app/annotation/header-opts/index.tsx | 8 ++++----
web/app/components/app/create-app-modal/index.tsx | 2 +-
web/app/components/apps/app-card.tsx | 12 +++++++-----
web/app/components/apps/new-app-card.tsx | 5 +++--
.../components/base/app-icon-picker/ImageInput.tsx | 2 +-
web/app/components/base/app-icon-picker/index.tsx | 2 +-
web/app/components/base/audio-btn/index.tsx | 2 +-
.../components/base/audio-gallery/AudioPlayer.tsx | 2 +-
web/app/components/base/chat/chat/content-switch.tsx | 4 ++--
.../base/date-and-time-picker/calendar/item.tsx | 2 +-
.../base/date-and-time-picker/date-picker/header.tsx | 6 +++---
.../year-and-month-picker/header.tsx | 2 +-
web/app/components/base/mermaid/index.tsx | 2 +-
web/app/components/base/pagination/pagination.tsx | 4 ++--
web/app/components/base/select/locale-signin.tsx | 2 +-
web/app/components/base/select/locale.tsx | 2 +-
web/app/components/base/theme-selector.tsx | 6 +++---
web/app/components/base/toast/index.spec.tsx | 4 ++--
.../components/base/video-gallery/VideoPlayer.tsx | 6 +++---
.../pricing/plans/self-hosted-plan-item/button.tsx | 2 +-
.../list/template-card/edit-pipeline-info.tsx | 2 +-
web/app/components/datasets/create/website/index.tsx | 6 +++---
.../components/datasets/documents/detail/index.tsx | 2 +-
.../datasets/documents/detail/metadata/index.tsx | 2 +-
web/app/components/datasets/documents/operations.tsx | 2 +-
web/app/components/develop/doc.tsx | 4 ++--
.../visual-editor/schema-node.tsx | 1 +
web/app/components/workflow/run/tracing-panel.tsx | 2 +-
web/service/demo/index.tsx | 2 +-
32 files changed, 56 insertions(+), 52 deletions(-)
diff --git a/web/__tests__/document-detail-navigation-fix.test.tsx b/web/__tests__/document-detail-navigation-fix.test.tsx
index 200ed09ea9..a358744998 100644
--- a/web/__tests__/document-detail-navigation-fix.test.tsx
+++ b/web/__tests__/document-detail-navigation-fix.test.tsx
@@ -54,7 +54,7 @@ const DocumentDetailWithFix = ({ datasetId, documentId }: { datasetId: string; d
return (
-