diff --git a/web/app/components/workflow/skill/editor/skill-editor/plugins/file-picker-panel.tsx b/web/app/components/workflow/skill/editor/skill-editor/plugins/file-picker-panel.tsx
index 340b395b48..bc19b18c0c 100644
--- a/web/app/components/workflow/skill/editor/skill-editor/plugins/file-picker-panel.tsx
+++ b/web/app/components/workflow/skill/editor/skill-editor/plugins/file-picker-panel.tsx
@@ -1,6 +1,7 @@
import type { NodeRendererProps } from 'react-arborist'
import type { FileAppearanceType } from '@/app/components/base/file-uploader/types'
import type { TreeNodeData } from '@/app/components/workflow/skill/type'
+import { RiArrowDownSLine, RiArrowRightSLine, RiFolderLine, RiFolderOpenLine, RiQuestionLine } from '@remixicon/react'
import { useSize } from 'ahooks'
import * as React from 'react'
import { useCallback, useMemo, useRef } from 'react'
@@ -65,8 +66,8 @@ const FilePickerTreeNode = ({ node, style, dragHandle, onSelectNode }: FilePicke
{isFolder
? (
node.isOpen
- ?
- :
+ ?
+ :
)
: (
@@ -94,8 +95,8 @@ const FilePickerTreeNode = ({ node, style, dragHandle, onSelectNode }: FilePicke
)}
>
{node.isOpen
- ?
- : }
+ ?
+ : }
)}
@@ -161,7 +162,7 @@ const FilePickerPanel = ({
{t('skillEditor.referenceFiles')}
-
+
)}
>
{isFolder
- ?
+ ?
: (
-
+
{t('skillEditor.authorizationRequired', { ns: 'workflow' })}
@@ -534,7 +536,7 @@ const ToolBlockComponent = ({
{needAuthorization && (
{authBadgeLabel}
-
+
)}
diff --git a/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-group-block-component.tsx b/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-group-block-component.tsx
index b1d7363241..61e83af2ad 100644
--- a/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-group-block-component.tsx
+++ b/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-group-block-component.tsx
@@ -3,6 +3,7 @@ import type { PluginDetail } from '@/app/components/plugins/types'
import type { ToolParameter } from '@/app/components/tools/types'
import type { ToolValue } from '@/app/components/workflow/block-selector/types'
import type { ToolWithProvider } from '@/app/components/workflow/types'
+import { RiAlertFill, RiCloseLine, RiEqualizer2Line } from '@remixicon/react'
import * as React from 'react'
import { useCallback, useEffect, useMemo, useState } from 'react'
import { createPortal } from 'react-dom'
@@ -649,7 +650,7 @@ const ToolGroupBlockComponent = ({
}}
>
{t('operation.close', { ns: 'common' })}
-
+
{providerDescription && (
@@ -740,7 +741,7 @@ const ToolGroupBlockComponent = ({
setExpandedToolId(item.configId)
}}
>
-
+
{t('operation.settings', { ns: 'common' })}
@@ -797,7 +798,7 @@ const ToolGroupBlockComponent = ({
? (
{authBadgeLabel}
-
+
)
: (
diff --git a/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-header.tsx b/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-header.tsx
index 3375cfb98f..5e38957dc9 100644
--- a/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-header.tsx
+++ b/web/app/components/workflow/skill/editor/skill-editor/plugins/tool-block/tool-header.tsx
@@ -1,6 +1,7 @@
'use client'
import type { Emoji } from '@/app/components/tools/types'
+import { RiArrowLeftSLine, RiCloseLine } from '@remixicon/react'
import AppIcon from '@/app/components/base/app-icon'
type ToolHeaderProps = {
@@ -70,7 +71,7 @@ const ToolHeader = ({
onBack()
}}
>
-
+
)}
{renderHeaderIcon()}
@@ -88,7 +89,7 @@ const ToolHeader = ({
onClose()
}}
>
-
+
diff --git a/web/app/components/workflow/skill/file-tab-item.tsx b/web/app/components/workflow/skill/file-tab-item.tsx
index b3a6faa65a..d9c6fc37eb 100644
--- a/web/app/components/workflow/skill/file-tab-item.tsx
+++ b/web/app/components/workflow/skill/file-tab-item.tsx
@@ -1,6 +1,7 @@
'use client'
import type { FileAppearanceType } from '@/app/components/base/file-uploader/types'
+import { RiCloseLine } from '@remixicon/react'
import * as React from 'react'
import { useCallback } from 'react'
import { useTranslation } from 'react-i18next'
@@ -94,7 +95,7 @@ const FileTabItem = ({
aria-label={t('operation.close', { ns: 'common' })}
onClick={handleClose}
>
-
+
)
diff --git a/web/app/components/workflow/skill/file-tree/artifacts-section.tsx b/web/app/components/workflow/skill/file-tree/artifacts-section.tsx
index 398001c946..bd1f651d3f 100644
--- a/web/app/components/workflow/skill/file-tree/artifacts-section.tsx
+++ b/web/app/components/workflow/skill/file-tree/artifacts-section.tsx
@@ -1,9 +1,11 @@
'use client'
import type { SandboxFileTreeNode } from '@/types/sandbox-file'
+import { RiArrowDownSLine, RiArrowRightSLine, RiLoader2Line } from '@remixicon/react'
import * as React from 'react'
import { useCallback, useState } from 'react'
import { useTranslation } from 'react-i18next'
+import FolderSpark from '@/app/components/base/icons/src/vender/workflow/FolderSpark'
import { useStore, useWorkflowStore } from '@/app/components/workflow/store'
import { useAppContext } from '@/context/app-context'
import { useDownloadSandboxFile, useSandboxFilesTree } from '@/service/use-sandbox-file'
@@ -65,7 +67,7 @@ const ArtifactsSection = ({ className }: ArtifactsSectionProps) => {
>
-
+
{t('skillSidebar.artifacts.title')}
@@ -74,15 +76,15 @@ const ArtifactsSection = ({ className }: ArtifactsSectionProps) => {
{showSpinner
- ?
+ ?
: (
<>
{showBlueDot && (
)}
{isExpanded
- ?
- :
}
+ ?
+ :
}
>
)}
diff --git a/web/app/components/workflow/skill/file-tree/artifacts-tree.tsx b/web/app/components/workflow/skill/file-tree/artifacts-tree.tsx
index 502f4697b5..b363affa89 100644
--- a/web/app/components/workflow/skill/file-tree/artifacts-tree.tsx
+++ b/web/app/components/workflow/skill/file-tree/artifacts-tree.tsx
@@ -2,6 +2,7 @@
import type { FileAppearanceType } from '@/app/components/base/file-uploader/types'
import type { SandboxFileTreeNode } from '@/types/sandbox-file'
+import { RiDownloadLine, RiFolderLine, RiFolderOpenLine } from '@remixicon/react'
import * as React from 'react'
import { useCallback, useState } from 'react'
import FileTypeIcon from '@/app/components/base/file-uploader/file-type-icon'
@@ -83,8 +84,8 @@ const ArtifactsTreeNode = ({
{isFolder
? (
isExpanded
- ?
- :
+ ?
+ :
)
: }
@@ -106,7 +107,7 @@ const ArtifactsTreeNode = ({
)}
aria-label={`Download ${node.name}`}
>
-
+
)}
diff --git a/web/app/components/workflow/skill/file-tree/index.tsx b/web/app/components/workflow/skill/file-tree/index.tsx
index f742b7a108..d801b907b2 100644
--- a/web/app/components/workflow/skill/file-tree/index.tsx
+++ b/web/app/components/workflow/skill/file-tree/index.tsx
@@ -4,6 +4,7 @@ import type { MoveHandler, NodeApi, NodeRendererProps, TreeApi } from 'react-arb
import type { TreeNodeData } from '../type'
import type { OpensObject } from '@/app/components/workflow/store/workflow/skill-editor/file-tree-slice'
import type { AppAssetTreeView } from '@/types/app-asset'
+import { RiDragDropLine } from '@remixicon/react'
import { useIsMutating } from '@tanstack/react-query'
import { useSize } from 'ahooks'
import * as React from 'react'
@@ -11,6 +12,7 @@ import { useCallback, useEffect, useMemo, useRef } from 'react'
import { Tree } from 'react-arborist'
import { useTranslation } from 'react-i18next'
import Button from '@/app/components/base/button'
+import SearchMenu from '@/app/components/base/icons/src/vender/knowledge/SearchMenu'
import Loading from '@/app/components/base/loading'
import { useStore, useWorkflowStore } from '@/app/components/workflow/store'
import { cn } from '@/utils/classnames'
@@ -79,7 +81,7 @@ const DropTip = () => {
const { t } = useTranslation('workflow')
return (
-
+
{t('skillSidebar.dropTip')}
@@ -346,7 +348,7 @@ const FileTree = ({ className }: FileTreeProps) => {
return (
-
+
{t('skillSidebar.searchNoResults')}
diff --git a/web/app/components/workflow/skill/file-tree/menu-item.tsx b/web/app/components/workflow/skill/file-tree/menu-item.tsx
index 05b91b669f..b6bf17b88d 100644
--- a/web/app/components/workflow/skill/file-tree/menu-item.tsx
+++ b/web/app/components/workflow/skill/file-tree/menu-item.tsx
@@ -50,14 +50,14 @@ const labelVariants = cva('system-sm-regular text-text-secondary', {
})
export type MenuItemProps = {
- icon: string
+ icon: React.ElementType
label: string
kbd?: readonly string[]
onClick: React.MouseEventHandler
disabled?: boolean
} & VariantProps
-const MenuItem = ({ icon, label, kbd, onClick, disabled, variant }: MenuItemProps) => {
+const MenuItem = ({ icon: Icon, label, kbd, onClick, disabled, variant }: MenuItemProps) => {
const handleClick = React.useCallback((event: React.MouseEvent) => {
event.stopPropagation()
onClick(event)
@@ -70,7 +70,7 @@ const MenuItem = ({ icon, label, kbd, onClick, disabled, variant }: MenuItemProp
disabled={disabled}
className={cn(menuItemVariants({ variant }))}
>
-
+
{label}
{kbd && kbd.length > 0 && }
diff --git a/web/app/components/workflow/skill/file-tree/node-menu.tsx b/web/app/components/workflow/skill/file-tree/node-menu.tsx
index 2e402ff289..9d1c4802c2 100644
--- a/web/app/components/workflow/skill/file-tree/node-menu.tsx
+++ b/web/app/components/workflow/skill/file-tree/node-menu.tsx
@@ -3,10 +3,21 @@
import type { NodeApi, TreeApi } from 'react-arborist'
import type { NodeMenuType } from '../constants'
import type { TreeNodeData } from '../type'
+import {
+ RiClipboardLine,
+ RiDeleteBinLine,
+ RiEdit2Line,
+ RiFileAddLine,
+ RiFolderAddLine,
+ RiFolderUploadLine,
+ RiScissorsLine,
+ RiUploadLine,
+} from '@remixicon/react'
import * as React from 'react'
import { useCallback } from 'react'
import { useTranslation } from 'react-i18next'
import Confirm from '@/app/components/base/confirm'
+import { Download02 } from '@/app/components/base/icons/src/vender/solid/general'
import { useStore, useWorkflowStore } from '@/app/components/workflow/store'
import { cn } from '@/utils/classnames'
import { NODE_MENU_TYPE } from '../constants'
@@ -108,13 +119,13 @@ const NodeMenu = ({
/>
diff --git a/web/app/components/workflow/skill/sidebar-search-add.tsx b/web/app/components/workflow/skill/sidebar-search-add.tsx
index e200b69f8c..acf5718a16 100644
--- a/web/app/components/workflow/skill/sidebar-search-add.tsx
+++ b/web/app/components/workflow/skill/sidebar-search-add.tsx
@@ -1,5 +1,12 @@
'use client'
+import {
+ RiAddLine,
+ RiFileAddLine,
+ RiFolderAddLine,
+ RiFolderUploadLine,
+ RiUploadLine,
+} from '@remixicon/react'
import * as React from 'react'
import { useMemo, useState } from 'react'
import { useTranslation } from 'react-i18next'
@@ -18,13 +25,13 @@ import { useSkillAssetTreeData } from './hooks/use-skill-asset-tree'
import { getTargetFolderIdFromSelection } from './utils/tree-utils'
type MenuItemProps = {
- icon: string
+ icon: React.ElementType
label: string
onClick: () => void
disabled?: boolean
}
-const MenuItem = ({ icon, label, onClick, disabled }: MenuItemProps) => (
+const MenuItem = ({ icon: Icon, label, onClick, disabled }: MenuItemProps) => (
@@ -115,13 +122,13 @@ const SidebarSearchAdd = () => {
/>
{
fileInputRef.current?.click()}
disabled={isLoading}
/>
folderInputRef.current?.click()}
disabled={isLoading}
diff --git a/web/app/components/workflow/skill/start-tab-item.tsx b/web/app/components/workflow/skill/start-tab-item.tsx
index 1ad24688f8..3f6559293e 100644
--- a/web/app/components/workflow/skill/start-tab-item.tsx
+++ b/web/app/components/workflow/skill/start-tab-item.tsx
@@ -2,6 +2,7 @@
import * as React from 'react'
import { useTranslation } from 'react-i18next'
+import Home from '@/app/components/base/icons/src/vender/workflow/Home'
import { cn } from '@/utils/classnames'
type StartTabItemProps = {
@@ -31,8 +32,8 @@ const StartTabItem = ({
onClick={onClick}
>
-
diff --git a/web/app/components/workflow/skill/start-tab/create-import-section.tsx b/web/app/components/workflow/skill/start-tab/create-import-section.tsx
index 4c58a289e4..12967c2221 100644
--- a/web/app/components/workflow/skill/start-tab/create-import-section.tsx
+++ b/web/app/components/workflow/skill/start-tab/create-import-section.tsx
@@ -1,5 +1,6 @@
'use client'
+import { RiAddCircleFill, RiUploadLine } from '@remixicon/react'
import { memo } from 'react'
import { useTranslation } from 'react-i18next'
import ActionCard from './action-card'
@@ -10,12 +11,12 @@ const CreateImportSection = () => {
return (
}
+ icon={
}
title={t('skill.startTab.createBlankSkill')}
description={t('skill.startTab.createBlankSkillDesc')}
/>
}
+ icon={
}
title={t('skill.startTab.importSkill')}
description={t('skill.startTab.importSkillDesc')}
/>
diff --git a/web/app/components/workflow/skill/start-tab/template-search.tsx b/web/app/components/workflow/skill/start-tab/template-search.tsx
index 0b07884f44..dafc00f03b 100644
--- a/web/app/components/workflow/skill/start-tab/template-search.tsx
+++ b/web/app/components/workflow/skill/start-tab/template-search.tsx
@@ -1,5 +1,6 @@
'use client'
+import { RiSearchLine } from '@remixicon/react'
import { memo } from 'react'
import { useTranslation } from 'react-i18next'
@@ -16,7 +17,7 @@ const TemplateSearch = ({
return (
-
+
-
+
{label}
@@ -67,11 +70,11 @@ const TableSelector = ({
isLoading ? 'cursor-not-allowed opacity-60' : 'cursor-pointer hover:bg-state-base-hover',
)}
>
-
+
{label}
-
+
@@ -90,10 +93,10 @@ const TableSelector = ({
setOpen(false)
}}
>
-
+
{item.name}
{item.value === selectedTable && (
-
+
)}
))}