feat: implement scoped dataset catalog and template input drafts

This commit is contained in:
yuxuanhui
2026-09-08 09:22:53 +08:00
parent 404a4d8a04
commit 01d169d118
30 changed files with 3024 additions and 37 deletions
+5 -3
View File
@@ -434,9 +434,11 @@ export function ChatPanel({
</div>
<footer className="ai-composer" ref={input}>
<div className="ai-context">
{context.page === "account"
? "上下文:个人信息页"
: `上下文:${context.alpha_id ? `Alpha ${context.alpha_id}` : "Alpha 列表"}${context.selected_ids?.length ? ` · 已选 ${context.selected_ids.length} 条` : ""}`}
{context.page === "datasets"
? "上下文:数据目录(未发送字段与备注)"
: context.page === "account"
? "上下文:个人信息页"
: `上下文:${context.alpha_id ? `Alpha ${context.alpha_id}` : "Alpha 列表"}${context.selected_ids?.length ? ` · 已选 ${context.selected_ids.length} 条` : ""}`}
</div>
<TextArea
aria-label="发送给研究助手"
+1 -1
View File
@@ -11,7 +11,7 @@ export type ModelSettings = {
test_results: Record<string, { ok: boolean; message: string }>;
};
export type PageContext = {
page: "alphas" | "account";
page: "alphas" | "account" | "datasets";
alpha_id?: string | null;
selected_ids?: string[];
filters?: Record<string, unknown>;