Loading...
Loading...
Compare original and translation side by side
| Signal | Examples |
|---|---|
| Scope items with measurements | square footage, linear feet, board feet, units per area |
| Field scheduling | crew assignment, job calendar, field work planning |
| Subtrade payments | paying subs, trade payments, per-sqft pay rates |
| Estimate-to-invoice workflow | estimate → schedule → work → invoice cycle |
| Trade-specific scopes | insulation, drywall, taping, roofing, framing, plumbing rough-in |
| Location-based specs | different specs per floor, per room, per zone |
| Dual invoicing | trade invoices (outgoing to subs) AND customer invoices (incoming from clients) |
| 触发信号 | 示例 |
|---|---|
| 带测量值的范围项 | 建筑面积、线性英尺、板英尺、单位面积数量 |
| 现场调度 | 团队分配、工作日历、现场工作规划 |
| 分包商付款 | 支付分包商款项、行业付款、每平方英尺费率 |
| 估算到发票工作流 | 估算 → 调度 → 施工 → 发票周期 |
| 特定行业范围 | 保温层、干墙、贴胶带、屋顶、框架、管道粗装 |
| 基于位置的规范 | 不同楼层、房间、区域的不同规范 |
| 双重发票 | 行业发票(向分包商开具)和客户发票(向客户收取) |
SelectTextarea| Column | Type | Editable | Notes |
|---|---|---|---|
| Scope | | Yes | Options from DOMAIN.md: insulation, drywall, taping, sanding, cleaning, priming, etc. |
| Location | Text input | Yes | e.g., "Main floor living room," "Basement suite" |
| Spec/Type | Text input or | Yes | e.g., "Type X," "Moisture resistant," "R-20 batt," "Level 4 finish" |
| Sq ft | Number input | Yes | Square footage for this scope at this location |
| Rate | Number input | Yes | Dollar rate per sqft (CAD) |
| Line total | Calculated | No | Sqft × Rate, auto-calculated |
| Actions | Delete button | — | Trash icon to remove the row |
SelectTextarea| 列 | 类型 | 是否可编辑 | 说明 |
|---|---|---|---|
| 范围 | | 是 | 选项来自DOMAIN.md:保温层、干墙、贴胶带、打磨、清洁、涂底漆等 |
| 位置 | 文本输入框 | 是 | 例如:“主楼层客厅”、“地下室套房” |
| 规格/类型 | 文本输入框或 | 是 | 例如:“X型”、“防潮型”、“R-20棉絮”、“4级饰面” |
| 建筑面积 | 数字输入框 | 是 | 该范围在对应位置的建筑面积 |
| 费率 | 数字输入框 | 是 | 每平方英尺的美元费率(加元) |
| 行总计 | 计算值 | 否 | 建筑面积 × 费率,自动计算 |
| 操作 | 删除按钮 | — | 垃圾桶图标用于删除行 |
SelectTextareaSelectTextarea| Column | Type | Editable | Notes |
|---|---|---|---|
| Scope | Text | No | From Estimate |
| Location | Text | No | From Estimate |
| Sq ft | Number | No | From Estimate |
| Status | | Yes | Not Started / In Progress / Completed |
| 列 | 类型 | 是否可编辑 | 说明 |
|---|---|---|---|
| 范围 | 文本 | 否 | 来自估算板块 |
| 位置 | 文本 | 否 | 来自估算板块 |
| 建筑面积 | 数字 | 否 | 来自估算板块 |
| 状态 | | 是 | 未开始 / 进行中 / 已完成 |
SelectSelectSelectSelectTableTableMainLayout.tsx| Component | Content |
|---|---|
| Stepper | A VERTICAL list of ALL FIVE sections: (1) Estimate, (2) Schedule, (3) In Progress, (4) Close Out, (5) Job Summary. Each step shows: step number, label, subtitle from section description, and completion state. Vertical stepper in the sidebar — NOT horizontal tabs. Modify the layout file if needed — skill layout overrides template preservation. |
| Saved projects | List of projects stored in localStorage. Each shows name + customer + status badge (Estimated / Scheduled / In Progress / Completed). Pin this section to the bottom of the sidebar so it's always visible without scrolling. Double-click a project name to rename inline. |
estimated, scheduled, in progress, completedMainLayout.tsx| 组件 | 内容 |
|---|---|
| 步骤条 | 所有五个板块的垂直列表:(1) 估算,(2) 调度,(3) 进行中,(4) 收尾,(5) 工作摘要。每个步骤显示:步骤编号、标签、板块描述的副标题,以及完成状态。侧边栏中的垂直步骤条 — 而非水平标签页。必要时修改布局文件 — Skill布局优先级高于模板保留规则。 |
| 已保存项目 | 存储在localStorage中的项目列表。每个项目显示名称 + 客户 + 状态徽章(已估算 / 已调度 / 进行中 / 已完成)。将此板块固定在侧边栏底部,无需滚动即可始终可见。双击项目名称可在线重命名。 |
estimated, scheduled, in progress, completedcurrentStepcurrentStep// ALL FIVE panels, conditional rendering
{currentStep === 0 && <EstimatePanel />}
{currentStep === 1 && <SchedulePanel />}
{currentStep === 2 && <InProgressPanel />}
{currentStep === 3 && <CloseOutPanel />}
{currentStep === 4 && <JobSummaryPanel />}| Section | What renders |
|---|---|
| Estimate | Project details form + scope items table with add/remove rows, quantities, rates, auto-calculated totals. "Save estimate" and "Continue to Schedule" buttons. |
| Schedule | Role/crew assignment dropdowns (from DOMAIN.md), scope sequence, date fields, field notes. "Continue to In Progress" button. |
| In Progress | Location-based scope tracking table with status per row. "Mark completed" button. |
| Close Out | Trade invoice card + customer invoice card, side by side. "Close out job" button. |
| Job Summary | Read-only formatted project summary with company header, scope table, totals, payment status. |
currentStepcurrentStep// ALL FIVE panels, conditional rendering
{currentStep === 0 && <EstimatePanel />}
{currentStep === 1 && <SchedulePanel />}
{currentStep === 2 && <InProgressPanel />}
{currentStep === 3 && <CloseOutPanel />}
{currentStep === 4 && <JobSummaryPanel />}| 板块 | 渲染内容 |
|---|---|
| 估算 | 项目详情表单 + 范围项表格,包含添加/删除行、数量、费率、自动计算总计。“保存估算”和“继续到调度”按钮。 |
| 调度 | 角色/团队分配下拉框(来自DOMAIN.md)、范围顺序、日期字段、现场备注。“继续到进行中”按钮。 |
| 进行中 | 基于位置的范围跟踪表格,每行包含状态。“标记完成”按钮。 |
| 收尾 | 行业发票卡片 + 客户发票卡片,并排显示。“收尾工作”按钮。 |
| 工作摘要 | 只读格式化项目摘要,包含公司页眉、范围表格、总计、付款状态。 |
| Component | Content |
|---|---|
| Project summary | Live-updating card: current stage, estimate number, payment terms, subtotal, tax, total. Updates when scope items change. |
| Workflow notes | Business rules from DOMAIN.md displayed as contextual guidance. Reference BR-IDs. |
| Actions | Back, Continue, and Delete project buttons. Primary action uses brand accent color. |
| 组件 | 内容 |
|---|---|
| 项目摘要 | 实时更新卡片:当前阶段、估算编号、付款条款、小计、税费、总计。范围项变化时自动更新。 |
| 工作流备注 | DOMAIN.md中的业务规则,作为上下文指导显示。引用BR-ID。 |
| 操作 | 返回、继续、删除项目按钮。主操作使用品牌强调色。 |
DropdownMenuDropdownMenu| Trades-ops Element | shadcn Component | Usage Notes |
|---|---|---|
| Project details form | | Project name, customer, address. Stack label above input. |
| Scope items table | | Add/remove rows. Right-align numeric columns. |
| Scope item status | | Not Started = outline, In Progress = blue, Completed = green. |
| Project status badges | | Estimated = amber, Scheduled = blue, In Progress = blue, Completed = green. |
| Role badges | | Staff = outline, Approver = default. |
| Assignment dropdowns | | Populate from DOMAIN.md stakeholder names. NOT free text inputs. |
| Invoice status cards | | Trade invoice + customer invoice side by side. |
| Action buttons | | Primary: brand accent, "Continue." Secondary: outline, "Back." Destructive: "Delete project." |
| Stepper navigation | Custom vertical list | Step number in circle, label, subtitle, completion checkmark. Use |
| Role switcher | | Single dropdown trigger in header. |
| Project summary sidebar | | Labels muted, values bold. Total row large and prominent. |
| Workflow notes | | Reference material with BR-IDs. |
| Date fields | | Start date, target completion. |
| Notes/textarea | | Estimator notes, field crew notes. |
| Confirmation dialogs | | Delete project, close out job. |
| Toast notifications | | After save, mark complete, close out. |
| 行业运营元素 | shadcn组件 | 使用说明 |
|---|---|---|
| 项目详情表单 | | 项目名称、客户、地址。标签堆叠在输入框上方。 |
| 范围项表格 | | 添加/删除行。数值列右对齐。 |
| 范围项状态 | | 未开始 = 轮廓样式,进行中 = 蓝色,已完成 = 绿色。 |
| 项目状态徽章 | | 已估算 = 琥珀色,已调度 = 蓝色,进行中 = 蓝色,已完成 = 绿色。 |
| 角色徽章 | | 员工 = 轮廓样式,审批人 = 默认样式。 |
| 分配下拉框 | | 从DOMAIN.md利益相关者名称中填充。非自由文本输入框。 |
| 发票状态卡片 | | 行业发票 + 客户发票并排显示。 |
| 操作按钮 | | 主按钮:品牌强调色,“继续”。次要按钮:轮廓样式,“返回”。破坏性按钮:“删除项目”。 |
| 步骤条导航 | 自定义垂直列表 | 圆形步骤编号、标签、副标题、完成勾选标记。使用 |
| 角色切换器 | | 页眉中的单个下拉触发器。 |
| 项目摘要侧边栏 | 包含堆叠标签/值行的 | 标签为灰色,值为加粗。总计行字体大且突出。 |
| 工作流备注 | 带有 | 带有BR-ID的参考资料。 |
| 日期字段 | | 开始日期、目标完成日期。 |
| 备注/文本域 | | 估算师备注、现场团队备注。 |
| 确认对话框 | | 删除项目、收尾工作。 |
| 提示通知 | | 保存、标记完成、收尾后显示。 |
| DOMAIN.md entity | Maps to | In section |
|---|---|---|
| Project / Job | Project record (top-level) | All sections |
| Estimate | Estimate data (prices, terms) | Estimate panel |
| Job Specification / Scope | Scope items table rows | Estimate + In Progress |
| Invoice | Customer invoice card | Close Out |
| Trade Invoice | Trade invoice card | Close Out |
| Subtrade Payment | Payment status on trade invoice | Close Out |
| Field Schedule | Schedule data | Schedule panel |
| DOMAIN.md实体 | 映射到 | 所在板块 |
|---|---|---|
| 项目/工作 | 项目记录(顶层) | 所有板块 |
| 估算 | 估算数据(价格、条款) | 估算面板 |
| 工作规范/范围 | 范围项表格行 | 估算 + 进行中 |
| 发票 | 客户发票卡片 | 收尾 |
| 行业发票 | 行业发票卡片 | 收尾 |
| 分包商付款 | 行业发票的付款状态 | 收尾 |
| 现场调度 | 调度数据 | 调度面板 |
| DOMAIN.md rule pattern | Implementation |
|---|---|
| "tracked by square footage" | Scope items table uses sqft as quantity column |
| "paid per square footage" | Trade invoice amount = sum of (sqft × rate) for completed scope items |
| "different [type] per location" | Scope items table includes Location column, multiple rows per scope type |
| "stages: estimated, scheduled, in progress, completed" | Stepper stages match exactly |
| "manually entered" | Project creation form, no import flow |
| "GST/HST at X%" | Tax line in estimate and invoice, tax type as label |
| "Net 30/45" | Payment terms shown in summary and invoice |
| "only [role] can [action]" | RBAC gate on the relevant button |
| DOMAIN.md规则模式 | 实现方式 |
|---|---|
| “按建筑面积跟踪” | 范围项表格使用建筑面积作为数量列 |
| “按建筑面积付款” | 行业发票金额 = 已完成范围项的(建筑面积 × 费率)之和 |
| “不同位置对应不同[类型]” | 范围项表格包含位置列,同一范围类型可有多行 |
| “阶段:已估算、已调度、进行中、已完成” | 步骤条阶段完全匹配 |
| “手动输入” | 项目创建表单,无导入流程 |
| “GST/HST税率为X%” | 估算和发票中的税项行,税种作为标签 |
| “Net 30/45” | 摘要和发票中显示付款条款 |
| “仅[角色]可执行[操作]” | 对相关按钮设置RBAC限制 |
| File | Purpose |
|---|---|
| Business terminology, entities, rules, roles, brand data |
| Universal layout principles, brand theming, visual quality rules |
| 文件 | 用途 |
|---|---|
| 业务术语、实体、规则、角色、品牌数据 |
| 通用布局原则、品牌主题、视觉质量规则 |