feat(console): 侧栏项目按优先级显示三类计数徽标
左侧项目状态新增数字提示,按优先级展示: 1. 需人工处理数(紫,attention) 2. agent 运行数(青,executing) 3. 被阻塞数(琥珀,blocked) 仅非零显示,固定「人工 > 运行 > 阻塞」排列;折叠态仍单状态点, 任一计数 > 0 时放大。后端 projectSummary 已就绪,仅透出 blocked 并渲染。i18n 五语言补齐 projAgentsTip / projBlockedTip。 tsk_0VF1URfdoe3d Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ export function adaptProject(p) {
|
||||
return {
|
||||
id: p.id, name: p.name, path: shortPath(p.repoPath), branch: p.defaultBranch,
|
||||
autonomy: p.autonomy, concurrency: p.concurrency, hue: hueFor(p.name),
|
||||
state, pending: s.attention || 0, agents: s.executing || 0,
|
||||
state, pending: s.attention || 0, agents: s.executing || 0, blocked: s.blocked || 0,
|
||||
// 透传给 ConfigPanel 用的原始字段
|
||||
model: p.model, verifyCmd: p.verifyCmd, maxRetries: p.maxRetries, repoPath: p.repoPath,
|
||||
logo: p.logo, budgetUsd: p.budgetUsd ?? null, budgetPeriod: p.budgetPeriod ?? 'month',
|
||||
|
||||
Reference in New Issue
Block a user