优化: 清理无意义注释(走查编号前缀/过时历史标注/死代码注释)
This commit is contained in:
@@ -556,14 +556,13 @@ const currentProject = computed(() =>
|
||||
const loading = computed(() => store.projects.length === 0 && !store.error)
|
||||
|
||||
// 状态文案/阶段进度统一走 ../constants/project
|
||||
// B-260615-25:项目描述 Markdown 渲染(复用 AiChat/TaskDetail 同款渲染器,模块级单例),
|
||||
// 项目描述 Markdown 渲染(复用 AiChat/TaskDetail 同款渲染器,模块级单例),
|
||||
// useRendered 封装 computed(读 mdReady 触发响应式 + renderMd)+ ensureLoaded(幂等预热)
|
||||
const { rendered: renderedDesc, ensureLoaded } = useRendered(
|
||||
() => currentProject.value?.description ?? '',
|
||||
)
|
||||
const stageKey = computed(() => currentProject.value?.status ?? 'planning')
|
||||
const statusLabel = computed(() => projectStatusLabel(stageKey.value))
|
||||
// const currentStageIndex = computed(() => projectStageInfo(stageKey.value).stepIndex)
|
||||
|
||||
// ── 来源灵感(晋升携带评估结论回溯)──
|
||||
// ProjectRecord.idea_id 存灵感 id(promote_idea 写入)。
|
||||
@@ -850,7 +849,7 @@ async function onScanSubmodules() {
|
||||
}
|
||||
|
||||
// ── 工作流 ──
|
||||
// demoDag + runDemoWorkflow 已下线(R-PD-2):"script" 节点不再注册到 NodeRegistry,
|
||||
// demoDag + runDemoWorkflow 已下线"script" 节点不再注册到 NodeRegistry,
|
||||
// 前端构造含 script 节点的 DagDef 会在后端 build_dag 失败报错。
|
||||
// 工作流执行日志面板保留,实时事件展示能力不依赖 demoDag。
|
||||
// 待真实工作流需求落地(独立 BuildNode + 审批链)时重建演示入口。
|
||||
@@ -868,7 +867,7 @@ const formattedEvents = computed<LogEntry[]>(() => {
|
||||
const type = ev.type ?? 'unknown'
|
||||
const level = type.includes('error') || type.includes('fail') ? 'error'
|
||||
: type.includes('warn') ? 'warn' : 'info'
|
||||
// 用事件入数组时固化的时间戳(FR-C1),非 computed 重算的当前时刻
|
||||
// 用事件入数组时固化的时间戳,非 computed 重算的当前时刻
|
||||
const time = new Date(evt._ts).toLocaleTimeString(locale.value, { hour: '2-digit', minute: '2-digit', second: '2-digit' })
|
||||
const message = ev.label
|
||||
? `[${ev.label}] ${type}: ${ev.output ?? ev.code ?? ev.message ?? JSON.stringify(ev)}`
|
||||
@@ -1013,8 +1012,8 @@ async function handleImportDir() {
|
||||
// ── 审批处理 ──
|
||||
// 审批对话框 UI + 单/多选决策逻辑抽离至 components/project/ApprovalDialog.vue
|
||||
// handleApproval/handleApprovalMulti/isMultipleSelect/multiDecisions 已迁移;
|
||||
// submitting(UX-260618-17)在子组件自治,父级 submitting 仅用于 submitNewTask
|
||||
// P0-C:ApprovalDialog + watch pendingApproval + handleCancelApproval 已提至 App.vue(全局),
|
||||
// submitting在子组件自治,父级 submitting 仅用于 submitNewTask
|
||||
// ApprovalDialog + watch pendingApproval + handleCancelApproval 已提至 App.vue(全局),
|
||||
// TaskDetail 等无 ApprovalDialog 的页面自动受益(原局部渲染致 HumanNode 超时失败)
|
||||
|
||||
// ── 删除项目(软删 → 回收站,可恢复)──
|
||||
@@ -1115,7 +1114,7 @@ onUnmounted(() => {
|
||||
gap: var(--df-gap-grid);
|
||||
}
|
||||
|
||||
/* B-260615-31:字段同行布局(label 固定宽 + 值占余),描述字段 info-block 保持块状)
|
||||
/* 字段同行布局(label 固定宽 + 值占余),描述字段 info-block 保持块状)
|
||||
基础 .info-item/.label/.value 已收敛至全局 components.css(DRY 收口 B-260619),
|
||||
此处仅保留本组件特有覆盖。 */
|
||||
.info-item a.idea-link {
|
||||
|
||||
Reference in New Issue
Block a user