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

65 lines
2.5 KiB
TypeScript

import type {
ChatMessage,
PlanLayer,
StyleDirection,
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 styleDirections: StyleDirection[] = [
{
id: "quiet-modern",
name: "清透现代",
summary: "轻盈体块、浅木与柔和自然光,保持客餐厅的开阔关系。",
colors: ["#E7E9E5", "#B8A68A", "#56695F"],
materials: ["浅橡木", "亚麻", "哑光涂料"],
},
{
id: "soft-architectural",
name: "柔和构成",
summary: "用低矮家具和圆角收束空间,重点塑造入口到客厅的连续视线。",
colors: ["#D9D7D0", "#8F8B82", "#3E5149"],
materials: ["微水泥", "烟熏木", "织物"],
},
{
id: "natural-contrast",
name: "自然对比",
summary: "增加深木与石材对比,但限制高光材质,避免空间变得沉重。",
colors: ["#E5E1D7", "#8B735F", "#31443B"],
materials: ["洞石", "深木", "羊毛"],
},
];
export const initialMessages: ChatMessage[] = [
{
id: "assistant-1",
role: "assistant",
body: "我识别到两个平面区域,已选择上方住宅户型。结构层和门窗层可信度较高。",
meta: "图纸解析",
},
{
id: "assistant-2",
role: "assistant",
body: "请确认原家具的处理方式。当前建议保留家具位置作为参考,但不锁定具体款式。",
meta: "等待确认",
},
];