feat: 会商链条启停与深度研究报告结构,并完善问答展示与 8BF 返回。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
be4851555d
commit
0ce060693b
42 files changed
+5320
-3247
No files matched your search
@@ -4,7 +4,7 @@
|
||||
* 页面无关:8BF 等独立会商页可以直接复用岗位会商的纵向流程图视觉与交互,
|
||||
* 不会读取或写入岗位会商的会话、岗位节点状态。
|
||||
*/
|
||||
import { useRef, useState } from "react";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { Check, Search } from "lucide-react";
|
||||
|
||||
import {
|
||||
@@ -13,8 +13,14 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from "@/components/ui/dialog";
|
||||
import type { BusinessChain, ChainSeat } from "@/roundtable-planning/lib/business-chain";
|
||||
import { desensitize } from "@/lib/desensitize";
|
||||
import { cn } from "@/lib/utils";
|
||||
import {
|
||||
positionNameById,
|
||||
syncPositionOptionsFromRoles,
|
||||
} from "@/position-roundtable/lib/positions";
|
||||
import type { BusinessChain, ChainSeat } from "@/roundtable-planning/lib/business-chain";
|
||||
import { usePositionRoles } from "@/strategy-components/api/position-roles";
|
||||
|
||||
const NODE_COLORS = ["#4f7df3", "#a778f5", "#65b4e8", "#f0a245", "#e675a8"];
|
||||
const FLOW_NODE_WIDTH = 184;
|
||||
@@ -72,6 +78,10 @@ export function PositionBusinessChainFlow({
|
||||
submittedSeatKeys,
|
||||
onSeatClick,
|
||||
}: PositionBusinessChainFlowProps) {
|
||||
const { data: positionRoles = [] } = usePositionRoles();
|
||||
useEffect(() => {
|
||||
syncPositionOptionsFromRoles(positionRoles);
|
||||
}, [positionRoles]);
|
||||
const [dialogOpen, setDialogOpen] = useState(false);
|
||||
const submittedKeys = new Set(
|
||||
(submittedSeatKeys ?? []).map((key) => key.trim().toLowerCase()).filter(Boolean),
|
||||
@@ -251,8 +261,8 @@ function BusinessChainCanvas({
|
||||
return (
|
||||
<FlowNode
|
||||
key={seat.agent_id}
|
||||
title={seat.name || seat.agent_id}
|
||||
description={stage.goal?.trim() || seat.description?.trim() || "业务链席位"}
|
||||
title={desensitize(seat.name || seat.agent_id)}
|
||||
description={desensitize(positionNameById(seat.position_id))}
|
||||
accent={accent}
|
||||
width={nodeWidth}
|
||||
compact={embedded}
|
||||
|
||||
Reference in new issue
Block a user