@sanqianx/ai-coding-workflow 0.2.0 → 0.2.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/docs/contract.md +1 -1
- package/package.json +1 -1
- package/src/checks.js +1 -0
- package/src/identity.js +1 -1
- package/ui/app.css +96 -186
- package/ui/app.js +393 -624
- package/ui/index.html +21 -32
package/docs/contract.md
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
| 方法与路径 | 语义 |
|
|
25
25
|
| --- | --- |
|
|
26
|
-
| `GET /capabilities` | 版本化能力开关(team/tasks/bridgeConsumer/reviews/checks/projectRepoBinding/memberMemory/digests/internalEndpoints
|
|
26
|
+
| `GET /capabilities` | 版本化能力开关(team/tasks/bridgeConsumer/reviews/checks/projectRepoBinding/memberMemory/digests/internalEndpoints);reviews=true 表示模块支持审查编排(原生 Reviewer 作业),项目是否就绪以其设置为准,未交付能力必须显式 false |
|
|
27
27
|
| `GET /team` | 默认团队读取:`{team\|null, memberCount, status:'empty'\|'ready'}` |
|
|
28
28
|
| `POST /team` | 幂等创建(requestId、members、projectSettings)。members 可以传任意非空成员列表,省略时使用开发与 Review 两个模板成员。同 ID 重试复用原结果 |
|
|
29
29
|
| `PATCH /team` | CAS 改名(expectedRevision) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanqianx/ai-coding-workflow",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Independent workflow module for project-knowledge: AI team, cross-project business tasks, fixed workflow orchestration, deterministic quality checks, review coordination, delivery decisions, daily digests and reminders.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
package/src/checks.js
CHANGED
|
@@ -199,6 +199,7 @@ async function runChecks(repoPath, { tools = ['eslint'], policyHash = 'policy:no
|
|
|
199
199
|
toolchainHash: probe.toolchainHash,
|
|
200
200
|
acceptanceRevision,
|
|
201
201
|
evidenceKey: evidenceKey({ snapshotId: snapshot.snapshotId, baselineId: null, policyHash, toolchainHash: probe.toolchainHash, acceptanceRevision }),
|
|
202
|
+
commandSummary: argv.slice(1).map(a => (/[/\s]/.test(a) ? JSON.stringify(a.split(/[/\\]/).pop()) : a)).join(' ').slice(0, 200),
|
|
202
203
|
receivedAt: new Date().toISOString(),
|
|
203
204
|
});
|
|
204
205
|
}
|
package/src/identity.js
CHANGED
|
@@ -18,7 +18,7 @@ const CAPABILITIES = {
|
|
|
18
18
|
team: true, // default team + members (W2)
|
|
19
19
|
tasks: true, // business tasks + session bindings + checkpoints (W3)
|
|
20
20
|
bridgeConsumer: true, // independent Bridge journal consumer (W3)
|
|
21
|
-
reviews:
|
|
21
|
+
reviews: true, // model review orchestration (native reviewer jobs; per-project readiness stays a settings concern),
|
|
22
22
|
checks: true, // deterministic quality CLI runner (eslint/knip subprocess receipts)
|
|
23
23
|
projectRepoBinding: true, // trusted projectId → canonical Git root binding (M0-A)
|
|
24
24
|
memberMemory: true, // member binding validation for engine reads (W4)
|
package/ui/app.css
CHANGED
|
@@ -1,188 +1,98 @@
|
|
|
1
|
-
/* ai-coding-workflow — AI 团队页
|
|
2
|
-
Family design tokens (grey four-layer + single blue + semantic red/green).
|
|
3
|
-
No external fonts/CDN; offline availability is a family console standard. */
|
|
4
|
-
:root {
|
|
5
|
-
--page: #f5f6f8;
|
|
6
|
-
--surface: #ffffff;
|
|
7
|
-
--surface2: #eef0f3;
|
|
8
|
-
--surface3: #e3e6ea;
|
|
9
|
-
--line: #d5d9df;
|
|
10
|
-
--text: #1f2429;
|
|
11
|
-
--muted: #5b6470;
|
|
12
|
-
--faint: #8a93a0;
|
|
13
|
-
--nav: #f0f2f5;
|
|
14
|
-
--accent: #2f6fed;
|
|
15
|
-
--accent-soft: #e8effd;
|
|
16
|
-
--good: #1e8e5a;
|
|
17
|
-
--good-soft: #e3f4ec;
|
|
18
|
-
--bad: #c94040;
|
|
19
|
-
--bad-soft: #faeaea;
|
|
20
|
-
--radius: 10px;
|
|
21
|
-
--shadow: 0 1px 3px rgba(31, 36, 41, 0.08);
|
|
22
|
-
font-size: 15px;
|
|
23
|
-
}
|
|
24
|
-
@media (prefers-color-scheme: dark) {
|
|
25
|
-
:root {
|
|
26
|
-
--page: #14171b;
|
|
27
|
-
--surface: #1d2127;
|
|
28
|
-
--surface2: #262b33;
|
|
29
|
-
--surface3: #303641;
|
|
30
|
-
--line: #3a414d;
|
|
31
|
-
--text: #e8ebef;
|
|
32
|
-
--muted: #a6aeb9;
|
|
33
|
-
--faint: #737d8a;
|
|
34
|
-
--nav: #191d22;
|
|
35
|
-
--accent: #5b8ff0;
|
|
36
|
-
--accent-soft: #22344f;
|
|
37
|
-
--good: #3fae7f;
|
|
38
|
-
--good-soft: #1d3429;
|
|
39
|
-
--bad: #d96666;
|
|
40
|
-
--bad-soft: #3d2222;
|
|
41
|
-
--shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
* { box-sizing: border-box; }
|
|
45
|
-
html, body { margin: 0; padding: 0; }
|
|
46
|
-
body {
|
|
47
|
-
background: var(--page);
|
|
48
|
-
color: var(--text);
|
|
49
|
-
font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
|
|
50
|
-
min-height: 100vh;
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
}
|
|
54
|
-
body[data-embed="1"] .brand-bar { display: none; }
|
|
55
1
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
2
|
+
:root {
|
|
3
|
+
color-scheme: light; --canvas:#f4f6fa; --surface:#fff; --soft:#f6f8fb; --text:#172537; --dim:#516176;
|
|
4
|
+
--muted:#66768a; --line:#dce3eb; --accent:#225dc9; --accent-soft:#eaf1ff; --tint-line:#c8d8fa;
|
|
5
|
+
--green:#176649; --green-bg:#e4f4ec; --orange:#89500d; --orange-bg:#fff1d9; --red:#a53937; --red-bg:#ffedeb;
|
|
6
|
+
--violet:#6547a4; --violet-bg:#f0eafa; --shadow:0 3px 14px rgba(30,55,85,.045);
|
|
7
|
+
--mono:"IBM Plex Mono",Consolas,"Microsoft YaHei UI",monospace;
|
|
8
|
+
font-family:Inter,"Segoe UI","Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif;
|
|
9
|
+
}
|
|
10
|
+
*{box-sizing:border-box}
|
|
11
|
+
body{margin:0;background:var(--canvas);color:var(--text);font-size:1rem;line-height:1.55}
|
|
12
|
+
button,input,select,textarea{font:inherit;color:inherit} button,select{cursor:pointer}
|
|
13
|
+
button{border:0;background:none} a{color:var(--accent)} h1,h2,h3,h4,p{margin:0} h1,h2,h3,h4{line-height:1.35}
|
|
14
|
+
[hidden]{display:none!important} :focus-visible{outline:3px solid #699cff;outline-offset:3px} ::selection{background:#ccddff;color:#18243a}
|
|
15
|
+
.shell{max-width:1496px;margin:0 auto;padding:0 clamp(18px,4vw,64px)}
|
|
16
|
+
header{background:var(--surface);border-bottom:1px solid var(--line)}
|
|
17
|
+
.top{display:flex;align-items:stretch;min-height:64px;gap:clamp(16px,3vw,48px)}
|
|
18
|
+
.brand,.nav,.inline,.row,.actions,.card-head,.titleline,.meta,.copybar{display:flex;align-items:center}
|
|
19
|
+
.brand{gap:11px;white-space:nowrap;font-size:1.06rem;font-weight:740;letter-spacing:.01em}
|
|
20
|
+
.brand small{font-size:.85rem;color:var(--dim);border-left:1px solid var(--line);padding-left:12px;font-weight:500}
|
|
21
|
+
.logo{display:grid;grid-template:repeat(2,8px)/repeat(2,8px);gap:3px;width:32px;height:32px;place-content:center;background:#225dc9;border-radius:9px}
|
|
22
|
+
.logo i{display:block;background:#fff;border-radius:2px}.logo i:nth-child(2){background:#9cc1ff}.logo i:nth-child(3){background:#c2d8ff}
|
|
23
|
+
.nav{align-self:stretch;gap:22px}.nav button{align-self:stretch;border-bottom:3px solid transparent;padding:3px 2px 0;color:var(--dim);font-size:.95rem;font-weight:620}
|
|
24
|
+
.nav button[aria-current=page]{color:var(--accent);border-color:var(--accent)}
|
|
25
|
+
.preview-mark{align-self:center;margin-left:auto;color:var(--dim);border:1px solid var(--line);border-radius:999px;padding:3px 11px;font-size:.8rem;white-space:nowrap}
|
|
26
|
+
.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 0 22px}
|
|
27
|
+
h1{font-size:clamp(1.55rem,2.6vw,2rem);letter-spacing:-.035em}.page-head p{color:var(--dim);margin-top:5px;font-size:.95rem}
|
|
28
|
+
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:.9rem;font-weight:620;line-height:1.45}
|
|
29
|
+
.btn:hover,.task-btn:hover,.link:hover{color:var(--accent);background:var(--accent-soft)}
|
|
30
|
+
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.primary:hover{filter:brightness(.92)}
|
|
31
|
+
.chat-icon{width:16px;height:13px;border:1.7px solid currentColor;border-radius:4px;position:relative;margin-right:1px}.chat-icon:after{content:"";position:absolute;bottom:-3px;left:2px;width:4px;height:4px;border-left:1.7px solid currentColor;transform:skew(-23deg)}
|
|
32
|
+
.board{display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr);gap:20px;align-items:start;margin-bottom:36px}
|
|
33
|
+
.card{background:var(--surface);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);min-width:0}
|
|
34
|
+
.queue{overflow:hidden}.queue-head{display:flex;align-items:center;justify-content:space-between;padding:18px 17px 11px}
|
|
35
|
+
.queue-head h2,.box h3{font-size:1.02rem}.tally,.small,.stamp{font-size:.82rem;color:var(--muted)}
|
|
36
|
+
.search{display:flex;gap:10px;align-items:center;margin:0 14px 13px;padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:var(--soft)}
|
|
37
|
+
.glass{width:13px;height:13px;border:1.6px solid var(--muted);border-radius:50%;position:relative;flex:0 0 13px}.glass:after{content:"";position:absolute;width:5px;height:1.6px;background:var(--muted);bottom:-2px;right:-3px;transform:rotate(45deg)}
|
|
38
|
+
.search input{border:0;background:none;outline:0;min-width:0;width:100%;font-size:.88rem}.search:focus-within{outline:2px solid var(--accent)}
|
|
39
|
+
.task-list{border-top:1px solid var(--line)}.task-btn{display:block;text-align:left;width:100%;padding:15px 16px 14px 18px;border-left:3px solid transparent;border-bottom:1px solid var(--line)}
|
|
40
|
+
.task-btn:last-child{border-bottom:0}.task-btn[aria-current=true]{background:var(--accent-soft);border-left-color:var(--accent)}
|
|
41
|
+
.task-btn strong{display:block;font-size:.95rem;line-height:1.5}.task-btn .row{gap:6px;margin-top:7px;justify-content:space-between}
|
|
42
|
+
.task-btn .small{font-size:.8rem}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:2px 7px;font-size:.8rem;font-weight:620;white-space:nowrap;line-height:1.55;background:var(--soft);color:var(--dim)}
|
|
43
|
+
.badge.good,.mark.good,.ava.good{background:var(--green-bg);color:var(--green)}.badge.work,.mark.work,.ava.work{background:var(--accent-soft);color:var(--accent)}
|
|
44
|
+
.badge.warn,.mark.warn{background:var(--orange-bg);color:var(--orange)}.badge.block,.mark.block{background:var(--red-bg);color:var(--red)}
|
|
45
|
+
.ava.violet{background:var(--violet-bg);color:var(--violet)}
|
|
46
|
+
.detail{overflow:hidden}.detail-top{padding:22px 25px 17px}
|
|
47
|
+
.project-line{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--dim);font-size:.86rem;margin-bottom:8px;flex-wrap:wrap}
|
|
48
|
+
.demo-select{display:inline-flex;gap:6px;align-items:center;color:var(--muted);font-size:.82rem}.demo-select select{font-size:inherit}
|
|
49
|
+
select{padding:5px 22px 5px 9px;border:1px solid var(--line);background:var(--surface);border-radius:6px}
|
|
50
|
+
.titleline{gap:12px;flex-wrap:wrap}.titleline h2{font-size:clamp(1.25rem,2vw,1.6rem);letter-spacing:-.025em}
|
|
51
|
+
.meta{flex-wrap:wrap;gap:6px 14px;font-size:.84rem;color:var(--dim);margin-top:6px}.mono,code{font-family:var(--mono);overflow-wrap:anywhere}
|
|
52
|
+
code{font-size:.9em;background:var(--soft);padding:1px 4px;border-radius:4px}.meta button,.link{font-weight:600;color:var(--accent);font-size:.86rem;padding:3px 4px;border-radius:4px}
|
|
53
|
+
.action-banner{display:flex;align-items:flex-start;gap:12px;background:var(--accent-soft);border:1px solid var(--tint-line);border-radius:9px;margin-top:17px;padding:12px 14px}
|
|
54
|
+
.action-symbol{flex-shrink:0;display:grid;place-items:center;color:var(--accent);background:var(--surface);width:30px;height:30px;border-radius:8px;font-weight:bold}
|
|
55
|
+
.action-banner strong{display:block;font-size:.98rem}.action-banner p{margin-top:2px;font-size:.89rem;color:var(--dim)}.action-banner.block{border-color:#e3bebd;background:var(--red-bg)}.action-banner.good{border-color:#bedbcf;background:var(--green-bg)}
|
|
56
|
+
.subnav{display:flex;gap:22px;padding:0 25px;border-bottom:1px solid var(--line);overflow:auto}
|
|
57
|
+
.subnav button{white-space:nowrap;color:var(--dim);padding:10px 0 11px;border-bottom:2px solid transparent;font-size:.93rem;font-weight:650}
|
|
58
|
+
.subnav button[aria-current=page]{border-color:var(--accent);color:var(--accent)}.count{display:inline-block;background:var(--soft);padding:0 5px;border-radius:4px;margin-left:4px;font:500 .76rem/1.6 var(--mono);color:var(--dim)}
|
|
59
|
+
.content{padding:21px 25px 24px}.cols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(205px,.85fr);gap:20px;align-items:start}
|
|
60
|
+
.card-head{justify-content:space-between;gap:10px;margin-bottom:11px}.card-head h3,.content>h3{font-size:1.04rem}.step{display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;position:relative;padding:0 0 18px}
|
|
61
|
+
.step:not(:last-child):before{content:"";position:absolute;left:12px;top:25px;bottom:1px;width:1px;background:var(--line)}.step:last-child{padding-bottom:0}
|
|
62
|
+
.mark{z-index:1;display:grid;place-items:center;width:25px;height:25px;font-size:.92rem;font-weight:bold;border-radius:50%;background:var(--soft);color:var(--muted);border:1px solid var(--line)}
|
|
63
|
+
.step .row,.box .row{justify-content:space-between;gap:8px}.step h4{font-size:.95rem}.step p,.box p{font-size:.88rem;color:var(--dim);margin-top:4px}
|
|
64
|
+
.box{background:var(--soft);border:1px solid var(--line);border-radius:9px;padding:14px 15px}.box+.box{margin-top:13px}
|
|
65
|
+
.person{display:flex;gap:9px;align-items:center;margin-top:12px;min-width:0}.ava{height:30px;width:30px;flex:0 0 30px;border-radius:8px;display:grid;place-items:center;font:700 .84rem var(--mono)}
|
|
66
|
+
.person b{font-size:.9rem}.person small{display:block;font-size:.79rem;color:var(--muted)}.people details{width:100%}
|
|
67
|
+
.focus-finding{margin-top:17px;border:1px solid var(--line);border-radius:8px;padding:10px 12px}.focus-finding>p{margin-top:4px;color:var(--dim);font-size:.9rem}
|
|
68
|
+
.focus-finding .row{gap:9px;justify-content:space-between}.focus-finding strong{font-size:.9rem}
|
|
69
|
+
.paper{border:1px solid var(--line);border-radius:9px;padding:13px 15px;background:var(--surface);margin-top:10px}
|
|
70
|
+
.paper h4{font-size:.98rem}.paper p{font-size:.91rem;color:var(--dim);margin:6px 0 0}
|
|
71
|
+
.paper .row{justify-content:space-between;gap:12px;align-items:flex-start}.paper .stamp{margin-top:7px}
|
|
72
|
+
.paper details,.box details{border-top:1px solid var(--line);margin-top:11px;padding-top:8px}summary{cursor:pointer;color:var(--accent);font-size:.86rem;font-weight:620}
|
|
73
|
+
.facts{display:grid;grid-template-columns:minmax(85px,auto) minmax(0,1fr);gap:5px 14px;font-size:.87rem;margin:9px 0 0}
|
|
74
|
+
.facts dt{color:var(--muted)}.facts dd{margin:0;overflow-wrap:anywhere}.empty{padding:14px;color:var(--dim);font-size:.92rem}
|
|
75
|
+
.mobile-list{display:none}.settings{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr);gap:20px;padding-bottom:32px}
|
|
76
|
+
.settings .card{padding:21px 23px}.settings h2{font-size:1.12rem}.settings p,.settings label{font-size:.91rem;color:var(--dim)}
|
|
77
|
+
.settings .project-pick,.field{display:block;margin-top:13px}.project-pick select,.field select{display:block;margin-top:4px;max-width:100%;width:100%;padding:7px}
|
|
78
|
+
.field select:disabled{opacity:.65;cursor:default}.toggle{display:flex;align-items:center;gap:8px;margin-top:14px}.toggle input{width:16px;height:16px;accent-color:var(--accent)}
|
|
79
|
+
.actions{justify-content:space-between;gap:12px;margin-top:16px;flex-wrap:wrap}.rule{height:1px;background:var(--line);margin:17px 0}
|
|
80
|
+
dialog{margin:auto;width:min(540px,calc(100% - 28px));border:1px solid var(--line);border-radius:14px;padding:23px;background:var(--surface);color:var(--text);box-shadow:0 12px 44px #15284d33}dialog::backdrop{background:#10203966}
|
|
81
|
+
dialog .card-head{margin-bottom:8px}dialog h2{font-size:1.2rem}dialog p{color:var(--dim);font-size:.92rem}
|
|
82
|
+
textarea{display:block;width:100%;min-height:115px;border:1px solid var(--line);border-radius:8px;margin:12px 0;padding:10px;background:var(--soft);resize:vertical;font-size:.93rem}
|
|
83
|
+
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:9px 16px;background:#20324b;color:white;border-radius:8px;box-shadow:var(--shadow);z-index:3;font-size:.9rem;max-width:92vw}
|
|
84
|
+
@media(min-width:1450px){.detail-top{padding:25px 30px 19px}.subnav{padding:0 30px}.content{padding:24px 30px}.step{padding-bottom:23px}}
|
|
85
|
+
@media(max-width:1050px){.brand small{display:none}.board{grid-template-columns:218px minmax(0,1fr);gap:14px}.cols{grid-template-columns:minmax(0,1fr)}.people{display:flex;flex-wrap:wrap;gap:10px 20px}.people h3{width:100%}.people .person{margin:0}.detail-top,.content{padding:17px}.subnav{padding:0 17px}}
|
|
86
|
+
@media(max-width:740px){.shell{padding:0 14px}.top{min-height:55px;gap:16px}.nav{gap:12px}.nav button{font-size:.86rem}.brand{gap:6px;font-size:1rem}.logo{width:27px;height:27px}.preview-mark{font-size:.72rem;padding:2px 6px}.page-head{padding:18px 0 13px;gap:8px}.page-head p{font-size:.83rem}.page-head .btn{font-size:.83rem;padding:7px 9px;flex-shrink:0}.board,.settings{display:block}.settings .card+.card{margin-top:12px}.queue{display:none}.board[data-list=yes] .queue{display:block}.board[data-list=yes] .detail{display:none}.mobile-list{display:inline-flex;margin-bottom:9px}.subnav{gap:14px}.subnav button{font-size:.87rem}.titleline{gap:8px}.detail-top,.content{padding:14px}.settings .card{padding:16px}.stamp{font-size:.78rem}}
|
|
87
|
+
@media(max-width:460px){.nav{gap:8px}.top{gap:12px}.preview-mark{max-width:5.8em;line-height:1.25;text-align:center;white-space:normal}.chat-icon{display:none}.page-head p{max-width:17em}.demo-select{gap:3px}.subnav{padding:0 12px;gap:12px}.content .row{flex-wrap:wrap}.facts{grid-template-columns:76px minmax(0,1fr)}}
|
|
88
|
+
@media(prefers-color-scheme:dark){:root{color-scheme:dark;--canvas:#111821;--surface:#192333;--soft:#202c3d;--text:#e6edf7;--dim:#bdc9d9;--muted:#a2b1c5;--line:#344357;--accent:#8bb3ff;--accent-soft:#233957;--tint-line:#3c5781;--green:#9bd6b9;--green-bg:#203f35;--orange:#f0c585;--orange-bg:#473721;--red:#f2b1ab;--red-bg:#482c32;--violet:#d3b8f5;--violet-bg:#3a3052}.btn.primary{background:#315faa;border-color:#4471bd}.action-banner.block,.action-banner.good{border-color:var(--line)}}
|
|
69
89
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
.tab:hover { color: var(--text); }
|
|
80
|
-
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
|
|
81
|
-
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
82
|
-
|
|
83
|
-
main { flex: 1; padding: 22px; max-width: 1080px; width: 100%; margin: 0 auto; }
|
|
84
|
-
.panel { display: flex; flex-direction: column; gap: 14px; }
|
|
85
|
-
.hidden { display: none !important; }
|
|
86
|
-
|
|
87
|
-
.card {
|
|
88
|
-
background: var(--surface); border: 1px solid var(--line);
|
|
89
|
-
border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
|
|
90
|
-
}
|
|
91
|
-
.card h2 { font-size: 15px; margin: 0 0 10px; }
|
|
92
|
-
.card p { margin: 6px 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
|
|
93
|
-
|
|
94
|
-
.empty-state { text-align: center; padding: 42px 20px; }
|
|
95
|
-
.empty-state .glyph { font-size: 34px; color: var(--faint); margin-bottom: 10px; }
|
|
96
|
-
.empty-state h2 { font-size: 17px; margin: 0 0 8px; color: var(--text); }
|
|
97
|
-
.empty-state p { color: var(--muted); }
|
|
98
|
-
|
|
99
|
-
button.primary {
|
|
100
|
-
appearance: none; border: none; cursor: pointer; border-radius: 8px;
|
|
101
|
-
background: var(--accent); color: #fff; font-size: 14px; padding: 10px 18px;
|
|
102
|
-
}
|
|
103
|
-
button.primary:hover { filter: brightness(1.06); }
|
|
104
|
-
button.primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
105
|
-
button.ghost {
|
|
106
|
-
appearance: none; cursor: pointer; border-radius: 8px; border: 1px solid var(--line);
|
|
107
|
-
background: transparent; color: var(--text); font-size: 13.5px; padding: 9px 14px;
|
|
108
|
-
}
|
|
109
|
-
button.ghost:hover { background: var(--surface2); }
|
|
110
|
-
|
|
111
|
-
.badge {
|
|
112
|
-
display: inline-block; border-radius: 999px; padding: 2px 10px;
|
|
113
|
-
font-size: 12px; background: var(--surface3); color: var(--muted);
|
|
114
|
-
}
|
|
115
|
-
.badge.ok { background: var(--good-soft); color: var(--good); }
|
|
116
|
-
.badge.warn { background: var(--bad-soft); color: var(--bad); }
|
|
117
|
-
.badge.info { background: var(--accent-soft); color: var(--accent); }
|
|
118
|
-
|
|
119
|
-
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 13.5px; }
|
|
120
|
-
.kv dt { color: var(--muted); margin: 0; }
|
|
121
|
-
.kv dd { margin: 0; word-break: break-all; }
|
|
122
|
-
|
|
123
|
-
.toast {
|
|
124
|
-
position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
|
|
125
|
-
background: var(--surface); color: var(--text); border: 1px solid var(--line);
|
|
126
|
-
border-radius: 8px; padding: 10px 18px; font-size: 13.5px; box-shadow: var(--shadow);
|
|
127
|
-
z-index: 30;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/* wizard */
|
|
131
|
-
.wizard { display: flex; flex-direction: column; gap: 16px; }
|
|
132
|
-
.wizard-steps { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
133
|
-
.wstep {
|
|
134
|
-
font-size: 12.5px; color: var(--faint); padding: 4px 12px;
|
|
135
|
-
border: 1px solid var(--line); border-radius: 999px;
|
|
136
|
-
}
|
|
137
|
-
.wstep.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
|
|
138
|
-
.wstep.done { color: var(--good); border-color: var(--good); }
|
|
139
|
-
.member-draft {
|
|
140
|
-
border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
|
|
141
|
-
display: flex; flex-direction: column; gap: 10px; margin: 0;
|
|
142
|
-
}
|
|
143
|
-
.member-draft legend { font-size: 13px; color: var(--muted); padding: 0 6px; }
|
|
144
|
-
.member-draft label, label.block { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
|
|
145
|
-
.member-draft input, .member-draft select, label.block input {
|
|
146
|
-
border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px;
|
|
147
|
-
background: var(--surface); color: var(--text); font-size: 14px;
|
|
148
|
-
}
|
|
149
|
-
.member-draft input:focus-visible, .member-draft select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
150
|
-
.hint { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.6; }
|
|
151
|
-
.hint.warn { color: var(--bad); }
|
|
152
|
-
.hint-inline { color: var(--faint); }
|
|
153
|
-
.linklike { appearance: none; background: none; border: none; color: var(--accent); cursor: pointer; font-size: inherit; padding: 0; text-decoration: underline; }
|
|
154
|
-
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; }
|
|
155
|
-
.group-checks { display: flex; flex-direction: column; gap: 6px; }
|
|
156
|
-
.group-checks .check { flex-direction: row; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); cursor: pointer; }
|
|
157
|
-
.group-checks .check input { flex: none; width: auto; margin: 0; }
|
|
158
|
-
.group-checks .check small { color: var(--faint); }
|
|
159
|
-
.wizard #wzAddMember, .member-draft [data-remove-member] { align-self: flex-start; }
|
|
160
|
-
|
|
161
|
-
/* member cards + tables */
|
|
162
|
-
.member-card { display: flex; flex-direction: column; gap: 10px; }
|
|
163
|
-
.member-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
|
|
164
|
-
.member-head h2 small { color: var(--faint); font-weight: 400; margin-left: 6px; }
|
|
165
|
-
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
|
166
|
-
.actions-row select { border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; background: var(--surface); color: var(--text); font-size: 13px; }
|
|
167
|
-
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
|
|
168
|
-
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
|
|
169
|
-
.table th { color: var(--muted); font-weight: 500; }
|
|
170
|
-
|
|
171
|
-
/* task list + detail */
|
|
172
|
-
.task-list { display: flex; flex-direction: column; gap: 12px; }
|
|
173
|
-
.task-row { cursor: pointer; }
|
|
174
|
-
.task-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
175
|
-
.task-row:hover { border-color: var(--accent); }
|
|
176
|
-
.sub-tabs { border-bottom: 1px solid var(--line); margin: 6px 0 12px; }
|
|
177
|
-
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
|
|
178
|
-
.row b { font-size: 13.5px; font-weight: 600; }
|
|
179
|
-
.row small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
|
|
180
|
-
.small-empty { color: var(--muted); font-size: 13px; margin: 8px 0; }
|
|
181
|
-
h3 { font-size: 13.5px; margin: 14px 0 4px; color: var(--muted); font-weight: 600; }
|
|
182
|
-
|
|
183
|
-
@media (max-width: 640px) {
|
|
184
|
-
main { padding: 14px; }
|
|
185
|
-
.brand-bar { padding: 12px 14px; }
|
|
186
|
-
.tabs { padding: 0 14px; }
|
|
187
|
-
.kv { grid-template-columns: 1fr; }
|
|
188
|
-
}
|
|
90
|
+
body[data-embed="1"] header{display:none}
|
|
91
|
+
.service{align-self:center;margin-left:auto;display:flex;align-items:center;gap:7px;color:var(--dim);font-size:.8rem;white-space:nowrap}
|
|
92
|
+
.dot{width:9px;height:9px;border-radius:50%;background:var(--muted);flex:0 0 9px}
|
|
93
|
+
.dot.ok{background:#1f9d63}.dot.down{background:var(--red)}.dot.unknown{background:var(--muted)}
|
|
94
|
+
.member-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.member-row:last-child{border-bottom:0}
|
|
95
|
+
.member-row b{font-size:.92rem}.member-row small{display:block;font-size:.79rem;color:var(--muted)}
|
|
96
|
+
.member-row .badge{margin-left:auto}
|
|
97
|
+
.task-btn .small.mono,.meta .mono{font-family:var(--mono)}
|
|
98
|
+
@media(prefers-color-scheme:dark){.dot.ok{background:#3ddc97}}
|