create-pmos 0.418.0 → 0.420.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/package.json +25 -30
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/scripts/lane-defs.js +14 -1
- package/payload/scripts/workflow-state.js +2 -2
- package/payload/state/discoveries.md +1 -1
- package/workspace/board-programs-test.js +15 -1
- package/workspace/briefing-premium-board-test.js +11 -15
- package/workspace/changelog.json +24 -0
- package/workspace/fixtures/report-api/draft.json +2 -1
- package/workspace/guide/briefing-premium.md +2 -2
- package/workspace/guide/home.md +2 -0
- package/workspace/home-other-product-test.js +18 -0
- package/workspace/home-rows-test.js +14 -0
- package/workspace/lib/board-cli.js +1 -1
- package/workspace/lib/board-premium.js +13 -3
- package/workspace/lib/brief.js +5 -0
- package/workspace/lib/coredoc-cli.js +2 -0
- package/workspace/lib/engine/lane-defs.js +14 -1
- package/workspace/lib/engine/workflow-state.js +2 -2
- package/workspace/lib/hold-spans.js +64 -0
- package/workspace/lib/initiative-chat.js +2 -0
- package/workspace/lib/mention-store.js +49 -13
- package/workspace/lib/plan-tree.js +1 -1
- package/workspace/lib/report-draft.js +6 -0
- package/workspace/lib/routes-boards.js +38 -4
- package/workspace/lib/source-reads.js +5 -0
- package/workspace/lib/vendor/scripts/lane-defs.js +14 -1
- package/workspace/lib/vendor/scripts/workflow-state.js +2 -2
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/bd-acts.js +49 -1
- package/workspace/public/pm/bd-ini-panel.js +15 -8
- package/workspace/public/pm/bd-next.js +119 -0
- package/workspace/public/pm/bd-prog.js +1 -1
- package/workspace/public/pm/bd-scroll.js +4 -4
- package/workspace/public/pm/bd-span.js +127 -29
- package/workspace/public/pm/bd-views.js +7 -5
- package/workspace/public/pm/cozy-board.css +55 -10
- package/workspace/public/pm/cozy-today.css +9 -0
- package/workspace/public/pm/cozy-viewer.js +7 -3
- package/workspace/public/pm/cozy.css +10 -0
- package/workspace/public/pm/home-app.js +39 -13
- package/workspace/public/pm/home-ini.js +42 -11
- package/workspace/public/pm/home-list.js +22 -2
- package/workspace/public/pm/home-mentions.js +1 -1
- package/workspace/public/pm/home-today.js +13 -2
- package/workspace/public/pm/ini-tasks.js +363 -0
- package/workspace/public/pm/ini-view-model.js +19 -11
- package/workspace/public/pm/ini-view.css +160 -0
- package/workspace/public/pm/ini-view.js +39 -8
- package/workspace/public/pm/premium-board.js +55 -18
- package/workspace/public/pm/premium-vw-mtg.js +2 -0
- package/workspace/public/pm/task-card.js +6 -0
- package/workspace/skills/day-check.skill +2 -2
- package/workspace/skills/morning-brief.skill +1 -1
- package/workspace/skills/sources-read.skill +8 -4
- package/workspace/task-press-test.js +120 -0
- package/workspace/task-views-test.js +245 -0
- package/workspace/test-lists/task-press.json +6 -0
- package/workspace/test-lists/task-views.json +6 -0
- package/workspace/test-lists/timeline-holds.json +6 -0
- package/workspace/timeline-holds-test.js +191 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.420.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -32,6 +32,30 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.420.0",
|
|
37
|
+
"at": "2026-10-26T05:26:08.144Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1057,
|
|
42
|
+
"t": "Ninth testing feedback batch",
|
|
43
|
+
"s": "Ninth testing feedback batch"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"v": "0.419.0",
|
|
49
|
+
"at": "2026-10-26T03:21:59.105Z",
|
|
50
|
+
"f": 2,
|
|
51
|
+
"prs": [
|
|
52
|
+
{
|
|
53
|
+
"n": 1055,
|
|
54
|
+
"t": "Eighth testing feedback batch",
|
|
55
|
+
"s": "Eighth testing feedback batch"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
35
59
|
{
|
|
36
60
|
"v": "0.418.0",
|
|
37
61
|
"at": "2026-10-26T01:29:44.041Z",
|
|
@@ -247,35 +271,6 @@
|
|
|
247
271
|
"s": "Testing fixes round 2 (Home list, one chat box, newest-first chat, Draft it)"
|
|
248
272
|
}
|
|
249
273
|
]
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"v": "0.400.0",
|
|
253
|
-
"at": "2026-10-23T13:50:38.397Z",
|
|
254
|
-
"f": 2,
|
|
255
|
-
"prs": [
|
|
256
|
-
{
|
|
257
|
-
"n": 1021,
|
|
258
|
-
"t": "Remove the classic shell and the console, and run only the tests a change reaches",
|
|
259
|
-
"s": "Remove the classic shell and the console, and run only the tests a change reaches"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"n": 1023,
|
|
263
|
-
"t": "Testing fixes from the iPhone run of create-pmos 0.399.0",
|
|
264
|
-
"s": "Testing fixes from the iPhone run of create-pmos 0.399.0"
|
|
265
|
-
}
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"v": "0.399.0",
|
|
270
|
-
"at": "2026-10-23T08:35:27.575Z",
|
|
271
|
-
"f": 2,
|
|
272
|
-
"prs": [
|
|
273
|
-
{
|
|
274
|
-
"n": 1019,
|
|
275
|
-
"t": "Build the uncovered features from the canvas review",
|
|
276
|
-
"s": "Build the uncovered features from the canvas review"
|
|
277
|
-
}
|
|
278
|
-
]
|
|
279
274
|
}
|
|
280
275
|
]
|
|
281
276
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Eval calibration log"
|
|
4
4
|
description: "Append-only record of every PM override of an evaluator verdict."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-26T05:26:05Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-26T05:26:05Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -219,8 +219,21 @@ function laneNames(profile) {
|
|
|
219
219
|
function laneDef(profile, lane) {
|
|
220
220
|
return defsFor(profile)[lane] || null;
|
|
221
221
|
}
|
|
222
|
+
// A record that names its lane as `type:` (chore, feature, discovery …) and has no `lane:` still has a lane. `type:` is
|
|
223
|
+
// also the D63 document type ("Initiative"), so only a value that is a lane of the profile counts. In pm-artifacts,
|
|
224
|
+
// `feature` means `new-feature`. A `lane:` always wins.
|
|
225
|
+
const TYPE_ALIAS = { 'pm-artifacts': { feature: 'new-feature' } };
|
|
226
|
+
function declaredLane(profile, fm) {
|
|
227
|
+
const lane = String((fm && fm.lane) || '').trim();
|
|
228
|
+
if (lane) return lane;
|
|
229
|
+
const p = profile === 'pm-artifacts' ? 'pm-artifacts' : 'product-code';
|
|
230
|
+
const t = String((fm && fm.type) || '').trim().toLowerCase();
|
|
231
|
+
if (!t) return '';
|
|
232
|
+
const named = (TYPE_ALIAS[p] || {})[t] || t;
|
|
233
|
+
return defsFor(p)[named] ? named : '';
|
|
234
|
+
}
|
|
222
235
|
function rungRule(profile, key) {
|
|
223
236
|
return (RUNG_RULES[profile] || {})[key] || null;
|
|
224
237
|
}
|
|
225
238
|
|
|
226
|
-
module.exports = { PM_ARTIFACTS, PRODUCT_CODE, RUNG_RULES, defsFor, laneNames, laneDef, rungRule };
|
|
239
|
+
module.exports = { PM_ARTIFACTS, PRODUCT_CODE, RUNG_RULES, defsFor, laneNames, laneDef, rungRule, declaredLane };
|
|
@@ -645,7 +645,7 @@ function computeWorkflowDerived(id, opts) {
|
|
|
645
645
|
const fm = readFrontmatter(recAbs) || {};
|
|
646
646
|
const profile = profileOf(root);
|
|
647
647
|
const pmProfile = profile === 'pm-artifacts';
|
|
648
|
-
const lane =
|
|
648
|
+
const lane = laneDefs.declaredLane(profile, fm) || (pmProfile ? 'prd' : 'feature');
|
|
649
649
|
const knownLane = pmProfile ? laneNames('pm-artifacts').includes(lane)
|
|
650
650
|
: laneNames('product-code').includes(lane);
|
|
651
651
|
// unknown lane = the profile's strictest (feature in product-code, a governed prd in pm-artifacts)
|
|
@@ -1877,7 +1877,7 @@ function main(argv) {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
|
|
1879
1879
|
module.exports = {
|
|
1880
|
-
computeWorkflow, readLifecycle, STOPPED_STATES, renderLadder, renderBoard, listInitiatives, layout, inFlight, BOARD_CAP,
|
|
1880
|
+
computeWorkflow, declaredLane: laneDefs.declaredLane, readLifecycle, STOPPED_STATES, renderLadder, renderBoard, listInitiatives, layout, inFlight, BOARD_CAP,
|
|
1881
1881
|
parseLeadingFrontmatter, specimenRoute, surfaceRoute, priorsCitation, isBuildPath, commitRange,
|
|
1882
1882
|
// the board's trunk range, exported so the suite can assert the split: the same record is legacy
|
|
1883
1883
|
// under BOTH ranges, and `in this change` is false under the trunk one.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-26T05:26:05Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -159,6 +159,18 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
159
159
|
ok('T the program row comes first, with its title and products and a thin span over its initiatives\' dates', /tg-pg/.test(t.first) && /Project Ascent/.test(t.title) && /2 products/.test(t.title) && t.span, JSON.stringify(t));
|
|
160
160
|
ok('T three milestones within a week merge into one counted diamond labelled "Pilot live +2 · Nov 18–21"', t.clu.length === 1 && /^3\|3 program milestones from Nov 18 to 21: Pilot live, Pilot users invited, Support ready/.test(t.clu[0]) && t.lab.includes('Pilot live +2 · Nov 18–21'), JSON.stringify(t));
|
|
161
161
|
ok('T the program\'s initiatives sit under it as one-line rows: a status dot and the name', t.kids.join() === 'Descope feature parity,Legacy IdP sunset' && t.oneLine, JSON.stringify(t));
|
|
162
|
+
const nd = await p.evaluate(async () => {
|
|
163
|
+
const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
|
|
164
|
+
const a = { key: 'board:a', id: 'a', title: 'Dated one', start: '2026-10-01', end: '2026-11-20', track: { key: 'build' } };
|
|
165
|
+
const b = { key: 'board:b', id: 'b', title: 'Mobile OTP login', start: null, end: null, track: { key: 'discover' } };
|
|
166
|
+
const c = { key: 'board:c', id: 'c', title: 'Loose undated', start: null, end: null, track: { key: 'discover' } };
|
|
167
|
+
const groups = [{ kind: 'program', key: 'p', program: { id: 'p', title: 'IDPF', products: [] }, products: [{ name: 'X', rows: [b] }], rows: [b] }, { kind: 'product', key: 'x', rows: [a, c] }];
|
|
168
|
+
const T = S.timelineHtml([a, b, c], { jira: null }, 'quarter', { now, groups });
|
|
169
|
+
const d = document.createElement('div'); d.innerHTML = T.html;
|
|
170
|
+
const row = [...d.querySelectorAll('.tg-r[data-row]')].find((r) => /Mobile OTP login/.test(r.textContent));
|
|
171
|
+
return { member: !!row, nd: row ? (row.querySelector('.tg-nd') || {}).textContent : '', loose: [...d.querySelectorAll('.tg-r[data-row]')].some((r) => /Loose undated/.test(r.textContent)), none: T.none.length };
|
|
172
|
+
});
|
|
173
|
+
ok('T an undated initiative in a program keeps its row under the program and says "No dates"; an undated one outside a program is named in the foot only (batch 8 item 4)', nd.member && nd.nd === 'No dates' && !nd.loose && nd.none === 2, JSON.stringify(nd));
|
|
162
174
|
ok('T a legend in the chip row names done, planned, the program milestone, Deliver or Evaluate and today', /Done in Jira/.test(t.lgd) && /Planned/.test(t.lgd) && /Program milestone/.test(t.lgd) && /Deliver or Evaluate/.test(t.lgd) && /Today/.test(t.lgd), t.lgd);
|
|
163
175
|
await p.click('#ibBody .tg-pg .tg-pgo');
|
|
164
176
|
// the program opens in the floating Viewer (shell A), which sits over the right of the timeline; close it before the next press
|
|
@@ -195,6 +207,8 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
195
207
|
await p.click('#bdSpans [data-sp="half"]'); await p.waitForTimeout(250);
|
|
196
208
|
g = await geo();
|
|
197
209
|
ok('S switching span keeps the date in the middle in the middle', g.span === 'half' && Math.abs(g.mid - mid) < 3 * DAY, JSON.stringify({ mid: new Date(mid), now: new Date(g.mid) }));
|
|
210
|
+
// the Monitor and Evaluate rows (batch 8 item 2) widen the range, so the middle can hold today: scroll back to the end, away from today
|
|
211
|
+
await p.evaluate(() => { const sc = document.querySelector('#ibBody .tg-sc'); sc.scrollLeft = sc.scrollWidth; }); await p.waitForTimeout(300);
|
|
198
212
|
await p.click('#ibBody .tg-tback'); await p.waitForTimeout(800);
|
|
199
213
|
g = await geo();
|
|
200
214
|
ok('S the Today button scrolls back to today, a quarter of the way in, and hides', Math.abs(g.at - 0.25) < 0.03 && !g.back.length, JSON.stringify(g));
|
|
@@ -226,7 +240,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
226
240
|
// the phone (TsCPhone, TsCPhoneSpan): the timeline is a view; the span buttons become one picker beside the product picker
|
|
227
241
|
const { ctx, page: p, errors } = await open({ view: 'time', w: 390, h: 844, store: { 'pmos.board.pview': 'time', 'pmos.board.span': 'quarter' } });
|
|
228
242
|
const ph = await p.evaluate(() => ({ spans: !document.querySelector('#bdSpans').hidden, pick: (document.querySelector('#bdSpanBtn') || {}).textContent || '', rows: [...document.querySelectorAll('#ibBody .tgq-r .tgq-n b')].map((b) => b.textContent), names: document.querySelectorAll('#ibBody .tgq-r[data-row] .tgq-n').length }));
|
|
229
|
-
ok('S phone: one span picker beside the product, no span row; each row carries its name above its bar', !ph.spans && ph.pick === 'Quarter' && ph.names ===
|
|
243
|
+
ok('S phone: one span picker beside the product, no span row; each row carries its name above its bar, Monitor and Evaluate rows too (batch 8 item 2)', !ph.spans && ph.pick === 'Quarter' && ph.names === 3 && ph.rows.includes('Legacy IdP sunset') && ph.rows.includes('Inline login for eShop checkout'), JSON.stringify(ph));
|
|
230
244
|
await p.click('#bdSpanBtn'); await p.click('#bdSpanMenu [data-spick="year"]'); await p.waitForTimeout(200);
|
|
231
245
|
ok('S phone: the picker changes the span', await p.evaluate(() => document.querySelector('#ibBody .tg-s').dataset.span === 'year' && document.querySelector('#bdSpanBtn').textContent === 'Year' && localStorage.getItem('pmos.board.span') === 'year'));
|
|
232
246
|
await p.evaluate(() => { const sc = document.querySelector('#ibBody .tg-sc'); sc.scrollLeft = sc.scrollWidth; }); await p.waitForTimeout(200);
|
|
@@ -131,15 +131,15 @@ const IVREAD = () => {
|
|
|
131
131
|
/* B1 the stage track (premium-agreed-design): eight columns, two of them milestones, the board's counts, rows by stage.
|
|
132
132
|
* The milestone mark is a drawn diamond (.msh header holding .cz-ms, cozy.css), not a ◆ glyph in the text; the heads read '◆ ' only where
|
|
133
133
|
* that shape is present, so the check pins which two columns are milestones. Evaluate 21 is the fixture's own count (+20 done). */
|
|
134
|
-
const tr = await p.evaluate(() => ({ heads: [...document.querySelectorAll('.bt-h .bt-cells > div')].map((d) => (d.classList.contains('msh') && d.querySelector('.cz-ms') ? '◆ ' : '') + d.textContent.replace(/\s+/g, ' ').trim()), rows: [...document.querySelectorAll('#ibBody .bt-l')].map((r) => ({ t: r.querySelector('.bt-nm b').textContent, cur: [...r.querySelectorAll('.bt-cells > div')].findIndex((c) => c.classList.contains('c')),
|
|
134
|
+
const tr = await p.evaluate(() => ({ heads: [...document.querySelectorAll('.bt-h .bt-cells > div')].map((d) => (d.classList.contains('msh') && d.querySelector('.cz-ms') ? '◆ ' : '') + d.textContent.replace(/\s+/g, ' ').trim()), rows: [...document.querySelectorAll('#ibBody .bt-l')].map((r) => ({ t: r.querySelector('.bt-nm b').textContent, cur: [...r.querySelectorAll('.bt-cells > div')].findIndex((c) => c.classList.contains('c')), nx: ((r.querySelector('.bt-dl .bd-nx .tx') || {}).textContent || ''), cnt: ((r.querySelector('.bt-dl .bd-nx .mu') || {}).textContent || ''), act: ((r.querySelector('.bt-dl .bd-nxa') || { getAttribute: () => '' }).getAttribute('aria-label') || ''), you: !!r.querySelector('.bt-dl .bd-nx .cz-dot.you'), st: r.querySelector('.cs').textContent, days: (r.querySelector('.sc.c small') || {}).textContent, dt: (r.querySelector('.sc.c') || {}).title })), pressed: document.querySelector('#ibTabs [aria-pressed="true"]').dataset.v, n: document.querySelector('.bt-nmh').textContent.replace(/\s+/g, ' ').trim(), oh: document.querySelector('.bt-oh').textContent, lg: !!document.querySelector('.bt-oh .lg, #ibBody .seg5'), tf: document.querySelector('.bt-tf').textContent }));
|
|
135
135
|
ok('B1 the default view is the stage track with six stages and two milestones, each with the board\'s count (old names count for the new ones)', tr.pressed === 'track' && tr.heads.join('|') === 'Triage0|Discover1|Plan1|Prioritize0|Build2|◆ Deliver1|Monitor1|◆ Evaluate21', JSON.stringify(tr.heads));
|
|
136
136
|
ok('B1 one row per initiative, sorted by stage, with its current step marked; the head counts the open initiatives', tr.rows.length === 7 && tr.rows.map((r) => r.cur).join() === '1,2,4,4,5,6,7' && tr.rows[0].t === 'Usage-based billing' && tr.n === 'Initiative 9', JSON.stringify(tr.rows.map((r) => r.t + ':' + r.cur)));
|
|
137
|
-
ok('B1 the
|
|
137
|
+
ok('B1 the Next column says what finishes the step next, with its count; the initiative\'s whole progress is never the step\'s, and a part not on record draws nothing', tr.oh === 'Next' && tr.rows[0].nx === '' && tr.rows[1].nx === 'Draft the tickets' && tr.rows[1].cnt === '1/2 parts' && tr.rows.every((r) => !/%/.test(r.cnt)) && tr.rows[3].nx === 'Link the Jira epic' && tr.rows[3].act === 'Link the Jira epic' && tr.rows[6].nx === 'Draft the outcome report' && tr.rows[6].act === 'Draft the outcome report with Claude', JSON.stringify(tr.rows.map((r) => [r.nx, r.cnt, r.act])));
|
|
138
138
|
ok('B1 the status line says late in days over and at risk with no owner', tr.rows.some((r) => /^\d+ days over$/.test(r.st)) && tr.rows[0].st === 'At risk · no owner', JSON.stringify(tr.rows.map((r) => r.st)));
|
|
139
139
|
ok('B1 days in a step are not on record, so the current step shows a dash and says so; nothing is invented', tr.rows.every((r) => (r.days === '—' || /Deliver/.test(r.dt)) && /days in this step are not on record/.test(r.dt)), JSON.stringify(tr.rows.map((r) => r.days + ':' + r.dt)));
|
|
140
140
|
// PgBoard: a committed date (the planned end) shows under the Deliver milestone; at the milestone itself it replaces the days count
|
|
141
141
|
ok('B1 at the Deliver milestone the committed date replaces the days count', tr.rows.filter((r) => /Deliver/.test(r.dt)).every((r) => r.days === 'Oct 23'), JSON.stringify(tr.rows.map((r) => r.days + ':' + r.dt)));
|
|
142
|
-
ok('B1 the
|
|
142
|
+
ok('B1 the Next column has no segment bar and no legend', tr.lg === false, String(tr.lg));
|
|
143
143
|
ok('B1 Monitor and Evaluate fold after the first of each: "20 more in Monitor and Evaluate", sorted by stage', /^20 more in Monitor and Evaluate/.test(tr.tf) && /Sorted by stage$/.test(tr.tf), tr.tf);
|
|
144
144
|
await p.click('#fold');
|
|
145
145
|
ok('B1 the fold opens and says how many are not loaded, and closes again', await p.evaluate(() => document.querySelector('#fold').getAttribute('aria-expanded') === 'true' && /Fold Monitor and Evaluate · 20 more are not loaded/.test(document.querySelector('#fold').textContent)));
|
|
@@ -189,9 +189,9 @@ const IVREAD = () => {
|
|
|
189
189
|
}
|
|
190
190
|
{
|
|
191
191
|
const R = await open({ model: BP.build(FJ.facts()) }), q = R.page;
|
|
192
|
-
const c = await q.evaluate(() => ({ chips: [...document.querySelectorAll('#bdChipset .bd-chip')].map((b) => b.textContent.replace(/\s+/g, ' ').trim() + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')),
|
|
192
|
+
const c = await q.evaluate(() => ({ chips: [...document.querySelectorAll('#bdChipset .bd-chip')].map((b) => b.textContent.replace(/\s+/g, ' ').trim() + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')), ss: document.querySelector('.bt-l[data-row="board:self-serve-v2"] .bd-nx .tx').textContent, sso: document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx .tx').textContent, red: !!document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx em.red'), ssoTitle: document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx .tx').title, st: document.querySelector('.bt-l[data-row="board:sso-partners"] .cs').textContent, ssoCount: document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx .mu').textContent, ssCount: document.querySelector('.bt-l[data-row="board:self-serve-v2"] .bd-nx .mu').textContent }));
|
|
193
193
|
ok('B1 the chips read Jira, the sprint and the release, the new asks, late, at risk and blocked from the records; This sprint is on by default', /^Jira · read /.test(c.chips[0]) && c.chips[1] === 'Sprint 24 · v2.4 ships Nov 4' && c.chips[2] === '1 new ask' && c.chips.includes('1 late') && c.chips.includes('3 at risk') && c.chips.includes('1 blocked*') === false && c.chips.includes('1 blocked') && c.chips[c.chips.length - 1] === 'Sprint 24 only*', JSON.stringify(c.chips));
|
|
194
|
-
ok('B1 Build
|
|
194
|
+
ok('B1 Build and Deliver say the ticket that matters, counted in points or tickets; a blocked ticket comes first, in red', c.ssCount === '5/13 pts' && c.ssoCount === '1/4 tickets' && /^Finish SSO-12/.test(c.sso) && c.red && /blocked/.test(c.ssoTitle) && /^Finish ONB-\d+ · 2 more$/.test(c.ss), JSON.stringify(c));
|
|
195
195
|
ok('B1 a Deliver row whose release has a date says when it ships', c.st === 'Ships Nov 4', c.st);
|
|
196
196
|
// a metric chip opens its trend (BdPanel); its "Show only" filters
|
|
197
197
|
await q.click('#bdChipset [data-f="blocked"]');
|
|
@@ -226,10 +226,6 @@ const IVREAD = () => {
|
|
|
226
226
|
ok('B1 the ticket\'s Back goes to the initiative', await until(async () => (await vwTitle(q)) === 'SSO for partners'));
|
|
227
227
|
await q.keyboard.press('Escape');
|
|
228
228
|
ok('B1 Escape closes the Viewer', await vwShut(q));
|
|
229
|
-
await q.click('.bt-l[data-row="board:self-serve-v2"] .bt-tk:nth-child(3)');
|
|
230
|
-
ok('B1 a deliverable segment on the row opens its Jira ticket', await until(async () => /ONB-34/.test(await vwTitle(q))));
|
|
231
|
-
await q.keyboard.press('Escape');
|
|
232
|
-
await vwShut(q);
|
|
233
229
|
const n1 = R.posts.length; await q.click('#chJira');
|
|
234
230
|
ok('B1 the Jira chip reads Jira again', await until(() => R.posts.slice(n1).some((x) => x.path === '/api/sources/refresh' && x.body.source === 'jira')));
|
|
235
231
|
/* the chips and tools open their designed popovers (BdAsks, BdSprint, BdFilter) and New initiative its panel (BdNew), with no "Waiting for design" tag */
|
|
@@ -293,7 +289,7 @@ const IVREAD = () => {
|
|
|
293
289
|
await view(p, 'list');
|
|
294
290
|
const listOf = () => p.evaluate(() => ({ tag: !!document.querySelector('#ibBody .bd-wtag'), rows: [...document.querySelectorAll('#ibBody .bd-lt[data-row] .bd-ltn b')].map((b) => b.textContent), ss: ((document.querySelector('#ibBody .bd-lt[data-row="board:self-serve-v2"]') || {}).textContent || '').replace(/\s+/g, ' '), head: [...document.querySelectorAll('#ibBody .bd-lt.h [role="columnheader"]')].map((h) => h.textContent).join('|'), foot: (document.querySelector('#ibBody .bd-lt.foot') || {}).textContent || '', v: document.querySelector('#ibTabs [aria-pressed="true"]').dataset.v }));
|
|
295
291
|
const lv = await listOf();
|
|
296
|
-
ok('B4 the List view lists the initiatives with workflow, stage, category, status, owner, next
|
|
292
|
+
ok('B4 the List view lists the initiatives with workflow, stage, category, status, owner, next and finish, sorted by need; Monitor and Evaluate fold below', !lv.tag && lv.rows.length === 5 && lv.head === 'Initiative · sorted by need|Workflow|Stage|Category|Status|Owner|Next|Finish|' && /Self-serve onboarding v2.*Product feature.*Build.*In progress.*7 days over.*Link the Jira epic.*10 Oct/.test(lv.ss) && /2 more in Monitor and Evaluate/.test(lv.foot) && lv.v === 'list', JSON.stringify(lv));
|
|
297
293
|
await p.click('#ibBody [data-sort="title"]');
|
|
298
294
|
const lt = await listOf();
|
|
299
295
|
ok('B4 a column title sorts the list', lt.rows[0] === 'Docs search' && lt.rows.join() === lt.rows.slice().sort((a, b) => a.localeCompare(b)).join(), JSON.stringify(lt.rows));
|
|
@@ -324,8 +320,8 @@ const IVREAD = () => {
|
|
|
324
320
|
* timeline spans C: TsAllSpans); the scroll itself is checked in board-programs-test.js (T) */
|
|
325
321
|
await view(p, 'time');
|
|
326
322
|
const tl = await p.evaluate(() => ({ spans: [...document.querySelectorAll('#bdSpans button')].map((b) => b.textContent + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join(), shown: !document.querySelector('#bdSpans').hidden, rows: [...document.querySelectorAll('#ibBody .tg-r .tg-n.ini2 b')].map((b) => b.textContent), bars: document.querySelectorAll('#ibBody .tg-bar').length, none: (document.querySelector('.tg-none') || {}).textContent || '', ask: (document.querySelector('#askDates') || {}).href || '', hid: (document.querySelector('.tg-hid') || {}).textContent || '', lgd: (document.querySelector('.tg-lgd') || {}).textContent || '', today: (document.querySelector('#ibBody .tg-tpill') || {}).textContent === 'Today' }));
|
|
327
|
-
ok('B6 the timeline has six spans and starts on Quarter, one row per initiative with dates; the others are named, with an ask to propose dates', tl.shown && tl.spans === 'Sprint,Quarter*,Half,Year,2 yr,5 yr' && tl.rows.length === 3 && tl.bars === 3 && /^
|
|
328
|
-
ok('B6 Monitor and Evaluate
|
|
323
|
+
ok('B6 the timeline has six spans and starts on Quarter, one row per initiative with dates; the others are named, with an ask to propose dates', tl.shown && tl.spans === 'Sprint,Quarter*,Half,Year,2 yr,5 yr' && tl.rows.length === 3 && tl.bars === 3 && /^4 have no dates: Usage-based billing, Audit log export, Refund reason codes, Docs search/.test(tl.none) && /\/premium\.html\?ask=board%3Aw1&q=Propose/.test(tl.ask), JSON.stringify(tl));
|
|
324
|
+
ok('B6 Monitor and Evaluate show on the Quarter, with no hidden count in the footer (batch 8 item 2); the legend (PgTimeline: done, planned, the Jira forecast, Deliver or Evaluate, today) and Today are drawn', tl.hid === '' && /Done in Jira/.test(tl.lgd) && /Planned/.test(tl.lgd) && /Jira forecast/.test(tl.lgd) && /Deliver or Evaluate/.test(tl.lgd) && /Today/.test(tl.lgd) && tl.today, JSON.stringify(tl));
|
|
329
325
|
ok('B6 the spans help popover went with the theme grouping (TsCGrill): the first head is a plain "Initiative"', await p.evaluate(() => !document.querySelector('#popRules') && !document.querySelector('#ibBody [data-rules]') && /^Initiative/.test(document.querySelector('#ibBody .tg-h .tg-n').textContent)));
|
|
330
326
|
await p.click('#ibBody .tg-n[data-key="board:partner-rate-limits"]');
|
|
331
327
|
/* re-pointed (the one view, item 3): the timeline opens the same initiative in the Viewer as every other view. The stage card names the step
|
|
@@ -438,12 +434,12 @@ const IVREAD = () => {
|
|
|
438
434
|
const gone = F.row('old-idea', 'Old idea', { status: 'cancelled', stopped: { reason: 'Not worth it now' } });
|
|
439
435
|
const R = await open({ model: BP.build(FJ.facts({ cancelled: [gone] })), trail: FT.trail() }), q = R.page;
|
|
440
436
|
await until(() => q.evaluate(() => /18d/.test(document.querySelector('#ibBody').textContent)));
|
|
441
|
-
const row = (id) => q.evaluate((k) => { const r = document.querySelector(`.bt-l[data-row="board:${k}"]`); if (!r) return null; const c = r.querySelector('.sc.c'); return { days: (c.querySelector('small') || {}).textContent, dt: c.title, st: r.querySelector('.cs').textContent, stc: r.querySelector('.cs').className, prog: r.querySelector('.bt-dl .
|
|
437
|
+
const row = (id) => q.evaluate((k) => { const r = document.querySelector(`.bt-l[data-row="board:${k}"]`); if (!r) return null; const c = r.querySelector('.sc.c'); return { days: (c.querySelector('small') || {}).textContent, dt: c.title, st: r.querySelector('.cs').textContent, stc: r.querySelector('.cs').className, prog: ((r.querySelector('.bt-dl .bd-nx .mu') || {}).textContent || ''), line: ((r.querySelector('.bt-dl .bd-nx .tx') || {}).textContent || ''), you: !!r.querySelector('.bt-dl .bd-nx .cz-dot.you'), skip: [...r.querySelectorAll('.bt-cells > div.k')].map((d) => d.title) }; }, id);
|
|
442
438
|
const ss = await row('self-serve-v2'), pr = await row('partner-rate-limits'), ub = await row('usage-billing'), rf = await row('refund-reason-codes'), ds = await row('docs-search');
|
|
443
439
|
ok('T days in the step come from the trail, with "usually N days" only from three samples on', ss.days === '18d' && ss.dt === 'Build · 18 days in this step · usually 14 days' && pr.days === '6d' && pr.dt === 'Plan · 6 days in this step', JSON.stringify([ss, pr]));
|
|
444
440
|
ok('T a skipped step is a ring that says why: the move\'s reason, or the lane\'s ladder', pr.skip.join() === 'Discover skipped: Moved from Triage to Plan: the PRD came with the ask.' && ds.skip.length === 3 && /The chore lane has no Triage step/.test(ds.skip[0]), JSON.stringify([pr.skip, ds.skip]));
|
|
445
|
-
ok('T the
|
|
446
|
-
ok('T what waits on you comes first, in blue', rf.st === 'Your verdict' && /s-you/.test(rf.stc), JSON.stringify(rf));
|
|
441
|
+
ok('T the Next cell counts the parts from the records and names the next one', ub.prog === 'PRD 2/6' && ub.line === 'Add the evidence' && pr.prog === '1/4 parts' && pr.line === 'Set the timeline', JSON.stringify([ub, pr]));
|
|
442
|
+
ok('T what waits on you comes first, in blue', rf.st === 'Your verdict' && /s-you/.test(rf.stc) && rf.you && rf.line === 'Give your verdict', JSON.stringify(rf));
|
|
447
443
|
await q.click('.bt-l[data-row="board:self-serve-v2"] .bt-nm');
|
|
448
444
|
/* re-pointed (the one view): the same records, in the stage card's day clock, the ladder, Linked (a fold of the view) and the Board's own rows */
|
|
449
445
|
const pk = await until(() => q.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden || !v.querySelector('[data-czs-id="drafted"]') || !v.querySelector('.iv')) return null; const sec = (id) => { const x = v.querySelector(`[data-czs-id="${id}"]`); return x ? { n: (x.querySelector('.czs-n') || {}).textContent || '', body: (x.querySelector('.czs-body') || {}).textContent.replace(/\s+/g, ' ').trim() } : null; }; return { meta: v.querySelector('.iv-meta').textContent, where: (v.querySelector('.iv-sch .iv-r') || {}).textContent, stage: (v.querySelector('.iv-sch b') || {}).textContent, stt: (v.querySelector('.iv-lad i.now') || {}).title, drafted: sec('drafted'), wt: sec('drift') }; }));
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.420.0",
|
|
4
|
+
"at": "2026-10-26T05:26:08.144Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1057,
|
|
9
|
+
"t": "Ninth testing feedback batch",
|
|
10
|
+
"s": "Ninth testing feedback batch"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"v": "0.419.0",
|
|
16
|
+
"at": "2026-10-26T03:21:59.105Z",
|
|
17
|
+
"f": 2,
|
|
18
|
+
"prs": [
|
|
19
|
+
{
|
|
20
|
+
"n": 1055,
|
|
21
|
+
"t": "Eighth testing feedback batch",
|
|
22
|
+
"s": "Eighth testing feedback batch"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
2
26
|
{
|
|
3
27
|
"v": "0.418.0",
|
|
4
28
|
"at": "2026-10-26T01:29:44.041Z",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "The premium Briefing (/premium.html)"
|
|
4
4
|
description: "The Briefing page at /premium.html: the hero sentence, What you need to do, Today, the dock, and what each one reads from the repository."
|
|
5
|
-
timestamp: 2026-10-
|
|
5
|
+
timestamp: 2026-10-26
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# The premium Briefing
|
|
@@ -324,7 +324,7 @@ Board is the fourth place on the rail, after Chat, at `/premium-board.html`. It
|
|
|
324
324
|
- **The view chip** in the Initiatives head says which view is shown (List, By stage or Timeline); press it to pick another.
|
|
325
325
|
- **List** shows the late and at-risk initiatives first, then the board's now view, up to 100 loaded and 25 on screen at a time. A row shows the owner and lane, a status chip when it is not on track, how far through the workflow it is (and "derived" when the workflow engine placed it), a progress bar only when a record holds progress, and the planned finish only when an end date was set ("Not planned" otherwise). "Do this first" appears only when the first row is late.
|
|
326
326
|
- **By stage** has one column for each stage of the board's workflow with the board's own count and its first five initiatives.
|
|
327
|
-
- **List** and **Timeline** show ten tasks a page with Previous and Next; **By stage** shows six cards a column with Show more. **Timeline** draws a bar for each initiative that has
|
|
327
|
+
- **List** and **Timeline** show ten tasks a page with Previous and Next; **By stage** shows six cards a column with Show more. **Timeline** draws a bar for each initiative that has dates, with the days left or over, and counts the rest. A bar runs from the earliest start to the latest due date of the initiative's breakdown items and its tasks. Every stage shows, Monitor and Evaluate too. Under a program, every initiative of the program has a row; one with no dates says **No dates** beside today. With no dates on record it says so and draws nothing.
|
|
328
328
|
- **Sprint** appears when an agent session has read Jira for the board. Otherwise it says there is none. Press it to open the sprint's facts, with the sprint as a board in a second tab: **To do**, **In progress** and **Done** columns from the last Jira read, with the dates, the days left and the points. The sprint goal is the one the Jira status check writes from the sprint's tickets, as on the console's Sprints tab, with its summary; Jira's own goal shows under it only as a reference (**In Jira: "…"**). Until the check has written one, the tab says **No goal yet**. The active and next sprints are buttons at the top. The closed sprints are behind **Past sprints**, which is shut until you press it. Press any card to open its ticket in another tab. A ticket that is on no initiative of this board shows what the sprint read holds (title, status, points and its Jira link). The board is read only: Jira owns each ticket's status and sprint, so you move tickets in Jira. Tickets with no sprint are not in this read. **Coming up** shows the next release, from the releases ledger.
|
|
329
329
|
- **Open the backlog** is in the Sprint dialog and on its sprint tab. It opens the board's Jira backlog in a tab beside the dialog: the open sprints (active, then next) and then **Backlog**, the tickets in no sprint and not done. A row shows the key, title, status, points and initiative, and why a blocked ticket is blocked. **All**, **Blocked** and **Bugs** filter it (Bugs appears only when the Jira read holds the issue type). A row opens its ticket. The list holds only the tickets the board's initiatives pushed to Jira or hold under their epics, in key order: the Jira read has no rank, assignee or capacity. You move and rank tickets in Jira. With no Jira read, the tab says so.
|
|
330
330
|
- **Next release** shows the next release that carries an initiative of this board, the one planned after it, and the three latest past releases (**Released** when accepted, else **Past**). It reads the release records (`releases/releases.jsonl`, written from the console's Releases view); Jira fix versions alone do not make a release. With no release planned it says so and still lists the past ones. With none at all it says "No release is on record for this board, past or planned."
|
package/workspace/guide/home.md
CHANGED
|
@@ -30,6 +30,8 @@ Home is the page at `/premium.html`. It follows the Agreed design and the "Uncov
|
|
|
30
30
|
|
|
31
31
|
Press the row to open Mentions in the Viewer (full screen on a phone).
|
|
32
32
|
|
|
33
|
+
A mention is not only an @ of your handle. A Slack direct message to you is a mention, and so is a Slack message or a mail that names you (your first name, full name or the name on your Slack profile) without an @. A DM or a name mention that asks you something waits on you. One that only tells you something goes to **Last 7 days**. A message you wrote yourself is never a mention.
|
|
34
|
+
|
|
33
35
|
- The summary says how many asks wait on you and how old the oldest one is, and who asks what. The round reply button opens the oldest ask.
|
|
34
36
|
- **Waiting on you** lists every ask you have not answered, whatever its age, oldest first. The age is the only signal: it turns amber after 2 days. The same person asking twice in one thread is one row with a count. With more than 5, the oldest 5 show and **Show all** shows the rest. An ask that waited 30 days or more asks once: "Did you answer this already?" ✓ clears it, × keeps it waiting and asks again in 30 days.
|
|
35
37
|
- **Last 7 days** lists what does not wait on you, by day: Today, Yesterday with its date, then dated days. An FYI has a blue dot until you open it. A mention to @channel, @here, a team or from a bot is for your information and never counts as an ask. A mention you answered says how: you replied in the thread, or you marked it answered.
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* O1 a Microsites initiative is read from the Microsites board (ws=microsites), and its page opens in the Viewer under its own title
|
|
7
7
|
* O2 the chat is the initiative's own, named by its title (its target carries ws=microsites)
|
|
8
8
|
* O3 the Microsites heading opens its page in the Viewer and Home stays on IDPF: no navigation, the list keeps the IDPF group
|
|
9
|
+
* O5 its chat's first message starts a session in Microsites, and "A new session" (In: chip, + New) starts a second one beside it
|
|
9
10
|
* Serves the real page from the real server; the reads are fixtures (fixtures/program-ascent.js through the Board and Home fixtures). */
|
|
10
11
|
const path = require('path');
|
|
11
12
|
const { spawn } = require('child_process');
|
|
@@ -88,6 +89,23 @@ const model = () => { const m = IP.build(F.facts()); return { ...m, id: ID, key:
|
|
|
88
89
|
await sleep(500);
|
|
89
90
|
ok('O3 Home stays on IDPF: no navigation, and the IDPF group is still in the list', opens.length === navs && new URL(page.url()).searchParams.get('ws') === 'idpf' && await page.evaluate(() => [...document.querySelectorAll('#hmList [data-hm-prodopen]')].some((b) => /IDPF/.test(b.getAttribute('aria-label') || ''))), JSON.stringify(opens.slice(navs)) + ' ' + page.url());
|
|
90
91
|
ok('O3 the chat is the Microsites product\'s own', await page.evaluate(() => (document.querySelector('#hmChat textarea, textarea') || {}).placeholder === 'Message Claude about Microsites'));
|
|
92
|
+
// O5 a product's chat starts its first session and, like an initiative, a new one beside it (batch 9 item 3, Wawan 2026-10-26: "I can't
|
|
93
|
+
// initiate a new session" on pmos-scarlet). Each send asks with the product's own key in its own workspace; a new session has the next key.
|
|
94
|
+
const asks = [];
|
|
95
|
+
await page.route('**/api/briefing-premium/ask*', (r) => { asks.push({ ws: new URL(r.request().url()).searchParams.get('ws'), ...JSON.parse(r.request().postData() || '{}') }); return json(r, { ok: true, session: 'sess-' + asks.length, started: true }); });
|
|
96
|
+
await page.fill('#hmIn', 'How is Microsites doing?'); await page.keyboard.press('Enter');
|
|
97
|
+
ok('O5 the first message starts the Microsites product chat in its workspace', await until(() => asks.length === 1, 5000) && asks[0].key === 'chat:product:microsites' && asks[0].ws === 'microsites', JSON.stringify(asks));
|
|
98
|
+
await page.click('#hmChat [data-hm-scope]');
|
|
99
|
+
const fresh = await until(() => page.evaluate(() => { const b = [...document.querySelectorAll('#hmMenu [role=menuitem], #hmMenu button')].find((x) => /A new session/.test(x.textContent)); if (!b) return null; const sub = b.textContent; b.click(); return sub; }), 3000);
|
|
100
|
+
ok('O5 its In: chip offers "A new session" in Microsites', !!fresh && /Microsites/.test(fresh), fresh);
|
|
101
|
+
ok('O5 the new session\'s chat is open, empty and still about Microsites', await until(() => page.evaluate(() => { const t = document.querySelector('#hmIn'); return !!t && t.placeholder === 'Message Claude about Microsites' && /A new session in Microsites/.test(document.querySelector('#hmChat').textContent); }), 3000));
|
|
102
|
+
await page.fill('#hmIn', 'A second thread'); await page.keyboard.press('Enter');
|
|
103
|
+
ok('O5 it sends with the next key, so a second session starts beside the first', await until(() => asks.length === 2, 5000) && asks[1].key === 'chat:product:microsites:2' && asks[1].ws === 'microsites', JSON.stringify(asks));
|
|
104
|
+
await page.click('[data-hm-new]');
|
|
105
|
+
const nw = await until(() => page.evaluate(() => [...document.querySelectorAll('#hmMenu [role=menuitem], #hmMenu button')].map((x) => x.textContent).find((x) => /New session in/.test(x)) || null), 3000);
|
|
106
|
+
ok('O5 the + New menu names the product: "New session in Microsites"', !!nw && /New session in Microsites/.test(nw), nw);
|
|
107
|
+
await page.keyboard.press('Escape');
|
|
108
|
+
|
|
91
109
|
// O4 a phone (Wawan, 2026-10-25): the chat is not beside the page, so the page ends with the way to its own chat
|
|
92
110
|
const pctx = await browser.newContext({ viewport: { width: 390, height: 844 }, isMobile: true, hasTouch: true });
|
|
93
111
|
const pp = await pctx.newPage();
|
|
@@ -257,6 +257,20 @@ const MENTIONS = (ini) => ({ ok: true, count: 4, gaps: [], as_of: ago(30), waiti
|
|
|
257
257
|
ok('R no page error', !R.errors.length, R.errors.join(' | '));
|
|
258
258
|
await R.close();
|
|
259
259
|
|
|
260
|
+
/* W (batch 9 item 6): widening the Viewer folds the list before it narrows the chat */
|
|
261
|
+
const W = await open({ w: 2000, h: 1000 });
|
|
262
|
+
await W.page.click('#hmList [data-hr-mentions]');
|
|
263
|
+
await until(() => vw(W.page));
|
|
264
|
+
const lay = async (px) => { await W.page.evaluate((x) => window.czViewer.setWidth(x, false), px); return W.page.evaluate(() => ({ rail: window.czViewer.railOn(), list: Math.round(document.getElementById('hmList').getBoundingClientRect().width), chat: Math.round(document.getElementById('hmChat').getBoundingClientRect().width) })); };
|
|
265
|
+
const w0 = await lay(600);
|
|
266
|
+
ok('W at a narrow width the list shows', !w0.rail && w0.list > 200, JSON.stringify(w0));
|
|
267
|
+
const w1 = await lay(1000);
|
|
268
|
+
ok('W past the default width the list folds to a rail first, and the chat keeps more than the list had', w1.rail && w1.list < 100 && w1.chat > 700, JSON.stringify(w1));
|
|
269
|
+
const w2 = await lay(600);
|
|
270
|
+
ok('W back under the default the list comes back', !w2.rail && w2.list > 200, JSON.stringify(w2));
|
|
271
|
+
ok('W no page error', !W.errors.length, W.errors.join(' | '));
|
|
272
|
+
await W.close();
|
|
273
|
+
|
|
260
274
|
/* F */
|
|
261
275
|
const P = await open({ w: 390, h: 844, rec: note });
|
|
262
276
|
const ph = await until(() => P.page.evaluate(() => !!document.querySelector('#hmList .hr-rec-card') && !!document.querySelector('#hmList [data-hr-mentions]')), 15000);
|
|
@@ -25,7 +25,7 @@ const USAGE = [
|
|
|
25
25
|
' pmos board --mine your own items',
|
|
26
26
|
' pmos board --init <initiative> one initiative',
|
|
27
27
|
' pmos board --json the answer of GET /api/board, for scripts',
|
|
28
|
-
'Done shows the last 14 days.
|
|
28
|
+
'Done shows the last 14 days. Breakdown items only: tasks are in `pmos task list <initiative>`, and they also set the initiative\'s bar on the Board timeline.',
|
|
29
29
|
];
|
|
30
30
|
const BOOL = new Set(['json', 'mine', 'help']);
|
|
31
31
|
const VALUE = new Set(['init', 'root']);
|
|
@@ -151,7 +151,7 @@ function trackOf(r, tickets, today, release) {
|
|
|
151
151
|
line.push({ text: 'Nothing is counted toward it yet' });
|
|
152
152
|
} else if (own) out = own.output && own.output.name ? own.output.name : '';
|
|
153
153
|
else line.push({ text: 'Its stage is not one of the eight steps' });
|
|
154
|
-
|
|
154
|
+
// the record's progress is the whole initiative's breakdown, not this step's output: it never stands as the step's count (batch 9 item 4)
|
|
155
155
|
// a step the row was moved past (lib/routes-boards.js keeps the move's "Skipped <stage>" warning)
|
|
156
156
|
const skipped = own ? [] : [...new Set((r.warnings || []).map((w) => (typeof w === 'string' ? /^Skipped (.+)$/.exec(w) : null)).filter(Boolean).map((m) => stepIndex(m[1], null)).filter((i) => i >= 0 && (k < 0 || i < k)))].sort((a, b) => a - b);
|
|
157
157
|
// what waits on the PM: the sign-off of a release whose tickets are all done (the last part of Deliver is the PM's)
|
|
@@ -240,6 +240,13 @@ function wfFields(r) {
|
|
|
240
240
|
const ended = r.ended && (r.ended.as === 'wontdo' || r.ended.as === 'archived') ? { as: r.ended.as, reason: r.ended.reason || '', note: clip(r.ended.note || '', 300), at: r.ended.at || null } : null;
|
|
241
241
|
return { wf, wfStage: stageFields(r.wfStage), wfStages: Array.isArray(r.wfStages) ? r.wfStages.map(stageFields).filter(Boolean).slice(0, 40) : null, ended };
|
|
242
242
|
}
|
|
243
|
+
/** The holds of a row as the timeline draws them (feedback batch 9 item 8): from, to (null while open), the return date and the reason. */
|
|
244
|
+
const DAY_RE = /^\d{4}-\d{2}-\d{2}$/;
|
|
245
|
+
const dayOr = (v) => (typeof v === 'string' && DAY_RE.test(v) ? v : null);
|
|
246
|
+
const holdsOf = (r) => (Array.isArray(r.holds) ? r.holds : []).filter((h) => h && dayOr(h.from)).slice(-12)
|
|
247
|
+
.map((h) => ({ from: h.from, to: dayOr(h.to), back: dayOr(h.back), reason: clip(h.reason || '', 200) }));
|
|
248
|
+
/** The plain gaps of a row: stretches of 4 weeks or more that no dated work covers. */
|
|
249
|
+
const gapsOf = (r) => (Array.isArray(r.gaps) ? r.gaps : []).filter((g) => g && dayOr(g.from) && dayOr(g.to)).slice(0, 12).map((g) => ({ from: g.from, to: g.to }));
|
|
243
250
|
function rowOf(r, wf, today) {
|
|
244
251
|
const names = (wf || []).map((s) => s.name), cur = names.indexOf(r.stage);
|
|
245
252
|
const bad = r.status === 'late' || r.status === 'at risk';
|
|
@@ -258,6 +265,7 @@ function rowOf(r, wf, today) {
|
|
|
258
265
|
finish: r.end ? shortDate(r.end) : 'Not planned', over: !!over, start: r.start || null, end: r.end || null,
|
|
259
266
|
owner: r.owner || null, lane: r.lane || null, anchor: r.anchor || null, kr: krShort(r.anchor), rank: Number.isInteger(r.rank) ? r.rank : null, warnings: (r.warnings || []).filter((w) => typeof w === 'string').slice(0, 12), epics: Array.isArray(r.epics) ? r.epics.filter((e) => typeof e === 'string').slice(0, 6) : [], updated: r.updated || null, reading: r.reading || null, overDays: over ? days(r.end, today) : 0,
|
|
260
267
|
acts: actsOf(r, names),
|
|
268
|
+
holds: holdsOf(r), gaps: gapsOf(r),
|
|
261
269
|
// D99: the workflow it runs and where it stands in it (lib/routes-boards.js workflowRowOf); Product feature when the server sends none
|
|
262
270
|
...wfFields(r),
|
|
263
271
|
dialog: {
|
|
@@ -296,9 +304,11 @@ function build(f) {
|
|
|
296
304
|
// each initiative's PMOS tasks (feedback batch 5, one list): its Board tasks, its breakdown items and its stage's To finish tasks, for the panel
|
|
297
305
|
const taskBy = new Map();
|
|
298
306
|
for (const w of f.items || []) {
|
|
299
|
-
|
|
307
|
+
// archived tasks come too: the one view leaves them out of every count and shows them only in the List's Archived fold (batch 9 item 5b)
|
|
308
|
+
if (!w || w.src !== 'pmos' || w.kind === 'Epic' || !w.ini || !w.uid) continue;
|
|
300
309
|
if (!taskBy.has(w.ini)) taskBy.set(w.ini, []);
|
|
301
|
-
|
|
310
|
+
// the start too: the Tasks Timeline draws a bar from the start to the due day (batch 9 item 5b)
|
|
311
|
+
taskBy.get(w.ini).push({ uid: w.uid, title: clip(w.title || '', 160), status: w.status || 'To do', owner: w.owner || '', start: w.start || '', end: w.end || '', ...(w.from ? { from: { stage: w.from.stage, finish: w.from.finish } } : {}),
|
|
302
312
|
// one view (feedback batch 6 item 1): its place in the breakdown, and a breakdown item's own stage and order
|
|
303
313
|
...(typeof w.section === 'string' ? { section: w.section } : {}), ...(w.itemStage ? { itemStage: w.itemStage } : {}), ...(Number.isFinite(w.order) ? { order: w.order } : {}), ...(w.store === 'item' ? { item: true } : {}) });
|
|
304
314
|
}
|
package/workspace/lib/brief.js
CHANGED
|
@@ -181,6 +181,11 @@ function itemExtras(x, at) {
|
|
|
181
181
|
if (typeof x.reply_needed !== 'boolean') return { error: `${at}: reply_needed must be true or false` };
|
|
182
182
|
f.reply_needed = x.reply_needed;
|
|
183
183
|
}
|
|
184
|
+
// how a mention reaches the PM (sources-read): an @handle, a Slack direct message, or the PM's name with no @
|
|
185
|
+
if (x.via !== undefined && x.via !== null) {
|
|
186
|
+
if (!['at', 'dm', 'name'].includes(x.via)) return { error: `${at}: via must be at, dm or name` };
|
|
187
|
+
f.via = x.via;
|
|
188
|
+
}
|
|
184
189
|
// The kind says who finishes the job. The PM's own item is always `you`: an agent cannot approve or auto-run it.
|
|
185
190
|
const kind = x.kind === undefined || x.kind === null ? (x.owner === 'pm' ? 'you' : 'approve') : x.kind;
|
|
186
191
|
if (!KINDS.includes(kind)) return { error: `${at}: kind must be one of ${KINDS.join(', ')}` };
|
|
@@ -23,6 +23,8 @@ const USAGE = [
|
|
|
23
23
|
' pmos coredoc write --scope <portfolio|board:<id>|initiative:<id>> --key <key> --file <path|->',
|
|
24
24
|
' Write ONE draft of a core document (the markdown from the file, or standard input with -). It waits for the PM, who issues it.',
|
|
25
25
|
' Keys: ' + CD.LEVELS.map((l) => `${l}: ${CD.SETS[l].filter(CD.storable).map((x) => x.key).join(', ')}`).join(' · '),
|
|
26
|
+
' A workflow stage\'s document (the stage cards on the initiative page) is initiative key wf-<stage key>, for example wf-technical-poc; `pmos workflow of <initiative>` lists the stage keys.',
|
|
27
|
+
' Only this command fills a card. A file written elsewhere in the repository (planning/prd/…) is not linked to any card.',
|
|
26
28
|
' every command: [--json] [--root <dir>]. Nothing is sent.',
|
|
27
29
|
];
|
|
28
30
|
const BOOL = new Set(['json', 'help']);
|
|
@@ -219,8 +219,21 @@ function laneNames(profile) {
|
|
|
219
219
|
function laneDef(profile, lane) {
|
|
220
220
|
return defsFor(profile)[lane] || null;
|
|
221
221
|
}
|
|
222
|
+
// A record that names its lane as `type:` (chore, feature, discovery …) and has no `lane:` still has a lane. `type:` is
|
|
223
|
+
// also the D63 document type ("Initiative"), so only a value that is a lane of the profile counts. In pm-artifacts,
|
|
224
|
+
// `feature` means `new-feature`. A `lane:` always wins.
|
|
225
|
+
const TYPE_ALIAS = { 'pm-artifacts': { feature: 'new-feature' } };
|
|
226
|
+
function declaredLane(profile, fm) {
|
|
227
|
+
const lane = String((fm && fm.lane) || '').trim();
|
|
228
|
+
if (lane) return lane;
|
|
229
|
+
const p = profile === 'pm-artifacts' ? 'pm-artifacts' : 'product-code';
|
|
230
|
+
const t = String((fm && fm.type) || '').trim().toLowerCase();
|
|
231
|
+
if (!t) return '';
|
|
232
|
+
const named = (TYPE_ALIAS[p] || {})[t] || t;
|
|
233
|
+
return defsFor(p)[named] ? named : '';
|
|
234
|
+
}
|
|
222
235
|
function rungRule(profile, key) {
|
|
223
236
|
return (RUNG_RULES[profile] || {})[key] || null;
|
|
224
237
|
}
|
|
225
238
|
|
|
226
|
-
module.exports = { PM_ARTIFACTS, PRODUCT_CODE, RUNG_RULES, defsFor, laneNames, laneDef, rungRule };
|
|
239
|
+
module.exports = { PM_ARTIFACTS, PRODUCT_CODE, RUNG_RULES, defsFor, laneNames, laneDef, rungRule, declaredLane };
|
|
@@ -645,7 +645,7 @@ function computeWorkflowDerived(id, opts) {
|
|
|
645
645
|
const fm = readFrontmatter(recAbs) || {};
|
|
646
646
|
const profile = profileOf(root);
|
|
647
647
|
const pmProfile = profile === 'pm-artifacts';
|
|
648
|
-
const lane =
|
|
648
|
+
const lane = laneDefs.declaredLane(profile, fm) || (pmProfile ? 'prd' : 'feature');
|
|
649
649
|
const knownLane = pmProfile ? laneNames('pm-artifacts').includes(lane)
|
|
650
650
|
: laneNames('product-code').includes(lane);
|
|
651
651
|
// unknown lane = the profile's strictest (feature in product-code, a governed prd in pm-artifacts)
|
|
@@ -1877,7 +1877,7 @@ function main(argv) {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
|
|
1879
1879
|
module.exports = {
|
|
1880
|
-
computeWorkflow, readLifecycle, STOPPED_STATES, renderLadder, renderBoard, listInitiatives, layout, inFlight, BOARD_CAP,
|
|
1880
|
+
computeWorkflow, declaredLane: laneDefs.declaredLane, readLifecycle, STOPPED_STATES, renderLadder, renderBoard, listInitiatives, layout, inFlight, BOARD_CAP,
|
|
1881
1881
|
parseLeadingFrontmatter, specimenRoute, surfaceRoute, priorsCitation, isBuildPath, commitRange,
|
|
1882
1882
|
// the board's trunk range, exported so the suite can assert the split: the same record is legacy
|
|
1883
1883
|
// under BOTH ranges, and `in this change` is false under the trunk one.
|