create-pmos 0.536.0 → 0.537.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.536.0",
3
+ "version": "0.537.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,19 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.537.0",
37
+ "at": "2026-11-05T23:09:31.438Z",
38
+ "f": 4,
39
+ "prs": [
40
+ {
41
+ "n": 1253,
42
+ "t": "One-row Board header, no workflow chips",
43
+ "s": "One-row Board header, no workflow chips",
44
+ "k": "new"
45
+ }
46
+ ]
47
+ },
35
48
  {
36
49
  "v": "0.536.0",
37
50
  "at": "2026-11-05T10:03:22.177Z",
@@ -392,25 +405,6 @@
392
405
  "k": "new"
393
406
  }
394
407
  ]
395
- },
396
- {
397
- "v": "0.517.0",
398
- "at": "2026-11-04T00:17:56.633Z",
399
- "f": 4,
400
- "prs": [
401
- {
402
- "n": 1207,
403
- "t": "User guide in PMOS (option B) and guide pages brought up to date",
404
- "s": "User guide in PMOS (option B) and guide pages brought up to date",
405
- "k": "new"
406
- },
407
- {
408
- "n": 1210,
409
- "t": "The report engine: brief, read, find, write, one deck, no draft without a finding",
410
- "s": "The report engine: brief, read, find, write, one deck, no draft without a finding",
411
- "k": "new"
412
- }
413
- ]
414
408
  }
415
409
  ]
416
410
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@6d70978e
1
+ kernel-source: pmos@7278da51
2
2
  assembled: 2026-11-05
3
3
  mode: vendor
@@ -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-11-05T10:03:18Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-05T23:09:27Z"}
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-11-05T10:03:18Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-05T23:09:27Z"}
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-11-05T10:03:18Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-05T23:09:27Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -87,13 +87,13 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
87
87
  prods: [...document.querySelectorAll('#ibBody .bt-prd .bd-prdb span:not(.bd-ti):not(.bd-gd):not(.n)')].map((b) => b.textContent),
88
88
  after: [...document.querySelectorAll('#ibBody .bt-gr .bt-nm b')].map((b) => b.textContent),
89
89
  text: document.querySelector('#ibBody').textContent,
90
- grp: document.querySelector('#bdGrpw').hidden,
90
+ grp: !document.querySelector('#bdGrpw').hidden && !!document.querySelector('#bdGroup') && !document.querySelector('#bdGroup').classList.contains('on'),
91
91
  }));
92
92
  ok('G the program comes first: its band row is the first row under the head, with its title and the products it spans', /bt-pg/.test(tr.first) && /Project Ascent/.test(tr.band) && /2 products/.test(tr.band), JSON.stringify(tr));
93
93
  ok('G the band says its initiatives and their stage spread, read from every product (2 here, 1 in Microsites)', tr.spread === '3 initiatives, Triage to Plan', tr.spread);
94
94
  ok('G the next milestone shows with its date and its readiness, one diamond per initiative it waits on', /Pilot live/.test(tr.next) && /Nov 18/.test(tr.next) && tr.ready === '00', JSON.stringify(tr));
95
95
  ok('G its initiatives on this board sit under it, A to Z while the program has no order (option A); the rest of the product follows under the product head', tr.kids.join() === 'Descope feature parity,Legacy IdP sunset' && tr.prods.join() === 'IDPF' && tr.after.length === 2 && !tr.after.some((t) => tr.kids.includes(t)), JSON.stringify(tr));
96
- ok('G there is no "Not in a program" group, and Programs first draws no grouping chip (the choice lives in Filter)', !/Not in a program/.test(tr.text) && tr.grp);
96
+ ok('G there is no "Not in a program" group, and a desktop has its own Group button, plain while Programs first is on (batch 28 item 3, BhA)', !/Not in a program/.test(tr.text) && tr.grp);
97
97
 
98
98
  await p.click('#ibBody .bt-pg [data-prog]');
99
99
  ok('O pressing the band dispatches bd:program with the program id and opens no initiative panel', (await events(p)).join() === 'project-ascent' && await p.evaluate(() => !/Initiative/.test(((window.czViewer && window.czViewer.current()) || {}).kind || '')), JSON.stringify(await events(p)));
@@ -112,12 +112,15 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
112
112
  await p.click('#ibBody .bt-pg [data-fold]'); await p.click('#ibBody .bt-prd [data-fold]');
113
113
  ok('F unfolding shows the rows again', await p.evaluate(() => document.querySelectorAll('#ibBody .bt-kid').length === 2 && document.querySelectorAll('#ibBody .bt-gr').length === 2));
114
114
 
115
- // By product (PgBoardProduct): from the grouping control, no new filter row
115
+ // By product (PgBoardProduct): from the Group button, no new filter row; a desktop's Filter does not say it again (say it once)
116
116
  await p.click('#bdFilter');
117
- ok('G the Filter popover holds the Group choice because a program holds rows here', await p.evaluate(() => [...document.querySelectorAll('#bdPop [data-fgrp]')].map((b) => b.dataset.fgrp + (b.getAttribute('aria-checked') === 'true' ? '*' : '')).join() === 'program*,product'));
118
- await p.click('#bdPop [data-fgrp="product"]'); await p.keyboard.press('Escape');
119
- const bp = await p.evaluate(() => ({ band: !!document.querySelector('#ibBody .bt-pg'), icons: [...document.querySelectorAll('#ibBody .bt-nm .bd-pgi')].map((i) => i.getAttribute('aria-label')), prods: document.querySelectorAll('#ibBody .bt-prd').length, chip: (document.querySelector('#bdGroup') || {}).textContent || '', st: localStorage.getItem('pmos.board.grouping') }));
120
- ok('G By product draws the product only; a program member carries the small layers icon named for its program; the choice is stored', !bp.band && bp.prods === 1 && bp.icons.length === 2 && bp.icons.every((x) => x === 'In Project Ascent') && /By product/.test(bp.chip) && bp.st === 'product', JSON.stringify(bp));
117
+ ok('G a desktop\'s Filter holds no Group choice: the Group button has it', await p.evaluate(() => !!document.querySelector('#bdPop') && !document.querySelector('#bdPop [data-fgrp]')));
118
+ await p.keyboard.press('Escape');
119
+ await p.click('#bdGroup');
120
+ ok('G the Group menu holds the two choices because a program holds rows here', await p.evaluate(() => [...document.querySelectorAll('#bdGrpMenu [data-grping]')].map((b) => b.dataset.grping + (b.getAttribute('aria-checked') === 'true' ? '*' : '')).join() === 'program*,product'));
121
+ await p.click('#bdGrpMenu [data-grping="product"]');
122
+ const bp = await p.evaluate(() => ({ band: !!document.querySelector('#ibBody .bt-pg'), icons: [...document.querySelectorAll('#ibBody .bt-nm .bd-pgi')].map((i) => i.getAttribute('aria-label')), prods: document.querySelectorAll('#ibBody .bt-prd').length, chip: (document.querySelector('#bdGroup') || {}).getAttribute('aria-label') || '', on: document.querySelector('#bdGroup').classList.contains('on'), st: localStorage.getItem('pmos.board.grouping') }));
123
+ ok('G By product draws the product only; a program member carries the small layers icon named for its program; the Group button turns blue; the choice is stored', !bp.band && bp.prods === 1 && bp.icons.length === 2 && bp.icons.every((x) => x === 'In Project Ascent') && /By product/.test(bp.chip) && bp.on && bp.st === 'product', JSON.stringify(bp));
121
124
  await p.click('#bdGroup'); await p.click('#bdGrpMenu [data-grping="program"]');
122
125
  ok('G Programs first comes back from the same menu', await p.evaluate(() => !!document.querySelector('#ibBody .bt-pg') && localStorage.getItem('pmos.board.grouping') === 'program'));
123
126
  ok('the page threw nothing', !errors.length, errors.join('\n'));
@@ -335,12 +338,14 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
335
338
  await ctx.close();
336
339
  }
