create-pmos 0.422.0 → 0.423.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 +13 -13
- 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/state/discoveries.md +1 -1
- package/workspace/board-programs-test.js +28 -0
- package/workspace/briefing-premium-adddoc-test.js +1 -1
- package/workspace/briefing-premium-board-test.js +12 -10
- package/workspace/briefing-premium-initiative-test.js +30 -38
- package/workspace/changelog.json +12 -0
- package/workspace/guide/briefing-premium.md +1 -1
- package/workspace/guide/home.md +9 -2
- package/workspace/guide/programs.md +1 -0
- package/workspace/guide/workflows.md +5 -1
- package/workspace/ini-workflow-test.js +4 -4
- package/workspace/lib/board-premium.js +3 -2
- package/workspace/lib/custom-docs.js +65 -3
- package/workspace/lib/engine/boards.js +25 -2
- package/workspace/lib/initiative-writer.js +63 -1
- package/workspace/lib/plan-items.js +36 -5
- package/workspace/lib/programs.js +11 -3
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-board-premium.js +22 -0
- package/workspace/lib/routes-boards.js +50 -10
- package/workspace/lib/routes-initiatives.js +12 -0
- package/workspace/lib/routes-task-links.js +329 -0
- package/workspace/lib/split-merge-suggest.js +162 -0
- package/workspace/lib/split-merge.js +379 -0
- package/workspace/lib/task-cli.js +58 -5
- package/workspace/lib/task-items.js +14 -2
- package/workspace/lib/task-links.js +422 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +2 -2
- package/workspace/premium-core-doc-issue-test.js +2 -2
- package/workspace/premium-vw-backlog-test.js +3 -3
- package/workspace/premium-vw-item-test.js +3 -3
- package/workspace/premium-vw-jira-test.js +6 -6
- package/workspace/product-lane-test.js +165 -0
- package/workspace/program-panel-test.js +1 -1
- package/workspace/public/pm/bd-ini-panel.js +16 -6
- package/workspace/public/pm/bd-prog.js +6 -1
- package/workspace/public/pm/bd-span.js +69 -15
- package/workspace/public/pm/bd-views.js +3 -2
- package/workspace/public/pm/cozy-board.css +10 -0
- package/workspace/public/pm/home-app.js +25 -8
- package/workspace/public/pm/home-ini-model.js +0 -34
- package/workspace/public/pm/home-ini.js +72 -204
- package/workspace/public/pm/ini-groups.js +228 -0
- package/workspace/public/pm/ini-links.js +561 -0
- package/workspace/public/pm/ini-tasks.js +58 -22
- package/workspace/public/pm/ini-versions.js +14 -9
- package/workspace/public/pm/ini-view-model.js +88 -4
- package/workspace/public/pm/ini-view.css +259 -18
- package/workspace/public/pm/ini-view.js +140 -32
- package/workspace/public/pm/premium-board.js +54 -6
- package/workspace/public/pm/split-merge.css +77 -0
- package/workspace/public/pm/split-merge.js +265 -0
- package/workspace/public/pm/stage-line.js +414 -0
- package/workspace/public/pm/task-card.js +5 -3
- package/workspace/public/pm/wf-page.css +2 -0
- package/workspace/public/pm/wf-page.js +2 -0
- package/workspace/public/pm/wf-stage.js +2 -1
- package/workspace/server.js +15 -1
- package/workspace/split-merge-ui-test.js +175 -0
- package/workspace/stage-card-test.js +12 -11
- package/workspace/task-card-test.js +3 -2
- package/workspace/task-delete-test.js +126 -0
- package/workspace/task-links-test.js +227 -0
- package/workspace/task-milestones-test.js +1 -1
- package/workspace/task-plans-test.js +6 -0
- package/workspace/task-views-test.js +1 -1
- package/workspace/test-lists/bd-ini-panel.json +8 -2
- package/workspace/test-lists/product-lane.json +6 -0
- package/workspace/test-lists/split-merge.json +15 -0
- package/workspace/test-lists/task-delete.json +5 -0
- package/workspace/test-lists/task-links.json +6 -0
- package/workspace/tk-tasks-test.js +173 -57
- package/workspace/workflows-setup-test.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.423.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,18 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.423.0",
|
|
37
|
+
"at": "2026-10-26T16:10:21.071Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1063,
|
|
42
|
+
"t": "Eleventh testing feedback batch, part 2",
|
|
43
|
+
"s": "Eleventh testing feedback batch, part 2"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
35
47
|
{
|
|
36
48
|
"v": "0.422.0",
|
|
37
49
|
"at": "2026-10-26T13:03:41.940Z",
|
|
@@ -259,18 +271,6 @@
|
|
|
259
271
|
"s": "Chat names the real program press; add Turn into a program to the initiative ⋯"
|
|
260
272
|
}
|
|
261
273
|
]
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"v": "0.403.0",
|
|
265
|
-
"at": "2026-10-24T03:40:15.576Z",
|
|
266
|
-
"f": 2,
|
|
267
|
-
"prs": [
|
|
268
|
-
{
|
|
269
|
-
"n": 1033,
|
|
270
|
-
"t": "Viewer shell A, Home rows, meetings, reports and PRD to Jira (second kit)",
|
|
271
|
-
"s": "Viewer shell A, Home rows, meetings, reports and PRD to Jira (second kit)"
|
|
272
|
-
}
|
|
273
|
-
]
|
|
274
274
|
}
|
|
275
275
|
]
|
|
276
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-26T16:10:18Z"}
|
|
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-26T16:10:18Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -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-26T16:10:18Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -175,6 +175,16 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
175
175
|
return [...d.querySelectorAll('.tg-r[data-row]')].map((r) => r.dataset.row);
|
|
176
176
|
});
|
|
177
177
|
ok('T By product: a program\'s initiative shows under its product on the timeline (batch 11 item 12)', bpt.includes('board:a') && bpt.includes('board:b'), JSON.stringify(bpt));
|
|
178
|
+
// batch 11 item 22: a timeline reads in time; each group's rows by start then end, undated last, whatever order the Board lists them in
|
|
179
|
+
const ord = await p.evaluate(async () => {
|
|
180
|
+
const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
|
|
181
|
+
const r = (k, s, e, prog) => ({ key: 'board:' + k, id: k, title: 'Row ' + k, start: s, end: e, track: { key: 'build' }, ...(prog ? { inProgram: 'pg' } : {}) });
|
|
182
|
+
const late = r('late', '2026-12-01', '2027-02-01'), early = r('early', '2026-08-01', '2026-11-01'), mid = r('mid', '2026-10-01', '2026-12-15'), nd = r('nd', null, null, true);
|
|
183
|
+
const groups = [{ kind: 'product', key: 'p:x', name: 'x', rows: [late, nd, mid, early] }];
|
|
184
|
+
const d = document.createElement('div'); d.innerHTML = S.timelineHtml([late, mid, early, nd], { jira: null }, 'quarter', { now, groups }).html;
|
|
185
|
+
return [...d.querySelectorAll('.tg-r[data-row]')].map((x) => x.dataset.row.slice(6)).join();
|
|
186
|
+
});
|
|
187
|
+
ok('T the timeline rows of a group run by start date, an undated one last (batch 11 item 22)', ord === 'early,mid,late,nd', ord);
|
|
178
188
|
const nd = await p.evaluate(async () => {
|
|
179
189
|
const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
|
|
180
190
|
const a = { key: 'board:a', id: 'a', title: 'Dated one', start: '2026-10-01', end: '2026-11-20', track: { key: 'build' } };
|
|
@@ -187,6 +197,24 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
187
197
|
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 };
|
|
188
198
|
});
|
|
189
199
|
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));
|
|
200
|
+
// batch 11 item 19: By product, a program's undated initiative keeps its "No dates" row under its product (it disappeared once grouped by
|
|
201
|
+
// product); an undated one in no program is still named in the foot only
|
|
202
|
+
const bnd = await p.evaluate(async () => {
|
|
203
|
+
const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
|
|
204
|
+
const a = { key: 'board:a', id: 'a', title: 'Dated one', start: '2026-10-01', end: '2026-11-20', track: { key: 'build' } };
|
|
205
|
+
const b = { key: 'board:b', id: 'b', title: 'Mobile OTP login', start: null, end: null, track: { key: 'discover' } };
|
|
206
|
+
const c = { key: 'board:c', id: 'c', title: 'Loose undated', start: null, end: null, track: { key: 'discover' } };
|
|
207
|
+
const groups = [{ kind: 'product', key: 'p:x', name: 'x', rows: [a, { ...b, inProgram: 'pg' }, c] }];
|
|
208
|
+
for (const phone of [false, true]) {
|
|
209
|
+
const T = S.timelineHtml([a, b, c], { jira: null }, 'quarter', { now, groups, phone });
|
|
210
|
+
const d = document.createElement('div'); d.innerHTML = T.html;
|
|
211
|
+
const rs = [...d.querySelectorAll('[data-row]')], row = rs.find((r) => r.dataset.row === 'board:b');
|
|
212
|
+
const out = { phone, rows: rs.map((r) => r.dataset.row), nd: row ? (row.querySelector('.tg-nd') || {}).textContent : '', none: T.none.length };
|
|
213
|
+
if (!(out.nd === 'No dates' && out.rows.join() === 'board:a,board:b' && out.none === 2)) return out;
|
|
214
|
+
}
|
|
215
|
+
return true;
|
|
216
|
+
});
|
|
217
|
+
ok('T By product: a program\'s undated initiative keeps its "No dates" row under its product, desktop and phone; one in no program is in the foot only (batch 11 item 19)', bnd === true, JSON.stringify(bnd));
|
|
190
218
|
ok('T a legend in the chip row names done, planned, the program milestone, Milestone (Deliver, Evaluate and milestone tasks, batch 11 item 3) and today', /Done in Jira/.test(t.lgd) && /To do/.test(t.lgd) && /Program milestone/.test(t.lgd) && /Program milestone.*Milestone/.test(t.lgd) && /Today/.test(t.lgd), t.lgd);
|
|
191
219
|
await p.click('#ibBody .tg-pg .tg-pgo');
|
|
192
220
|
// the program opens in the floating Viewer (shell A), which sits over the right of the timeline; close it before the next press
|
|
@@ -59,7 +59,7 @@ const PAGES = {
|
|
|
59
59
|
await page.route('**/api/briefing-premium/**', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, turns: [], working: false }) }));
|
|
60
60
|
await page.goto(BASE + P.file + P.qs + theme);
|
|
61
61
|
let up = await until(() => page.evaluate((s) => !!document.querySelector(s), P.ready), 20000);
|
|
62
|
-
if (up && kind === 'initiative') {
|
|
62
|
+
if (up && kind === 'initiative') { /* the page holds the Tasks (batch 11 item 20) */ await docsView(page); up = await until(() => page.evaluate((s) => !!document.querySelector(s), P.btn), 20000); } // the Overview holds the button
|
|
63
63
|
if (up && P.file === '/premium-board.html') await page.click(w <= 720 ? '#chDocs' : '#tabDocs'); // a phone reaches the documents from its Docs chip // the Agreed design shows the documents on the Documents tab (premium-agreed-design)
|
|
64
64
|
return { ctx, page, errors, posts, up, calls: () => calls, setCustom: (c) => { current = c; }, reply: (a) => { reply = a; } };
|
|
65
65
|
};
|
|
@@ -56,9 +56,11 @@ const IVREAD = () => {
|
|
|
56
56
|
const sc = iv.querySelector('.iv-sc'), c = window.czViewer && window.czViewer.current(), r = v.getBoundingClientRect();
|
|
57
57
|
return { t: tx('.cz-vw-title', v), kind: c && c.kind, line: tx('.iv-s1 b'), right: tx('.iv-s1 .iv-r'), why: tx('.iv-why'), meta: tx('.iv-meta'), wfi: (iv.querySelector('.iv-meta .wfi') || {}).title || null,
|
|
58
58
|
primary: (iv.querySelector('[data-iv-primary]') || {}).dataset ? (iv.querySelector('[data-iv-primary]') || { dataset: {} }).dataset.ivPrimary || null : null,
|
|
59
|
-
stage: sc && tx('.iv-sch b', sc), where: sc && tx('.iv-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
stage: sc && tx('.iv-sch b', sc), where: sc && tx('.iv-scm', sc), no: sc && tx('.iv-sch .iv-no', sc),
|
|
60
|
+
// the stage line (batch 11 item 21): one part a stage, read back as "<done|now|next> [ms]" a stage, as the ladder's bars were
|
|
61
|
+
...(() => { const by = new Map(); for (const x of sc ? sc.querySelectorAll('.iv-tl .iv-tlp') : []) if (!by.has(x.dataset.ivStage)) by.set(x.dataset.ivStage, x);
|
|
62
|
+
const ps = [...by.values()]; return { bars: ps.map((x) => [['done', 'now', 'next'].find((k) => x.classList.contains(k)) || '', /^◆ /.test(x.title) ? 'ms' : ''].filter(Boolean).join(' ')).join('|'), titles: ps.map((x) => x.title) }; })(),
|
|
63
|
+
aria: sc && sc.getAttribute('aria-label'), dates: sc && tx('.iv-tl-dt', sc), next: sc && sc.querySelector('.iv-scgo') ? sc.querySelector('.iv-scgo').getAttribute('aria-label') : null,
|
|
62
64
|
tasks: tx('.iv-th'), secs: [...iv.querySelectorAll('.iv-ws')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()), tks: [...iv.querySelectorAll('[data-iv-ticket]')].map((e) => e.dataset.ivTicket).join(),
|
|
63
65
|
rows: [...iv.querySelectorAll('.iv-tr')].map((e) => e.textContent.replace(/\s+/g, ' ').trim()), q: [...iv.querySelectorAll('.iv-q')].map((e) => e.textContent), empty: !!iv.querySelector('.iv-empty'),
|
|
64
66
|
folds: [...iv.querySelectorAll('.iv-fr b, .czs-row b')].map((b) => b.textContent), body: v.querySelector('.cz-vw-body').textContent.replace(/\s+/g, ' '),
|
|
@@ -156,9 +158,9 @@ const IVREAD = () => {
|
|
|
156
158
|
const k = await q.evaluate(() => { const r = document.querySelector('.bt-l[data-row="board:usage-billing"]'); return { cls: r.querySelector('.bt-cells > div').className, n: r.querySelectorAll('.bt-cells > div.k').length }; });
|
|
157
159
|
ok('B1 a step the row was moved past is a hollow "Skipped" ring', /\bk\b/.test(k.cls) && k.n === 1, JSON.stringify(k));
|
|
158
160
|
await q.click('.bt-l[data-row="board:usage-billing"] .bt-nm');
|
|
159
|
-
/* re-pointed (batch
|
|
161
|
+
/* re-pointed (batch 11 item 21, the stage line): as on the Board's timeline, a skipped stage has no part; a » marks it only between two parts */
|
|
160
162
|
const sk = await until(() => q.evaluate(IVREAD));
|
|
161
|
-
ok('B1 the panel
|
|
163
|
+
ok('B1 the panel\'s line has no part for the skipped first step: it starts at Discover, now', !!sk && sk.bars.split('|').length === 7 && sk.bars.split('|')[0] === 'now' && /^Discover · /.test(sk.titles[0]) && !sk.titles.some((x) => /Triage/.test(x)), JSON.stringify(sk && [sk.bars, sk.titles]));
|
|
162
164
|
await R.ctx.close();
|
|
163
165
|
}
|
|
164
166
|
{
|
|
@@ -175,8 +177,8 @@ const IVREAD = () => {
|
|
|
175
177
|
const td = await until(() => q.evaluate(IVREAD));
|
|
176
178
|
ok('XipB a Tender initiative: Late, the one sentence why from the record, the progress said once as typed in by hand, the owner and the Tender workflow', !!td && td.line === 'Late' && /^The plan ended Aug 11(, 2026)?, \d+ days ago, and Tender new CIAM is in Technical POC\.$/.test(td.why) && td.right === '53% done · typed in by hand' && /wawan ?· ?Tender$/.test(td.meta) && td.wfi === 'Tender', JSON.stringify(td));
|
|
177
179
|
ok('XipB the stage card is the Tender stage: "Technical POC", 5 of 7 on the ladder, the seven Tender stages with Technical POC current and ◆ on the last two', !!td && td.stage === 'Technical POC' && td.no === '5' && td.bars === 'done|done|done|done|now|next ms|next ms' && td.aria === 'Stage 5 of 7 of Tender: Technical POC. Next stage: Award decision.' && !/No st(ep|age) on record/.test(td.body), JSON.stringify(td && [td.stage, td.no, td.bars, td.aria]));
|
|
178
|
-
ok('XipB the
|
|
179
|
-
ok('XipB the dates
|
|
180
|
+
ok('XipB the → names the next stage; no breakdown draws the seven Tender sections dashed, with Technical POC marked now', !!td && /^Next: ◆ Award decision/.test(td.next || '') && td.empty && /Technical POC · now/.test(td.body), JSON.stringify(td && [td.next, td.empty]));
|
|
181
|
+
ok('XipB the dates under the line say the plan and the overrun; no Jira date; the progress number is said once', !!td && /^Apr 23 ?Aug 11 ?\d+ days over$/.test(td.dates || '') && !/Jira:/.test(td.dates) && (td.body.match(/53%/g) || []).length === 1 && !td.folds.includes('Dates and trend'), JSON.stringify(td && [td.dates, td.folds]));
|
|
180
182
|
if (process.env.PMOS_SHOTS) await q.screenshot({ path: path.join(process.env.PMOS_SHOTS, 'ini-tender-1440.png') });
|
|
181
183
|
await R.ctx.close();
|
|
182
184
|
if (process.env.PMOS_SHOTS) {
|
|
@@ -328,7 +330,7 @@ const IVREAD = () => {
|
|
|
328
330
|
* over the eight; the old Plan card is the dates line (start, plan end, days left; no Jira date without a Jira forecast); the progress says
|
|
329
331
|
* where it comes from; Dates and trend is gone */
|
|
330
332
|
const tp = await until(() => p.evaluate(IVREAD).then((x) => (x && x.kind === 'Initiative' ? x : null)));
|
|
331
|
-
ok('B6 an initiative on the timeline opens in the Viewer: the stage card names Plan over the eight steps, the dates line draws the plan dates, no empty rows', !!tp && tp.t === 'Partner API rate limits' && tp.stage === 'Plan' && tp.bars.split('|').length === 8 && tp.bars.split('|').indexOf('now') === 2 && tp.right === '18% done · typed in by hand' && /^Sep 20(, 2026)? ?Nov 30(, 2026)?
|
|
333
|
+
ok('B6 an initiative on the timeline opens in the Viewer: the stage card names Plan over the eight steps, the dates line draws the plan dates, no empty rows', !!tp && tp.t === 'Partner API rate limits' && tp.stage === 'Plan' && tp.bars.split('|').length === 8 && tp.bars.split('|').indexOf('now') === 2 && tp.right === '18% done · typed in by hand' && /^Sep 20(, 2026)? ?Nov 30(, 2026)? · \d+ days left$/.test(tp.dates || '') && !/Jira:/.test(tp.dates) && !tp.folds.includes('Dates and trend'), JSON.stringify(tp && [tp.stage, tp.bars, tp.right, tp.dates, tp.folds]));
|
|
332
334
|
await p.click('#czViewer [data-cz-vw="more"]'); await sleep(80);
|
|
333
335
|
const tm = await p.evaluate(() => [...document.querySelectorAll('.cz-vw-menu [role="menuitem"]')].map((b) => b.textContent.trim()));
|
|
334
336
|
ok('B6 ⋯ holds the timeline panel\'s actions first (move, hold, cancel or archive; the plan dates), then Open in full, link and copy', tm[0] === 'Move, hold, cancel or archive' && tm[1] === 'Change the plan dates' && tm.includes('Open in full') && tm.includes('Copy link') && tm.includes('Copy as text'), JSON.stringify(tm));
|
|
@@ -442,8 +444,8 @@ const IVREAD = () => {
|
|
|
442
444
|
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));
|
|
443
445
|
await q.click('.bt-l[data-row="board:self-serve-v2"] .bt-nm');
|
|
444
446
|
/* 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 */
|
|
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-
|
|
446
|
-
ok('T the stage card says where it stands and the day in the stage of the usual days; the
|
|
447
|
+
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-scm') || {}).textContent, stage: (v.querySelector('.iv-sch b') || {}).textContent, stt: (v.querySelector('.iv-tl .iv-tlp.now') || {}).title, drafted: sec('drafted'), wt: sec('drift') }; }));
|
|
448
|
+
ok('T the stage card says where it stands and the day in the stage of the usual days; the line marks the stage now', !!pk && pk.stage === 'Build' && /18 of ~14 days$/.test(pk.where || '') && !/day|usually/.test(pk.meta) && /^Build · .*now$/.test(pk.stt || ''), JSON.stringify(pk && [pk.stage, pk.where, pk.meta, pk.stt]));
|
|
447
449
|
if (process.env.PMOS_SHOTS) await q.screenshot({ path: path.join(process.env.PMOS_SHOTS, 'ini-build-1280.png') });
|
|
448
450
|
ok('T tickets drafted in PMOS and not in Jira are listed, and go to Jira only through your Commit', !!pk && pk.drafted.n === '1' && /^V\.4 ?Resend the invite after 48 hours ?not in Jira ?They go to Jira only through your Commit\.$/.test(pk.drafted.body), JSON.stringify(pk && pk.drafted));
|
|
449
451
|
ok('T a ticket pushed from an older PRD is flagged as PRD drift', !!pk && !!pk.wt && /^ONB-31 was pushed from an older PRD/.test(pk.wt.body), JSON.stringify(pk && pk.wt));
|
|
@@ -40,7 +40,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
40
40
|
const mk = (o) => IP.build(F.facts(o));
|
|
41
41
|
const BOARD = BP.build(BF.facts());
|
|
42
42
|
const BRIEF = BRP.build(BRF.facts());
|
|
43
|
-
const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-docs\/draft)$/;
|
|
43
|
+
const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-docs\/draft|task-plans\/propose)$/;
|
|
44
44
|
|
|
45
45
|
(async () => {
|
|
46
46
|
const exe = findBrowser();
|
|
@@ -74,14 +74,20 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
74
74
|
// initiative reads, its card from the record (the ladder). Before the record reads, the page says it is reading.
|
|
75
75
|
async function ready(page, full = true) { return until(() => page.evaluate((f) => /·/.test((document.querySelector('#czViewer:not([hidden]) .cz-vw-kind') || {}).textContent || '') && (!f || (!!document.querySelector('#czViewer .iv-sc') && !!((document.querySelector('#czViewer .iv-sch > b') || {}).textContent || '').trim())), full), 30000); }
|
|
76
76
|
const txt = (p, s) => p.evaluate((q) => ((document.querySelector(q) || {}).textContent || '').replace(/\s+/g, ' ').trim(), s);
|
|
77
|
-
//
|
|
78
|
-
|
|
77
|
+
// batch 11 item 20: the page holds the Tasks (the old All tasks panel is gone); its ⋯ holds Move to a stage and its Documents fold opens
|
|
78
|
+
// Documents; the Stage and Documents views hold each other under ⋯; ← goes back to the page. view names the one to show ('tasks' is the page)
|
|
79
|
+
const LABEL = { docs: 'Documents', stage: 'Stage' };
|
|
80
|
+
const onPage = (p) => p.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"]'), V);
|
|
79
81
|
const show = async (p, view) => {
|
|
80
|
-
if (
|
|
81
|
-
|
|
82
|
+
if (view === 'tasks') { for (let i = 0; i < 4 && !(await onPage(p)); i++) { await p.click('#czViewer [data-cz-vw="back"]'); await sleep(150); } return until(() => onPage(p)); }
|
|
83
|
+
if (await onPage(p) && view === 'docs') await p.click(`${V} [data-iv-docs]`);
|
|
84
|
+
else {
|
|
85
|
+
await p.click('#czViewer [data-cz-vw="more"]'); await until(() => p.evaluate(() => !!document.querySelector('#czViewer .cz-vw-menu')));
|
|
86
|
+
await p.click(`#czViewer .cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("${(await onPage(p)) ? 'Move to a stage' : LABEL[view]}"))`);
|
|
87
|
+
}
|
|
82
88
|
return until(() => p.evaluate((a) => !!document.querySelector(a[0] + ` [data-hi-v="${a[1]}"]`), [V, view])); };
|
|
83
89
|
const moreLabels = (p) => p.evaluate(async () => { const b = document.querySelector('#czViewer [data-cz-vw="more"]'); if (!b) return []; b.click(); await new Promise((r) => setTimeout(r, 50)); const m = document.querySelector('#czViewer .cz-vw-menu'); const out = m ? [...m.querySelectorAll('[role="menuitem"] span:first-of-type')].map((x) => x.textContent) : []; b.click(); return out; });
|
|
84
|
-
// the initiative's page first (its list row opens it again when something else is shown), then
|
|
90
|
+
// the initiative's page first (its list row opens it again when something else is shown), then the view asked for
|
|
85
91
|
const overview = async (p, view = 'stage') => {
|
|
86
92
|
if (!(await p.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"]'), V))) {
|
|
87
93
|
if (!(await p.evaluate(() => { const b = document.querySelector('#hmList [data-hm-sel="i:self-serve-v2"]'); return !!b && !!b.offsetParent; }))) await p.click('#hmNeeds');
|
|
@@ -89,8 +95,6 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
89
95
|
}
|
|
90
96
|
const s = await until(() => p.evaluate((v) => { const o = document.querySelector(v); if (!o) return null; if (o.querySelector('[data-hi-v="page"]')) return 'ok'; return /could not be read/.test(o.textContent) ? 'err' : null; }, V), 30000);
|
|
91
97
|
if (s !== 'ok') return !!s;
|
|
92
|
-
await p.click('#czViewer [data-cz-vw="more"]').then(() => p.click('.cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("All tasks"))'));
|
|
93
|
-
await until(() => p.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="tasks"]'), V));
|
|
94
98
|
if (view && view !== 'tasks') await show(p, view);
|
|
95
99
|
return true; };
|
|
96
100
|
const writes = (X) => X.posts.filter((x) => WRITES.test(x.path));
|
|
@@ -121,12 +125,12 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
121
125
|
|
|
122
126
|
/* I3 header and the ONE view (batch 6 items 1 and 3: the Board's panel draws the same; stage-card-test.js holds the stage card's behaviour) */
|
|
123
127
|
const card = await p.evaluate(() => { const c = document.querySelector('#czViewer .iv-sc'), iv = document.querySelector('#czViewer .iv'); const q = (s, r = c) => ((r.querySelector(s) || {}).textContent || '').replace(/\s+/g, ' ').trim(), d = (s) => ((document.querySelector(s) || {}).textContent || '').trim();
|
|
124
|
-
return { kind: d('#czViewer .cz-vw-kind'), title: d('#czVwTitle'), stage: q('.iv-sch > b'), where: q('.iv-
|
|
128
|
+
return { kind: d('#czViewer .cz-vw-kind'), title: d('#czVwTitle'), stage: q('.iv-sch > b'), where: q('.iv-scm'), bars: new Set([...c.querySelectorAll('.iv-tl .iv-tlp')].map((x) => x.dataset.ivStage)).size + c.querySelectorAll('.iv-tl .iv-tl-sk').length, now: new Set([...c.querySelectorAll('.iv-tl .iv-tlp.now')].map((x) => x.dataset.ivStage)).size, tail: (c.querySelector('.iv-scgo') || { getAttribute: () => '' }).getAttribute('aria-label') || '', ms: !!c.querySelector('.iv-scgo[data-ms]'),
|
|
125
129
|
pri: iv.querySelectorAll('[data-iv-primary]').length, cta: !!iv.querySelector('[data-hm-cta]'), tasks: q('.iv-th', iv), empty: !!iv.querySelector('.iv-empty'), secs: [...iv.querySelectorAll('.iv-ws b')].map((b) => b.textContent), meta: q('.iv-meta', iv) }; });
|
|
126
130
|
ok('I3 the page\'s header names the initiative, its workflow and its anchor (D99)', card.title === 'Self-serve onboarding v2' && /^Product feature · \S/.test(card.kind), JSON.stringify(card));
|
|
127
|
-
ok('I3 the card shows the stage the workflow engine derives, with one
|
|
131
|
+
ok('I3 the card shows the stage the workflow engine derives, with one part a stage on its line and the current one marked', card.stage === 'Build' && card.bars === 8 && card.now === 1, JSON.stringify(card));
|
|
128
132
|
ok('I1 the summary leads with at most one primary; the card holds no step list; Tasks is the WBS by stage', card.pri <= 1 && !card.cta && /^Tasks/.test(card.tasks) && (card.secs.length > 0 || card.empty) && !/pull request|builder agent/i.test(card.secs.join(' ')), JSON.stringify(card));
|
|
129
|
-
ok('I1 the card
|
|
133
|
+
ok('I1 the card\'s → names the next stage', /^Next: ◆ Deliver/.test(card.tail), JSON.stringify(card));
|
|
130
134
|
ok('I3 Deliver is a milestone: the next stage carries the ◆ mark (Agreed design AgInitAgents)', card.ms, JSON.stringify(card));
|
|
131
135
|
ok('I1 the card wrote nothing on its own', writes(A).length === 0, JSON.stringify(writes(A)));
|
|
132
136
|
|
|
@@ -138,24 +142,17 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
138
142
|
ok('I7 a file opens as its page in the Viewer, not a dialog', await until(() => p.evaluate((v) => !!document.querySelector(v + ' .obody.vw[data-vw="doc:planning/prd/self-serve-v2-prd.md"]') && !(document.querySelector('#dlg') && !!document.querySelector('#dlg.on')), V), 15000));
|
|
139
143
|
|
|
140
144
|
/* I4 the Overview */
|
|
141
|
-
const i4 = await overview(p, null) && await p.evaluate((v) =>
|
|
142
|
-
|
|
143
|
-
ok('I4 All tasks under ⋯ opens the initiative\'s Tasks, with Documents and Stage under ⋯ on a desktop (XvATasks), and no Waiting for design marker', i4 && ['Group tasks by', 'Documents', 'Stage', 'Open the full record'].every((l) => i4m.includes(l)), JSON.stringify(i4m));
|
|
144
|
-
const tk = await p.evaluate((v) => { const o = document.querySelector(v); return { tasks: [...o.querySelectorAll('[data-ov-tkrow]')].map((r) => r.dataset.ovTkrow).sort(), checks: [...o.querySelectorAll('button[data-hi-chk]')].map((b) => b.dataset.hiChk).sort() }; }, V);
|
|
145
|
-
await p.click('#czViewer [data-cz-vw="back"]');
|
|
146
|
-
ok('I4 ← from Tasks comes back to the page (HbCDrill)', await until(() => p.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"]'), V)));
|
|
145
|
+
const i4 = await overview(p, null) && await until(() => p.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"] .iv-th [data-iv-add]') && !document.querySelector(v + ' [data-hi-view]') && !document.querySelector(v + ' .hx-wait'), V));
|
|
146
|
+
ok('I4 the page holds the Tasks with its +, and no All tasks switch (batch 11 item 20), and no Waiting for design marker', !!i4);
|
|
147
147
|
ok('I4 the card has no Overview tile: the chat box on the page talks about the initiative (stage card D)', await p.evaluate((v) => !document.querySelector(v + ' .iv [data-hm-ov]') && /^Message Claude about Self-serve onboarding v2/.test(document.querySelector('#hmIn').placeholder), V));
|
|
148
148
|
const pm = await moreLabels(p);
|
|
149
|
-
ok('I4 the page\'s ⋯ holds the stage switch, the stakeholder, the program, the Board and the record, then hold and cancel last (HbCMore)', ['
|
|
150
|
-
await p.click('#czViewer [data-cz-vw="more"]').then(() => p.click('.cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("All tasks"))'));
|
|
151
|
-
await until(() => p.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="tasks"]'), V));
|
|
149
|
+
ok('I4 the page\'s ⋯ holds the stage switch, the stakeholder, the program, the Board and the record, then hold and cancel last (HbCMore)', ['Move to a stage', 'Moves on by itself', 'Add a stakeholder', 'Turn into a program', 'Open on the Board', 'The record', 'Put on hold', 'Cancel the initiative'].every((l) => pm.includes(l)) && !pm.includes('All tasks') && pm[pm.length - 1] === 'Cancel the initiative', JSON.stringify(pm));
|
|
152
150
|
await show(p, 'stage');
|
|
153
151
|
const st = await p.evaluate((v) => { const o = document.querySelector(v); return { moves: [...o.querySelectorAll('[data-ov-move]')].map((b) => b.dataset.ovMove), cur: (o.querySelector('[data-ov-move][aria-pressed="true"]') || {}).textContent, life: [...o.querySelectorAll('[data-ov-life]')].map((b) => b.dataset.ovLife) }; }, V);
|
|
154
152
|
await show(p, 'docs');
|
|
155
153
|
const ov = await p.evaluate((v) => { const o = document.querySelector(v); return { docs: [...o.querySelectorAll('[data-ov-doc]')].map((d) => d.dataset.ovDoc).sort(), draft: [...o.querySelectorAll('[data-ov-draft], [data-czs-act^="draft:"], [data-ov-none]')].map((b) => b.dataset.ovDraft || b.dataset.ovNone || b.dataset.czsAct.slice(6)).sort(), pri: ((o.querySelector('.czs-pri[data-czs-act^="draft:"]') || {}).dataset || {}).czsAct || '', drafting: [...o.querySelectorAll('[data-ov-doc]')].filter((d) => /Drafting/.test(d.textContent)).map((d) => d.dataset.ovDoc), dread: [...o.querySelectorAll('[data-ov-dread]')].map((b) => b.dataset.ovDread), sum: (o.querySelector('[data-ov-dsum]') || {}).textContent || '' }; }, V);
|
|
156
154
|
const M = mk();
|
|
157
155
|
ok('I4 the Stage view lists the board\'s stages with the current one pressed, and the lifecycle presses', JSON.stringify(st.moves) === JSON.stringify(M.acts.stages) && st.cur === 'Build' && st.life.join() === 'on-hold,cancelled', JSON.stringify(st));
|
|
158
|
-
ok('I6 the tasks are the record\'s, and only a PMOS task has a check box it can change', JSON.stringify(tk.tasks) === JSON.stringify(M.tasks.rows.map((t) => t.key).sort()) && JSON.stringify(tk.checks) === JSON.stringify(M.tasks.rows.filter((t) => t.pmos && t.uid).map((t) => t.key).sort()), JSON.stringify(tk));
|
|
159
156
|
ok('I7 the core documents are the non-technical ones, with the engine\'s summary', JSON.stringify(ov.docs) === JSON.stringify(M.docs.rows.filter((d) => !d.tech).map((d) => d.key).sort()) && ov.sum === M.docs.cap, JSON.stringify(ov));
|
|
160
157
|
ok('I7 a document not started offers Draft it (the summary\'s one primary drafts the first, the rest offer it from their row); a running one says Drafting and has no press; a draft offers Read', /^draft:(problem|research)$/.test(ov.pri) && [...new Set(ov.draft)].filter((k) => k === 'problem' || k === 'research').sort().join() === 'problem,research' && ov.drafting.join() === 'launch' && ov.dread.length === M.docs.rows.filter((d) => !d.tech && d.st === 'draft' && d.path && d.slot).length, JSON.stringify(ov));
|
|
161
158
|
|
|
@@ -174,21 +171,16 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
174
171
|
await p.fill(`${V} #ovWhy`, 'Waiting on legal'); await settle(() => p.click(`${V} [data-ov-life-go]`));
|
|
175
172
|
const lf = await until(() => A.posts.find((x) => x.path === '/api/lifecycle'));
|
|
176
173
|
ok('I10 Record posts the state and the reason to the lifecycle route', lf && lf.body.initiative_id === 'self-serve-v2' && lf.body.state === 'on-hold' && lf.body.reason === 'Waiting on legal' && lf.body.ws === 'w1', JSON.stringify(lf && lf.body));
|
|
177
|
-
await show(p, 'tasks');
|
|
178
|
-
await
|
|
179
|
-
await p.
|
|
174
|
+
await show(p, 'tasks'); // the page's + opens the add field in Tasks (batch 11 item 20)
|
|
175
|
+
await p.click(`${V} [data-iv-add]`);
|
|
176
|
+
await until(() => p.evaluate((v) => !!document.querySelector(v + ' #ivAddTask'), V));
|
|
177
|
+
await p.press(`${V} #ivAddTask`, 'Enter'); await sleep(200);
|
|
180
178
|
ok('I6 Add with no title posts nothing', !A.posts.some((x) => x.path === '/api/boards/tasks/add'));
|
|
181
|
-
await p.fill(`${V} #
|
|
182
|
-
const ad = await until(() => A.posts.find((x) => x.path === '/api/
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
await until(() => p.evaluate((a) => !!document.querySelector(a[0] + ` [data-hi-tmore="${a[1]}"]`), [V, pk]));
|
|
187
|
-
await p.click(`${V} [data-hi-tmore="${pk}"]`);
|
|
188
|
-
await until(() => p.evaluate(() => !!document.querySelector('.hi-pop[role="menu"]')));
|
|
189
|
-
await settle(() => p.click('.hi-pop[role="menu"] [role="menuitemradio"]:has(> span:first-child:text-is("In progress"))'));
|
|
190
|
-
const ts = await until(() => A.posts.find((x) => x.path === '/api/boards/tasks/state'));
|
|
191
|
-
ok('I10 a status change posts the board, the task and the state, and nothing else', ts && Object.keys(ts.body).sort().join() === 'board,state,task,ws' && ts.body.state === 'In progress', JSON.stringify(ts && ts.body));
|
|
179
|
+
await p.fill(`${V} #ivAddTask`, 'Release plan'); await settle(() => p.press(`${V} #ivAddTask`, 'Enter'));
|
|
180
|
+
const ad = await until(() => A.posts.find((x) => x.path === '/api/task-plans/propose'));
|
|
181
|
+
// an initiative with no Live task: the page's add starts a proposal (batch 11 item 8), it never writes the board's tasks directly
|
|
182
|
+
ok('I10 Add on a page with no Live task proposes the task: the workspace, this initiative and the title', ad && ad.body.ws === 'w1' && ad.body.initiative === 'self-serve-v2' && ad.body.title === 'Release plan' && !A.posts.some((x) => x.path === '/api/boards/tasks/add'), JSON.stringify(ad && ad.body));
|
|
183
|
+
// a task's quick status on the page is covered by task-views-test.js (batch 9 item 5b); this record's page draws no task rows
|
|
192
184
|
await show(p, 'docs');
|
|
193
185
|
await until(() => p.evaluate((v) => !!document.querySelector(v + ' .czs-pri[data-czs-act^="draft:"]'), V));
|
|
194
186
|
const first = await p.evaluate((v) => document.querySelector(v + ' .czs-pri[data-czs-act^="draft:"]').dataset.czsAct.slice(6), V);
|
|
@@ -228,13 +220,13 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
228
220
|
{
|
|
229
221
|
const N = await open({ w: 390, h: 844 });
|
|
230
222
|
await overview(N.page, null);
|
|
231
|
-
ok('I4 a phone
|
|
223
|
+
ok('I4 a phone draws no Tasks, Documents and Stage switch: the Tasks sit on the page (batch 11 item 20)', await until(() => N.page.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"] .iv-th') && !document.querySelector(v + ' [data-hi-view]'), V)));
|
|
232
224
|
const fls = [];
|
|
233
|
-
for (const view of ['
|
|
225
|
+
for (const view of ['docs', 'stage']) { // the page's own floors (its Tasks too) are the page suites' (tk-tasks-test.js G4)
|
|
234
226
|
await show(N.page, view);
|
|
235
227
|
fls.push(await N.page.evaluate((a) => { const o = document.querySelector(a[0]); const small = [...o.querySelectorAll('button, select, input')].filter((b) => b.offsetParent && b.getBoundingClientRect().height < 44).map((b) => b.textContent.trim().slice(0, 24) || b.id || b.getAttribute('aria-label') || b.tagName); return { view: a[1], over: document.documentElement.scrollWidth - innerWidth, small }; }, [V, view]));
|
|
236
228
|
}
|
|
237
|
-
ok('I12 at 390 px the Overview\'s
|
|
229
|
+
ok('I12 at 390 px the Overview\'s Documents and Stage have no sideways scroll and every target is 44 px', fls.every((fl) => fl.over <= 0 && fl.small.length === 0), JSON.stringify(fls));
|
|
238
230
|
ok('I12 no page error at 390 px', N.errors.length === 0, N.errors.join(' | '));
|
|
239
231
|
await N.ctx.close();
|
|
240
232
|
}
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.423.0",
|
|
4
|
+
"at": "2026-10-26T16:10:21.071Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1063,
|
|
9
|
+
"t": "Eleventh testing feedback batch, part 2",
|
|
10
|
+
"s": "Eleventh testing feedback batch, part 2"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"v": "0.422.0",
|
|
4
16
|
"at": "2026-10-26T13:03:41.940Z",
|
|
@@ -325,7 +325,7 @@ Board is the fourth place on the rail, after Chat, at `/premium-board.html`. It
|
|
|
325
325
|
- **The view chip** in the Initiatives head says which view is shown (List, By stage or Timeline); press it to pick another.
|
|
326
326
|
- **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.
|
|
327
327
|
- **By stage** has one column for each stage of the board's workflow with the board's own count and its first five initiatives.
|
|
328
|
-
- **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. A gap in the plan that overlaps a hold still leaves out the days outside the hold, also when the hold has no return date.
|
|
328
|
+
- **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. In each group the rows run by start date, then end date, and the ones with no dates come last; the status dot still marks a late or at-risk initiative. With no dates on record it says so and draws nothing. A gap in the plan that overlaps a hold still leaves out the days outside the hold, also when the hold has no return date.
|
|
329
329
|
- **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.
|
|
330
330
|
- **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.
|
|
331
331
|
- **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
|
@@ -46,17 +46,24 @@ A reply PMOS sees in the thread clears the ask on the next read. A new ask after
|
|
|
46
46
|
Press an initiative's name in the list, or open `?ini=<id>`. The list stays as it is and the initiative's row is selected. The chat talks about the initiative, and its page opens in the Viewer.
|
|
47
47
|
|
|
48
48
|
- The page's header shows the lane and the anchor, the name, **New session** (+), ⋯, Open wide and Close.
|
|
49
|
-
- The stage card shows the stage,
|
|
49
|
+
- The stage card shows the stage, **N of M done** for its tasks, the days in the stage (for example "9 of ~7 days", amber when over the usual time) and → for the next stage. → turns blue when every task of the stage is done.
|
|
50
|
+
- Under the header is one line for the whole initiative. Each stage is a part of the line, on its own dates. Done stages are grey, the current stage is blue, later stages are light, and a stage with no dated task is dashed. The ◇ marks are the milestone tasks, with the name above and the date below. The end ◇ is the end date. A thin tick is Today.
|
|
51
|
+
- Press a part to show that stage in **Tasks**. Press **N of M done** to do the same. Press a ◇ to open the milestone task in **Tasks**. Milestones a few days apart merge into one ◇ with a count. Press it to list them.
|
|
52
|
+
- The line also shows what the Board's timeline shows: » for a skipped stage, a dotted gap and ⏸ for a hold (press ⏸ to set or change the return date), a hairline for 2 weeks or more with no activity (press it; ahead of Today, + adds a task in the gap), hatching past the end date, a dashed Jira forecast, a thin line under it for a saved plan, and "after <initiative>" when it waits on another initiative.
|
|
53
|
+
- With no dates at all, the parts are even and dashed. The calendar button opens **Tasks** in the Timeline view to set the dates.
|
|
54
|
+
- On a phone the line shows only the next open milestone's name. Press the line to unfold the stages and milestones as a list under it.
|
|
50
55
|
- Under the card are the 3 most urgent tasks and the documents that need a look. **Show N more** opens all the tasks and **Show all N** opens all the documents. ← goes back to the page. A task or a document that you open from the page also has ← back to the page.
|
|
51
56
|
- ⋯ has **Moves on by itself**, **Move back a stage**, **Move to a stage**, **Add a stakeholder**, **Turn into a program**, **Open on the Board**, **The record**, **Put on hold** and **Cancel the initiative**.
|
|
52
57
|
- To go back to all work, press the browser's Back, or Menu > **Home**. Neither reloads the page. Close (×) closes the page but keeps the initiative's chat.
|
|
53
58
|
- If there is no room beside the chat, the Viewer shows on top of the chat. The list stays.
|
|
54
59
|
- On a phone the page fills the screen. **Message Claude about <name>** opens the chat.
|
|
55
60
|
- **Moves on by itself** is a switch, on by default. When every exit item is done, the stage moves to the next stage and a message shows **Undo**. A stage never moves by itself into a milestone (Deliver or Evaluate). This rule is a proposal that the PM has not confirmed yet.
|
|
56
|
-
-
|
|
61
|
+
- → with open tasks in the stage asks first (**Move anyway**, with a note). **Back** always asks for a reason.
|
|
57
62
|
- **Tasks** in the Viewer can be grouped by stage, by groups that you name, by owner or by status. Drag a task to another group.
|
|
58
63
|
- In the Build stage, the open Jira tickets show with the tasks. A task whose name starts with a Jira key (for example "MSD-4376 Navigation tabs") is that ticket, so the ticket shows once, as the task, and counts once.
|
|
64
|
+
- **Set a Jira ticket's dates.** Press the dates of a Jira ticket in the List, or drag its bar on the Timeline, as you do for a task. PMOS keeps the start and due days and shows them in place of the sprint end. Jira does not change. The status and the name stay Jira's.
|
|
59
65
|
- **Tasks** show one row (one group) for each stage of the workflow, in order. Finished stages and later stages are never merged into one row; they start folded, and the current stage and any stage with a late task start open.
|
|
66
|
+
- **Delete a task.** Press the caret under a task's box (on a phone, press and hold the box) and press the trash at the end of the status picker. The task goes at once and the message shows **Undo**. The ⋯ menu of a task also has **Delete**. You can delete every PMOS task, also a task that Claude planned in the breakdown. A Jira ticket has no Delete: change it in Jira. A task deleted in a draft leaves only the draft.
|
|
60
67
|
|
|
61
68
|
## Rename a program, an initiative or a task
|
|
62
69
|
|
|
@@ -19,6 +19,7 @@ Programs do not change how Insights, the weekly update or sprints count initiati
|
|
|
19
19
|
- To group by product only, open **Filter** and choose **By product**. A program member then shows a small layers icon and stays under its product in every view, the timeline included. A chip shows while By product is on.
|
|
20
20
|
- **Kanban** shows programs as swimlanes, then products. Press a column header to fold the column to a strip with its count. An empty column starts folded. The Board remembers each fold.
|
|
21
21
|
- The **timeline** draws a program row that brackets its initiatives' bars, on every span. Program milestones are diamonds. Milestones that are close together merge into one diamond with a count.
|
|
22
|
+
- On the timeline, a **product's head row** also shows milestones. Nothing is added by hand: the row shows every milestone of the product's initiatives, which are each milestone task and each initiative's end diamond (its Deliver or Evaluate date). The diamonds are the same as on the initiative rows: open, filled when done, orange when late. Diamonds that are close together merge into one diamond with a count and the date range under it. Press it to see a list with the milestone, its initiative and the date. Press a line to open that initiative. Hold the pointer on a single diamond to see its milestone and initiative. A thin line goes from the first start to the last end of the product's initiatives. When the product is folded, the row stays the same, so it is a summary of the product. On a phone the diamonds have no dates; tap the row to see all the milestones in date order. A product inside a program has no such row, because the program row shows its milestones.
|
|
22
23
|
- **List** has a Product column and a Program column. Press a column header to sort by it.
|
|
23
24
|
- **New** opens a menu: **New initiative** or **New program**.
|
|
24
25
|
- A new program shows at once, before any initiative joins it. A program with no open initiative shows on its own product's Board and on All products, with "No initiatives yet" or "No open initiatives". Press its name, then **⋯** and **Move an initiative in**. That menu lists open initiatives only, grouped by product, with the program's own product first, wherever you open the program (Home, another product's Board or All products). An initiative joins in its own product.
|
|
@@ -17,7 +17,7 @@ Open it from **Menu › Settings › Workflows**. The address is `/premium-workf
|
|
|
17
17
|
- **The workflow** is one numbered list of stages, in three columns: **To do**, **In progress** and **Done**. Drag a stage to change its place or its column. **Add a stage** adds one at the end of that column. The dashed **Won't do · Archived** column is in every workflow: any initiative can go there from any stage, and come back to Triage.
|
|
18
18
|
- **Triage** is always the first stage, in To do.
|
|
19
19
|
- Tap the name of the workflow to rename it. **⋯** has **Copy** and **Archive**. You cannot archive a workflow that initiatives use.
|
|
20
|
-
- **Product feature** cannot change. **Copy it** to make a workflow of your own from it.
|
|
20
|
+
- **Product feature** cannot change. **Copy it** to make a workflow of your own from it. A stage of Product feature has **Copy it** too: the copy opens on that stage.
|
|
21
21
|
|
|
22
22
|
## A stage
|
|
23
23
|
|
|
@@ -73,5 +73,9 @@ An agent adds and closes tasks when you ask, so you do not have to find the task
|
|
|
73
73
|
- `pmos task state <task> [<task> …] --to <state>` sets the state of one or more tasks: To do, In progress, Done, Won't do or Archived. `--why` adds the reason, and for Done it is the evidence you read. Each change writes the same line as the page's press, under the agent's name. Won't do on a breakdown item withdraws it, and it cannot come back.
|
|
74
74
|
- `pmos task set <task> [<task> …] --stage <stage>` puts one or more tasks under a stage of the initiative's workflow, by the stage's key or name. `--stage none` takes them out of every stage. The Tasks section groups the tasks by these stages. A task's stage is its place in the plan: it does not change the task's state, and it does not move the initiative. `set` also takes `--due`, `--start`, `--owner` and `--notes`; `--due none` and `--start none` clear a day.
|
|
75
75
|
- `pmos task remove <task> [<task> …]` deletes a task that was added by mistake, such as a placeholder or a duplicate. The task goes from every list, and the Undo on the page brings it back. For work that stopped, use Archived or Won't do instead. A breakdown item cannot be deleted: set it to Won't do.
|
|
76
|
+
- `pmos task link <from> <to>` makes `<to>` wait on `<from>`. `--type` sets how they wait: `fs` (start after it finishes, the default), `ss` (start when it starts), `ff` (finish when it finishes) or `sf` (finish when it starts). `--lag` adds days, or takes them away with a negative number. Make a link only when the PM asks for it. To suggest a link, add `--propose --why "<reason>"`: the link shows under the blue ✦ in the Tasks header, and the PM approves it or drops it. A link that loops back to a task is refused.
|
|
77
|
+
- `pmos task unlink <from> <to>` removes the link. The dates stay as they are.
|
|
78
|
+
|
|
79
|
+
A link keeps the dates in order. When a task moves later, the tasks that wait on it move with it, and the page lists the moves under the grey ✦. Claude does not move a milestone, a task in another initiative or a task past the committed date: it asks the PM under the grey ✦. A Jira ticket never moves: Claude drafts a comment for the outbox instead.
|
|
76
80
|
|
|
77
81
|
When an initiative reaches a stage, each entry of that stage's To finish list becomes one task, once. Closing that task, on the stage card, in the Tasks section or with `pmos task state`, marks the entry done on the stage card.
|
|
@@ -98,8 +98,8 @@ const BRIEF = BRP.build(BRF.facts());
|
|
|
98
98
|
ok('W1 the page opens on the initiative with the workflow on its meta line', A.up, await txt(p, V + ' .cz-vw-kind'));
|
|
99
99
|
ok('W1 the kind line names the workflow and the anchor: "Tender · KR 1.1" (Kind becomes Workflow)', /^Tender · KR 1\.1$/.test(await txt(p, V + ' .cz-vw-kind')), await txt(p, V + ' .cz-vw-kind'));
|
|
100
100
|
ok('W1 the card names the stage of that workflow: Triage', (await txt(p, V + ' .iv-sch > b')) === 'Triage', await txt(p, V + ' .iv-sch'));
|
|
101
|
-
ok('W1 the
|
|
102
|
-
ok('W1 the next stage is Tender\'s own: the
|
|
101
|
+
ok('W1 the line draws the ten stages of Tender, three of them milestones', await p.evaluate((v) => { const t = [...new Map([...document.querySelectorAll(v + ' .iv-tl .iv-tlp')].map((x) => [x.dataset.ivStage, x.title])).values()]; return t.length === 10 && t.filter((x) => /^◆ /.test(x)).length === 3; }, V));
|
|
102
|
+
ok('W1 the next stage is Tender\'s own: the → names Requirements', await p.evaluate((v) => /^Next: Requirements/.test(document.querySelector(v + ' .iv-scgo').getAttribute('aria-label')), V));
|
|
103
103
|
ok('W1 the icon names the workflow for a screen reader', await p.evaluate((v) => /Workflow: Tender/.test(document.querySelector(v + ' [data-iv-wf]').getAttribute('aria-label')), V));
|
|
104
104
|
ok('W2 PMOS set it from the BRD: the toast says so, with Undo (WfTriage)', await until(() => p.evaluate(() => { const t = document.getElementById('hiToast'); return !!t && !t.hidden && /Set to Tender from the BRD/.test(t.textContent) && !!t.querySelector('[data-hi-undo]'); })));
|
|
105
105
|
await shot(p, 'triage-1440');
|
|
@@ -139,7 +139,7 @@ const BRIEF = BRP.build(BRF.facts());
|
|
|
139
139
|
await p.reload();
|
|
140
140
|
await until(() => p.evaluate((v) => !!document.querySelector(v + ' .hi-end'), V), 30000);
|
|
141
141
|
ok('W7 the page of a Won’t do says why, and offers Back to Triage', /Won't do · No budget: Moved to next year’s budget\./.test(await txt(p, V + ' .hi-end')), await txt(p, V + ' .hi-end'));
|
|
142
|
-
ok('W7 its stage does not move: the card has no next stage to move to', !(await p.evaluate((v) => !!document.querySelector(v + ' .iv-sc .iv-
|
|
142
|
+
ok('W7 its stage does not move: the card has no next stage to move to', !(await p.evaluate((v) => !!document.querySelector(v + ' .iv-sc .iv-scgo, ' + v + ' [data-iv-next]'), V)), await txt(p, V + ' .iv-sc'));
|
|
143
143
|
ok('W7 ⋯ has Back to Triage in place of Won’t do', await moreLabels(p).then((l) => l.includes('Back to Triage') && !l.includes('Won’t do')));
|
|
144
144
|
await shot(p, 'wontdo-page-1440');
|
|
145
145
|
await p.click(V + ' .hi-end [data-wf-back]');
|
|
@@ -149,7 +149,7 @@ const BRIEF = BRP.build(BRF.facts());
|
|
|
149
149
|
|
|
150
150
|
// W8 the phone, and dark
|
|
151
151
|
const P = await open({ w: 390, h: 844, fresh: false, B: board('requirements') });
|
|
152
|
-
ok('W8 the phone opens the page with the workflow at Requirements, the second of its ten bars', P.up && (await txt(P.page, V + ' .iv-sch > b')) === 'Requirements' && await P.page.evaluate((v) => { const
|
|
152
|
+
ok('W8 the phone opens the page with the workflow at Requirements, the second of its ten bars', P.up && (await txt(P.page, V + ' .iv-sch > b')) === 'Requirements' && await P.page.evaluate((v) => { const t = [...new Map([...document.querySelectorAll(v + ' .iv-tl .iv-tlp')].map((x) => [x.dataset.ivStage, x.title])).values()]; return t.length === 10 && / · now$/.test(t[1]); }, V));
|
|
153
153
|
ok('W8 the toast shows once only: seen before, not again', !(await P.page.evaluate(() => { const t = document.getElementById('hiToast'); return !!t && !t.hidden; })));
|
|
154
154
|
await shot(P.page, 'page-390');
|
|
155
155
|
await P.page.click(V + ' [data-iv-wf]');
|
|
@@ -86,7 +86,8 @@ function ticketsBy(sprints, items) {
|
|
|
86
86
|
}
|
|
87
87
|
for (const w of items || []) {
|
|
88
88
|
if (!w || w.src !== 'jira' || w.kind === 'Epic' || !w.key) continue;
|
|
89
|
-
add(w.ini, { key: w.key, title: clip(w.title || w.key, 120), status: w.status || 'To do', raw: w.status || '', cls: w.blocked ? 'bl' : TK_CLS[w.status] || '', blocked: !!w.blocked, reason: '', points: null, url: '', sprint: '', sprintState: '', sprintEnd: '', assignee: w.owner || ''
|
|
89
|
+
add(w.ini, { key: w.key, title: clip(w.title || w.key, 120), status: w.status || 'To do', raw: w.status || '', cls: w.blocked ? 'bl' : TK_CLS[w.status] || '', blocked: !!w.blocked, reason: '', points: null, url: '', sprint: '', sprintState: '', sprintEnd: '', assignee: w.owner || '',
|
|
90
|
+
...(w.datesHere ? { start: w.start || '', due: w.end || '', datesHere: true } : {}) }); // the dates the PM keeps in PMOS (batch 11 item 23)
|
|
90
91
|
}
|
|
91
92
|
return by;
|
|
92
93
|
}
|
|
@@ -195,7 +196,7 @@ function actsOf(r, boardNames) {
|
|
|
195
196
|
stages: own, stage: (lib ? r.wfStage.name : r.stage) || null, life,
|
|
196
197
|
reason: life ? clip(st.reason || '', 300) : '', back: life === 'hold' && st.back ? shortDate(st.back) : '', backDay: life === 'hold' && st.back ? String(st.back).slice(0, 10) : null,
|
|
197
198
|
...(life && st.at ? { since: shortDate(String(st.at).slice(0, 10)) } : {}),
|
|
198
|
-
archived: r.archived ? { reason: clip(r.archived.reason || '', 300), into: r.archived.into ? (r.archived.intoTitle || r.archived.into) : null, ...(r.archived.at ? { at: shortDate(String(r.archived.at).slice(0, 10)) } : {}) } : null,
|
|
199
|
+
archived: r.archived ? { reason: clip(r.archived.reason || '', 300), into: r.archived.into ? (r.archived.intoTitle || r.archived.into) : null, ...(r.archived.into ? { intoId: r.archived.into } : {}), ...(r.archived.at ? { at: shortDate(String(r.archived.at).slice(0, 10)) } : {}) } : null,
|
|
199
200
|
};
|
|
200
201
|
}
|
|
201
202
|
/** The words an ask and an initiative title share (three letters or more, not common words), for "Close to: <initiative>". */
|