feat: refine position roundtable workflow

This commit is contained in:
董宏凯 committed 2026-07-22 22:22:38 +08:00
1 parent 359bd28f2c
commit 13bfa719ee
12 files changed
+1838 -458

No files matched your search

@@ -90,6 +90,10 @@ export interface Step1PanelProps {
onEnterRoundtable: () => void;
/** 保持旧文案默认不变;嵌入式新工作流可覆写确认动作名称。 */
enterButtonLabel?: string;
/** 用于在意图确认后承接同一工作流的下一步动作。 */
footerAction?: React.ReactNode;
/** 已进入后续工作流时,隐藏默认的「进入研讨」动作。 */
hideEnterRoundtable?: boolean;
onManualSave: () => void;
onTriggerToast: (msg: string) => void;
submitIntentClarifications: (
@@ -116,6 +120,8 @@ export function Step1Panel(props: Step1PanelProps) {
onFollowUp,
onEnterRoundtable,
enterButtonLabel = "进入多智能体研讨 >",
footerAction,
hideEnterRoundtable = false,
onManualSave,
onTriggerToast,
submitIntentClarifications,
@@ -330,20 +336,24 @@ export function Step1Panel(props: Step1PanelProps) {
跳过此项
</button>
<button
id="enter-roundtable-btn"
onClick={onEnterRoundtable}
disabled={!intentReady}
title={intentReady ? undefined : "请先完成任务意图澄清"}
className={`text-xs font-black px-4 py-2.5 rounded-xl transition flex items-center gap-1.5 active:scale-95 shadow-md shadow-emerald-500/10 ${
intentReady
? "bg-emerald-600 hover:bg-emerald-700 text-white cursor-pointer"
: "bg-emerald-600/40 text-white cursor-not-allowed"
}`}
>
<Sparkles className="w-3.5 h-3.5 text-emerald-100" />
{enterButtonLabel}
</button>
{footerAction ??
(!hideEnterRoundtable && (
<button
id="enter-roundtable-btn"
type="button"
onClick={onEnterRoundtable}
disabled={!intentReady}
title={intentReady ? undefined : "请先完成任务意图澄清"}
className={`text-xs font-black px-4 py-2.5 rounded-xl transition flex items-center gap-1.5 active:scale-95 shadow-md shadow-emerald-500/10 ${
intentReady
? "bg-emerald-600 hover:bg-emerald-700 text-white cursor-pointer"
: "bg-emerald-600/40 text-white cursor-not-allowed"
}`}
>
<Sparkles className="w-3.5 h-3.5 text-emerald-100" />
{enterButtonLabel}
</button>
))}
</div>
<button