337
340
  {
338
- // the phone (TsCPhone, TsCPhoneSpan): the timeline is a view; the span buttons become one picker beside the product picker
341
+ // the phone (TsCPhone, TsCPhoneSpan; batch 28 item 3, BhA): the timeline is a view; the spans sit in the view button's menu
339
342
  const { ctx, page: p, errors } = await open({ view: 'time', w: 390, h: 844, store: { 'pmos.board.pview': 'time', 'pmos.board.span': 'quarter' } });
340
- 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 }));
341
- 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), and the undated one as a "No dates" row (batch 26 item 8)', !ph.spans && ph.pick === 'Quarter' && ph.names === 4 && ph.rows.includes('Usage-based billing') && ph.rows.includes('Legacy IdP sunset') && ph.rows.includes('Inline login for eShop checkout'), JSON.stringify(ph));
342
- await p.click('#bdSpanBtn'); await p.click('#bdSpanMenu [data-spick="year"]'); await p.waitForTimeout(200);
343
- 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'));
343
+ await p.click('#bdView');
344
+ const ph = await p.evaluate(() => ({ spans: !document.querySelector('#bdSpans').hidden, pick: (document.querySelector('#bdViewMenu [data-spick][aria-checked="true"]') || {}).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 }));
345
+ ok('S phone: the spans in the view button, no span row; each row carries its name above its bar, Monitor and Evaluate rows too (batch 8 item 2), and the undated one as a "No dates" row (batch 26 item 8)', !ph.spans && ph.pick === 'Quarter' && ph.names === 4 && ph.rows.includes('Usage-based billing') && ph.rows.includes('Legacy IdP sunset') && ph.rows.includes('Inline login for eShop checkout'), JSON.stringify(ph));
346
+ await p.click('#bdViewMenu [data-spick="year"]'); await p.waitForTimeout(200);
347
+ ok('S phone: a span chip changes the span', await p.evaluate(() => document.querySelector('#ibBody .tg-s').dataset.span === 'year' && document.querySelector('#bdViewMenu [data-spick="year"]').getAttribute('aria-checked') === 'true' && localStorage.getItem('pmos.board.span') === 'year'));
348
+ await p.keyboard.press('Escape');
344
349
  await p.evaluate(() => { const sc = document.querySelector('#ibBody .tg-sc'); sc.scrollLeft = sc.scrollWidth; }); await p.waitForTimeout(200);
345
350
  const pb = await p.evaluate(() => ({ back: [...document.querySelectorAll('#ibBody .tg-tback')].filter((b) => !b.hidden).map((b) => b.className), tabs: [...document.querySelectorAll('#ibBody .tg-edge')].filter((b) => !b.hidden).length }));
346
351
  ok('S phone: swiped ahead, Today docks at the axis edge; only late work leaves an edge tab', pb.back.length === 1 && pb.tabs === 0, JSON.stringify(pb));
@@ -380,7 +385,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
380
385
  kids: [...document.querySelectorAll('#ibBody .bt-kid .bt-nm b')].map((b) => b.textContent),
381
386
  prods: [...document.querySelectorAll('#ibBody .bt-prd .bd-prdb span:not(.bd-ti):not(.bd-gd):not(.n)')].map((b) => b.textContent),
382
387
  docs: !!document.querySelector('#tabDocs'), asks: !!document.querySelector('#chAsks'), nw: document.querySelector('#newIni').hidden,
383
- chips: [...document.querySelectorAll('#bdChipset .bd-chip')].map((c) => c.id).filter(Boolean),
388
+ chips: [...document.querySelectorAll('#bdChipset [id], #bdJiraw [id]')].map((c) => c.id).filter(Boolean),
384
389
  }));
385
390
  ok('A All products is saved, the address stays plain and the chip says All', a.url === '' && /^All/.test(a.crumb) && a.label === 'Products: all 2' && JSON.stringify(pk.posts) === '[["idpf","microsites"]]', JSON.stringify({ a, posts: pk.posts }));
386
391
  ok('A the program comes first and holds a sub-row per product with that product\'s initiatives', /Project Ascent/.test(a.band) && a.subs.length === 2 && /IDPF/.test(a.subs[0]) && a.kids.length === 3, JSON.stringify(a));
