feat(版本): 完善研发计划与预警已读
关键改动: - 增加版本表单、发布校验和调研方向进度规则 - 扩展小宝预警已读状态、风险签名和今日证据 - 补充组长权限、加班查看范围、活动记录与相关测试 Co-Authored-By: Codex GPT-5 <codex@openai.com>
This commit is contained in:
@@ -73,6 +73,32 @@ export function makeVersionPlanRequirementProgressActivity(plan: VersionPlan, lo
|
||||
};
|
||||
}
|
||||
|
||||
export function makeVersionPlanResearchDirectionProgressActivity(plan: VersionPlan, log: VersionPlanLog): WorkActivityDraft | undefined {
|
||||
if (log.type !== 'research_direction_progress') return undefined;
|
||||
if (plan.type !== 'research') return undefined;
|
||||
|
||||
const directionTitle = log.directionTitle || '调研方向';
|
||||
const statusLabel = log.coverageStatus ? REQUIREMENT_COVERAGE_LABEL[log.coverageStatus] : '进度更新';
|
||||
|
||||
return {
|
||||
actorId: log.actor,
|
||||
sourceType: 'version_plan',
|
||||
sourceId: plan.id,
|
||||
action: 'version_plan_research_direction_progress',
|
||||
category: 'progress',
|
||||
title: plan.title,
|
||||
summary: `推进调研方向:${directionTitle}(${statusLabel})`,
|
||||
occurredAt: log.createdAt,
|
||||
metadata: {
|
||||
directionTaskId: log.directionTaskId,
|
||||
directionTitle: log.directionTitle,
|
||||
coverageStatus: log.coverageStatus,
|
||||
completedContent: log.completedContent,
|
||||
remainingContent: log.remainingContent,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export function makeDevTaskCreatedActivity(task: DevTask, actorId: string): WorkActivityDraft {
|
||||
return {
|
||||
actorId,
|
||||
|
||||
Reference in New Issue
Block a user