Files
maestro/design/maestro-ds/components/core/core.card.html
T
wangjia 73f80d27c9 feat(agent): 接通 plan 自动放行(autoApprovePlan)+ 项目配置可写
之前 auto_approve_plan/auto_approve_exec/checks 列与 Project 类型已存在,但
PatchProjectInput 不含它们 → 无法启用(dead config)。本次接通:
- PatchProjectInput + patchProject 支持 autoApprovePlan/autoApproveExec/checks
- API PATCH /projects 透传三字段
- ingest decompose-result:auto-approved + autoApprovePlan + 全 easy + 子任务≤5
  → store.decide(accept) 跳过 plan_review 直达 decomposed(默认关)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 22:13:18 +08:00

54 lines
2.8 KiB
HTML

<!-- @dsCard group="Components" viewport="700x280" name="Core · 按钮与徽章" subtitle="Button 五变体 · StatusChip · ComplexityBadge · CountBadge · QuotaMeter · SectionHead" -->
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8">
<link rel="stylesheet" href="../../styles.css">
<script src="https://unpkg.com/react@18.3.1/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@babel/standalone@7.29.0/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>
<script src="../../_ds_bundle.js"></script>
<style>body{margin:0;background:var(--bg);font-family:var(--mono);color:var(--ink);padding:14px 16px}</style>
</head><body><div id="root"></div>
<script type="text/babel">
const { Button, StatusChip, ComplexityBadge, CountBadge, SectionHead, QuotaMeter } = window.MaestroDesignSystem_a6a290;
const row = { display: 'flex', gap: 10, alignItems: 'center', flexWrap: 'wrap' };
ReactDOM.createRoot(document.getElementById('root')).render(
<div style={{ display: 'grid', gap: 12 }}>
<div style={row}>
<Button>默认</Button>
<Button variant="solid">创建任务</Button>
<Button variant="accept"> 通过</Button>
<Button variant="reject"> 驳回</Button>
<Button variant="ghost">+ 新建</Button>
<Button size="xs"> 同步 todo</Button>
<Button disabled>禁用</Button>
</div>
<div style={row}>
<StatusChip status="ready" />
<StatusChip status="executing" />
<StatusChip status="exec_review" />
<StatusChip status="blocked" />
<StatusChip status="failed" />
<StatusChip status="done" />
<StatusChip status="cancelled" />
</div>
<div style={row}>
<ComplexityBadge complexity="hard" />
<ComplexityBadge complexity="medium" />
<ComplexityBadge complexity="easy" />
<span style={{ width: 10 }}></span>
<CountBadge kind="gate" count={2} />
<CountBadge kind="ready" count={5} />
<CountBadge kind="run" count={1} />
<CountBadge kind="blocked" count={1} />
<CountBadge kind="total" count={5} />
<CountBadge kind="run" count={0} />
</div>
<div style={row}>
<QuotaMeter label="5h" pct={50} detail="3h 8m 后重置" />
<QuotaMeter label="周" pct={78} detail="16h 38m 后重置" />
<QuotaMeter pct={94} />
</div>
<SectionHead title="任务树" style={{ padding: '4px 0 0' }} action={<Button variant="ghost" size="xs">+ 新建任务</Button>} />
</div>
);
</script></body></html>