Files
zhuangxiu/apps/web/lib/demo.ts
T

40 lines
1.7 KiB
TypeScript

import type {
ChatMessage,
PlanLayer,
WorkflowStage,
} from "@/types/workflow";
export const workflowStages: WorkflowStage[] = [
{ id: "uploaded", label: "导入图纸", detail: "矢量 PDF", status: "complete" },
{ id: "region_selection", label: "选择户型", detail: "住宅区域", status: "complete" },
{ id: "plan_review", label: "确认结构", detail: "当前步骤", status: "active" },
{ id: "blockout", label: "生成白模", detail: "空间骨架", status: "pending" },
{ id: "style_brief", label: "明确风格", detail: "Style DNA", status: "pending" },
{ id: "direction_selection", label: "选择方向", detail: "三个方案", status: "pending" },
{ id: "render_review", label: "审阅效果", detail: "多视角", status: "pending" },
{ id: "editing", label: "多轮修改", detail: "局部编辑", status: "pending" },
];
export const initialLayers: PlanLayer[] = [
{ id: "structure", label: "建筑结构", visible: true, count: 18 },
{ id: "openings", label: "门窗", visible: true, count: 14 },
{ id: "furniture", label: "原家具", visible: false, count: 32 },
{ id: "dimensions", label: "尺寸标注", visible: false },
{ id: "labels", label: "房间文字", visible: false },
];
export const initialMessages: ChatMessage[] = [
{
id: "assistant-1",
role: "assistant",
body: "我识别到两个平面区域,已选择上方住宅户型。结构层和门窗层可信度较高。",
meta: "图纸解析",
},
{
id: "assistant-2",
role: "assistant",
body: "请确认原家具的处理方式。当前建议保留家具位置作为参考,但不锁定具体款式。",
meta: "等待确认",
},
];