feat(版本): 完善研发计划与预警已读

关键改动:

- 增加版本表单、发布校验和调研方向进度规则

- 扩展小宝预警已读状态、风险签名和今日证据

- 补充组长权限、加班查看范围、活动记录与相关测试

Co-Authored-By: Codex GPT-5 <codex@openai.com>
This commit is contained in:
Script Generator
2026-06-30 16:48:58 +08:00
parent 04520bd8c5
commit 3d3d56697a
41 changed files with 1701 additions and 121 deletions

View File

@@ -0,0 +1,14 @@
function normalizeReleaseProgress(progress: number): number {
if (!Number.isFinite(progress)) return 0;
return Math.min(100, Math.max(0, Math.round(progress)));
}
export function getReleaseProgressWarning(progress: number): string {
const normalizedProgress = normalizeReleaseProgress(progress);
if (normalizedProgress >= 100) return '';
return `当前版本进度 ${normalizedProgress}%,仍有未完成事项。确认发版会将版本标记为已发布。`;
}
export function canSubmitReleaseForm(releaseDate: string): boolean {
return releaseDate.trim().length > 0;
}