@@ -140,7 +140,7 @@ const ok = (name, cond, extra = '') => { n++; if (!cond) bad++; console.log(`${c
140
140
  s = await open(1440, 900, '/premium-board.html?ws=idpf&board=idpf'); await s.p.click('#bdPublish'); await s.p.waitForSelector('[data-bp="shared"]');
141
141
  ok('F1 the open links are not listed here: one row says how many', (await pop(s.p).locator('[data-bp-re], [data-bp-off]').count()) === 0 && /2 open links/.test(await s.p.locator('[data-bp="shared"]').textContent()));
142
142
  await s.p.click('[data-bp="shared"]'); await s.p.waitForTimeout(400);
143
- ok('F2 the row closes the popover and opens the Shared tab, where the links are managed', (await pop(s.p).count()) === 0 && (await s.p.locator('#tabShared').getAttribute('aria-selected')) === 'true');
143
+ ok('F2 the row closes the popover and opens the Shared tab, where the links are managed', (await pop(s.p).count()) === 0 && (await s.p.locator('#tabShared').getAttribute('aria-pressed')) === 'true');
144
144
  await s.ctx.close();
145
145
 
146
146
  console.log('G a phone');
@@ -60,9 +60,9 @@ const iso = (ms) => new Date(Date.now() + ms).toISOString();
60
60
  console.log('A the tab and its number');
61
61
  reset();
62
62
  let s = await open(1440, 900, '/premium-board.html?ws=idpf&board=idpf');
63
- ok('A1 Shared is a tab beside Initiatives and Documents, and has no number when there is nothing', await s.p.locator('#tabShared').isVisible() && /^Shared\s*$/.test((await s.p.locator('#tabShared').textContent()).trim()));
63
+ ok('A1 Shared is one button in the Board\'s row (batch 28 item 3), and has no number when there is nothing', await s.p.locator('#tabShared').isVisible() && /^Shared\s*$/.test((await s.p.locator('#tabShared').textContent()).trim()));
64
64
  ok('A2 opening the tab with nothing joined asks nothing of any host beyond the read, and shows one sentence and the invite field', await (async () => { await s.p.click('#tabShared'); await s.p.waitForSelector('#shInvite'); return /Boards your teams share show up here/.test(await s.p.locator('#cShared').textContent()) && (await s.p.locator('#cShared .bdsh-card').count()) === 0; })());
65
- ok('A3 the other tabs are hidden while it is open, and Initiatives comes back', await s.p.locator('#cIni').isHidden() && (await (async () => { await s.p.click('#tabIni'); return s.p.locator('#cShared').isHidden(); })()));
65
+ ok('A3 the initiatives are hidden while it is open, and pressing Shared again brings them back', await s.p.locator('#cIni').isHidden() && (await s.p.locator('#tabShared').getAttribute('aria-pressed')) === 'true' && (await (async () => { await s.p.click('#tabShared'); return (await s.p.locator('#cShared').isHidden()) && (await s.p.locator('#cIni').isVisible()); })()));
66
66
  await s.ctx.close();
67
67
  reset({ yours: MINE, names: ['Product'] }); s = await open(1440, 900, '/premium-board.html?ws=idpf&board=idpf');
68
68
  ok('A4 at load the number is your own open links, from this computer only (no host was asked)', (await s.p.locator('#nShared').textContent()) === '2' && W.reads === 0, await s.p.locator('#nShared').textContent());
@@ -152,7 +152,7 @@ const iso = (ms) => new Date(Date.now() + ms).toISOString();
152
152
 
153
153
  console.log('G a phone');
154
154
  reset({ yours: MINE, names: ['Product'], teams: [JSON.parse(JSON.stringify(TEAM_OK))] }); s = await open(390, 844, '/premium-board.html?ws=idpf&board=idpf');
155
- ok('G1 on a phone Shared is a chip after the needs-a-look pill (no Docs chip, batch 24 item 7), and it opens the tab', await (async () => { await s.p.waitForSelector('#chShared'); const after = await s.p.evaluate(() => !document.getElementById('chDocs') && document.getElementById('chShared').previousElementSibling && document.getElementById('chShared').previousElementSibling.id); await s.p.click('#chShared'); await s.p.waitForSelector('.bdsh-list .bdsh-card'); return after === 'bdNeedw' || after === 'chJira'; })());
155
+ ok('G1 on a phone Shared with me is the last item of the view button (batch 28 item 3, BhA; no Docs chip), and it opens Shared', await (async () => { await s.p.waitForSelector('#bdView'); await s.p.click('#bdView'); const last = await s.p.evaluate(() => { const m = document.querySelector('#bdViewMenu'); const b = [...m.querySelectorAll('button')].pop(); return !document.getElementById('chDocs') && !document.getElementById('chShared') && b && b.hasAttribute('data-vshared') && /Shared with me/.test(b.textContent); }); await s.p.click('#bdViewMenu [data-vshared]'); await s.p.waitForSelector('.bdsh-list .bdsh-card'); return last; })());
156
156
  const g = await s.p.evaluate(() => ({ side: document.documentElement.scrollWidth > innerWidth + 1, cards: document.querySelectorAll('#cShared .bdsh-card').length }));
157
157
  ok('G2 a row is a card that fits the phone, with no sideways scroll', g.cards === 4 && !g.side, JSON.stringify(g));
158
158
  const small = await s.p.locator('#cShared button:visible').evaluateAll((els) => els.filter((e) => e.getBoundingClientRect().height < 34).map((e) => e.className + ':' + Math.round(e.getBoundingClientRect().height)));
@@ -3,8 +3,9 @@
3
3
  /* board-workflows-test.js — the Board with workflows (workflows-per-initiative, workstream B; canvas WfABoard, WfABoardOne, WfATrack, WfAElse,
4
4
  * WfAPhone). Serves the real page from the real server and answers GET /api/board-premium with the model lib/board-premium.js builds from
5
5
  * fixtures/board-workflows-facts.js (four workflows, one row in Won't do) and GET /api/workflows with its definitions.
6
- * W1 the chip row · W2 By stage, All · W3 By stage, one workflow · W4 a drag names the workflow's stage · W5 the track, All · W6 the track,
7
- * one workflow · W7 the List and Filter · W8 the phone · W9 a board with only Product feature · W10 dark, and no page error.
6
+ * W1 no workflow chips (batch 28 item 3, canvas BhA: the Board picks no workflow, on a phone or a desktop) · W2 By stage, All · W3 By stage,
7
+ * a board on one workflow · W4 a drag names the workflow's stage · W5 the track, All · W6 the track, one workflow · W7 the List and Filter ·
8
+ * W8 the phone · W9 a board with only Product feature · W10 dark, and no page error.
8
9
  * The screenshots of the same views come from board-wf-shot.js (not a suite). */
9
10
  const path = require('path');
10
11
  const { spawn } = require('child_process');
@@ -56,12 +57,11 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
56
57
  };
57
58
  const q = (p, fn, arg) => p.evaluate(fn, arg);
58
59
 
59
- /* W1 + W2 By stage, All */
60
+ /* W1 + W2 By stage, All. A pick an older Board stored (pmos.board.wf) is ignored */
60
61
  {
61
- const { ctx, page: p } = await open();
62
- const chips = await q(p, () => [...document.querySelectorAll('#ibBody .bd-wfchips [data-wfpick]')].map((b) => [b.dataset.wfpick, b.textContent.trim(), b.getAttribute('aria-label')]));
63
- ok('W1 the chip row: All, then each workflow as its icon and count, Product feature first, then by count', JSON.stringify(chips.map((c) => c[0])) === JSON.stringify(['', 'product-feature', 'procurement', 'tender', 'migration'])
64
- && chips[1][1] === '7' && chips[3][2] === 'Tender only, 2' && chips[0][1] === 'All', JSON.stringify(chips));
62
+ const { ctx, page: p } = await open({ pick: 'tender' });
63
+ const chips = await q(p, () => document.querySelectorAll('.bd-wfchips, [data-wfpick], .bd-wfedit').length);
64
+ ok('W1 no workflow chips on By stage, and an old stored pick narrows nothing (batch 28 item 3)', chips === 0, String(chips));
65
65
  const cols = await q(p, () => [...document.querySelectorAll('#ibBody .bd-kb > .bd-kh, #ibBody .bd-kb > .bd-kstrip')].map((h) => h.getAttribute('aria-label')));
66
66
  ok('W2 All draws To do, In progress and Done, then Won\'t do as a folded strip', JSON.stringify(cols) === JSON.stringify(['To do, 1. Fold the column', 'In progress, 10. Fold the column', 'Done, 21. Fold the column', 'Show Won\'t do, 1']), JSON.stringify(cols));
67
67
  const wide = await q(p, () => { const c = document.querySelector('#ibBody .bd-kc.wide'); return c ? { label: c.getAttribute('aria-label'), titles: [...c.querySelectorAll('.bd-bc .t')].map((t) => t.textContent), cols: getComputedStyle(c).gridTemplateColumns.split(' ').length } : null; });
@@ -73,18 +73,15 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
73
73
  ok('W2 the Won\'t do strip opens to its cards', JSON.stringify(ended) === '["Catering contract"]', JSON.stringify(ended));
74
74
  await ctx.close();
75
75
  }
76
- /* W3 + W4 one workflow picked */
76
+ /* W3 + W4 a board on one workflow: its own stages are the columns */
77
77
  {
78
- const { ctx, page: p, posts } = await open();
79
- await p.click('#ibBody [data-wfpick="tender"]'); await sleep(200);
80
- const s = await q(p, () => ({ on: (document.querySelector('#ibBody .bd-wfchips .bd-chip.on') || {}).textContent, edit: (document.querySelector('#ibBody .bd-wfedit') || {}).getAttribute && document.querySelector('#ibBody .bd-wfedit').getAttribute('href'),
78
+ const { ctx, page: p, posts } = await open({ facts: W.tenderOnly() });
79
+ const s = await q(p, () => ({ chips: document.querySelectorAll('[data-wfpick]').length,
81
80
  heads: [...document.querySelectorAll('#ibBody .bd-kb > .bd-kh .l, #ibBody .bd-kb > .bd-kstrip span')].map((x) => x.textContent), strips: [...document.querySelectorAll('#ibBody .bd-kb > .bd-kstrip span')].map((x) => x.textContent),
82
- cats: [...document.querySelectorAll('#ibBody .bd-kcat')].map((x) => x.textContent), stored: localStorage.getItem('pmos.board.wf') }));
83
- ok('W3 a picked workflow names itself on its chip, with an edit icon to the Workflows page', s.on && s.on.trim() === 'Tender · 2' && s.edit === '/premium-workflows.html?wf=tender', JSON.stringify(s));
84
- ok('W3 its own stages are the columns, then Won\'t do', JSON.stringify(s.heads.map((x) => x.trim())) === JSON.stringify(['Triage', 'Requirements', 'RFP out', 'Bids', 'Evaluate bids', 'Award', 'Contract', 'Review', 'Won\'t do']), JSON.stringify(s.heads));
81
+ cats: [...document.querySelectorAll('#ibBody .bd-kcat')].map((x) => x.textContent) }));
82
+ ok('W3 its own stages are the columns, then Won\'t do, with nothing to pick', s.chips === 0 && JSON.stringify(s.heads.map((x) => x.trim())) === JSON.stringify(['Triage', 'Requirements', 'RFP out', 'Bids', 'Evaluate bids', 'Award', 'Contract', 'Review', 'Won\'t do']), JSON.stringify(s));
85
83
  ok('W3 the empty stages start as strips', ['Triage', 'RFP out', 'Evaluate bids', 'Contract', 'Review'].every((x) => s.strips.includes(x)) && !s.strips.includes('Bids'), JSON.stringify(s.strips));
86
84
  ok('W3 the category bar sits under the stages', JSON.stringify(s.cats) === JSON.stringify(['To do', 'In progress', 'Done']), JSON.stringify(s.cats));
87
- ok('W3 the pick is remembered', s.stored === 'tender', s.stored);
88
85
  // W4 a card dragged to another stage of its workflow moves there by the stage's name
89
86
  await q(p, () => {
90
87
  const c = document.querySelector('#ibBody .bd-bc[data-key="board:office-network"]'), to = document.querySelector('#ibBody .bd-kc[data-wfstage="bids"]');
@@ -96,12 +93,6 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
96
93
  await until(() => posts.some((x) => x.path === '/api/boards/move'), 3000);
97
94
  const mv = posts.find((x) => x.path === '/api/boards/move');
98
95
  ok('W4 a drag to another stage of the workflow moves the initiative there by that stage\'s name', mv && mv.body.id === 'office-network' && mv.body.to === 'Bids', JSON.stringify(posts));
99
- await p.reload(); await until(() => p.evaluate(() => document.querySelectorAll('#ibBody .ini2').length > 0), 20000);
100
- const kept = await q(p, () => (document.querySelector('#ibBody .bd-wfchips .bd-chip.on') || {}).textContent || '');
101
- ok('W3 after a reload the Board still shows the picked workflow', kept.trim() === 'Tender · 2', kept);
102
- await p.click('#ibBody [data-wfpick=""]'); await sleep(150);
103
- const all = await q(p, () => ({ on: (document.querySelector('#ibBody .bd-wfchips .bd-chip.on') || {}).textContent, stored: localStorage.getItem('pmos.board.wf') }));
104
- ok('W1 All goes back to the categories', all.on === 'All' && all.stored === 'all', JSON.stringify(all));
105
96
  await ctx.close();
106
97
  }
107
98
  /* W5 + W6 the track */
@@ -118,13 +109,20 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
118
109
  ok('W5 each row draws its own stages in their band: done, the current one with its name, a milestone as ◆', JSON.stringify(t.bandsPF) === JSON.stringify(['dn', 'dn,dn,nw,-,m,-', '-']) && /^Bids · /.test(t.em || '') && t.icon === 'Tender', JSON.stringify(t));
119
110
  ok('W5 a stage PMOS judged not to run is drawn as skipped, with the reason', /^Approve skipped: No bids needed/.test(t.skip || ''), JSON.stringify(t.skip));
120
111
  ok('W5 a Product feature row keeps its eight steps across the bands', JSON.stringify(t.sso) === JSON.stringify(['dn', 'dn,dn,dn,dn,m nw,-', 'm']), JSON.stringify(t.sso));
121
- await p.click('[data-wfpick="tender"]'); await sleep(200);
112
+ ok('W1 no workflow chips on the track', await q(p, () => document.querySelectorAll('[data-wfpick]').length === 0));
113
+ await ctx.close();
114
+ }
115
+ {
116
+ const { ctx, page: p } = await open({ view: 'track', facts: W.tenderOnly() });
122
117
  const o = await q(p, () => ({ head: [...document.querySelectorAll('.bt-h .bt-cells [role="columnheader"] .bt-hl')].map((x) => x.textContent), n: document.querySelector('.bt-h .bt-cells').style.getPropertyValue('--n'), rows: [...document.querySelectorAll('.bt-l')].map((r) => r.dataset.row), cur: (document.querySelector('.bt-l[data-row="board:print-fleet"] .sc.c') || {}).title }));
123
- ok('W6 one workflow picked: the header is its stage names, as the eight steps are today', JSON.stringify(o.head) === JSON.stringify(['Triage', 'Requirements', 'RFP out', 'Bids', 'Evaluate bids', 'Award', 'Contract', 'Review']) && o.n === '8', JSON.stringify(o));
124
- ok('W6 only that workflow\'s initiatives show, each at its own stage', JSON.stringify(o.rows) === '["board:office-network","board:print-fleet"]' && /^Bids · /.test(o.cur || ''), JSON.stringify(o));
125
- await p.click('[data-wfpick="product-feature"]'); await sleep(200);
118
+ ok('W6 a board on one workflow: the header is its stage names, as the eight steps are today', JSON.stringify(o.head) === JSON.stringify(['Triage', 'Requirements', 'RFP out', 'Bids', 'Evaluate bids', 'Award', 'Contract', 'Review']) && o.n === '8', JSON.stringify(o));
119
+ ok('W6 its initiatives show, each at its own stage', JSON.stringify(o.rows) === '["board:office-network","board:print-fleet"]' && /^Bids · /.test(o.cur || ''), JSON.stringify(o));
120
+ await ctx.close();
121
+ }
122
+ {
123
+ const { ctx, page: p } = await open({ view: 'track', facts: W.pfOnly() });
126
124
  const f = await q(p, () => ({ head: [...document.querySelectorAll('.bt-h .bt-cells [role="columnheader"] .bt-hl')].map((x) => x.textContent).join('|'), help: !!document.querySelector('.bt-h [data-steps]') }));
127
- ok('W6 Product feature picked: the track is the eight steps with their help, as before', f.head === 'Triage|Discover|Plan|Prioritize|Build|Deliver|Monitor|Evaluate' && f.help, JSON.stringify(f));
125
+ ok('W6 a board on Product feature only: the track is the eight steps with their help, as before', f.head === 'Triage|Discover|Plan|Prioritize|Build|Deliver|Monitor|Evaluate' && f.help, JSON.stringify(f));
128
126
  await ctx.close();
129
127
  }
130
128
  /* W7 the List and Filter */
@@ -140,11 +138,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
140
138
  ok('W7 sorting by Workflow puts Product feature first, then the others by name', byWf[0] === 'Product feature' && byWf.indexOf('Migration') > byWf.lastIndexOf('Product feature') && byWf.indexOf('Tender') > byWf.indexOf('Procurement'), JSON.stringify(byWf));
141
139
  await p.click('#bdFilter'); await sleep(200);
142
140
  const fl = await q(p, () => { const pop = document.querySelector('#bdPop'); return { txt: pop ? pop.textContent : '', wf: [...document.querySelectorAll('#bdPop [data-fwf]')].map((b) => b.textContent) }; });
143
- ok('W7 Filter: Kind became Workflow and Category', /Workflow/.test(fl.txt) && /Category/.test(fl.txt) && !/Kind/.test(fl.txt) && JSON.stringify(fl.wf) === '["Product feature","Procurement","Tender","Migration"]', JSON.stringify(fl));
144
- await p.click('#bdPop [data-fwf="tender"]'); await sleep(200);
145
- const nar = await q(p, () => ({ rows: [...document.querySelectorAll('.bd-lt[data-row] .bd-ltn b')].map((b) => b.textContent), showing: (document.querySelector('#bdShowing') || {}).textContent || '' }));
146
- ok('W7 picking Tender in Filter narrows the List and says so in the Showing bar', JSON.stringify(nar.rows.sort()) === '["Office network tender","Print fleet tender"]' && /Workflow: Tender/.test(nar.showing), JSON.stringify(nar));
147
- await p.click('#bdPop [data-fwf="tender"]').catch(() => {}); await sleep(150);
141
+ ok('W7 Filter has Category and no Workflow group (batch 28 item 3: the Board picks no workflow)', !/Workflow/.test(fl.txt) && /Category/.test(fl.txt) && !/Kind/.test(fl.txt) && fl.wf.length === 0, JSON.stringify(fl));
148
142
  await p.evaluate(() => { const b = document.querySelector('#bdPop [data-flt="cats"][data-v="todo"]'); if (b) b.click(); }); await sleep(200);
149
143
  const cat = await q(p, () => ({ rows: [...document.querySelectorAll('.bd-lt[data-row] .bd-ltn b')].map((b) => b.textContent), showing: (document.querySelector('#bdShowing') || {}).textContent || '' }));
150
144
  ok('W7 a Category in Filter narrows the List to it', JSON.stringify(cat.rows) === '["Laptop refresh"]' && /Category: To do/.test(cat.showing), JSON.stringify(cat));
@@ -156,7 +150,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
156
150
  const ph = await q(p, () => ({ secs: [...document.querySelectorAll('#ibBody .bd-pcat')].map((b) => [b.textContent.trim(), b.getAttribute('aria-expanded')]), rows: [...document.querySelectorAll('#ibBody .bd-pcats .bd-lrow')].length,
157
151
  more: (document.querySelector('#ibBody [data-pmore]') || {}).textContent, icons: [...document.querySelectorAll('#ibBody .bd-pcats .bd-lrow .wfi')].length, chips: document.querySelectorAll('#ibBody .bd-wfchips [data-wfpick]').length }));
158
152
  ok('W8 the phone shows category sections, In progress open, Won\'t do at the foot', JSON.stringify(ph.secs) === JSON.stringify([['To do1', 'false'], ['In progress10', 'true'], ['Done21', 'false'], ['Won\'t do1', 'false']]), JSON.stringify(ph));
159
- ok('W8 a section lists five rows, then "N more"; each row carries its workflow icon; the chips are there', ph.rows === 5 && ph.more === '5 more' && ph.icons === 5 && ph.chips === 5, JSON.stringify(ph));
153
+ ok('W8 a section lists five rows, then "N more"; each row carries its workflow icon; no workflow chips on a phone (batch 28 item 3)', ph.rows === 5 && ph.more === '5 more' && ph.icons === 5 && ph.chips === 0 && !(await q(p, () => !!document.querySelector('.bd-wfchips'))), JSON.stringify(ph));
160
154
  await p.click('#ibBody [data-pcat="todo"]'); await sleep(150);
161
155
  await p.click('#ibBody [data-pmore="doing"]'); await sleep(150);
162
156
  const ph2 = await q(p, () => ({ todo: document.querySelector('#ibBody [data-pcat="todo"]').getAttribute('aria-expanded'), rows: [...document.querySelectorAll('#ibBody .bd-pcats .bd-lrow')].length, stored: localStorage.getItem('pmos.board.pcats') }));
@@ -111,6 +111,10 @@ const IVREAD = () => {
111
111
  const txt = (s) => p.evaluate((q) => (document.querySelector(q) || {}).textContent || '', s);
112
112
 
113
113
  const view = async (pg, v) => { await pg.evaluate((x) => document.querySelector(`#ibTabs [data-v="${x}"]`).click(), v); await sleep(150); };
114
+ // the Filter's "Sprint N only" (batch 28 item 3, BhA: the chip row is gone; the chip is Filter's first sprint chip)
115
+ const sprintOnly = async (pg) => { await pg.click('#bdFilter'); await pg.click('#bdPop [data-fsonly]'); await pg.keyboard.press('Escape'); await sleep(150); };
116
+ // a phone's view button (BhA): its menu holds the four views
117
+ const pview = async (pg, v) => { await pg.click('#bdView'); await pg.click(`#bdViewMenu [data-pv="${v}"]`); await sleep(150); };
114
118
  const spanTo = async (pg, s) => { await pg.click('#bdSpansBtn'); await pg.click(`#bdSpans [data-sp="${s}"]`); await sleep(150); }; // one span picker (batch 24 item 7)
115
119
  /* the Viewer's shell A (initiative viewer-shell-a, XvABoard): what it shows now, and a press in its ⋯ menu by label */
116
120
  const vwOn = (pg, kind) => pg.evaluate((k) => { const v = document.querySelector('#czViewer'), c = window.czViewer && window.czViewer.current(); return !!v && !v.hidden && !!c && (!k || c.kind === k); }, kind || null);
@@ -137,7 +141,7 @@ const IVREAD = () => {
137
141
 
138
142
  /* the Agreed toolbar: the view toggle, Find, Filter, New initiative and ⋯; nothing of the older Board is attached (premium-agreed-design, audit section 2) */
139
143
  const tools = await p.evaluate(() => ({ views: [...document.querySelectorAll('#ibTabs [data-v]')].map((b) => b.dataset.v).join(), order: [...document.querySelectorAll('.bd-hd #ibTabs, .bd-hd #bdFind, .bd-hd #bdFilter, .bd-hd #newIni, .bd-hd #moreBtn')].map((e) => e.id).join(), old: ['#modeSeg', '#iniCap', '#iniBar', '#iniNote', '#popAsks', '#popSpr', '#popMet', '#popFilter', '#stHelp', '#more', '.bam2', '.bd-foot', '#dmQ', '#docBody .dmr'].filter((q) => !!document.querySelector(q)), console: document.querySelectorAll('a[href*="console"]').length }));
140
- ok('B1 the toolbar is the design\'s: four views, Find, Filter, New initiative and ⋯, in that order', tools.views === 'stages,track,time,list' && tools.order === 'ibTabs,bdFind,bdFilter,newIni,moreBtn', JSON.stringify(tools));
144
+ ok('B1 the toolbar is one row (batch 28 item 3, BhA): List, By stage, Track and Timeline, then Find, Filter, New initiative and ⋯, in that order', tools.views === 'list,stages,track,time' && tools.order === 'ibTabs,bdFind,bdFilter,newIni,moreBtn', JSON.stringify(tools));
141
145
  ok('B1 none of the older Board is on the page: no Page/Popup switch, header bar, note, asks, sprint, metrics or filter popover, Show more, row menu, footer or documents manager, and no console link', tools.old.length === 0 && tools.console === 0, JSON.stringify(tools));
142
146
 
143
147
  /* B1 the stage track (premium-agreed-design): eight columns, two of them milestones, the board's counts, rows by stage.
@@ -202,8 +206,10 @@ const IVREAD = () => {
202
206
  }
203
207
  {
204
208
  const R = await open({ model: BP.build(FJ.facts()) }), q = R.page;
205
- const c = await q.evaluate(() => ({ chips: [...document.querySelectorAll('#bdChipset .bd-chip')].map((b) => b.textContent.replace(/\s+/g, ' ').trim() + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')), need: document.querySelector('#chNeed').getAttribute('aria-label'), rows: [...document.querySelectorAll('#bdNeedMenu button')].map((b) => b.textContent.trim() + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join('|'), jira: document.querySelector('#chJira').getAttribute('title'), 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 }));
206
- ok('B1 the chips read the sprint and the release, This sprint (on by default), one pill for the new asks, late, at risk and blocked, and Jira as a face whose words show on hover (batch 24 item 7)', c.chips[0] === 'Sprint 24 · v2.4 ships Nov 4' && c.chips[1] === 'Sprint 24 only*' && c.need === '1 new ask, 1 late, 3 at risk, 1 blocked. Show them' && c.rows === 'New ask1|Late1|At risk3|Blocked1' && /^Jira · read .*Press to read Jira again$/.test(c.jira) && c.chips[c.chips.length - 1] === 'Jira · read ' + c.jira.split('Jira · read ')[1].split('. Press')[0], JSON.stringify(c));
209
+ const c = await q.evaluate(() => ({ chips: [...document.querySelectorAll('#bdChipset .bd-chip')].map((b) => b.textContent.replace(/\s+/g, ' ').trim() + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')), spr: document.querySelector('#bdChipset #chSprint').getAttribute('aria-label'), jiraRow: !!document.querySelector('.bd-hd #bdJiraw #chJira'), need: document.querySelector('#chNeed').getAttribute('aria-label'), rows: [...document.querySelectorAll('#bdNeedMenu button')].map((b) => b.textContent.trim() + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join('|'), jira: document.querySelector('#chJira').getAttribute('title'), 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 }));
210
+ ok('B1 the one row holds one pill for the new asks, late, at risk and blocked, the sprint and release as one icon, and Jira as a face whose words show on hover (batch 24 item 7, batch 28 item 3)', c.chips.length === 1 && c.spr === 'Sprint 24 · v2.4 ships Nov 4. Sprints and releases' && c.need === '1 new ask, 1 late, 3 at risk, 1 blocked. Show them' && c.rows === 'New ask1|Late1|At risk3|Blocked1' && /^Jira · read .*Press to read Jira again$/.test(c.jira) && c.jiraRow, JSON.stringify(c));
211
+ await q.click('#bdFilter'); const fo = await q.evaluate(() => { const b = document.querySelector('#bdPop [data-fsonly]'); return b ? b.textContent + (b.getAttribute('aria-pressed') === 'true' ? '*' : '') : null; }); await q.keyboard.press('Escape');
212
+ ok('B1 This sprint (on by default) is Filter\'s first sprint chip now that the chip row is gone (batch 28 item 3)', fo === 'Sprint 24 only*', String(fo));
207
213
  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));
208
214
  ok('B1 a Deliver row whose release has a date says when it ships', c.st === 'Ships Nov 4', c.st);
209
215
  // a metric chip opens its trend (BdPanel); its "Show only" filters
@@ -275,7 +281,7 @@ const IVREAD = () => {
275
281
  s1.issues = s1.issues.concat(s0.issues.filter((i) => i.initiative === 'sso-partners')); s0.issues = s0.issues.filter((i) => i.initiative !== 'sso-partners'); f.items = [];
276
282
  const R = await open({ model: BP.build(f) }), q = R.page;
277
283
  const rows = () => q.evaluate(() => [...document.querySelectorAll('#ibBody .bt-l')].map((r) => r.dataset.row));
278
- const on = await rows(); await q.click('#bdChipset [data-f="sprint"]'); const off = await rows();
284
+ const on = await rows(); await sprintOnly(q); const off = await rows();
279
285
  ok('B1 This sprint hides an initiative whose tickets are all in a later sprint, and shows it when turned off', on.length === 6 && !on.includes('board:sso-partners') && off.length === 7 && off.includes('board:sso-partners'), JSON.stringify([on, off]));
280
286
  await R.ctx.close();
281
287
  }
@@ -297,9 +303,9 @@ const IVREAD = () => {
297
303
  await R.ctx.close();
298
304
  }
299
305
 
300
- /* B3 + B11 one count: the Initiatives tab, the track's head and the chips agree with the board's counts; B12 the status says what is real */
301
- const head = await p.evaluate(() => ({ tab: document.querySelector('#nIni').textContent, n: document.querySelector('.bt-nmh span').textContent, chips: [...document.querySelectorAll('#bdNeedMenu [data-f]')].map((b) => b.textContent.trim()).join('|'), snap: document.querySelector('#snap').textContent }));
302
- ok('B3 B11 the counts are the board\'s, once: 9 open in the tab and the head, 1 late and 3 at risk in the chips', head.tab === '9' && head.n === '9' && head.chips === 'Late1|At risk3', JSON.stringify(head));
306
+ /* B3 + B11 one count: the track's head and the chips agree with the board's counts (the Initiatives tab went with the one-row header, batch 28 item 3: say it once); B12 the status says what is real */
307
+ const head = await p.evaluate(() => ({ tab: document.querySelector('#nIni') ? 'still there' : '', n: document.querySelector('.bt-nmh span').textContent, chips: [...document.querySelectorAll('#bdNeedMenu [data-f]')].map((b) => b.textContent.trim()).join('|'), snap: document.querySelector('#snap').textContent }));
308
+ ok('B3 B11 the counts are the board\'s, once: 9 open in the head, 1 late and 3 at risk in the chips', head.tab === '' && head.n === '9' && head.chips === 'Late1|At risk3', JSON.stringify(head));
303
309
  ok('B12 the status says what is real', /^Real data · as of 09:12$/.test(head.snap), JSON.stringify(head));
304
310
 
305
311
  /* B4 B5 List (BdList) and By stage (BdByStage): rows and cards open the panel */
@@ -375,7 +381,7 @@ const IVREAD = () => {
375
381
  await view(p, 'track');
376
382
 
377
383
  /* B7 the Board has no Documents tab (batch 24 item 7, canvas BbB): an initiative's Documents fold and Search's Documents filter reach the documents */
378
- ok('B7 the Board has no Documents tab and no Docs chip; its tabs are Initiatives and Shared', await p.evaluate(() => !document.querySelector('#tabDocs') && !document.querySelector('#cDocs') && !document.querySelector('#chDocs') && [...document.querySelectorAll('.bd-tab')].map((t) => t.id).join() === 'tabIni,tabShared'));
384
+ ok('B7 the Board has no Documents tab and no Docs chip; Shared is one button in the row (batch 28 item 3)', await p.evaluate(() => !document.querySelector('#tabDocs') && !document.querySelector('#cDocs') && !document.querySelector('#chDocs') && !document.querySelector('.bd-hd ~ * .bd-tab') && !!document.querySelector('.bd-hd #tabShared')));
379
385
 
380
386
  /* B13 focus: Escape closes the panel and gives the focus back to the row; the Board never opens the old dialog */
381
387
  await p.locator('#ibBody .bt-l[data-row="board:self-serve-v2"] .bt-nm').click(); await until(() => vwOn(p, 'Initiative'));
@@ -432,14 +438,15 @@ const IVREAD = () => {
432
438
  /* B13 floors: the phone (AgBoardPhone, AgBoardPhoneSheet, AgBoardTimelinePhone) */
433
439
  for (const theme of ['light', 'dark']) {
434
440
  const R = await open({ w: 390, h: 844, theme, model: BP.build(FJ.facts()) }), q = R.page;
435
- const m = await q.evaluate(() => { const small = [...document.querySelectorAll('#ibTabs button, #ibBody .bt-nm, #bdChipset .bd-chip, .bd-tab, #newIni, #bdFind, #bdView')].filter((b) => !b.closest('[hidden]') && b.getBoundingClientRect().height > 0 && b.getBoundingClientRect().height < 44).map((b) => b.className + ':' + Math.round(b.getBoundingClientRect().height)); const fab = document.querySelector('#czFab').getBoundingClientRect(); return { over: document.documentElement.scrollWidth > innerWidth + 1, small, fabRight: Math.round(innerWidth - fab.right), top: Math.round(document.querySelector('.bd-hd').getBoundingClientRect().height), chips: [...document.querySelectorAll('#bdChipset .bd-chip')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()), title: getComputedStyle(document.querySelector('.bd-title')).display }; });
436
- ok(`B13 at 390 px (${theme}) the page has no sideways scroll, the top bar is one line with "Board", the menu sits bottom right, and every control is 44 px`, !m.over && m.small.length === 0 && m.fabRight < 40 && m.top <= 56 && m.title !== 'none', JSON.stringify(m));
437
- ok(`B13 at 390 px (${theme}) the chips lead with This sprint, then Jira as a face, the one pill for what needs a look, and end with Shared (no Docs chip, batch 24 item 7)`, m.chips[0] === 'Sprint 24 only' && /^Jira · read /.test(m.chips[1]) && m.chips[2] === '1131' && m.chips[m.chips.length - 1] === 'Shared' && !m.chips.some((t) => /^Docs/.test(t)), JSON.stringify(m.chips));
438
- const pl = await q.evaluate(() => ({ groups: [...document.querySelectorAll('#ibBody .bd-ghd')].map((g) => g.textContent.replace(/\s+/g, ' ').trim()), seg: [...document.querySelectorAll('#ibBody [data-pv]')].map((b) => b.textContent + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join(), note: /Timeline needs a wider screen/.test(document.querySelector('#ibBody').textContent), small: [...document.querySelectorAll('#ibBody [data-pv], #ibBody .bd-lrow')].filter((b) => b.getBoundingClientRect().height < 44).length }));
439
- ok(`B13 at 390 px (${theme}) the phone opens on the List, grouped your turn first, with List, By stage, Track and Timeline (BdPhone, TsCPhone)`, pl.groups.join('|') === 'At risk or late4|On track3' && pl.seg === 'List*,By stage,Track,Timeline' && !pl.note && pl.small === 0, JSON.stringify(pl));
440
- await q.click('#bdView'); const s2 = await q.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1 && document.querySelectorAll('#ibBody .bd-scols.ph .bd-scol').length + (((document.querySelector('#ibBody .bd-sempty') || {}).textContent || '').replace(/^Nothing on screen in /, '').match(/[A-Z][a-z]+/g) || []).length === 8);
441
- ok(`B13 at 390 px (${theme}) the one view button switches to By stage, every step a column down the page (the empty steps named on one line), with no sideways scroll`, s2);
442
- await q.click('#bdView'); await q.locator('#ibBody .bt-l[data-row="board:sso-partners"] .bt-nm').click();
441
+ const m = await q.evaluate(() => { const small = [...document.querySelectorAll('#ibTabs button, #ibBody .bt-nm, #bdChipset .bd-chip, .bd-tab, #newIni, #bdFind, #bdView, #bdFilter')].filter((b) => !b.closest('[hidden]') && b.getBoundingClientRect().height > 0 && b.getBoundingClientRect().height < 44).map((b) => b.className + ':' + Math.round(b.getBoundingClientRect().height)); const fab = document.querySelector('#czFab').getBoundingClientRect(); return { over: document.documentElement.scrollWidth > innerWidth + 1, small, fabRight: Math.round(innerWidth - fab.right), top: Math.round(document.querySelector('.bd-hd').getBoundingClientRect().height), chips: [...document.querySelectorAll('#bdChipset .bd-chip')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()), rows: document.querySelectorAll('.bd-hd').length + document.querySelectorAll('.bd-chiprow').length, jira: !!document.querySelector('.bd-hd #chJira'), order: [...document.querySelectorAll('.bd-hd button')].filter((b) => b.offsetParent && !b.closest('.bd-grpm')).map((b) => b.id).join() }; });
442
+ ok(`B13 at 390 px (${theme}) the page has no sideways scroll, the top bar is ONE line (batch 28 item 3), the menu sits bottom right, and every control is 44 px`, !m.over && m.small.length === 0 && m.fabRight < 40 && m.top <= 56 && m.rows === 1, JSON.stringify(m));
443
+ ok(`B13 at 390 px (${theme}) the one row is the picker, the view button, the one pill for what needs a look, Find, the tune button and New; no Jira face, no Shared chip, no workflow chips (BhA)`, m.chips.join() === '1131' && !m.jira && m.order === 'bdPick,bdView,chNeed,bdFind,bdFilter,newIni', JSON.stringify(m));
444
+ await q.click('#bdView');
445
+ const pl = await q.evaluate(() => ({ groups: [...document.querySelectorAll('#ibBody .bd-ghd')].map((g) => g.textContent.replace(/\s+/g, ' ').trim()), shared: /Shared with me/.test((document.querySelector('#bdViewMenu [data-vshared]') || {}).textContent || ''), seg: [...document.querySelectorAll('#bdViewMenu [data-pv]')].map((b) => b.textContent + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join(), note: /Timeline needs a wider screen/.test(document.querySelector('#ibBody').textContent), small: [...document.querySelectorAll('#bdViewMenu [data-pv], #ibBody .bd-lrow')].filter((b) => b.getBoundingClientRect().height < 44).length }));
446
+ ok(`B13 at 390 px (${theme}) the phone opens on the List, grouped your turn first; its view button holds List, By stage, Track and Timeline, then Shared with me (BdPhone, TsCPhone, BhA)`, pl.groups.join('|') === 'At risk or late4|On track3' && pl.seg === 'List*,By stage,Track,Timeline' && pl.shared && !pl.note && pl.small === 0, JSON.stringify(pl));
447
+ await q.click('#bdViewMenu [data-pv="stages"]'); await sleep(150); const s2 = await q.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1 && document.querySelectorAll('#ibBody .bd-scols.ph .bd-scol').length + (((document.querySelector('#ibBody .bd-sempty') || {}).textContent || '').replace(/^Nothing on screen in /, '').match(/[A-Z][a-z]+/g) || []).length === 8);
448
+ ok(`B13 at 390 px (${theme}) the view button switches to By stage, every step a column down the page (the empty steps named on one line), with no sideways scroll`, s2);
449
+ await pview(q, 'track'); await q.locator('#ibBody .bt-l[data-row="board:sso-partners"] .bt-nm').click();
443
450
  /* re-pointed (viewer-shell-a, XvABoard; batch 14 item 5): on a phone the Viewer covers the screen; ⋯ Move to a stage opens the stages as a sheet */
444
451
  const g = await until(() => q.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden) return null; const r = v.getBoundingClientRect(); return { l: Math.round(r.left), w: Math.round(r.width), h: Math.round(r.height), vw: innerWidth, vh: innerHeight }; }));
445
452
  ok(`B13 at 390 px (${theme}) the initiative covers the screen`, !!g && g.l === 0 && g.w === g.vw && g.h === g.vh, JSON.stringify(g));
@@ -486,17 +493,15 @@ const IVREAD = () => {
486
493
  const y1 = await q.evaluate(() => ({ rows: document.querySelectorAll('#ibBody .tg-q[data-span="year"] .tg-n.ini2').length, themes: document.querySelectorAll('#ibBody .tg-tn, #ibBody .tg-sw').length, group: !!document.querySelector('#chGroup') }));
487
494
  ok('T with the trail read, Year still draws one row per initiative: no theme groups and no Group control', y1.rows > 0 && !y1.themes && !y1.group, JSON.stringify(y1));
488
495
  // TsSprintFilter: the sprint filter (the "Sprint N only" chip and Filter's Sprint group) shows on the Sprint span only; the stage track keeps its chip
489
- const sfY = await q.evaluate(() => !document.querySelector('#bdChipset [data-f="sprint"]'));
490
- await q.click('#bdFilter'); const fgY = await q.evaluate(() => [...document.querySelectorAll('#bdPop .bd-mlbl')].map((e) => e.textContent)); await q.keyboard.press('Escape');
496
+ await q.click('#bdFilter'); const fgY = await q.evaluate(() => [...document.querySelectorAll('#bdPop .bd-mlbl')].map((e) => e.textContent)), sfY = await q.evaluate(() => !document.querySelector('#bdPop [data-fsonly]')); await q.keyboard.press('Escape');
491
497
  await spanTo(q, 'sprint');
492
- const sfS = await q.evaluate(() => !!document.querySelector('#bdChipset [data-f="sprint"]'));
493
- await q.click('#bdFilter'); const fgS = await q.evaluate(() => [...document.querySelectorAll('#bdPop .bd-mlbl')].map((e) => e.textContent)); await q.keyboard.press('Escape');
498
+ await q.click('#bdFilter'); const fgS = await q.evaluate(() => [...document.querySelectorAll('#bdPop .bd-mlbl')].map((e) => e.textContent)), sfS = await q.evaluate(() => !!document.querySelector('#bdPop [data-fsonly]')); await q.keyboard.press('Escape');
494
499
  ok('T the sprint filter shows on the Sprint span only: no chip and no Sprint group in Filter on Year, both on Sprint', sfY && !fgY.includes('Sprint') && sfS && fgS.includes('Sprint'), JSON.stringify({ sfY, fgY, sfS, fgS }));
495
500
  await spanTo(q, 'quarter');
496
501
  ok('T the Quarter names a release sign-off in its bar\'s hover (no blue ◆, batch 13 item 4) and a dependency on the bar', await q.evaluate(() => [...document.querySelectorAll('#ibBody .tg-bar')].some((b) => /v2\.4 sign-off/.test(b.getAttribute('title') || '')) && !document.querySelector('#ibBody .tg-msd') && /after SSO for partners/.test(document.querySelector('#ibBody').textContent)));
497
502
  await view(q, 'track');
498
503
  /* the row actions write through the console's routes, each with Undo; re-pointed (batch 14 item 5): they are items of the initiative's ⋯ */
499
- await q.click('#bdChipset [data-f="sprint"]');
504
+ await sprintOnly(q);
500
505
  const n3 = R.posts.length;
501
506
  await q.click('.bt-l[data-row="board:partner-rate-limits"] .bt-nm'); await until(() => vwOn(q, 'Initiative')); await spLife(q, 'hold');
502
507
  ok('T Put on hold writes one on-hold lifecycle line, with the check-back day', await until(() => R.posts.some((x) => x.path === '/api/lifecycle' && x.body.initiative_id === 'partner-rate-limits' && x.body.state === 'on-hold' && /^\d{4}-\d{2}-\d{2}$/.test(x.body.back || ''))), JSON.stringify(R.posts));
@@ -569,7 +574,7 @@ const IVREAD = () => {
569
574
  const ctx = await openMission(await browser.newContext({ viewport: { width: 1280, height: 900 } })), pg = await ctx.newPage(), errs = [];
570
575
  pg.on('pageerror', (e) => errs.push(String(e)));
571
576
  await pg.goto(BASE + '/premium-board.html');
572
- ok('E5 the real page draws this repository\'s board and its count agrees with the route', await until(() => pg.evaluate((n) => document.querySelectorAll('#ibBody .ini2').length > 0 && document.querySelector('#nIni').textContent === n, String(m.initiatives.open || m.initiatives.list.rows.length)), 30000));
577
+ ok('E5 the real page draws this repository\'s board and its count agrees with the route', await until(() => pg.evaluate((n) => document.querySelectorAll('#ibBody .ini2').length > 0 && (document.querySelector('#ibBody .bt-nmh span') || {}).textContent === n, String(m.initiatives.open || m.initiatives.list.rows.length)), 30000));
573
578
  ok('E6 the real page has no script error', errs.length === 0, errs.join(' | '));
574
579
  await ctx.close();
575
580
  }
@@ -582,32 +587,32 @@ const IVREAD = () => {
582
587
  const st = () => q.evaluate(async () => {
583
588
  const P = await import('/pm/bd-pane.js'), m = document.querySelector('#stage'), cs = (e) => (e ? getComputedStyle(e) : null);
584
589
  const sel = [...document.querySelectorAll('#ibBody .sel')].filter((x) => x.offsetParent), s0 = sel[0], c = cs(s0);
585
- return { view: document.querySelector('#ibBody').dataset.view, desk: m.dataset.bdDesk, fit: P.fit(), seg: !!document.querySelector('#ibBody .bd-phseg'),
586
- tabs: cs(document.querySelector('#ibTabs')).display, vbtn: cs(document.querySelector('#bdView')).display, pad: cs(m).paddingLeft,
590
+ return { view: document.querySelector('#ibBody').dataset.view, desk: m.dataset.bdDesk, fit: P.fit(),
591
+ tabs: cs(document.querySelector('#ibTabs')).display, vbtn: cs(document.querySelector('#bdVieww')).display, pad: cs(m).paddingLeft,
587
592
  vw: !!(window.czViewer && window.czViewer.isOpen()), sel: sel.map((x) => x.className.split(' ')[0]), selKey: s0 ? s0.dataset.key || s0.dataset.row : null,
588
593
  blue: c ? /inset/.test(c.boxShadow) && c.backgroundColor !== 'rgba(0, 0, 0, 0)' : false, stored: localStorage.getItem('pmos.board.view') };
589
594
  });
590
595
  const narrowTo = (on, w) => q.evaluate(([o, px]) => { const m = document.querySelector('#stage'); m.style.maxWidth = px ? px + 'px' : ''; m.classList.toggle('cz-pn-narrow', o); }, [on, w]);
591
596
  await view(q, 'track');
592
597
  const d0 = await st();
593
- ok('PN1 a wide page panel keeps the desktop view: the stage track, the view buttons, and fit() is about 880 for it', d0.view === 'track' && d0.desk === 'track' && d0.fit === 880 && !d0.seg && d0.tabs !== 'none', JSON.stringify(d0));
598
+ ok('PN1 a wide page panel keeps the desktop view: the stage track, the view buttons, and fit() is about 880 for it', d0.view === 'track' && d0.desk === 'track' && d0.fit === 880 && d0.vbtn === 'none' && d0.tabs !== 'none', JSON.stringify(d0));
594
599
  await view(q, 'list'); const dl = await st(); await view(q, 'track');
595
600
  ok('PN1 fit() follows the desktop view: the List needs 360', dl.fit === 360, JSON.stringify(dl));
596
601
  await narrowTo(true, 700); await sleep(300);
597
602
  const n1 = await st();
598
- ok('PN2 a narrow page panel on a wide window draws the narrow form: the List, with the phone\'s view switch and its toolbar', n1.view === 'list' && n1.seg && n1.tabs === 'none' && n1.vbtn !== 'none', JSON.stringify(n1));
603
+ ok('PN2 a narrow page panel on a wide window draws the narrow form: the List, with the phone\'s view switch and its toolbar', n1.view === 'list' && n1.tabs === 'none' && n1.vbtn !== 'none', JSON.stringify(n1));
599
604
  ok('PN2 fit() still measures the desktop view, so the narrow form does not flip back', n1.desk === 'track' && n1.fit === 880, JSON.stringify(n1));
600
605
  await q.click('#ibBody .bd-lrow[data-key="board:usage-billing"]');
601
606
  await until(() => vwOn(q, 'Initiative'));
602
607
  const n2 = await st();
603
608
  ok('PN3 the open row is marked blue in the narrow form (BiB2Half)', n2.vw && n2.sel.join() === 'bd-lrow' && n2.selKey === 'board:usage-billing' && n2.blue, JSON.stringify(n2));
604
- await q.click('#ibBody [data-pv="stages"]'); await sleep(250);
609
+ await pview(q, 'stages'); await sleep(100);
605
610
  const n3 = await st();
606
611
  ok('PN3 a view picked in the narrow form keeps the Viewer open and leaves the desktop\'s view alone', n3.view === 'stages' && n3.vw && n3.desk === 'track' && n3.stored === 'track', JSON.stringify(n3));
607
612
  ok('PN3 the open card is marked in By stage too', n3.sel.join() === 'bd-bc' && n3.selKey === 'board:usage-billing', JSON.stringify(n3));
608
613
  await narrowTo(false); await sleep(300);
609
614
  const n4 = await st();
610
- ok('PN4 a wider panel goes back to the desktop view, the Viewer still open and its row marked blue', n4.view === 'track' && !n4.seg && n4.vw && n4.selKey === 'board:usage-billing' && n4.blue, JSON.stringify(n4));
615
+ ok('PN4 a wider panel goes back to the desktop view, the Viewer still open and its row marked blue', n4.view === 'track' && n4.vbtn === 'none' && n4.vw && n4.selKey === 'board:usage-billing' && n4.blue, JSON.stringify(n4));
611
616
  // the rows that open beside: the row's name in every view, never the grip, never a By stage card
612
617
  const src = await q.evaluate(async () => {
613
618
  const P = await import('/pm/bd-pane.js'), out = {};
@@ -648,7 +653,7 @@ const IVREAD = () => {
648
653
  /* B13 the Agreed design's look: Plus Jakarta Sans, the soft panel, the chips and the track's rows */
649
654
  for (const th of ['light', 'dark']) {
650
655
  const R = await open({ w: 1440, h: 900, theme: th }), q = R.page;
651
- const s = await q.evaluate(() => { const cs = (sel) => getComputedStyle(document.querySelector(sel)); const main = cs('main.bd-main'), row = document.querySelector('.bt-l').getBoundingClientRect(); return { font: cs('body').fontFamily, rad: main.borderTopLeftRadius, bg: main.backgroundColor, chip: Math.round(document.querySelector('#chJira').getBoundingClientRect().height), row: Math.round(row.height), tab: cs('#tabIni').fontWeight, fab: cs('#czFab').borderTopLeftRadius }; });
656
+ const s = await q.evaluate(() => { const cs = (sel) => getComputedStyle(document.querySelector(sel)); const main = cs('main.bd-main'), row = document.querySelector('.bt-l').getBoundingClientRect(); return { font: cs('body').fontFamily, rad: main.borderTopLeftRadius, bg: main.backgroundColor, chip: Math.round(document.querySelector('#chJira').getBoundingClientRect().height), row: Math.round(row.height), tab: cs('#ibTabs [aria-pressed="true"]').fontWeight, fab: cs('#czFab').borderTopLeftRadius }; });
652
657
  ok(`B13 the look of the Agreed design at 1440 px, ${th}: Plus Jakarta Sans, a 28 px panel, 30 px chips, 54 px rows`, /^"?Plus Jakarta Sans/.test(s.font) && s.rad === '28px' && s.chip === 30 && s.row >= 54 && s.row <= 62 && s.tab === '600' && (th === 'light' ? s.bg === 'rgb(255, 255, 255)' : s.bg !== 'rgb(255, 255, 255)'), JSON.stringify(s));
653
658
  await R.ctx.close();
654
659
  }
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.537.0",
4
+ "at": "2026-11-05T23:09:31.438Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1253,
9
+ "t": "One-row Board header, no workflow chips",
10
+ "s": "One-row Board header, no workflow chips",
11
+ "k": "new"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.536.0",
4
17
  "at": "2026-11-05T10:03:22.177Z",
@@ -46,4 +46,10 @@ function facts(o = {}) {
46
46
  }
47
47
  /** Only Product feature rows: the board as it is before any other workflow exists. */
48
48
  const pfOnly = (o = {}) => F.facts(o);
49
- module.exports = { facts, pfOnly, WORKFLOWS, WF_ROWS, WONT };
49
+ /** Only the Tender rows (and the one in Won't do): a board on one PM-made workflow, which the Board draws by that workflow's own stages. The
50
+ * Board picks no workflow (batch 28 item 3), so this is how a test reaches one workflow's own stages. */
51
+ function tenderOnly(o = {}) {
52
+ const base = F.facts(), rows = WF_ROWS.filter((r) => r.wf.id === 'tender').map((r) => ({ ...r }));
53
+ return F.facts({ rows, total: rows.length, columns: base.columns, cancelled: [{ ...WONT }], counts: { ...base.counts, open: rows.length }, ...o });
54
+ }
55
+ module.exports = { facts, pfOnly, tenderOnly, WORKFLOWS, WF_ROWS, WONT };