@skillre/dsh-plugin-work-dashboard 0.12.0 → 0.13.0
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/README.en.md +3 -3
- package/README.md +8 -15
- package/docs/POC-3.2-/350/277/233/345/261/225/345/245/221/347/272/246.md +21 -0
- package/docs/Super-Agent-3.2-/350/201/224/350/260/203/346/211/213/345/206/214.md +38 -0
- package/lib/client/css/detail.d.ts +1 -1
- package/lib/client/css/detail.js +4 -0
- package/lib/client/text.js +6 -10
- package/lib/client.js +72 -36
- package/lib/form.js +118 -35
- package/lib/gap.d.ts +2 -2
- package/lib/gap.js +21 -14
- package/lib/index.js +12 -13
- package/lib/progress.d.ts +8 -0
- package/lib/progress.js +20 -0
- package/lib/report-contract.d.ts +315 -0
- package/lib/report-contract.js +119 -0
- package/lib/report-form.d.ts +3 -0
- package/lib/report-form.js +41 -0
- package/lib/report-import.d.ts +9 -0
- package/lib/report-import.js +118 -0
- package/lib/report-page.d.ts +60 -0
- package/lib/report-page.js +3424 -0
- package/lib/report-style.d.ts +17 -0
- package/lib/report-style.js +459 -0
- package/lib/store.js +8 -4
- package/lib/timeline.js +7 -6
- package/lib/types.d.ts +38 -2
- package/package.json +1 -1
- package/skills/poc-export/SKILL.md +10 -125
- package/skills/poc-export/scripts/export-form.mjs +15 -69
- package/skills/poc-ledger/SKILL.md +14 -25
- package/skills/poc-submit/SKILL.md +13 -278
- package/skills/poc-submit/prepare-return.mjs +48 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The stylesheet for the POC 3.2 report page and its return receipt.
|
|
3
|
+
*
|
|
4
|
+
* This is a plain string on purpose: the page is a single offline HTML file, so
|
|
5
|
+
* there is nothing to import and no build-time asset to reference. The Host
|
|
6
|
+
* embeds it in a `<style>` element; {@link REPORT_PAGE_SCRIPT} reads the same
|
|
7
|
+
* bytes back out of the document when it builds the return receipt, so the page
|
|
8
|
+
* and the receipt cannot drift apart.
|
|
9
|
+
*
|
|
10
|
+
* Constraints:
|
|
11
|
+
* - No `@import`, no remote font, no remote image: the file has to open from
|
|
12
|
+
* `file://` on a locked-down laptop with no network.
|
|
13
|
+
* - Every selector is prefixed `rp-` so it cannot collide with the Host shell.
|
|
14
|
+
* - Both the interactive page and the read-only receipt live here. The receipt
|
|
15
|
+
* only reuses tokens and adds `rp-rec-*` layout rules.
|
|
16
|
+
*/
|
|
17
|
+
export declare const REPORT_STYLE: string;
|
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The stylesheet for the POC 3.2 report page and its return receipt.
|
|
3
|
+
*
|
|
4
|
+
* This is a plain string on purpose: the page is a single offline HTML file, so
|
|
5
|
+
* there is nothing to import and no build-time asset to reference. The Host
|
|
6
|
+
* embeds it in a `<style>` element; {@link REPORT_PAGE_SCRIPT} reads the same
|
|
7
|
+
* bytes back out of the document when it builds the return receipt, so the page
|
|
8
|
+
* and the receipt cannot drift apart.
|
|
9
|
+
*
|
|
10
|
+
* Constraints:
|
|
11
|
+
* - No `@import`, no remote font, no remote image: the file has to open from
|
|
12
|
+
* `file://` on a locked-down laptop with no network.
|
|
13
|
+
* - Every selector is prefixed `rp-` so it cannot collide with the Host shell.
|
|
14
|
+
* - Both the interactive page and the read-only receipt live here. The receipt
|
|
15
|
+
* only reuses tokens and adds `rp-rec-*` layout rules.
|
|
16
|
+
*/
|
|
17
|
+
export const REPORT_STYLE = `
|
|
18
|
+
:root{
|
|
19
|
+
--rp-primary:#2864E8;
|
|
20
|
+
--rp-primary-dark:#1E54C9;
|
|
21
|
+
--rp-primary-soft:rgba(40,100,232,.08);
|
|
22
|
+
--rp-text:#141F2E;
|
|
23
|
+
--rp-text-2:#48586D;
|
|
24
|
+
--rp-text-3:#8794A6;
|
|
25
|
+
--rp-bg:#F4F6FA;
|
|
26
|
+
--rp-surface:#fff;
|
|
27
|
+
--rp-inset:#F7F9FC;
|
|
28
|
+
--rp-line:#E5EAF1;
|
|
29
|
+
--rp-line-2:#D3DBE6;
|
|
30
|
+
--rp-green:#1E7D62;
|
|
31
|
+
--rp-green-soft:rgba(30,125,98,.10);
|
|
32
|
+
--rp-amber:#A96C10;
|
|
33
|
+
--rp-amber-soft:rgba(169,108,16,.11);
|
|
34
|
+
--rp-red:#B93B2C;
|
|
35
|
+
--rp-red-soft:rgba(185,59,44,.08);
|
|
36
|
+
--rp-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
|
|
37
|
+
--rp-shadow-1:0 1px 2px rgba(20,32,52,.04);
|
|
38
|
+
--rp-shadow-2:0 2px 8px rgba(20,32,52,.07);
|
|
39
|
+
--rp-radius:10px;
|
|
40
|
+
}
|
|
41
|
+
*{box-sizing:border-box;margin:0;padding:0}
|
|
42
|
+
[hidden]{display:none!important}
|
|
43
|
+
html{-webkit-text-size-adjust:100%}
|
|
44
|
+
body{
|
|
45
|
+
font-family:'Avenir Next','PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif;
|
|
46
|
+
background:var(--rp-bg);color:var(--rp-text);font-size:14px;line-height:22px;
|
|
47
|
+
-webkit-font-smoothing:antialiased;padding:26px 20px 122px;
|
|
48
|
+
}
|
|
49
|
+
.rp-app{max-width:820px;margin:0 auto}
|
|
50
|
+
.rp-sr{
|
|
51
|
+
position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
|
|
52
|
+
clip:rect(0,0,0,0);white-space:nowrap;border:0;
|
|
53
|
+
}
|
|
54
|
+
:focus-visible{outline:2px solid var(--rp-primary);outline-offset:2px}
|
|
55
|
+
.rp-fatal{
|
|
56
|
+
max-width:820px;margin:40px auto;padding:18px 20px;background:var(--rp-surface);
|
|
57
|
+
border:1px solid var(--rp-line);border-left:3px solid var(--rp-red);border-radius:10px;
|
|
58
|
+
color:var(--rp-text-2);font-size:13px;line-height:20px;white-space:pre-wrap;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* ============================ header ============================ */
|
|
62
|
+
.rp-head{display:flex;align-items:flex-start;gap:24px;margin-bottom:20px}
|
|
63
|
+
.rp-head-main{flex:1;min-width:0}
|
|
64
|
+
.rp-eyebrow{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--rp-primary)}
|
|
65
|
+
.rp-title{margin:6px 0 0;font-size:27px;line-height:35px;font-weight:700;letter-spacing:-.022em;overflow-wrap:anywhere}
|
|
66
|
+
.rp-meta{margin-top:7px;display:flex;flex-wrap:wrap;align-items:center;font-size:12.5px;color:var(--rp-text-3)}
|
|
67
|
+
.rp-meta span{padding:0 9px;border-right:1px solid var(--rp-line)}
|
|
68
|
+
.rp-meta span:first-child{padding-left:0}
|
|
69
|
+
.rp-meta span:last-child{border-right:0}
|
|
70
|
+
.rp-meta b{color:var(--rp-text-2);font-weight:600}
|
|
71
|
+
.rp-head-round{flex:none;text-align:right;padding-top:2px}
|
|
72
|
+
.rp-big{font-size:34px;line-height:36px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
|
|
73
|
+
.rp-small{font-size:10.5px;color:var(--rp-text-3);letter-spacing:.04em}
|
|
74
|
+
.rp-idents{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:10px;font-size:12px;color:var(--rp-text-3)}
|
|
75
|
+
.rp-idents b{color:var(--rp-text-2);font-weight:600}
|
|
76
|
+
|
|
77
|
+
/* ============================ notices ============================ */
|
|
78
|
+
.rp-notice{
|
|
79
|
+
display:flex;align-items:flex-start;gap:10px;margin-bottom:14px;padding:10px 13px;
|
|
80
|
+
border:1px solid rgba(40,100,232,.2);background:var(--rp-primary-soft);
|
|
81
|
+
border-radius:8px;font-size:12px;line-height:18px;color:var(--rp-text-2);
|
|
82
|
+
}
|
|
83
|
+
.rp-notice.is-warn{border-color:rgba(169,108,16,.3);background:var(--rp-amber-soft)}
|
|
84
|
+
.rp-notice p{flex:1}
|
|
85
|
+
.rp-notice button{
|
|
86
|
+
flex:none;border:0;background:none;color:var(--rp-primary);font:inherit;
|
|
87
|
+
font-weight:650;cursor:pointer;padding:1px 2px;
|
|
88
|
+
}
|
|
89
|
+
.rp-notice button:hover{text-decoration:underline}
|
|
90
|
+
|
|
91
|
+
/* ============================ tabs ============================ */
|
|
92
|
+
.rp-tabs{
|
|
93
|
+
display:flex;gap:6px;overflow-x:auto;margin:0 0 18px;padding-bottom:2px;
|
|
94
|
+
scrollbar-width:thin;
|
|
95
|
+
}
|
|
96
|
+
.rp-tab{
|
|
97
|
+
flex:none;display:inline-flex;align-items:center;gap:7px;padding:7px 12px;
|
|
98
|
+
border:1px solid var(--rp-line);border-radius:8px;background:var(--rp-surface);
|
|
99
|
+
font:inherit;font-size:12.5px;color:var(--rp-text-2);cursor:pointer;white-space:nowrap;
|
|
100
|
+
}
|
|
101
|
+
.rp-tab:hover{border-color:var(--rp-line-2)}
|
|
102
|
+
.rp-tab[aria-selected="true"]{border-color:var(--rp-primary);background:var(--rp-primary-soft);color:var(--rp-primary);font-weight:650}
|
|
103
|
+
.rp-tab-id{font-family:var(--rp-mono);font-size:10px;color:var(--rp-text-3)}
|
|
104
|
+
.rp-tab-dot{width:6px;height:6px;border-radius:50%;background:var(--rp-line-2)}
|
|
105
|
+
.rp-tab-dot[data-filled="true"]{background:var(--rp-green)}
|
|
106
|
+
|
|
107
|
+
/* ============================ sections ============================ */
|
|
108
|
+
.rp-sec{margin-top:28px;scroll-margin-top:20px}
|
|
109
|
+
.rp-sec-head{display:flex;align-items:center;gap:11px;margin-bottom:4px}
|
|
110
|
+
.rp-sec-num{
|
|
111
|
+
flex:none;width:23px;height:23px;border-radius:7px;background:var(--rp-text);color:#fff;
|
|
112
|
+
font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;
|
|
113
|
+
font-variant-numeric:tabular-nums;
|
|
114
|
+
}
|
|
115
|
+
.rp-sec-title{font-size:16.5px;font-weight:700;letter-spacing:-.012em}
|
|
116
|
+
.rp-sec-count{margin-left:auto;font-size:11px;color:var(--rp-text-3);font-variant-numeric:tabular-nums}
|
|
117
|
+
.rp-sec-note{margin:0 0 13px 34px;font-size:12px;line-height:19px;color:var(--rp-text-3)}
|
|
118
|
+
|
|
119
|
+
/* ============================ round strip ============================ */
|
|
120
|
+
.rp-roundbar{
|
|
121
|
+
border:1px solid var(--rp-line);background:var(--rp-surface);border-radius:var(--rp-radius);
|
|
122
|
+
padding:13px 14px;margin:0 0 12px;box-shadow:var(--rp-shadow-1);
|
|
123
|
+
}
|
|
124
|
+
.rp-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 13px}
|
|
125
|
+
.rp-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 13px}
|
|
126
|
+
@media(max-width:760px){
|
|
127
|
+
.rp-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
|
|
128
|
+
}
|
|
129
|
+
@media(max-width:520px){
|
|
130
|
+
.rp-grid-3,.rp-grid-2{grid-template-columns:minmax(0,1fr)}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* ============================ item card ============================ */
|
|
134
|
+
.rp-item{
|
|
135
|
+
background:var(--rp-surface);border:1px solid var(--rp-line);border-radius:11px;
|
|
136
|
+
padding:14px 16px 15px 17px;margin-bottom:10px;border-left:3px solid var(--rp-line-2);
|
|
137
|
+
box-shadow:var(--rp-shadow-1);transition:border-color .15s,box-shadow .15s;
|
|
138
|
+
}
|
|
139
|
+
.rp-item:hover{box-shadow:var(--rp-shadow-2)}
|
|
140
|
+
.rp-item[data-status="done"]{border-left-color:var(--rp-green)}
|
|
141
|
+
.rp-item[data-status="doing"]{border-left-color:var(--rp-primary)}
|
|
142
|
+
.rp-item[data-status="delay"]{border-left-color:var(--rp-amber)}
|
|
143
|
+
.rp-item[data-status="drop"]{border-left-color:var(--rp-text-3)}
|
|
144
|
+
.rp-item-top{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}
|
|
145
|
+
.rp-idx{flex:none;font-family:var(--rp-mono);font-size:10.5px;color:var(--rp-text-3);padding-top:4px}
|
|
146
|
+
.rp-item-title{flex:1;min-width:180px}
|
|
147
|
+
.rp-plan-text{font-size:14.5px;line-height:21px;font-weight:650;letter-spacing:-.008em;overflow-wrap:anywhere}
|
|
148
|
+
.rp-item-sub{margin-top:2px;font-size:11px;color:var(--rp-text-3)}
|
|
149
|
+
.rp-item-sub b{color:var(--rp-text-2);font-weight:600}
|
|
150
|
+
.rp-tag{
|
|
151
|
+
display:inline-block;font-size:9.5px;font-weight:700;letter-spacing:.02em;
|
|
152
|
+
padding:1px 6px;border-radius:4px;vertical-align:1px;margin-left:7px;
|
|
153
|
+
}
|
|
154
|
+
.rp-tag-plan{background:var(--rp-inset);color:var(--rp-text-3);border:1px solid var(--rp-line)}
|
|
155
|
+
.rp-tag-extra{background:var(--rp-primary-soft);color:var(--rp-primary)}
|
|
156
|
+
.rp-item-body{margin-top:11px;padding-left:22px}
|
|
157
|
+
.rp-item-top .rp-del{margin-top:1px}
|
|
158
|
+
.rp-statusf{flex:none;margin-top:0;min-width:0}
|
|
159
|
+
.rp-item-top .rp-statusf{margin-top:1px}
|
|
160
|
+
|
|
161
|
+
/* ============================ segmented status ============================ */
|
|
162
|
+
.rp-seg{
|
|
163
|
+
display:flex;flex:none;flex-wrap:wrap;gap:0;border:1px solid var(--rp-line);
|
|
164
|
+
border-radius:8px;overflow:hidden;background:var(--rp-surface);
|
|
165
|
+
}
|
|
166
|
+
.rp-seg button{
|
|
167
|
+
border:0;background:transparent;font:inherit;font-size:11px;color:var(--rp-text-3);
|
|
168
|
+
padding:5px 9px;cursor:pointer;white-space:nowrap;border-right:1px solid var(--rp-line);
|
|
169
|
+
}
|
|
170
|
+
.rp-seg button:last-child{border-right:0}
|
|
171
|
+
.rp-seg button:hover{background:var(--rp-inset);color:var(--rp-text-2)}
|
|
172
|
+
.rp-seg button[aria-pressed="true"]{font-weight:700}
|
|
173
|
+
.rp-seg button[data-k="done"][aria-pressed="true"]{background:var(--rp-green-soft);color:var(--rp-green)}
|
|
174
|
+
.rp-seg button[data-k="doing"][aria-pressed="true"]{background:var(--rp-primary-soft);color:var(--rp-primary)}
|
|
175
|
+
.rp-seg button[data-k="delay"][aria-pressed="true"]{background:var(--rp-amber-soft);color:var(--rp-amber)}
|
|
176
|
+
.rp-seg button[data-k="drop"][aria-pressed="true"]{background:var(--rp-inset);color:var(--rp-text-2)}
|
|
177
|
+
.rp-seg.is-error{border-color:var(--rp-red);box-shadow:0 0 0 2px var(--rp-red-soft)}
|
|
178
|
+
.rp-mini-label{display:block;font-size:11.5px;font-weight:650;color:var(--rp-text-2);margin-bottom:5px}
|
|
179
|
+
.rp-line-status{margin-top:12px}
|
|
180
|
+
|
|
181
|
+
/* ============================ fields ============================ */
|
|
182
|
+
.rp-f{margin-top:11px;min-width:0}
|
|
183
|
+
.rp-f:first-child{margin-top:0}
|
|
184
|
+
.rp-label{display:block;font-size:11.5px;font-weight:650;color:var(--rp-text-2);margin-bottom:5px;line-height:17px}
|
|
185
|
+
.rp-label .rp-req{color:var(--rp-red);margin-left:2px}
|
|
186
|
+
.rp-help{font-size:10.5px;line-height:16px;color:var(--rp-text-3);margin:-2px 0 5px}
|
|
187
|
+
.rp-input,.rp-area,.rp-select{
|
|
188
|
+
width:100%;padding:8px 11px;border:1px solid var(--rp-line);border-radius:7px;
|
|
189
|
+
font-family:inherit;font-size:13.5px;line-height:20px;background:var(--rp-surface);color:var(--rp-text);
|
|
190
|
+
}
|
|
191
|
+
.rp-input::placeholder,.rp-area::placeholder{color:#A9B4C2}
|
|
192
|
+
.rp-input:focus,.rp-area:focus,.rp-select:focus{
|
|
193
|
+
outline:none;border-color:var(--rp-primary);box-shadow:0 0 0 3px var(--rp-primary-soft);
|
|
194
|
+
}
|
|
195
|
+
.rp-area{min-height:58px;resize:vertical}
|
|
196
|
+
.rp-select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--rp-text-3) 50%),linear-gradient(135deg,var(--rp-text-3) 50%,transparent 50%);background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:30px}
|
|
197
|
+
.rp-input.is-invalid,.rp-area.is-invalid,.rp-select.is-invalid{border-color:var(--rp-red);background-color:#FFFDFC}
|
|
198
|
+
.rp-f.is-error>.rp-input,.rp-f.is-error>.rp-area,.rp-f.is-error>.rp-select,
|
|
199
|
+
.rp-f.is-error .rp-ev-row .rp-input,.rp-f.is-error .rp-ev-row .rp-select{border-color:var(--rp-red)}
|
|
200
|
+
.rp-err{display:none;margin-top:5px;font-size:11px;line-height:16px;color:var(--rp-red)}
|
|
201
|
+
.rp-f.is-error .rp-err,.rp-err.is-error{display:block}
|
|
202
|
+
.rp-err-general{margin:0 0 12px 34px}
|
|
203
|
+
.rp-inline-note{font-size:11px;line-height:17px;color:var(--rp-text-3);margin-top:5px}
|
|
204
|
+
|
|
205
|
+
/* ============================ evidence ============================ */
|
|
206
|
+
.rp-ev{margin-top:12px}
|
|
207
|
+
.rp-ev-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
|
|
208
|
+
.rp-ev-count{
|
|
209
|
+
font-size:11px;color:var(--rp-text-3);padding:4px 9px;border-radius:6px;
|
|
210
|
+
background:var(--rp-inset);border:1px solid var(--rp-line);
|
|
211
|
+
}
|
|
212
|
+
.rp-ev-count.has{color:var(--rp-green);background:var(--rp-green-soft);border-color:rgba(30,125,98,.18)}
|
|
213
|
+
.rp-ev-toggle{
|
|
214
|
+
background:none;border:0;font:inherit;font-size:11.5px;color:var(--rp-primary);
|
|
215
|
+
cursor:pointer;font-weight:650;padding:4px 2px;
|
|
216
|
+
}
|
|
217
|
+
.rp-ev-toggle:hover{text-decoration:underline}
|
|
218
|
+
.rp-ev-list{margin-top:8px;display:none;flex-direction:column;gap:8px}
|
|
219
|
+
.rp-ev-list[data-open="true"]{display:flex}
|
|
220
|
+
.rp-ev-field{margin-top:0}
|
|
221
|
+
.rp-ev-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.7fr) minmax(0,.55fr) 30px;gap:7px;align-items:center}
|
|
222
|
+
.rp-del{
|
|
223
|
+
flex:none;background:none;border:1px solid var(--rp-line);border-radius:6px;
|
|
224
|
+
color:var(--rp-text-3);width:30px;height:36px;cursor:pointer;font-size:14px;line-height:1;
|
|
225
|
+
}
|
|
226
|
+
.rp-del:hover{border-color:rgba(185,59,44,.3);color:var(--rp-red)}
|
|
227
|
+
.rp-ev-add{
|
|
228
|
+
align-self:flex-start;background:none;border:1px dashed var(--rp-line-2);border-radius:7px;
|
|
229
|
+
color:var(--rp-text-2);font:inherit;font-size:11.5px;font-weight:650;cursor:pointer;padding:6px 11px;
|
|
230
|
+
}
|
|
231
|
+
.rp-ev-add:hover{border-color:var(--rp-primary);color:var(--rp-primary);background:var(--rp-primary-soft)}
|
|
232
|
+
|
|
233
|
+
/* ============================ checks / extras ============================ */
|
|
234
|
+
.rp-more{margin-top:12px}
|
|
235
|
+
.rp-more>summary{
|
|
236
|
+
cursor:pointer;list-style:none;font-size:11.5px;font-weight:650;color:var(--rp-text-2);
|
|
237
|
+
display:flex;align-items:center;gap:7px;padding:3px 0;
|
|
238
|
+
}
|
|
239
|
+
.rp-more>summary::-webkit-details-marker{display:none}
|
|
240
|
+
.rp-more>summary::before{
|
|
241
|
+
content:'';flex:none;width:0;height:0;border-left:5px solid var(--rp-text-3);
|
|
242
|
+
border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform .15s;
|
|
243
|
+
}
|
|
244
|
+
.rp-more[open]>summary::before{transform:rotate(90deg)}
|
|
245
|
+
.rp-more-body{margin-top:10px;padding-top:2px}
|
|
246
|
+
.rp-checks{display:flex;flex-wrap:wrap;gap:7px}
|
|
247
|
+
.rp-check{
|
|
248
|
+
display:inline-flex;align-items:center;gap:6px;padding:6px 10px;
|
|
249
|
+
border:1px solid var(--rp-line);border-radius:7px;background:var(--rp-surface);
|
|
250
|
+
font-size:12px;color:var(--rp-text-2);cursor:pointer;
|
|
251
|
+
}
|
|
252
|
+
.rp-check input{accent-color:var(--rp-primary);margin:0}
|
|
253
|
+
.rp-check.is-on{border-color:var(--rp-primary);background:var(--rp-primary-soft);color:var(--rp-primary)}
|
|
254
|
+
.rp-check-id{font-family:var(--rp-mono);font-size:9.5px;color:var(--rp-text-3)}
|
|
255
|
+
|
|
256
|
+
/* ============================ add buttons ============================ */
|
|
257
|
+
.rp-add{
|
|
258
|
+
display:flex;align-items:center;justify-content:center;gap:7px;width:100%;
|
|
259
|
+
padding:11px;border:1.5px dashed var(--rp-line-2);border-radius:10px;background:transparent;
|
|
260
|
+
color:var(--rp-text-2);font:inherit;font-size:13px;font-weight:650;cursor:pointer;margin-top:10px;
|
|
261
|
+
}
|
|
262
|
+
.rp-add:hover{border-color:var(--rp-primary);color:var(--rp-primary);background:var(--rp-primary-soft)}
|
|
263
|
+
|
|
264
|
+
/* ============================ next plans ============================ */
|
|
265
|
+
.rp-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
|
|
266
|
+
@media(max-width:560px){.rp-choice{grid-template-columns:minmax(0,1fr)}}
|
|
267
|
+
.rp-choice-opt{
|
|
268
|
+
position:relative;display:flex;flex-direction:column;gap:2px;padding:10px 12px;
|
|
269
|
+
border:1px solid var(--rp-line);border-radius:9px;background:var(--rp-surface);cursor:pointer;
|
|
270
|
+
}
|
|
271
|
+
.rp-choice-opt input{position:absolute;opacity:0;width:1px;height:1px}
|
|
272
|
+
.rp-choice-opt .rp-choice-title{font-size:12.5px;font-weight:650;color:var(--rp-text-2)}
|
|
273
|
+
.rp-choice-opt .rp-choice-hint{font-size:10.5px;line-height:16px;color:var(--rp-text-3)}
|
|
274
|
+
.rp-choice-opt.is-on{border-color:var(--rp-primary);background:var(--rp-primary-soft);box-shadow:0 0 0 2px var(--rp-primary-soft)}
|
|
275
|
+
.rp-choice-opt.is-on .rp-choice-title{color:var(--rp-primary)}
|
|
276
|
+
.rp-choice-opt:focus-within{outline:2px solid var(--rp-primary);outline-offset:2px}
|
|
277
|
+
.rp-plan-row{
|
|
278
|
+
display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,.9fr) minmax(0,.9fr) 30px;
|
|
279
|
+
gap:8px;align-items:start;margin-bottom:8px;
|
|
280
|
+
}
|
|
281
|
+
.rp-plan-list.is-error .rp-plan-row .rp-input{border-color:var(--rp-red)}
|
|
282
|
+
.rp-plans-empty{font-size:11.5px;color:var(--rp-text-3);margin:2px 0 8px}
|
|
283
|
+
.rp-plan-row .rp-f{margin-top:0;min-width:0}
|
|
284
|
+
.rp-plan-row .rp-err{margin-top:4px}
|
|
285
|
+
@media(max-width:680px){
|
|
286
|
+
.rp-plan-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 30px}
|
|
287
|
+
.rp-plan-row .rp-plan-goal{grid-column:1/-1}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* ============================ optional / stage notes ============================ */
|
|
291
|
+
.rp-opt{margin-top:32px;border-top:1px solid var(--rp-line);padding-top:18px}
|
|
292
|
+
.rp-opt>summary{
|
|
293
|
+
cursor:pointer;list-style:none;font-size:13.5px;font-weight:650;color:var(--rp-text-2);
|
|
294
|
+
display:flex;align-items:center;gap:9px;
|
|
295
|
+
}
|
|
296
|
+
.rp-opt>summary::-webkit-details-marker{display:none}
|
|
297
|
+
.rp-opt>summary::before{
|
|
298
|
+
content:'';flex:none;width:0;height:0;border-left:5px solid var(--rp-text-3);
|
|
299
|
+
border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform .15s;
|
|
300
|
+
}
|
|
301
|
+
.rp-opt[open]>summary::before{transform:rotate(90deg)}
|
|
302
|
+
.rp-opt-note{font-size:11.5px;line-height:18px;color:var(--rp-text-3);margin:7px 0 0 20px}
|
|
303
|
+
.rp-opt-body{margin-top:14px;display:grid;gap:10px}
|
|
304
|
+
.rp-stage{
|
|
305
|
+
border:1px solid var(--rp-line);border-radius:9px;background:var(--rp-surface);
|
|
306
|
+
padding:10px 13px;
|
|
307
|
+
}
|
|
308
|
+
.rp-stage>summary{
|
|
309
|
+
cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;
|
|
310
|
+
font-size:12.5px;font-weight:650;color:var(--rp-text-2);
|
|
311
|
+
}
|
|
312
|
+
.rp-stage>summary::-webkit-details-marker{display:none}
|
|
313
|
+
.rp-stage>summary::before{
|
|
314
|
+
content:'';flex:none;width:0;height:0;border-left:5px solid var(--rp-text-3);
|
|
315
|
+
border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform .15s;
|
|
316
|
+
}
|
|
317
|
+
.rp-stage[open]>summary::before{transform:rotate(90deg)}
|
|
318
|
+
.rp-stage-badge{
|
|
319
|
+
font-size:9.5px;font-weight:700;padding:1px 6px;border-radius:4px;
|
|
320
|
+
background:var(--rp-primary-soft);color:var(--rp-primary);letter-spacing:.02em;
|
|
321
|
+
}
|
|
322
|
+
.rp-stage-body{margin-top:9px}
|
|
323
|
+
|
|
324
|
+
/* ============================ preview ============================ */
|
|
325
|
+
.rp-preview{margin-top:30px;border:1px solid var(--rp-line);border-radius:10px;background:var(--rp-surface);scroll-margin-bottom:120px}
|
|
326
|
+
.rp-preview>summary{
|
|
327
|
+
cursor:pointer;list-style:none;padding:12px 15px;font-size:12.5px;font-weight:650;
|
|
328
|
+
color:var(--rp-text-2);display:flex;align-items:center;gap:8px;
|
|
329
|
+
}
|
|
330
|
+
.rp-preview>summary::-webkit-details-marker{display:none}
|
|
331
|
+
.rp-preview>summary::before{
|
|
332
|
+
content:'';flex:none;width:0;height:0;border-left:5px solid var(--rp-text-3);
|
|
333
|
+
border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform .15s;
|
|
334
|
+
}
|
|
335
|
+
.rp-preview[open]>summary::before{transform:rotate(90deg)}
|
|
336
|
+
.rp-preview-body{padding:0 15px 14px;font-size:12px;line-height:19px;color:var(--rp-text-2)}
|
|
337
|
+
.rp-preview-list{list-style:none;display:flex;flex-direction:column;gap:6px;margin-top:8px}
|
|
338
|
+
.rp-preview-list li{padding:7px 10px;border-radius:7px;background:var(--rp-inset);overflow-wrap:anywhere}
|
|
339
|
+
.rp-preview-list b{font-weight:650;color:var(--rp-text)}
|
|
340
|
+
.rp-preview-dim{color:var(--rp-text-3);font-size:11px}
|
|
341
|
+
.rp-preview h3{font-size:11px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--rp-text-3);margin:12px 0 0}
|
|
342
|
+
|
|
343
|
+
/* ============================ footer bar ============================ */
|
|
344
|
+
.rp-bar{
|
|
345
|
+
position:fixed;left:0;right:0;bottom:0;background:rgba(255,255,255,.97);
|
|
346
|
+
border-top:1px solid var(--rp-line);backdrop-filter:blur(8px);
|
|
347
|
+
padding:11px 20px calc(11px + env(safe-area-inset-bottom,0px));
|
|
348
|
+
box-shadow:0 -2px 12px rgba(20,32,52,.05);z-index:40;
|
|
349
|
+
}
|
|
350
|
+
.rp-bar-in{max-width:820px;margin:0 auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
|
|
351
|
+
.rp-state{flex:1;min-width:180px;font-size:12px;line-height:18px;color:var(--rp-text-3)}
|
|
352
|
+
.rp-state b{color:var(--rp-amber);font-weight:700}
|
|
353
|
+
.rp-state .rp-ok{color:var(--rp-green);font-weight:650}
|
|
354
|
+
.rp-bar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
|
|
355
|
+
.rp-btn{
|
|
356
|
+
padding:9px 15px;border-radius:8px;border:1px solid var(--rp-line);background:var(--rp-surface);
|
|
357
|
+
font:inherit;font-size:13px;color:var(--rp-text-2);cursor:pointer;white-space:nowrap;font-weight:600;
|
|
358
|
+
}
|
|
359
|
+
.rp-btn:hover{background:var(--rp-inset)}
|
|
360
|
+
.rp-btn:disabled{opacity:.55;cursor:progress}
|
|
361
|
+
.rp-btn-primary{background:var(--rp-primary);border-color:var(--rp-primary);color:#fff}
|
|
362
|
+
.rp-btn-primary:hover{background:var(--rp-primary-dark)}
|
|
363
|
+
.rp-linkbtn{
|
|
364
|
+
border:0;background:none;padding:6px 2px;font:inherit;font-size:11.5px;
|
|
365
|
+
color:var(--rp-text-3);cursor:pointer;text-decoration:underline;white-space:nowrap;
|
|
366
|
+
}
|
|
367
|
+
.rp-linkbtn:hover{color:var(--rp-text-2)}
|
|
368
|
+
@media(max-width:620px){
|
|
369
|
+
body{padding:18px 13px 142px}
|
|
370
|
+
.rp-head{gap:12px}
|
|
371
|
+
.rp-title{font-size:23px;line-height:30px}
|
|
372
|
+
.rp-big{font-size:28px;line-height:30px}
|
|
373
|
+
.rp-item{padding:12px 13px 13px 14px}
|
|
374
|
+
.rp-item-body{padding-left:0}
|
|
375
|
+
.rp-sec-note{margin-left:0}
|
|
376
|
+
.rp-item-top .rp-statusf{width:100%;margin-top:8px}
|
|
377
|
+
.rp-item-top .rp-seg{width:100%;margin-top:0}
|
|
378
|
+
.rp-item-top .rp-seg button{flex:1;padding:6px 4px;text-align:center}
|
|
379
|
+
.rp-seg button{padding:6px 8px}
|
|
380
|
+
.rp-ev-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 30px}
|
|
381
|
+
.rp-ev-row .rp-ev-type{grid-column:1/3}
|
|
382
|
+
.rp-bar-in{align-items:stretch}
|
|
383
|
+
.rp-state{flex:1 1 100%;min-width:0}
|
|
384
|
+
.rp-bar-actions{flex:1 1 100%}
|
|
385
|
+
.rp-bar-actions .rp-btn-primary{flex:1}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/* ============================ toast / modal ============================ */
|
|
389
|
+
.rp-toast{
|
|
390
|
+
position:fixed;left:50%;bottom:86px;transform:translateX(-50%);
|
|
391
|
+
max-width:min(560px,calc(100vw - 32px));padding:10px 15px;border-radius:9px;
|
|
392
|
+
background:rgba(20,31,46,.94);color:#fff;font-size:12.5px;line-height:18px;
|
|
393
|
+
box-shadow:0 6px 22px rgba(20,32,52,.22);z-index:60;
|
|
394
|
+
}
|
|
395
|
+
.rp-modal{position:fixed;inset:0;background:rgba(12,20,32,.44);display:flex;align-items:center;justify-content:center;padding:20px;z-index:70}
|
|
396
|
+
.rp-modal-card{
|
|
397
|
+
width:100%;max-width:540px;max-height:86vh;overflow:auto;background:var(--rp-surface);
|
|
398
|
+
border-radius:14px;padding:20px 22px;box-shadow:0 18px 48px rgba(12,20,32,.26);
|
|
399
|
+
}
|
|
400
|
+
.rp-modal-card h2{font-size:17px;line-height:24px;font-weight:700;margin:0 0 8px}
|
|
401
|
+
.rp-modal-card p{font-size:12.5px;line-height:19px;color:var(--rp-text-2)}
|
|
402
|
+
.rp-modal-list{list-style:none;display:flex;flex-direction:column;gap:6px;margin:12px 0 0}
|
|
403
|
+
.rp-modal-list li{padding:7px 10px;border-radius:7px;background:var(--rp-inset);font-size:12px;overflow-wrap:anywhere}
|
|
404
|
+
.rp-modal-list b{font-weight:650;color:var(--rp-text)}
|
|
405
|
+
.rp-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;flex-wrap:wrap}
|
|
406
|
+
|
|
407
|
+
/* ============================ return receipt ============================ */
|
|
408
|
+
body.rp-rec-body{
|
|
409
|
+
background:var(--rp-bg);padding:24px 20px 56px;font-size:13px;line-height:20px;
|
|
410
|
+
}
|
|
411
|
+
.rp-rec-shell{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
|
|
412
|
+
.rp-rec-note{
|
|
413
|
+
background:var(--rp-primary-soft);border:1px solid rgba(40,100,232,.2);
|
|
414
|
+
border-radius:8px;padding:10px 14px;font-size:11.5px;line-height:18px;color:var(--rp-text-2);
|
|
415
|
+
}
|
|
416
|
+
.rp-rec-bar{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:baseline;font-size:11.5px;font-weight:600;color:var(--rp-text-2)}
|
|
417
|
+
.rp-rec-dim{font-weight:400;color:var(--rp-text-3)}
|
|
418
|
+
.rp-rec-card{background:var(--rp-surface);border:1px solid var(--rp-line);border-radius:10px;padding:18px 20px;display:flex;flex-direction:column;gap:16px}
|
|
419
|
+
.rp-rec-head{padding-bottom:12px;border-bottom:1px solid var(--rp-line)}
|
|
420
|
+
.rp-rec-head h1{margin:0;font-size:19px;line-height:27px;font-weight:700;letter-spacing:-.01em;overflow-wrap:anywhere}
|
|
421
|
+
.rp-rec-meta{margin-top:4px;font-size:10.5px;color:var(--rp-text-3);font-family:var(--rp-mono);overflow-wrap:anywhere}
|
|
422
|
+
.rp-rec-sec h2{margin:0 0 7px;font-size:11px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--rp-text-3)}
|
|
423
|
+
.rp-rec-sec h3{margin:12px 0 6px;font-size:11.5px;font-weight:650;color:var(--rp-text-2)}
|
|
424
|
+
.rp-rec-sec dl{display:flex;flex-direction:column;gap:0}
|
|
425
|
+
.rp-rec-pair{display:grid;grid-template-columns:132px minmax(0,1fr);gap:12px;padding:6px 0;border-top:1px dashed var(--rp-line)}
|
|
426
|
+
.rp-rec-pair:first-child{border-top:0}
|
|
427
|
+
.rp-rec-pair dt{font-size:11.5px;color:var(--rp-text-3);line-height:19px}
|
|
428
|
+
.rp-rec-pair dd{font-size:12.5px;line-height:20px;color:var(--rp-text);white-space:pre-wrap;overflow-wrap:anywhere}
|
|
429
|
+
.rp-rec-lines{list-style:none;display:flex;flex-direction:column;gap:8px}
|
|
430
|
+
.rp-rec-lines>li{padding:9px 11px;border-radius:8px;background:var(--rp-inset);border:1px solid var(--rp-line)}
|
|
431
|
+
.rp-rec-line-head{display:flex;align-items:flex-start;gap:8px;justify-content:space-between}
|
|
432
|
+
.rp-rec-line-title{font-size:12.5px;line-height:19px;font-weight:650;color:var(--rp-text);overflow-wrap:anywhere}
|
|
433
|
+
.rp-rec-status{flex:none;font-size:10px;font-weight:700;padding:1px 7px;border-radius:4px;background:var(--rp-inset);color:var(--rp-text-3);border:1px solid var(--rp-line)}
|
|
434
|
+
.rp-rec-status[data-status="done"]{background:var(--rp-green-soft);color:var(--rp-green);border-color:rgba(30,125,98,.2)}
|
|
435
|
+
.rp-rec-status[data-status="doing"]{background:var(--rp-primary-soft);color:var(--rp-primary);border-color:rgba(40,100,232,.2)}
|
|
436
|
+
.rp-rec-status[data-status="delay"]{background:var(--rp-amber-soft);color:var(--rp-amber);border-color:rgba(169,108,16,.2)}
|
|
437
|
+
.rp-rec-actual{margin-top:4px;font-size:12px;line-height:19px;color:var(--rp-text);white-space:pre-wrap;overflow-wrap:anywhere}
|
|
438
|
+
.rp-rec-more{margin-top:4px;font-size:11px;line-height:17px;color:var(--rp-text-3);overflow-wrap:anywhere}
|
|
439
|
+
.rp-rec-plans{list-style:none;display:flex;flex-direction:column;gap:5px}
|
|
440
|
+
.rp-rec-plans li{padding:6px 10px;border-radius:6px;background:var(--rp-inset);font-size:12px;line-height:18px;overflow-wrap:anywhere}
|
|
441
|
+
.rp-rec-plans li span{color:var(--rp-text-3);font-size:11px;margin-left:8px}
|
|
442
|
+
.rp-rec-new{border-left:3px solid var(--rp-green);padding-left:13px}
|
|
443
|
+
.rp-rec-new h2{color:var(--rp-green)}
|
|
444
|
+
.rp-rec-tag{margin-left:7px;padding:1px 6px;border-radius:4px;font-size:9px;background:rgba(33,133,104,.12);color:var(--rp-green);text-transform:none;letter-spacing:0}
|
|
445
|
+
.rp-rec-skip{font-size:11.5px;line-height:18px;color:var(--rp-text-3);padding:0 2px}
|
|
446
|
+
@media(max-width:560px){
|
|
447
|
+
body.rp-rec-body{padding:14px 12px 36px}
|
|
448
|
+
.rp-rec-card{padding:14px 15px}
|
|
449
|
+
.rp-rec-pair{grid-template-columns:minmax(0,1fr);gap:2px}
|
|
450
|
+
}
|
|
451
|
+
@media print{
|
|
452
|
+
body.rp-rec-body{background:#fff;padding:0}
|
|
453
|
+
.rp-rec-note{display:none}
|
|
454
|
+
.rp-rec-card{break-inside:avoid;border-color:#ccc}
|
|
455
|
+
}
|
|
456
|
+
@media(prefers-reduced-motion:reduce){
|
|
457
|
+
*{transition:none!important}
|
|
458
|
+
}
|
|
459
|
+
`;
|
package/lib/store.js
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import YAML from 'yaml';
|
|
18
18
|
import { daysSince, lastProgressDate, latestProgress, normalizeStage, numberOrNull, readDimensions, scanGaps, text, } from './gap.js';
|
|
19
|
+
import { roundActual, roundEvidence, structuredLines } from './progress.js';
|
|
19
20
|
import { parseRules } from './rules.js';
|
|
20
21
|
import { parseHealthConfig, parseSignals } from './signals.js';
|
|
21
22
|
import { buildBlockerBoard } from './blockers.js';
|
|
@@ -141,7 +142,7 @@ export class PocStore {
|
|
|
141
142
|
source: rules.source,
|
|
142
143
|
rulesVersion: rules.rulesVersion,
|
|
143
144
|
schemaVersion: schemaVersionOf(records),
|
|
144
|
-
schemaCurrent: records.
|
|
145
|
+
schemaCurrent: records.length > 0 && records.every((record) => ['3.1', '3.2'].includes(text(record.schema_version))),
|
|
145
146
|
healthSource: health.source,
|
|
146
147
|
},
|
|
147
148
|
warnings: [...warnings, ...rules.warnings, ...health.warnings, ...signals.warnings],
|
|
@@ -229,9 +230,12 @@ export class PocStore {
|
|
|
229
230
|
goal: text(entry?.goal),
|
|
230
231
|
scenarioIds: (entry?.scenario_ids ?? []).map(text).filter((item) => item !== ''),
|
|
231
232
|
criteriaIds: (entry?.criteria_ids ?? []).map(text).filter((item) => item !== ''),
|
|
232
|
-
actual:
|
|
233
|
+
actual: entry ? roundActual(entry) : '',
|
|
234
|
+
...(structuredLines(entry) ? { lines: structuredLines(entry) } : {}),
|
|
235
|
+
...(Array.isArray(entry?.next_plans) ? { nextPlans: entry.next_plans } : {}),
|
|
236
|
+
...(Array.isArray(entry?.stage_notes) ? { stageNotes: entry.stage_notes } : {}),
|
|
233
237
|
completion: text(entry?.completion),
|
|
234
|
-
evidence: (entry
|
|
238
|
+
evidence: roundEvidence(entry).map((item) => ({
|
|
235
239
|
title: text(item?.title),
|
|
236
240
|
link: text(item?.link),
|
|
237
241
|
type: text(item?.type),
|
|
@@ -307,7 +311,7 @@ function progressSummary(poc) {
|
|
|
307
311
|
const type = text(last.type);
|
|
308
312
|
if (type !== '')
|
|
309
313
|
parts.push(type);
|
|
310
|
-
const actual =
|
|
314
|
+
const actual = roundActual(last);
|
|
311
315
|
if (actual !== '')
|
|
312
316
|
parts.push(actual.replace(/\s+/g, ' ').slice(0, 80));
|
|
313
317
|
const completion = text(last.completion);
|
package/lib/timeline.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* record the ledger actually contains.
|
|
13
13
|
*/
|
|
14
14
|
import { normalizeStage, numberOrNull, text } from './gap.js';
|
|
15
|
+
import { roundActual, roundEvidence } from './progress.js';
|
|
15
16
|
/** `true` when a value is a real `YYYY-MM-DD` date. */
|
|
16
17
|
function isDate(value) {
|
|
17
18
|
return /^\d{4}-\d{2}-\d{2}$/.test(value) && !Number.isNaN(Date.parse(`${value}T00:00:00Z`));
|
|
@@ -35,10 +36,10 @@ export function buildGlobalTimeline(records, options) {
|
|
|
35
36
|
continue;
|
|
36
37
|
}
|
|
37
38
|
for (const raw of progress) {
|
|
38
|
-
const entry =
|
|
39
|
-
const evidence =
|
|
40
|
-
const customer =
|
|
41
|
-
const next =
|
|
39
|
+
const entry = raw ?? {};
|
|
40
|
+
const evidence = roundEvidence(entry);
|
|
41
|
+
const customer = entry.customer ?? {};
|
|
42
|
+
const next = entry.next ?? {};
|
|
42
43
|
const titles = evidence
|
|
43
44
|
.map((item) => text(item?.title))
|
|
44
45
|
.filter((title) => title !== '');
|
|
@@ -50,7 +51,7 @@ export function buildGlobalTimeline(records, options) {
|
|
|
50
51
|
seq: numberOrNull(entry.seq),
|
|
51
52
|
type: text(entry.type),
|
|
52
53
|
goal: text(entry.goal),
|
|
53
|
-
actual:
|
|
54
|
+
actual: roundActual(entry),
|
|
54
55
|
completion: text(entry.completion),
|
|
55
56
|
evidence: titles.join(' · '),
|
|
56
57
|
evidenceCount: evidence.length,
|
|
@@ -58,7 +59,7 @@ export function buildGlobalTimeline(records, options) {
|
|
|
58
59
|
recognition: text(customer.recognition),
|
|
59
60
|
gate3_1: text(entry.gate3_1),
|
|
60
61
|
gate3_2: text(entry.gate3_2),
|
|
61
|
-
nextGoal: text(next.goal),
|
|
62
|
+
nextGoal: Array.isArray(entry.next_plans) ? entry.next_plans.map((plan) => `${plan.goal} · ${plan.owner} · ${plan.deadline}`).join(';') : text(next.goal),
|
|
62
63
|
nextOwner: text(next.owner),
|
|
63
64
|
nextDeadline: text(next.deadline),
|
|
64
65
|
});
|
package/lib/types.d.ts
CHANGED
|
@@ -134,7 +134,40 @@ export interface RiskRecord {
|
|
|
134
134
|
* variant to tolerate here — reading it as "no scenario links" would silently
|
|
135
135
|
* demote every scenario from 已证明 back to 未开始.
|
|
136
136
|
*/
|
|
137
|
+
export interface ProgressPlanRecord {
|
|
138
|
+
id: string;
|
|
139
|
+
goal: string;
|
|
140
|
+
owner: string;
|
|
141
|
+
deadline: string;
|
|
142
|
+
}
|
|
143
|
+
export interface ProgressLineRecord {
|
|
144
|
+
plan_id?: string;
|
|
145
|
+
title: string;
|
|
146
|
+
status: string;
|
|
147
|
+
actual: string;
|
|
148
|
+
evidence?: EvidenceRecord[];
|
|
149
|
+
customer?: {
|
|
150
|
+
synced_with?: string;
|
|
151
|
+
feedback?: string;
|
|
152
|
+
};
|
|
153
|
+
scenario_ids?: string[];
|
|
154
|
+
criteria_ids?: string[];
|
|
155
|
+
completion?: string;
|
|
156
|
+
review?: {
|
|
157
|
+
gate3_1?: string;
|
|
158
|
+
gate3_2?: string;
|
|
159
|
+
recognition?: string;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
137
162
|
export interface ProgressRecord {
|
|
163
|
+
/** Structured round fields; absent on preserved v3.1 history. */
|
|
164
|
+
submission_id?: string;
|
|
165
|
+
lines?: ProgressLineRecord[];
|
|
166
|
+
next_plans?: ProgressPlanRecord[];
|
|
167
|
+
stage_notes?: {
|
|
168
|
+
stage: 'G0' | 'G1' | 'G2' | 'G4';
|
|
169
|
+
text: string;
|
|
170
|
+
}[];
|
|
138
171
|
seq?: number | null;
|
|
139
172
|
date?: string | null;
|
|
140
173
|
type?: string | null;
|
|
@@ -236,7 +269,7 @@ export interface OrgRecord {
|
|
|
236
269
|
*/
|
|
237
270
|
export interface PocRecord {
|
|
238
271
|
/**
|
|
239
|
-
*
|
|
272
|
+
* Data shape: legacy 3.1 or structured 3.2.
|
|
240
273
|
*
|
|
241
274
|
* Optional only because the reader must not crash on a file that lacks it —
|
|
242
275
|
* the ledger's validator rejects such a file with `E-VERSION`, so a record
|
|
@@ -507,13 +540,16 @@ export interface RulesProvenance {
|
|
|
507
540
|
rulesVersion: string;
|
|
508
541
|
/** The data-shape version from `config/enums`/projects, when known. */
|
|
509
542
|
schemaVersion: string;
|
|
510
|
-
/**
|
|
543
|
+
/** Whether every loaded project uses a recognized ledger shape. */
|
|
511
544
|
schemaCurrent: boolean;
|
|
512
545
|
/** The staleness limits in force, from `config/health.yaml`. */
|
|
513
546
|
healthSource: 'ledger' | 'fallback';
|
|
514
547
|
}
|
|
515
548
|
/** One progress entry as the detail page receives it: every field present. */
|
|
516
549
|
export interface ProgressView {
|
|
550
|
+
lines?: ProgressLineRecord[];
|
|
551
|
+
nextPlans?: ProgressPlanRecord[];
|
|
552
|
+
stageNotes?: NonNullable<ProgressRecord['stage_notes']>;
|
|
517
553
|
seq: number | null;
|
|
518
554
|
date: string;
|
|
519
555
|
type: string;
|