dsh-charter 0.2.2 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -1
- package/CHANGELOG.zh.md +54 -1
- package/README.md +75 -51
- package/README.zh.md +68 -45
- package/docs/README.md +5 -4
- package/docs/README.zh.md +6 -3
- package/docs/assets/charter-graph-0.3.0.zh.png +0 -0
- package/docs/assets/charter-graph-0.3.1.png +0 -0
- package/docs/assets/charter-graph-0.3.1.zh.png +0 -0
- package/docs/assets/charter-pane-0.3.0.png +0 -0
- package/docs/assets/charter-pane-0.3.0.zh.png +0 -0
- package/docs/assets/charter-pane-0.3.1.png +0 -0
- package/docs/assets/charter-pane-0.3.1.zh.png +0 -0
- package/docs/assets/dependency-example.svg +90 -0
- package/docs/assets/dependency-example.zh.svg +90 -0
- package/docs/design/charter-dependency-graph-v1.zh.md +26 -21
- package/docs/design/charter-design-v1.md +2 -2
- package/docs/design/charter-design-v1.zh.md +2 -2
- package/docs/design/charter-gui-v1.zh.md +873 -0
- package/docs/design/charter-workspace-v2.zh.md +13 -1
- package/docs/design/compatibility.md +23 -6
- package/docs/design/compatibility.zh.md +22 -6
- package/docs/design/mockups/README.md +29 -0
- package/docs/design/mockups/mockup-graph.html +154 -0
- package/docs/design/mockups/mockup-home-clean.html +146 -0
- package/docs/design/mockups/mockup-home-dirty.html +191 -0
- package/docs/design/mockups/mockup.css +429 -0
- package/docs/design/mockups/style-tile.html +146 -0
- package/docs/design/mockups/tokens.css +670 -0
- package/docs/design/version-roadmap.md +30 -10
- package/docs/design/version-roadmap.zh.md +43 -8
- package/docs/release-notes/0.2.2.md +5 -5
- package/docs/release-notes/0.3.0.md +70 -0
- package/docs/release-notes/0.3.1.md +38 -0
- package/docs/release-notes/README.md +1 -1
- package/docs/releasing.md +5 -4
- package/docs/releasing.zh.md +5 -4
- package/docs/user-guide.md +9 -10
- package/docs/user-guide.zh.md +8 -10
- package/docs/verification.md +114 -10
- package/docs/verification.zh.md +98 -9
- package/lib/client/ChangeSetPanel.d.ts +24 -0
- package/lib/client/DependencyGraph.d.ts +1 -1
- package/lib/client/DiagnosticsPage.d.ts +5 -0
- package/lib/client/ReviewCenterPage.d.ts +5 -0
- package/lib/client/SectionNav.d.ts +14 -0
- package/lib/client/WorkspacePage.d.ts +5 -0
- package/lib/client/change-set-model.d.ts +55 -0
- package/lib/client/draft-store.d.ts +1 -1
- package/lib/client/locales.d.ts +49 -1
- package/lib/client/page-order.d.ts +26 -0
- package/lib/client/pane-format.d.ts +48 -0
- package/lib/client/pane-scope.d.ts +382 -0
- package/lib/client/pane-ui.d.ts +39 -0
- package/lib/client/relation-graph.d.ts +0 -1
- package/lib/client/section-routing.d.ts +12 -0
- package/lib/client/use-change-set-sheet.d.ts +13 -0
- package/lib/client.js +3931 -3118
- package/lib/core/standing-envelope.d.ts +31 -0
- package/lib/host/types.d.ts +6 -1
- package/lib/index.js +1 -1
- package/lib/remote.js +1 -1
- package/lib/{service-MsIACddZ.js → service-BSrE7Kbu.js} +42 -24
- package/lib/version.d.ts +1 -1
- package/package.json +24 -18
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>会话契约 · 脏态 + Change Set 右栏(1440px · 文档感)</title>
|
|
7
|
+
<link rel="stylesheet" href="tokens.css">
|
|
8
|
+
<link rel="stylesheet" href="mockup.css">
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div class="desk">
|
|
12
|
+
<div class="desk__caption">0.3.0 视觉稿 · 脏态(吸顶操作条 + Change Set 右栏)· 1440px 容器 · 合成数据 · <a href="?dark" class="quietlink">切换明暗</a></div>
|
|
13
|
+
|
|
14
|
+
<div class="pane pane--1440">
|
|
15
|
+
<!-- 脏态吸顶操作条:仅 dirty/replay/unknown 时出现 -->
|
|
16
|
+
<div class="bar" role="group" aria-label="变更集操作">
|
|
17
|
+
<span class="bar__dot" aria-hidden="true"></span>
|
|
18
|
+
<span class="bar__label">2 处待应用修改</span>
|
|
19
|
+
<span class="bar__hint">应用后生成 rev 8 · 单次原子提交</span>
|
|
20
|
+
<div class="bar__actions">
|
|
21
|
+
<button type="button" class="btn btn--sm">预览上下文</button>
|
|
22
|
+
<button type="button" class="btn btn--sm">丢弃</button>
|
|
23
|
+
<button type="button" class="btn btn--sm btn--primary">应用</button>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div class="layout">
|
|
28
|
+
<div class="doc" style="margin:0">
|
|
29
|
+
|
|
30
|
+
<header class="head">
|
|
31
|
+
<span class="head__icon" aria-hidden="true">
|
|
32
|
+
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
33
|
+
<path d="M4 2h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1z"/>
|
|
34
|
+
<path d="M5.5 5.5h5M5.5 8h5M5.5 10.5h3"/>
|
|
35
|
+
</svg>
|
|
36
|
+
</span>
|
|
37
|
+
<h2>会话契约</h2>
|
|
38
|
+
<div class="head__meta">
|
|
39
|
+
<span>rev 7</span>
|
|
40
|
+
<span class="meter" role="meter" aria-valuemin="0" aria-valuemax="8192" aria-valuenow="383" aria-label="应用后契约上下文占用">
|
|
41
|
+
<span class="meter__track"><span class="meter__fill" style="width:32%"></span></span>
|
|
42
|
+
191 B → 383 B / 8.0 KiB
|
|
43
|
+
</span>
|
|
44
|
+
</div>
|
|
45
|
+
</header>
|
|
46
|
+
<div class="headrule"></div>
|
|
47
|
+
|
|
48
|
+
<nav class="tabs" aria-label="契约区域">
|
|
49
|
+
<button type="button" aria-current="page">工作区</button>
|
|
50
|
+
<button type="button">审阅中心 <span class="pillcount">2</span></button>
|
|
51
|
+
<button type="button">诊断与维护</button>
|
|
52
|
+
</nav>
|
|
53
|
+
|
|
54
|
+
<!-- 目标:含暂存 redirect -->
|
|
55
|
+
<section class="sec" aria-labelledby="h-objective">
|
|
56
|
+
<div class="sec__head">
|
|
57
|
+
<h3 id="h-objective">目标</h3>
|
|
58
|
+
<div class="sec__actions">
|
|
59
|
+
<button type="button" class="quietlink">初始目标</button>
|
|
60
|
+
<button type="button" class="btn btn--sm">编辑</button>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="obj--staged">
|
|
64
|
+
<p class="obj__text">完成 0.3.0 视觉重构:文档感首屏、对齐规则与 Change Set 右栏全部落地。</p>
|
|
65
|
+
<div class="row__sub" style="margin-top:6px">
|
|
66
|
+
<span class="chip chip--business"><i></i>已暂存 · 重定向</span>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</section>
|
|
70
|
+
|
|
71
|
+
<section class="sec" aria-labelledby="h-invariants">
|
|
72
|
+
<div class="sec__head">
|
|
73
|
+
<h3 id="h-invariants">硬约束</h3>
|
|
74
|
+
<span class="sec__count">2 条生效 · 1 条暂存</span>
|
|
75
|
+
<div class="sec__actions">
|
|
76
|
+
<button type="button" class="btn btn--sm">+ 添加</button>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="rows">
|
|
80
|
+
<div class="row">
|
|
81
|
+
<span class="row__dot" aria-hidden="true"></span>
|
|
82
|
+
<div class="row__body"><div class="row__text">发布前运行源码检查、九版本兼容矩阵和候选 artifact 验证。</div></div>
|
|
83
|
+
<div class="row__meta"><span>46 B</span></div>
|
|
84
|
+
</div>
|
|
85
|
+
<div class="row">
|
|
86
|
+
<span class="row__dot" aria-hidden="true"></span>
|
|
87
|
+
<div class="row__body"><div class="row__text">用户正式文本进入 user role,模型只读、只能提案。</div></div>
|
|
88
|
+
<div class="row__meta"><span>33 B</span></div>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="row row--staged">
|
|
91
|
+
<span class="row__dot" aria-hidden="true"></span>
|
|
92
|
+
<div class="row__body">
|
|
93
|
+
<div class="row__text">已发布的精确 artifact 不得重建或覆盖。</div>
|
|
94
|
+
<div class="row__sub"><span class="chip chip--business"><i></i>已暂存 · 新增</span></div>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="row__meta"><span>27 B</span><button type="button" class="quietlink">撤销</button></div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</section>
|
|
100
|
+
|
|
101
|
+
<section class="sec" aria-labelledby="h-deliverables">
|
|
102
|
+
<div class="sec__head">
|
|
103
|
+
<h3 id="h-deliverables">交付物</h3>
|
|
104
|
+
<span class="sec__count">2 条</span>
|
|
105
|
+
<div class="sec__actions">
|
|
106
|
+
<button type="button" class="btn btn--sm">+ 添加</button>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
<div class="rows">
|
|
110
|
+
<div class="row">
|
|
111
|
+
<span class="row__dot" aria-hidden="true"></span>
|
|
112
|
+
<div class="row__body">
|
|
113
|
+
<div class="row__text">冻结视觉语言规格与首屏高保真稿</div>
|
|
114
|
+
<div class="row__sub"><span class="chip chip--success"><i></i>已完成</span></div>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="row__meta"><span>D1</span><span>22 B</span></div>
|
|
117
|
+
</div>
|
|
118
|
+
<div class="row">
|
|
119
|
+
<span class="row__dot" aria-hidden="true"></span>
|
|
120
|
+
<div class="row__body">
|
|
121
|
+
<div class="row__text">按稿实现文档流 Workspace 与对齐规则</div>
|
|
122
|
+
<div class="row__sub">
|
|
123
|
+
<span class="chip chip--business"><i></i>进行中</span>
|
|
124
|
+
<span class="chip chip--outline">依赖 D1</span>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="row__meta"><span>D2</span><span>26 B</span></div>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</section>
|
|
131
|
+
|
|
132
|
+
<section class="sec" aria-labelledby="h-execution">
|
|
133
|
+
<details class="disclosure">
|
|
134
|
+
<summary aria-labelledby="h-execution">
|
|
135
|
+
<span class="caret" aria-hidden="true">▶</span>
|
|
136
|
+
<h3 id="h-execution" style="margin:0;font-size:var(--dsw-font-s-14-font-size,14px);font-weight:600">执行路径</h3>
|
|
137
|
+
<span class="pathline"><b>D1</b><span class="arrow">→</span><b>D2</b></span>
|
|
138
|
+
</summary>
|
|
139
|
+
</details>
|
|
140
|
+
</section>
|
|
141
|
+
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<!-- Change Set 右栏:安静的 margin note,非重卡 -->
|
|
145
|
+
<aside class="rail" role="complementary" aria-labelledby="h-changeset">
|
|
146
|
+
<div class="rail__head">
|
|
147
|
+
<h3 id="h-changeset">变更集</h3>
|
|
148
|
+
<span class="rail__count">2</span>
|
|
149
|
+
</div>
|
|
150
|
+
<dl class="rail__summary">
|
|
151
|
+
<dt>Prompt 字节</dt><dd>191 B → 383 B</dd>
|
|
152
|
+
<dt>条目</dt><dd>3 → 4</dd>
|
|
153
|
+
</dl>
|
|
154
|
+
<div class="opgroup">
|
|
155
|
+
<div class="opgroup__cat">目标</div>
|
|
156
|
+
<div class="oprow">
|
|
157
|
+
<div class="oprow__text">
|
|
158
|
+
重定向
|
|
159
|
+
<div class="oprow__diff">
|
|
160
|
+
<span class="oprow__before">交付一个持久、用户所有、可审计的会话契约…</span>
|
|
161
|
+
<span class="oprow__arrow">→</span>
|
|
162
|
+
<span class="oprow__after">完成 0.3.0 视觉重构:文档感首屏…</span>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
<button type="button" class="quietlink">撤销</button>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
<div class="opgroup">
|
|
169
|
+
<div class="opgroup__cat">条目</div>
|
|
170
|
+
<div class="oprow">
|
|
171
|
+
<div class="oprow__text">
|
|
172
|
+
新增硬约束
|
|
173
|
+
<div class="oprow__diff">
|
|
174
|
+
<span class="oprow__arrow">—</span>
|
|
175
|
+
<span class="oprow__arrow">→</span>
|
|
176
|
+
<span class="oprow__after">已发布的精确 artifact 不得重建或覆盖。</span>
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
<button type="button" class="quietlink">撤销</button>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
<p class="rail__hint">应用将以单次原子提交生成 rev 8;冲突时保留完整变更集并可 rebase。</p>
|
|
183
|
+
</aside>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
<script>
|
|
188
|
+
if (new URLSearchParams(location.search).has('dark')) document.body.setAttribute('data-ds-dark-theme', '');
|
|
189
|
+
</script>
|
|
190
|
+
</body>
|
|
191
|
+
</html>
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
0.3.0 文档感视觉语言 — mockup 共享样式
|
|
3
|
+
方向:契约是一份可读文档,不是仪表盘。
|
|
4
|
+
层级 = 尺寸阶 + 字重 + 留白;卡片只属于可交互容器。
|
|
5
|
+
全部颜色/圆角/阴影/焦点来自宿主 token(tokens.css)。
|
|
6
|
+
============================================================ */
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
/* 命名布局常量(唯一魔法数字来源) */
|
|
10
|
+
--ch-content-max: 1080px; /* 文档列 720 + gap 48 + rail 280 */
|
|
11
|
+
--ch-reading-max: 720px;
|
|
12
|
+
--ch-rail-w: 280px;
|
|
13
|
+
--ch-page-inset-top: 32px;
|
|
14
|
+
--ch-page-gutter: 24px;
|
|
15
|
+
--ch-page-bottom: 64px;
|
|
16
|
+
--ch-bar-h: 48px;
|
|
17
|
+
--ch-row-min: 32px;
|
|
18
|
+
--hairline: var(--dsh-hairline-width, 0.5px);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
* { box-sizing: border-box; }
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
margin: 0;
|
|
25
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
26
|
+
color: var(--dsw-alias-label-primary);
|
|
27
|
+
font-family: var(--dsw-font-family);
|
|
28
|
+
font-size: var(--dsw-font-xs-13-font-size, 13px);
|
|
29
|
+
line-height: var(--dsw-font-xs-13-line-height, 20px);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* ---------- 桌面与画布 ---------- */
|
|
33
|
+
|
|
34
|
+
.desk { padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
|
|
35
|
+
.desk__caption {
|
|
36
|
+
font-size: var(--dsw-font-xxs-12-font-size, 12px);
|
|
37
|
+
color: var(--dsw-alias-label-tertiary);
|
|
38
|
+
font-variant-numeric: tabular-nums;
|
|
39
|
+
}
|
|
40
|
+
.pane {
|
|
41
|
+
width: 100%;
|
|
42
|
+
background: var(--dsw-alias-bg-base);
|
|
43
|
+
border-radius: var(--dsw-radius-lg);
|
|
44
|
+
box-shadow: var(--dsw-elevation-panel);
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
}
|
|
47
|
+
.pane--850 { max-width: 850px; }
|
|
48
|
+
.pane--1440 { max-width: 1440px; }
|
|
49
|
+
|
|
50
|
+
/* 吸顶操作条(仅脏态) */
|
|
51
|
+
.bar {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: 12px;
|
|
55
|
+
height: var(--ch-bar-h);
|
|
56
|
+
padding: 0 var(--ch-page-gutter);
|
|
57
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
58
|
+
border-bottom: var(--hairline) solid var(--dsw-alias-border-l2);
|
|
59
|
+
box-shadow: var(--dsw-elevation-soft);
|
|
60
|
+
}
|
|
61
|
+
.bar__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--dsw-alias-state-business-primary); flex: none; }
|
|
62
|
+
.bar__dot--warn { background: var(--dsw-alias-state-warn-primary); }
|
|
63
|
+
.bar__label { font-size: var(--dsw-font-xs-13-font-size, 13px); font-weight: 500; }
|
|
64
|
+
.bar__hint { font-size: var(--dsw-font-xxs-12-font-size, 12px); color: var(--dsw-alias-label-tertiary); }
|
|
65
|
+
.bar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
|
|
66
|
+
|
|
67
|
+
/* ---------- 布局:文档列 + 右栏 ---------- */
|
|
68
|
+
|
|
69
|
+
.layout {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: flex-start;
|
|
72
|
+
gap: 48px;
|
|
73
|
+
max-width: var(--ch-content-max);
|
|
74
|
+
margin: 0 auto;
|
|
75
|
+
padding: var(--ch-page-inset-top) var(--ch-page-gutter) var(--ch-page-bottom);
|
|
76
|
+
}
|
|
77
|
+
.doc { flex: 1 1 auto; min-width: 0; max-width: var(--ch-reading-max); margin: 0 auto; }
|
|
78
|
+
.layout--single .doc { max-width: var(--ch-reading-max); }
|
|
79
|
+
|
|
80
|
+
/* ---------- 页头 ---------- */
|
|
81
|
+
|
|
82
|
+
.head { display: flex; align-items: center; gap: 12px; }
|
|
83
|
+
.head__icon {
|
|
84
|
+
width: 28px; height: 28px; flex: none;
|
|
85
|
+
display: flex; align-items: center; justify-content: center;
|
|
86
|
+
border-radius: var(--dsw-radius-sm);
|
|
87
|
+
color: var(--dsw-alias-label-secondary);
|
|
88
|
+
background: var(--dsw-alias-bg-layer-2);
|
|
89
|
+
}
|
|
90
|
+
.head__icon svg { width: 16px; height: 16px; }
|
|
91
|
+
.head h2 {
|
|
92
|
+
margin: 0;
|
|
93
|
+
font: var(--dsw-font-l-20);
|
|
94
|
+
letter-spacing: 0;
|
|
95
|
+
}
|
|
96
|
+
.head__meta {
|
|
97
|
+
margin-left: auto;
|
|
98
|
+
display: flex; align-items: center; gap: 16px;
|
|
99
|
+
font-size: var(--dsw-font-xxs-12-font-size, 12px);
|
|
100
|
+
color: var(--dsw-alias-label-tertiary);
|
|
101
|
+
font-variant-numeric: tabular-nums;
|
|
102
|
+
white-space: nowrap;
|
|
103
|
+
}
|
|
104
|
+
.meter { display: flex; align-items: center; gap: 8px; }
|
|
105
|
+
.meter__track { width: 128px; height: 4px; border-radius: 999px; background: var(--dsw-alias-border-l2); overflow: hidden; }
|
|
106
|
+
.meter__fill { display: block; height: 100%; border-radius: inherit; background: var(--dsw-alias-state-business-primary); }
|
|
107
|
+
.meter__fill.is-warn { background: var(--dsw-alias-state-warn-primary); }
|
|
108
|
+
.headrule { border-bottom: var(--hairline) solid var(--dsw-alias-border-l2); margin-top: 20px; }
|
|
109
|
+
|
|
110
|
+
/* ---------- 区域 tabs(下划线式,安静) ---------- */
|
|
111
|
+
|
|
112
|
+
.tabs { display: flex; gap: 24px; margin-top: 4px; }
|
|
113
|
+
.tabs button {
|
|
114
|
+
appearance: none; border: 0; background: none; cursor: pointer;
|
|
115
|
+
padding: 10px 0 8px;
|
|
116
|
+
font-family: inherit;
|
|
117
|
+
font-size: var(--dsw-font-xs-13-font-size, 13px);
|
|
118
|
+
font-weight: 500;
|
|
119
|
+
color: var(--dsw-alias-label-tertiary);
|
|
120
|
+
border-bottom: 2px solid transparent;
|
|
121
|
+
display: inline-flex; align-items: center; gap: 6px;
|
|
122
|
+
}
|
|
123
|
+
.tabs button[aria-current="page"] {
|
|
124
|
+
color: var(--dsw-alias-label-primary);
|
|
125
|
+
border-bottom-color: var(--dsw-alias-state-business-primary);
|
|
126
|
+
}
|
|
127
|
+
.tabs button:hover { color: var(--dsw-alias-label-secondary); }
|
|
128
|
+
.tabs .pillcount {
|
|
129
|
+
min-width: 18px; height: 18px; padding: 0 5px;
|
|
130
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
131
|
+
border-radius: 999px;
|
|
132
|
+
font-size: var(--dsw-font-xxxs-11-font-size, 11px);
|
|
133
|
+
font-weight: 600;
|
|
134
|
+
color: var(--dsw-alias-state-business-primary);
|
|
135
|
+
background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 10%, transparent);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* ---------- Section(纯展示:无卡片) ---------- */
|
|
139
|
+
|
|
140
|
+
.sec { margin-top: 32px; }
|
|
141
|
+
.sec__head { display: flex; align-items: baseline; gap: 8px; min-height: 28px; }
|
|
142
|
+
.sec__head h3 {
|
|
143
|
+
margin: 0;
|
|
144
|
+
font-size: var(--dsw-font-s-14-font-size, 14px);
|
|
145
|
+
line-height: var(--dsw-font-s-14-line-height, 22px);
|
|
146
|
+
font-weight: 600;
|
|
147
|
+
}
|
|
148
|
+
.sec__count {
|
|
149
|
+
font-size: var(--dsw-font-xxs-12-font-size, 12px);
|
|
150
|
+
color: var(--dsw-alias-label-tertiary);
|
|
151
|
+
font-variant-numeric: tabular-nums;
|
|
152
|
+
}
|
|
153
|
+
.sec__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
|
|
154
|
+
|
|
155
|
+
/* ---------- 行(条目) ---------- */
|
|
156
|
+
|
|
157
|
+
.rows { margin-top: 4px; }
|
|
158
|
+
.row {
|
|
159
|
+
display: grid;
|
|
160
|
+
grid-template-columns: 16px minmax(0, 1fr) auto;
|
|
161
|
+
column-gap: 10px;
|
|
162
|
+
align-items: start;
|
|
163
|
+
padding: 6px 8px 6px 0;
|
|
164
|
+
min-height: var(--ch-row-min);
|
|
165
|
+
}
|
|
166
|
+
.row + .row { border-top: var(--hairline) solid var(--dsw-alias-border-l1); }
|
|
167
|
+
.row:hover { background: var(--dsw-alias-bg-layer-1); border-radius: var(--dsw-radius-sm); }
|
|
168
|
+
.row__dot {
|
|
169
|
+
width: 5px; height: 5px; border-radius: 999px;
|
|
170
|
+
background: var(--dsw-alias-label-tertiary);
|
|
171
|
+
margin-top: 8px; margin-left: 4px; /* 对齐 20px 行盒中线 */
|
|
172
|
+
}
|
|
173
|
+
.row__body { min-width: 0; }
|
|
174
|
+
.row__text { overflow-wrap: anywhere; }
|
|
175
|
+
.row__sub { display: flex; align-items: center; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
|
|
176
|
+
.row__meta {
|
|
177
|
+
display: flex; align-items: center; gap: 12px;
|
|
178
|
+
font-size: var(--dsw-font-xxs-12-font-size, 12px);
|
|
179
|
+
color: var(--dsw-alias-label-tertiary);
|
|
180
|
+
font-variant-numeric: tabular-nums;
|
|
181
|
+
line-height: 20px; /* 与正文行盒同高 → 基线对齐 */
|
|
182
|
+
white-space: nowrap;
|
|
183
|
+
}
|
|
184
|
+
.row--staged {
|
|
185
|
+
box-shadow: inset 2px 0 0 var(--dsw-alias-state-business-primary);
|
|
186
|
+
background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 5%, transparent);
|
|
187
|
+
border-radius: 0 var(--dsw-radius-sm) var(--dsw-radius-sm) 0;
|
|
188
|
+
padding-left: 10px;
|
|
189
|
+
grid-template-columns: minmax(0, 1fr) auto; /* 圆点隐藏后只剩两列 */
|
|
190
|
+
}
|
|
191
|
+
.row--staged .row__dot { display: none; }
|
|
192
|
+
.row--staged + .row, .row + .row--staged { border-top: 0; }
|
|
193
|
+
|
|
194
|
+
/* 空态:一行安静的虚线行,不是嵌套卡 */
|
|
195
|
+
.row--empty {
|
|
196
|
+
display: flex; align-items: center; justify-content: center; gap: 6px;
|
|
197
|
+
min-height: 36px; margin-top: 8px; padding: 0;
|
|
198
|
+
border: 1px dashed var(--dsw-alias-border-l3);
|
|
199
|
+
border-radius: var(--dsw-radius-md);
|
|
200
|
+
color: var(--dsw-alias-label-tertiary);
|
|
201
|
+
cursor: pointer; background: none; width: 100%;
|
|
202
|
+
font: inherit;
|
|
203
|
+
}
|
|
204
|
+
.row--empty:hover { color: var(--dsw-alias-label-secondary); border-color: var(--dsw-alias-border-l4); background: var(--dsw-alias-bg-layer-1); }
|
|
205
|
+
|
|
206
|
+
/* ---------- 目标(文档 lead 段落) ---------- */
|
|
207
|
+
|
|
208
|
+
.obj__text {
|
|
209
|
+
margin-top: 8px;
|
|
210
|
+
font-size: var(--dsh-content-font-size, 14px);
|
|
211
|
+
line-height: 1.7;
|
|
212
|
+
overflow-wrap: anywhere;
|
|
213
|
+
}
|
|
214
|
+
.obj--staged .obj__text {
|
|
215
|
+
box-shadow: inset 2px 0 0 var(--dsw-alias-state-business-primary);
|
|
216
|
+
background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 5%, transparent);
|
|
217
|
+
padding: 6px 10px;
|
|
218
|
+
border-radius: 0 var(--dsw-radius-sm) var(--dsw-radius-sm) 0;
|
|
219
|
+
}
|
|
220
|
+
.quietlink {
|
|
221
|
+
appearance: none; border: 0; background: none; cursor: pointer; padding: 0;
|
|
222
|
+
font-size: var(--dsw-font-xxs-12-font-size, 12px);
|
|
223
|
+
color: var(--dsw-alias-label-tertiary);
|
|
224
|
+
text-decoration: underline; text-underline-offset: 3px; text-decoration-style: dotted;
|
|
225
|
+
}
|
|
226
|
+
.quietlink:hover { color: var(--dsw-alias-label-secondary); }
|
|
227
|
+
|
|
228
|
+
/* ---------- chips ---------- */
|
|
229
|
+
|
|
230
|
+
.chip {
|
|
231
|
+
display: inline-flex; align-items: center; gap: 5px;
|
|
232
|
+
padding: 2px 8px; border-radius: 999px;
|
|
233
|
+
font-size: var(--dsw-font-xxxs-11-font-size, 11px);
|
|
234
|
+
line-height: 14px; font-weight: 500;
|
|
235
|
+
white-space: nowrap;
|
|
236
|
+
}
|
|
237
|
+
.chip i { width: 6px; height: 6px; border-radius: 999px; background: currentColor; flex: none; }
|
|
238
|
+
.chip--neutral { color: var(--dsw-alias-label-secondary); background: color-mix(in srgb, var(--dsw-alias-label-tertiary) 12%, transparent); }
|
|
239
|
+
.chip--business { color: var(--dsw-alias-state-business-primary); background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 10%, transparent); }
|
|
240
|
+
.chip--success { color: var(--dsw-alias-state-success-primary); background: color-mix(in srgb, var(--dsw-alias-state-success-primary) 10%, transparent); }
|
|
241
|
+
.chip--warn { color: var(--dsw-alias-state-warn-primary); background: color-mix(in srgb, var(--dsw-alias-state-warn-primary) 12%, transparent); }
|
|
242
|
+
.chip--danger { color: var(--dsw-alias-state-error-primary); background: color-mix(in srgb, var(--dsw-alias-state-error-primary) 10%, transparent); }
|
|
243
|
+
.chip--outline { color: var(--dsw-alias-label-secondary); border: var(--hairline) solid var(--dsw-alias-border-l3); background: none; }
|
|
244
|
+
|
|
245
|
+
/* ---------- 按钮 ---------- */
|
|
246
|
+
|
|
247
|
+
.btn {
|
|
248
|
+
appearance: none; cursor: pointer;
|
|
249
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
|
250
|
+
height: 36px; padding: 0 14px;
|
|
251
|
+
border-radius: var(--dsw-radius-md);
|
|
252
|
+
border: 1px solid transparent;
|
|
253
|
+
background: none;
|
|
254
|
+
font-family: inherit;
|
|
255
|
+
font-size: var(--dsw-font-s-14-font-size, 14px);
|
|
256
|
+
font-weight: 500;
|
|
257
|
+
color: var(--dsw-alias-label-secondary);
|
|
258
|
+
}
|
|
259
|
+
.btn:hover { background: var(--dsw-alias-interactive-bg-hover); color: var(--dsw-alias-label-primary); }
|
|
260
|
+
.btn--primary { background: var(--dsw-alias-button-primary-fill); color: var(--dsw-alias-label-primary-foreground); }
|
|
261
|
+
.btn--primary:hover { background: var(--dsw-alias-button-primary-hover); color: var(--dsw-alias-label-primary-foreground); }
|
|
262
|
+
.btn--sm { height: 28px; padding: 0 10px; font-size: var(--dsw-font-xxs-12-font-size, 12px); border-radius: var(--dsw-radius-sm); }
|
|
263
|
+
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
264
|
+
.btn:disabled:hover { background: none; color: var(--dsw-alias-label-secondary); }
|
|
265
|
+
:focus-visible { outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color); outline-offset: 2px; }
|
|
266
|
+
|
|
267
|
+
/* ---------- 执行路径 disclosure ---------- */
|
|
268
|
+
|
|
269
|
+
.disclosure summary {
|
|
270
|
+
display: flex; align-items: center; gap: 8px;
|
|
271
|
+
min-height: var(--ch-row-min); padding: 6px 0;
|
|
272
|
+
cursor: pointer; list-style: none;
|
|
273
|
+
color: var(--dsw-alias-label-secondary);
|
|
274
|
+
}
|
|
275
|
+
.disclosure summary::-webkit-details-marker { display: none; }
|
|
276
|
+
.disclosure .caret { color: var(--dsw-alias-label-tertiary); font-size: 11px; transition: none; }
|
|
277
|
+
.disclosure[open] .caret { transform: rotate(90deg); }
|
|
278
|
+
.pathline { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
|
|
279
|
+
.pathline b { font-weight: 600; color: var(--dsw-alias-state-business-primary); }
|
|
280
|
+
.pathline span.arrow { color: var(--dsw-alias-label-tertiary); }
|
|
281
|
+
|
|
282
|
+
/* ---------- notice(单条内联) ---------- */
|
|
283
|
+
|
|
284
|
+
.notice {
|
|
285
|
+
display: flex; align-items: baseline; gap: 8px;
|
|
286
|
+
margin-top: 16px; padding: 8px 12px;
|
|
287
|
+
border-radius: var(--dsw-radius-md);
|
|
288
|
+
background: color-mix(in srgb, var(--dsw-alias-state-warn-primary) 8%, transparent);
|
|
289
|
+
}
|
|
290
|
+
.notice i { width: 7px; height: 7px; border-radius: 999px; background: var(--dsw-alias-state-warn-primary); align-self: center; flex: none; }
|
|
291
|
+
.notice--danger { background: color-mix(in srgb, var(--dsw-alias-state-error-primary) 8%, transparent); }
|
|
292
|
+
.notice--danger i { background: var(--dsw-alias-state-error-primary); }
|
|
293
|
+
|
|
294
|
+
/* ---------- Change Set 右栏(margin note,非重卡) ---------- */
|
|
295
|
+
|
|
296
|
+
.rail { width: var(--ch-rail-w); flex: none; position: sticky; top: 64px; }
|
|
297
|
+
.rail__head { display: flex; align-items: baseline; gap: 8px; }
|
|
298
|
+
.rail__head h3 { margin: 0; font-size: var(--dsw-font-s-14-font-size, 14px); line-height: 22px; font-weight: 600; }
|
|
299
|
+
.rail__count {
|
|
300
|
+
min-width: 18px; height: 18px; padding: 0 5px;
|
|
301
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
302
|
+
border-radius: 999px; font-size: var(--dsw-font-xxxs-11-font-size, 11px); font-weight: 600;
|
|
303
|
+
color: var(--dsw-alias-state-business-primary);
|
|
304
|
+
background: color-mix(in srgb, var(--dsw-alias-state-business-primary) 10%, transparent);
|
|
305
|
+
}
|
|
306
|
+
.rail__summary {
|
|
307
|
+
margin-top: 12px; padding-bottom: 12px;
|
|
308
|
+
border-bottom: var(--hairline) solid var(--dsw-alias-border-l2);
|
|
309
|
+
display: grid; grid-template-columns: auto 1fr; gap: 6px 12px;
|
|
310
|
+
font-size: var(--dsw-font-xxs-12-font-size, 12px);
|
|
311
|
+
font-variant-numeric: tabular-nums;
|
|
312
|
+
}
|
|
313
|
+
.rail__summary dt { color: var(--dsw-alias-label-tertiary); margin: 0; }
|
|
314
|
+
.rail__summary dd { margin: 0; color: var(--dsw-alias-label-primary); text-align: right; }
|
|
315
|
+
.opgroup { margin-top: 12px; }
|
|
316
|
+
.opgroup__cat {
|
|
317
|
+
font-size: var(--dsw-font-xxxs-11-font-size, 11px); font-weight: 600;
|
|
318
|
+
color: var(--dsw-alias-label-tertiary);
|
|
319
|
+
}
|
|
320
|
+
.oprow { padding: 6px 0; display: flex; align-items: baseline; gap: 8px; }
|
|
321
|
+
.oprow + .oprow { border-top: var(--hairline) solid var(--dsw-alias-border-l1); }
|
|
322
|
+
.oprow__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
323
|
+
.oprow__diff { display: flex; gap: 6px; align-items: baseline; margin-top: 2px; font-size: var(--dsw-font-xxs-12-font-size, 12px); font-variant-numeric: tabular-nums; }
|
|
324
|
+
.oprow__before { color: var(--dsw-alias-label-tertiary); text-decoration: line-through; text-decoration-color: var(--dsw-alias-border-l4); }
|
|
325
|
+
.oprow__arrow { color: var(--dsw-alias-label-tertiary); }
|
|
326
|
+
.oprow__after { color: var(--dsw-alias-label-primary); }
|
|
327
|
+
.rail__hint { margin-top: 16px; font-size: var(--dsw-font-xxs-12-font-size, 12px); color: var(--dsw-alias-label-tertiary); line-height: 18px; }
|
|
328
|
+
|
|
329
|
+
/* ---------- skeleton ---------- */
|
|
330
|
+
|
|
331
|
+
.skel { display: grid; gap: 12px; max-width: var(--ch-reading-max); margin: 0 auto; padding: var(--ch-page-inset-top) var(--ch-page-gutter); }
|
|
332
|
+
.skel span { display: block; height: 16px; border-radius: var(--dsw-radius-sm); background: var(--dsw-alias-bg-skeleton); }
|
|
333
|
+
.skel span:first-child { height: 40px; width: 55%; }
|
|
334
|
+
.skel span:last-child { width: 70%; }
|
|
335
|
+
|
|
336
|
+
/* ---------- 依赖关系图(执行路径 disclosure 内容) ---------- */
|
|
337
|
+
|
|
338
|
+
.graphcard {
|
|
339
|
+
margin-top: 12px;
|
|
340
|
+
border: var(--hairline) solid var(--dsw-alias-border-l2);
|
|
341
|
+
border-radius: var(--dsw-radius-lg);
|
|
342
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
343
|
+
padding: 12px 16px 16px;
|
|
344
|
+
}
|
|
345
|
+
.graphcard__toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
346
|
+
.graphcard__title { font-size: var(--dsw-font-s-14-font-size, 14px); font-weight: 600; }
|
|
347
|
+
.graphcard__tools { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
348
|
+
.select-sm {
|
|
349
|
+
height: 28px; padding: 0 8px;
|
|
350
|
+
border-radius: var(--dsw-radius-sm);
|
|
351
|
+
border: var(--hairline) solid var(--dsw-alias-border-l4);
|
|
352
|
+
background: var(--dsw-alias-bg-layer-3);
|
|
353
|
+
color: var(--dsw-alias-label-primary);
|
|
354
|
+
font-family: inherit;
|
|
355
|
+
font-size: var(--dsw-font-xxs-12-font-size, 12px);
|
|
356
|
+
}
|
|
357
|
+
.check { display: inline-flex; align-items: center; gap: 6px; font-size: var(--dsw-font-xxs-12-font-size, 12px); color: var(--dsw-alias-label-secondary); cursor: pointer; }
|
|
358
|
+
.check input { accent-color: var(--dsw-alias-state-business-primary); }
|
|
359
|
+
.zoomgroup { display: inline-flex; align-items: stretch; border: var(--hairline) solid var(--dsw-alias-border-l3); border-radius: var(--dsw-radius-sm); overflow: hidden; }
|
|
360
|
+
.zoomgroup button { height: 28px; min-width: 28px; border: 0; background: none; color: var(--dsw-alias-label-secondary); cursor: pointer; font-size: 12px; padding: 0 6px; font-family: inherit; }
|
|
361
|
+
.zoomgroup button:hover { background: var(--dsw-alias-interactive-bg-hover); }
|
|
362
|
+
.zoomgroup .zoomval { min-width: 44px; display: flex; align-items: center; justify-content: center; font-size: var(--dsw-font-xxs-12-font-size, 12px); font-variant-numeric: tabular-nums; border-left: var(--hairline) solid var(--dsw-alias-border-l3); border-right: var(--hairline) solid var(--dsw-alias-border-l3); }
|
|
363
|
+
|
|
364
|
+
.canvas {
|
|
365
|
+
position: relative;
|
|
366
|
+
margin-top: 12px;
|
|
367
|
+
height: 360px;
|
|
368
|
+
border-radius: var(--dsw-radius-md);
|
|
369
|
+
background: var(--dsw-alias-bg-base);
|
|
370
|
+
border: var(--hairline) solid var(--dsw-alias-border-l1);
|
|
371
|
+
overflow: hidden;
|
|
372
|
+
}
|
|
373
|
+
.canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
|
|
374
|
+
.edge { stroke: var(--dsw-alias-label-tertiary); stroke-width: 1.5; fill: none; }
|
|
375
|
+
.edge--staged { stroke: var(--dsw-alias-state-business-primary); stroke-width: 2; stroke-dasharray: 5 4; }
|
|
376
|
+
.edge--proposed { stroke: var(--dsw-alias-label-tertiary); stroke-dasharray: 2 4; }
|
|
377
|
+
.edge--history { stroke: var(--dsw-alias-label-tertiary); stroke-dasharray: 8 3 2 3; }
|
|
378
|
+
.lane { position:absolute; z-index:3; left:0; right:0; display:flex; align-items:center; gap:6px; height:18px; padding:0 8px; border-bottom:var(--hairline) solid var(--dsw-alias-border-l2); color:var(--dsw-alias-label-tertiary); background:var(--dsw-alias-bg-base); font-size:var(--dsw-font-xxxs-11-font-size); font-weight:600; }
|
|
379
|
+
.lane b { color:var(--dsw-alias-label-secondary); font-weight:500; }
|
|
380
|
+
.swatch--history { border-top:1.5px dashed var(--dsw-alias-label-tertiary); }
|
|
381
|
+
|
|
382
|
+
/* 节点:固定 px 几何 + 两行截断(修复旧 em 布局的文本裁切) */
|
|
383
|
+
.node {
|
|
384
|
+
position: absolute;
|
|
385
|
+
width: 184px;
|
|
386
|
+
padding: 8px 10px;
|
|
387
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
388
|
+
border: var(--hairline) solid var(--dsw-alias-border-l3);
|
|
389
|
+
border-left: 3px solid var(--dsw-alias-label-tertiary);
|
|
390
|
+
border-radius: var(--dsw-radius-md);
|
|
391
|
+
cursor: pointer;
|
|
392
|
+
text-align: left;
|
|
393
|
+
font: inherit;
|
|
394
|
+
color: inherit;
|
|
395
|
+
}
|
|
396
|
+
.node:hover { background: var(--dsw-alias-interactive-bg-hover); }
|
|
397
|
+
.node--done { border-left-color: var(--dsw-alias-state-success-primary); }
|
|
398
|
+
.node--in-progress { border-left-color: var(--dsw-alias-state-business-primary); }
|
|
399
|
+
.node--blocked { border-left-color: var(--dsw-alias-state-warn-primary); }
|
|
400
|
+
.node--conflict { border-color: var(--dsw-alias-state-error-primary); border-left-color: var(--dsw-alias-state-error-primary); }
|
|
401
|
+
.node--candidate { border-style: dashed; }
|
|
402
|
+
.node--staged { outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color); outline-offset: 1px; }
|
|
403
|
+
.node--selected { border-color: var(--dsw-alias-state-business-primary); }
|
|
404
|
+
.node__head { display: flex; align-items: center; gap: 6px; }
|
|
405
|
+
.node__key { font-size: var(--dsw-font-xxxs-11-font-size, 11px); font-weight: 600; color: var(--dsw-alias-state-business-primary); font-variant-numeric: tabular-nums; }
|
|
406
|
+
.node__head .chip { margin-left: auto; }
|
|
407
|
+
.node__text {
|
|
408
|
+
margin-top: 4px;
|
|
409
|
+
font-size: var(--dsw-font-xs-13-font-size, 13px);
|
|
410
|
+
line-height: var(--dsw-font-xs-13-line-height, 20px);
|
|
411
|
+
display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
|
|
412
|
+
overflow: hidden; overflow-wrap: anywhere;
|
|
413
|
+
}
|
|
414
|
+
.node__foot { margin-top: 6px; font-size: var(--dsw-font-xxs-12-font-size, 12px); color: var(--dsw-alias-label-tertiary); display: flex; gap: 8px; align-items: center; }
|
|
415
|
+
|
|
416
|
+
.inspector {
|
|
417
|
+
margin-top: 12px;
|
|
418
|
+
border-top: var(--hairline) solid var(--dsw-alias-border-l2);
|
|
419
|
+
padding-top: 12px;
|
|
420
|
+
display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
|
|
421
|
+
}
|
|
422
|
+
.inspector__main { flex: 1 1 320px; min-width: 0; }
|
|
423
|
+
.inspector__title { display: flex; align-items: center; gap: 8px; }
|
|
424
|
+
.inspector__title .node__key { font-size: var(--dsw-font-xxs-12-font-size, 12px); }
|
|
425
|
+
.inspector__title b { font-size: var(--dsw-font-s-14-font-size, 14px); font-weight: 600; }
|
|
426
|
+
.inspector__rels { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
|
|
427
|
+
.inspector__rels .lbl { font-size: var(--dsw-font-xxs-12-font-size, 12px); color: var(--dsw-alias-label-tertiary); }
|
|
428
|
+
.inspector__actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
|
|
429
|
+
.graphnote { margin-top: 10px; font-size: var(--dsw-font-xxs-12-font-size, 12px); color: var(--dsw-alias-label-tertiary); line-height: 18px; }
|