feat(web+store): needs_attention 任务显示在审核区,附失败原因

- pendingApprovals 扩展到包含 needs_attention,subquery 取最近 executor 失败 error
- Task 类型增加 lastRunError 字段,mappers 映射
- 审核区(renderGates)将 needs_attention 渲染为独立橙色卡片,
  展示「需人工确认」标签 + 具体失败原因 + 重新排队/取消按钮
- i18n zh/en 补充 attnLabel/attnReason/attnRequeue/attnCancel/toastRequeued

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-06-14 14:46:21 +08:00
parent 4a2b4e1094
commit 433b2dc232
5 changed files with 59 additions and 6 deletions
+5
View File
@@ -398,6 +398,11 @@ pre.doc.empty { color: var(--faint); border-left-color: var(--line); }
border-top: 1px solid var(--line-soft);
}
/* needs_attention 卡片 */
.gate-card-attn { border-color: var(--orange-dim, #7a4a1a); }
.gate-kind-attn { background: var(--orange, #c96b00); }
pre.doc.attn-reason { border-left-color: var(--orange, #c96b00); color: var(--orange-text, #ffb870); white-space: pre-wrap; max-height: 120px; }
.reject-form { padding: 0 14px 12px; display: flex; gap: 10px; align-items: flex-start; }
.reject-form textarea {
flex: 1; min-height: 56px;