- 新增产品动态时间线接口文档,明确前端调用规范 - 定义接口请求参数、响应结构和字段语义说明 - 提供请求示例和错误码说明 - 添加左侧筛选项映射规则和时间格式说明 feat(product): 实现产品首页动态时间线功能 - 重构产品首页布局结构,采用档案横幅型设计 - 新增对象基础概述横幅模块 - 实现产品动态时间线面板组件 - 集成需求池管理概览和最近变化区域 - 添加扩展信息区预留模块位 chore(docs): 更新代理工作说明和前端测试策略 - 添加前端任务测试策略说明 - 更新代理工作流程规范 - 明确git操作执行边界 - 优化组件类型声明更新
61 lines
1.9 KiB
TypeScript
61 lines
1.9 KiB
TypeScript
import type {
|
|
ProductHomepageExtensionModule,
|
|
ProductRequirementPoolRecentChangeSource,
|
|
ProductRequirementPoolSummarySource
|
|
} from './homepage';
|
|
|
|
export const productRequirementPoolMock = {
|
|
summary: {
|
|
total: 18,
|
|
todo: 3,
|
|
analyzing: 5,
|
|
planned: 6,
|
|
done: 4,
|
|
highPriorityTodo: 2
|
|
} satisfies ProductRequirementPoolSummarySource,
|
|
recentChanges: [
|
|
{
|
|
id: 'req-1001',
|
|
title: '支持产品资料标签归档',
|
|
actionLabel: '新增需求',
|
|
time: '2026-04-22 16:20:00',
|
|
statusLabel: '待处理'
|
|
},
|
|
{
|
|
id: 'req-1002',
|
|
title: '统一需求池状态颜色',
|
|
actionLabel: '状态流转',
|
|
time: '2026-04-23 11:00:00',
|
|
statusLabel: '分析中'
|
|
},
|
|
{
|
|
id: 'req-1003',
|
|
title: '补充对象首页需求池统计接口',
|
|
actionLabel: '关闭需求',
|
|
time: '2026-04-23 14:30:00',
|
|
statusLabel: '已完成'
|
|
}
|
|
] satisfies ProductRequirementPoolRecentChangeSource[]
|
|
};
|
|
|
|
export const productHomepageExtensionMock = [
|
|
{
|
|
key: 'milestone',
|
|
title: '里程碑',
|
|
description: '当前先承接产品对象下的版本节点与阶段目标,后续接真实里程碑聚合接口。',
|
|
items: ['对象首页改版验收', '需求池统计接口接入', '产品资料结构梳理']
|
|
},
|
|
{
|
|
key: 'risk',
|
|
title: '风险点管理',
|
|
description: '预留给跨需求、跨团队的产品级风险摘要,避免把风险信息挤进时间线。',
|
|
items: ['需求池真实接口尚未接入', '对象首页长期指标来源待统一', '团队调整记录缺少专用日志接口']
|
|
},
|
|
{
|
|
key: 'document',
|
|
title: '产品资料',
|
|
description: '用于承接产品说明、制度文档、对外资料等对象档案信息,当前先保留正式结构位。',
|
|
items: ['产品定位说明', '对象上下文使用说明', '需求池维护约定']
|
|
}
|
|
] satisfies ProductHomepageExtensionModule[];
|