feat: 使用 Semi AI 组件升级研究助手与研究入口
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
||||
TextArea,
|
||||
Toast,
|
||||
} from "@douyinfe/semi-ui-19";
|
||||
import { IconAIFilledLevel3, IconAIEditLevel3 } from "@douyinfe/semi-icons";
|
||||
import type { ColumnProps } from "@douyinfe/semi-ui-19/lib/es/table/interface";
|
||||
import {
|
||||
api,
|
||||
@@ -1054,6 +1055,13 @@ export function DatasetPage({
|
||||
<span aria-live="polite">{summary}</span>
|
||||
{restoreAction}
|
||||
{inputAction}
|
||||
<Button
|
||||
colorful
|
||||
icon={<IconAIFilledLevel3 aria-hidden="true" />}
|
||||
onClick={onChat}
|
||||
>
|
||||
AI 助手
|
||||
</Button>
|
||||
{jobStatus}
|
||||
</div>
|
||||
<Table<Entry>
|
||||
@@ -1129,7 +1137,13 @@ export function DatasetPage({
|
||||
<Button onClick={() => setFieldBrowse(initialBrowse)}>
|
||||
重置筛选
|
||||
</Button>
|
||||
<Button onClick={onChat}>AI 助手</Button>
|
||||
<Button
|
||||
colorful
|
||||
icon={<IconAIFilledLevel3 aria-hidden="true" />}
|
||||
onClick={onChat}
|
||||
>
|
||||
AI 助手
|
||||
</Button>
|
||||
<Button aria-label="关闭字段列表" onClick={close}>
|
||||
关闭
|
||||
</Button>
|
||||
@@ -1172,7 +1186,13 @@ export function DatasetPage({
|
||||
>
|
||||
<div className="catalog-layer" ref={detailRef}>
|
||||
<div className="catalog-tools">
|
||||
<Button onClick={onChat}>AI 助手</Button>
|
||||
<Button
|
||||
colorful
|
||||
icon={<IconAIFilledLevel3 aria-hidden="true" />}
|
||||
onClick={onChat}
|
||||
>
|
||||
AI 助手
|
||||
</Button>
|
||||
<Button aria-label="关闭详情" onClick={close}>
|
||||
关闭
|
||||
</Button>
|
||||
@@ -1313,7 +1333,12 @@ export function DatasetPage({
|
||||
</Button>
|
||||
)}
|
||||
{draft && (
|
||||
<Button theme="solid" onClick={() => researchInput(draft)}>
|
||||
<Button
|
||||
colorful
|
||||
theme="solid"
|
||||
icon={<IconAIEditLevel3 aria-hidden="true" />}
|
||||
onClick={() => researchInput(draft)}
|
||||
>
|
||||
用此输入研究
|
||||
</Button>
|
||||
)}
|
||||
@@ -1330,7 +1355,7 @@ export function DatasetPage({
|
||||
{(draft?.scope ?? scope).universe} · Delay{" "}
|
||||
{(draft?.scope ?? scope).delay}
|
||||
</p>
|
||||
<p>保存后可交给 Chatbox 研究,构建候选并预览回测。</p>
|
||||
<p>保存后可交给 AI 研究助手,构建候选并预览回测。</p>
|
||||
{draft && <p>草稿 ID:{draft.id}</p>}
|
||||
{draft && (
|
||||
<details>
|
||||
@@ -1377,7 +1402,13 @@ export function DatasetPage({
|
||||
{d.scope.delay}
|
||||
</p>
|
||||
<p>{formatTime(d.created_at, account?.timezone)}</p>
|
||||
<Button onClick={() => researchInput(d)}>用此输入研究</Button>
|
||||
<Button
|
||||
colorful
|
||||
icon={<IconAIEditLevel3 aria-hidden="true" />}
|
||||
onClick={() => researchInput(d)}
|
||||
>
|
||||
用此输入研究
|
||||
</Button>
|
||||
<details>
|
||||
<summary>查看固定字段集合</summary>
|
||||
<p>{d.field_ids.join(", ")}</p>
|
||||
|
||||
Reference in New Issue
Block a user