create-pmos 0.425.0 → 0.426.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-deliveries-test.js +153 -0
- package/workspace/board-programs-test.js +19 -10
- package/workspace/board-shot.js +4 -3
- package/workspace/briefing-premium-board-test.js +2 -2
- package/workspace/calm-timeline-test.js +190 -0
- package/workspace/changelog.json +12 -0
- package/workspace/ev-everywhere-test.js +3 -1
- package/workspace/guide/claude-proposes.md +16 -1
- package/workspace/guide/programs.md +2 -1
- package/workspace/lib/board-premium.js +3 -1
- package/workspace/lib/chat-file-locate.js +40 -2
- package/workspace/lib/engine/boards.js +8 -2
- package/workspace/lib/idle-close.js +60 -0
- package/workspace/lib/loose-proposals.js +302 -0
- package/workspace/lib/my-work-premium.js +1 -1
- package/workspace/lib/proposal-runs.js +77 -2
- package/workspace/lib/propose-cli.js +42 -1
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-boards.js +16 -4
- package/workspace/lib/routes-brief-page.js +9 -1
- package/workspace/lib/routes-loose.js +210 -0
- package/workspace/lib/routes-pm-items.js +27 -17
- package/workspace/lib/task-cli.js +18 -11
- package/workspace/milestone-pins-test.js +170 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +2 -1
- package/workspace/premium-briefing-depth-test.js +1 -1
- package/workspace/premium-chat-term-test.js +13 -2
- package/workspace/premium-core-doc-issue-test.js +1 -1
- package/workspace/product-lane-test.js +30 -17
- package/workspace/public/pm/bd-acts.js +6 -3
- package/workspace/public/pm/bd-deliveries.js +218 -0
- package/workspace/public/pm/bd-pin-card.css +16 -0
- package/workspace/public/pm/bd-pin-card.js +80 -0
- package/workspace/public/pm/bd-pins.js +33 -0
- package/workspace/public/pm/bd-pop.js +2 -0
- package/workspace/public/pm/bd-prog.js +5 -4
- package/workspace/public/pm/bd-span.js +140 -102
- package/workspace/public/pm/cozy-board.css +73 -11
- package/workspace/public/pm/cozy-home.css +16 -1
- package/workspace/public/pm/cozy-today.css +4 -0
- package/workspace/public/pm/home-app.js +14 -0
- package/workspace/public/pm/home-data.js +5 -3
- package/workspace/public/pm/home-list.js +46 -5
- package/workspace/public/pm/home-today.js +15 -5
- package/workspace/public/pm/ini-tasks.js +4 -1
- package/workspace/public/pm/loose-props.css +54 -0
- package/workspace/public/pm/loose-props.js +262 -0
- package/workspace/public/pm/premium-board.js +9 -5
- package/workspace/public/pm/term-view.js +81 -10
- package/workspace/public/premium-board.html +1 -0
- package/workspace/server.js +107 -6
- package/workspace/skills/loose-propose.skill +39 -0
- package/workspace/task-milestones-test.js +15 -6
- package/workspace/test-lists/board-deliveries.json +13 -0
- package/workspace/test-lists/calm-timeline.json +5 -0
- package/workspace/test-lists/loose-props.json +9 -0
- package/workspace/test-lists/milestone-pins.json +6 -0
- package/workspace/timeline-holds-test.js +44 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.426.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.426.0",
|
|
37
|
+
"at": "2026-10-27T04:01:13.323Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1068,
|
|
42
|
+
"t": "Thirteenth testing feedback batch",
|
|
43
|
+
"s": "Thirteenth testing feedback batch"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
35
47
|
{
|
|
36
48
|
"v": "0.425.0",
|
|
37
49
|
"at": "2026-10-27T01:04:19.475Z",
|
|
@@ -259,18 +271,6 @@
|
|
|
259
271
|
"s": "The list stays put; an initiative, program or product opens as a page in the Viewer"
|
|
260
272
|
}
|
|
261
273
|
]
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"v": "0.406.0",
|
|
265
|
-
"at": "2026-10-24T10:26:17.544Z",
|
|
266
|
-
"f": 2,
|
|
267
|
-
"prs": [
|
|
268
|
-
{
|
|
269
|
-
"n": 1036,
|
|
270
|
-
"t": "Tap the title to rename a program, an initiative or a task",
|
|
271
|
-
"s": "Tap the title to rename a program, an initiative or a task"
|
|
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-27T04:01:09Z"}
|
|
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-27T04:01:09Z"}
|
|
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-27T04:01:09Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
/* board-deliveries-test.js — the Deliveries lane on the Board timeline in the browser (feedback batch 13 item 4, calmer timeline A6: XcalmA6Lane,
|
|
4
|
+
* XcalmA6Fold, XcalmA6Phone). Serves the real page from the real server; GET /api/board-premium answers a board lib/board-premium.js builds
|
|
5
|
+
* from rows and ◇ tasks. The page's clock is the fixture's (17 Oct 2026). The lane's rules are checked in board-deliveries.test.js.
|
|
6
|
+
* L the lane is one row right under the axis, a list per column (quarters on Year), the current column washed; missed on top, a past column
|
|
7
|
+
* says "✓ N delivered"
|
|
8
|
+
* H hover an entry: its row gets a faint wash and its ◇ a ring · P press opens the initiative · M "+N more" lists the column
|
|
9
|
+
* F the fold: one line, remembered after a reload · N Filter None: no lane · Q the phone: the next 3 in a card, All opens the sheet
|
|
10
|
+
* SHOTS_DL=<dir>: the lane at 1440 (open, hover, folded) and 390, into <dir>. */
|
|
11
|
+
const path = require('path');
|
|
12
|
+
const { spawn } = require('child_process');
|
|
13
|
+
const { findBrowser } = require('./lib/find-browser');
|
|
14
|
+
const T = require('./test-run').configure({ name: 'board-deliveries' });
|
|
15
|
+
const BP = require('./lib/board-premium.js');
|
|
16
|
+
const F = require('./fixtures/board-premium-facts.js');
|
|
17
|
+
|
|
18
|
+
const BASE = T.BASE;
|
|
19
|
+
const results = [];
|
|
20
|
+
const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + extra : ''}`); };
|
|
21
|
+
let srv = null; let browser = null;
|
|
22
|
+
const finish = async (code) => {
|
|
23
|
+
if (browser) await browser.close().catch(() => {});
|
|
24
|
+
if (srv) { try { srv.kill('SIGKILL'); } catch { /* gone */ } }
|
|
25
|
+
T.killTmux();
|
|
26
|
+
const bad = results.filter((x) => !x.cond).length;
|
|
27
|
+
console.log(`\n${results.length - bad}/${results.length} board-deliveries assertions passed`);
|
|
28
|
+
process.exit(code !== undefined ? code : (bad ? 1 : 0));
|
|
29
|
+
};
|
|
30
|
+
process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
31
|
+
|
|
32
|
+
const ROWS = [
|
|
33
|
+
F.row('magw', 'MAGW migration to auth-service', { owner: 'Wawan', start: '2026-08-01', end: '2026-11-02', progress: 60, status: 'at risk' }),
|
|
34
|
+
F.row('lbx', 'Lightbox UI Adjustments', { start: '2026-07-15', end: '2026-10-17', progress: 80 }),
|
|
35
|
+
F.row('inline', 'Inline login for eShop onsite', { start: '2026-05-01', end: '2026-11-10', progress: 70 }),
|
|
36
|
+
F.row('psle', 'PSLE Landing Page', { start: '2026-08-01', end: '2027-01-05', progress: 30 }),
|
|
37
|
+
F.row('otp', 'Email OTP (passwordless login)', { start: '2026-09-01', end: '2027-06-10', progress: 10 }),
|
|
38
|
+
];
|
|
39
|
+
const it = (ini, uid, title, o) => ({ uid, key: '', kind: 'Task', src: 'pmos', title, status: 'To do', owner: 'Wawan', ini, start: null, end: null, ref: uid, board: 'w1', milestone: true, ...o });
|
|
40
|
+
const ITEMS = [
|
|
41
|
+
it('magw', 'ms-dry', 'MAGW dry run', { end: '2026-10-14', pinned: true }),
|
|
42
|
+
it('magw', 'ms-on', 'MAGW on auth-service', { end: '2026-11-02' }),
|
|
43
|
+
it('inline', 'ms-old', 'Inline beta', { status: 'Done', end: '2026-08-20', pinned: true }),
|
|
44
|
+
it('inline', 'ms-live', 'Inline login live', { end: '2026-11-10' }),
|
|
45
|
+
it('otp', 'ms-otp', 'Email OTP live', { end: '2027-06-10' }),
|
|
46
|
+
];
|
|
47
|
+
const model = () => {
|
|
48
|
+
const m = BP.build(F.facts({ rows: ROWS.map((r) => ({ ...r })), total: ROWS.length, columns: [], items: ITEMS.map((x) => ({ ...x })) }));
|
|
49
|
+
// the pin is slice B's flag on a milestone task (pm/bd-pins.js reads m.pinned); set it on the model here
|
|
50
|
+
for (const r of m.rows || []) for (const ms of r.milestones || []) { const x = ITEMS.find((i) => i.uid === ms.id); if (x && typeof x.pinned === 'boolean') ms.pinned = x.pinned; }
|
|
51
|
+
return m;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
(async () => {
|
|
55
|
+
const exe = findBrowser();
|
|
56
|
+
if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the suite cannot run'); return finish(1); }
|
|
57
|
+
let chromium;
|
|
58
|
+
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
59
|
+
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
60
|
+
await T.waitForServer(BASE);
|
|
61
|
+
browser = await chromium.launch({ executablePath: exe });
|
|
62
|
+
|
|
63
|
+
/** The Board on the timeline. o: { w, h, span, phone, store, dark } */
|
|
64
|
+
const open = async (o = {}) => {
|
|
65
|
+
const ctx = await browser.newContext({ viewport: { width: o.w || 1440, height: o.h || 900 }, hasTouch: !!o.phone, isMobile: !!o.phone, colorScheme: o.dark ? 'dark' : 'light' });
|
|
66
|
+
const page = await ctx.newPage();
|
|
67
|
+
const errors = [];
|
|
68
|
+
page.on('pageerror', (e) => errors.push(String((e && e.stack) || e)));
|
|
69
|
+
await page.clock.setFixedTime(new Date(F.NOW));
|
|
70
|
+
const M = model();
|
|
71
|
+
await page.route('**/api/board-premium*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, state: 'ready', model: M, as_of: Date.now() }) }));
|
|
72
|
+
await page.route('**/api/programs', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, programs: [] }) }));
|
|
73
|
+
await page.route('**/api/board-trail*', (r) => r.fulfill({ status: 500, contentType: 'application/json', body: JSON.stringify({ ok: false, error: 'not in this check' }) }));
|
|
74
|
+
await page.addInitScript(([s]) => { try { if (!sessionStorage.getItem('set')) { sessionStorage.setItem('set', '1'); for (const [k, v] of Object.entries(s)) localStorage.setItem(k, v); } } catch { /* none */ } },
|
|
75
|
+
[{ 'pmos.board.view': 'time', 'pmos.board.pview': 'time', 'pmos.board.span': o.span || 'year', ...(o.store || {}) }]);
|
|
76
|
+
await page.goto(BASE + '/premium-board.html?ws=w1&board=w1');
|
|
77
|
+
await page.waitForSelector('#ibBody [data-row]', { timeout: 15000 });
|
|
78
|
+
await page.waitForTimeout(400);
|
|
79
|
+
return { ctx, page, errors };
|
|
80
|
+
};
|
|
81
|
+
const shots = process.env.SHOTS_DL;
|
|
82
|
+
const shot = async (p, name) => { if (shots) await p.screenshot({ path: path.join(shots, name + '.png'), fullPage: true }); };
|
|
83
|
+
const lane = (p) => p.evaluate(() => {
|
|
84
|
+
const l = document.querySelector('#ibBody .tg-dl'); if (!l) return null;
|
|
85
|
+
const cols = [...l.querySelectorAll('.dl-c')];
|
|
86
|
+
return {
|
|
87
|
+
afterHead: !!(l.previousElementSibling && l.previousElementSibling.classList.contains('tg-h')),
|
|
88
|
+
name: (l.querySelector('.dl-t') || {}).textContent || '', cols: cols.length, now: cols.findIndex((c) => c.classList.contains('now')),
|
|
89
|
+
lists: cols.map((c) => [...c.querySelectorAll('.dl-e, .dl-dn, .dl-more')].map((e) => (e.querySelector('small') ? e.querySelector('small').textContent + ' ' + e.querySelector('b').textContent : e.textContent) + (e.classList.contains('late') ? ' [late]' : e.classList.contains('risk') ? ' [risk]' : ''))),
|
|
90
|
+
fold: (l.querySelector('.dl-fold') || {}).textContent || '',
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
/* L H P M — desktop, Year */
|
|
95
|
+
{
|
|
96
|
+
const { ctx, page: p, errors } = await open();
|
|
97
|
+
const a = await lane(p);
|
|
98
|
+
ok('L one row "Deliveries · What lands when" right under the axis', a && a.afterHead && a.name === 'DeliveriesWhat lands when', JSON.stringify(a));
|
|
99
|
+
ok('L a list per quarter on Year, the current quarter washed', a && a.cols >= 4 && a.now >= 0, JSON.stringify(a && { cols: a.cols, now: a.now }));
|
|
100
|
+
const cur = a ? a.lists[a.now].join(' | ') : '';
|
|
101
|
+
ok('L the current quarter: missed on top in orange, then by date; "Today" for today; the at-risk end amber', /^Oct 14 MAGW dry run \[late\] \| Today Deliver \| Nov 2 MAGW on auth-service \[risk\] \| Nov 10 Inline login live/.test(cur), cur);
|
|
102
|
+
const prev = a ? a.lists[a.now - 1].join(' | ') : '';
|
|
103
|
+
ok('L done folds away: the past quarter says "1 delivered" after a drawn tick', prev.trim() === '1 delivered', prev);
|
|
104
|
+
await shot(p, 'deliveries-1440');
|
|
105
|
+
await p.hover('#ibBody .tg-dl [data-dl-ms="ms-on"]');
|
|
106
|
+
const hv = await p.evaluate(() => { const r = document.querySelector('#ibBody .tg-r[data-row="board:magw"]'); return { hl: r.classList.contains('dl-hl'), ring: [...r.querySelectorAll('.dl-ring')].map((x) => x.className), others: document.querySelectorAll('#ibBody .dl-hl').length }; });
|
|
107
|
+
ok('H hover an entry: its row gets a faint wash and its ◇ a ring, nothing else', hv.hl && hv.ring.length === 1 && /tg-end|tg-tm/.test(hv.ring[0]) && hv.others === 1, JSON.stringify(hv));
|
|
108
|
+
await shot(p, 'deliveries-hover-1440');
|
|
109
|
+
await p.mouse.move(5, 5);
|
|
110
|
+
ok('H the wash goes when the pointer leaves', await p.evaluate(() => !document.querySelector('#ibBody .dl-hl, #ibBody .dl-ring')));
|
|
111
|
+
await p.click('#ibBody .tg-dl [data-dl-ms="ms-on"]');
|
|
112
|
+
await p.waitForTimeout(400);
|
|
113
|
+
ok('P press opens the initiative, as pressing the row name does', await p.evaluate(() => !!document.querySelector('#ibBody [data-row="board:magw"].sel')));
|
|
114
|
+
ok('the Board threw nothing', !errors.length, errors.join('\n'));
|
|
115
|
+
await ctx.close();
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* F — the fold, remembered */
|
|
119
|
+
{
|
|
120
|
+
const { ctx, page: p } = await open();
|
|
121
|
+
await p.click('#ibBody [data-dl-fold]');
|
|
122
|
+
const a = await lane(p);
|
|
123
|
+
ok('F folded: one line "Next · Today Deliver · 2 more this year · 1 missed"', a && a.cols === 0 && /^Next\s*Today Deliver\s*· 2 more this year · 1 missed$/.test(a.fold.trim()), JSON.stringify(a && a.fold));
|
|
124
|
+
ok('F the fold button says it opens the lane', await p.evaluate(() => document.querySelector('#ibBody [data-dl-fold]').getAttribute('aria-expanded') === 'false'));
|
|
125
|
+
await shot(p, 'deliveries-folded-1440');
|
|
126
|
+
await p.reload(); await p.waitForSelector('#ibBody [data-row]'); await p.waitForTimeout(300);
|
|
127
|
+
const b = await lane(p);
|
|
128
|
+
ok('F the fold is remembered after a reload', b && b.cols === 0 && !!b.fold, JSON.stringify(b));
|
|
129
|
+
await ctx.close();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* N — Filter None */
|
|
133
|
+
{
|
|
134
|
+
const { ctx, page: p } = await open({ store: { 'pmos.board.msMode': 'none' } });
|
|
135
|
+
ok('N Filter None: no lane at all', await p.evaluate(() => !document.querySelector('#ibBody .tg-dl, #ibBody .dl-ph')));
|
|
136
|
+
await ctx.close();
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Q — the phone */
|
|
140
|
+
{
|
|
141
|
+
const { ctx, page: p, errors } = await open({ w: 390, h: 844, phone: true });
|
|
142
|
+
const c = await p.evaluate(() => { const s = document.querySelector('#ibBody .dl-ph'); return s ? { head: s.querySelector('.dl-phh').textContent, lines: [...s.querySelectorAll('.dl-pl')].map((x) => x.textContent), first: !!(s.nextElementSibling && s.nextElementSibling.classList.contains('tg')) } : null; });
|
|
143
|
+
ok('Q "Next deliveries · 1 missed" above the rows, with All', c && c.first && c.head === 'Next deliveries· 1 missedAll', JSON.stringify(c));
|
|
144
|
+
ok('Q the next 3, missed first', c && c.lines.join('|') === 'Oct 14MAGW dry run|TodayDeliver|Nov 2MAGW on auth-service', JSON.stringify(c && c.lines));
|
|
145
|
+
await shot(p, 'deliveries-phone-390');
|
|
146
|
+
await p.click('#ibBody .dl-all'); await p.waitForTimeout(200);
|
|
147
|
+
const sh = await p.evaluate(() => { const m = document.querySelector('.tg-msp.sh'); return m ? { h: (m.querySelector('.h') || {}).textContent, n: m.querySelectorAll('[data-ms-ini]').length } : null; });
|
|
148
|
+
ok('Q All opens the sheet with every delivery not done', sh && sh.h === 'Deliveries' && sh.n === 6, JSON.stringify(sh));
|
|
149
|
+
ok('the phone threw nothing', !errors.length, errors.join('\n'));
|
|
150
|
+
await ctx.close();
|
|
151
|
+
}
|
|
152
|
+
finish();
|
|
153
|
+
})();
|
|
@@ -168,12 +168,22 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
168
168
|
clu: [...document.querySelectorAll('#ibBody .tg-pg .tg-clu')].map((c) => c.textContent + '|' + c.getAttribute('aria-label')),
|
|
169
169
|
lab: [...document.querySelectorAll('#ibBody .tg-pg .tg-pdl')].map((l) => l.textContent),
|
|
170
170
|
kids: [...document.querySelectorAll('#ibBody .tg-kid .tg-n b')].map((b) => b.textContent),
|
|
171
|
-
oneLine: [...document.querySelectorAll('#ibBody .tg-n.ini2')].every((b) => !b.querySelector('small')
|
|
171
|
+
oneLine: [...document.querySelectorAll('#ibBody .tg-n.ini2')].every((b) => !b.querySelector('small')),
|
|
172
|
+
kidDots: document.querySelectorAll('#ibBody .tg-kid .tg-n .cz-dot').length,
|
|
172
173
|
lgd: (document.querySelector('#bdChipset .tg-lgd') || {}).textContent || '',
|
|
173
174
|
}));
|
|
174
|
-
ok('T the program row comes first
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
ok('T the program row comes first with its title; open, its track draws nothing: no span, no diamond, no label (batch 13 item 4)', /tg-pg/.test(t.first) && /Project Ascent/.test(t.title) && !/2 products|Running/.test(t.title) && !t.span && !t.clu.length && !t.lab.length, JSON.stringify(t));
|
|
176
|
+
const fold = await p.evaluate(async () => {
|
|
177
|
+
const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 17);
|
|
178
|
+
const a = { key: 'board:a', id: 'a', title: 'One', start: '2026-10-01', end: '2026-11-20', status: 'late', late: true, track: { key: 'build' } };
|
|
179
|
+
const b = { key: 'board:b', id: 'b', title: 'Two', start: '2026-10-05', end: '2027-01-10', track: { key: 'build' } };
|
|
180
|
+
const groups = [{ kind: 'program', key: 'p', program: { id: 'p', title: 'IDPF Feature Expansion', products: [] }, products: [{ name: 'IDPF', rows: [a, b] }], rows: [a, b] }];
|
|
181
|
+
const d = document.createElement('div'); d.innerHTML = S.timelineHtml([a, b], { jira: null }, 'year', { now, groups, trackPx: 1100, folded: () => true }).html;
|
|
182
|
+
const pg = d.querySelector('.tg-pg');
|
|
183
|
+
return { span: pg.querySelectorAll('.tg-span').length, dm: pg.querySelectorAll('.tg-tm, .tg-tmc').length, end: (pg.querySelector('.tg-endl') || {}).textContent || '', dots: [...pg.querySelectorAll('.tg-offd .cz-dot')].map((x) => x.className), rows: d.querySelectorAll('[data-row]').length };
|
|
184
|
+
});
|
|
185
|
+
ok('T folded, the program shows the roll-up: its line, its initiatives\' ◇s, the last end and one dot per initiative off track', fold.span === 1 && fold.dm === 2 && fold.end === 'Jan ’27' && fold.dots.length === 1 && /late/.test(fold.dots[0]) && fold.rows === 0, JSON.stringify(fold));
|
|
186
|
+
ok('T the program\'s initiatives sit under it as one-line rows: the name, and a dot only off track', t.kids.join() === 'Descope feature parity,Legacy IdP sunset' && t.oneLine && t.kidDots === 0, JSON.stringify(t));
|
|
177
187
|
// batch 11 item 12: By product, a program's initiatives sit under their product on the timeline (the row copies were dropped)
|
|
178
188
|
const bpt = await p.evaluate(async () => {
|
|
179
189
|
const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
|
|
@@ -224,12 +234,11 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
224
234
|
return true;
|
|
225
235
|
});
|
|
226
236
|
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));
|
|
227
|
-
ok('T a legend in the chip row names done, planned,
|
|
237
|
+
ok('T a legend in the chip row names done, planned, Milestone (Deliver, Evaluate and milestone tasks, batch 11 item 3) and today; no program milestone key while a program draws none (batch 13 item 4)', /Done in Jira/.test(t.lgd) && /To do/.test(t.lgd) && !/Program milestone/.test(t.lgd) && /Milestone/.test(t.lgd) && /Today/.test(t.lgd), t.lgd);
|
|
228
238
|
await p.click('#ibBody .tg-pg .tg-pgo');
|
|
229
239
|
// the program opens in the floating Viewer (shell A), which sits over the right of the timeline; close it before the next press
|
|
230
240
|
await p.keyboard.press('Escape'); await p.waitForFunction(() => { const v = document.querySelector('#czViewer'); return !v || v.hidden; });
|
|
231
|
-
await p.
|
|
232
|
-
ok('O the program row and its counted diamond dispatch bd:program and nothing else', (await events(p)).join() === 'project-ascent,project-ascent' && await p.evaluate(() => !/Initiative/.test(((window.czViewer && window.czViewer.current()) || {}).kind || '')));
|
|
241
|
+
ok('O the program row dispatches bd:program and nothing else', (await events(p)).join() === 'project-ascent' && await p.evaluate(() => !/Initiative/.test(((window.czViewer && window.czViewer.current()) || {}).kind || '')));
|
|
233
242
|
ok('the timeline threw nothing', !errors.length, errors.join('\n'));
|
|
234
243
|
await ctx.close();
|
|
235
244
|
}
|
|
@@ -245,9 +254,9 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
245
254
|
tabs: [...el.querySelectorAll('.tg-edge')].filter(vis).map((b) => b.dataset.edge + ':' + b.textContent.trim()), out: el.querySelectorAll('.tg-out').length, first: (el.querySelector('.tg-h .tg-p > span.pin') || {}).textContent || '', label: sc.getAttribute('aria-label') }; });
|
|
246
255
|
const DAY = 86400000;
|
|
247
256
|
let g = await geo();
|
|
248
|
-
ok('S Quarter opens with today a quarter of the way in, wider than the screen,
|
|
257
|
+
ok('S Quarter opens with today a quarter of the way in, wider than the screen, no hatched ends (batch 13 item 4), Today on its line', g.tw > g.vw * 1.5 && Math.abs(g.at - 0.25) < 0.03 && g.pill && !g.back.length && g.out === 0, JSON.stringify(g));
|
|
249
258
|
ok('S the first column on screen carries the year, and the scroller names its range', /2026/.test(g.first) && /^Timeline, Oct 2026 to (Nov|Dec) 2026/.test(g.label), JSON.stringify(g));
|
|
250
|
-
ok('S
|
|
259
|
+
ok('S an open program leaves no milestone tab at the edge: it draws no milestone while open (batch 13 item 4)', !g.tabs.some((x) => /^m:/.test(x)), JSON.stringify(g.tabs));
|
|
251
260
|
await p.focus('#ibBody .tg-sc'); const l0 = g.l; await p.keyboard.press('ArrowRight'); await p.waitForTimeout(700);
|
|
252
261
|
g = await geo();
|
|
253
262
|
ok('S → moves half a screen', Math.abs(g.l - l0 - g.vw / 2) < 6, JSON.stringify({ l0, l: g.l, vw: g.vw }));
|
|
@@ -269,7 +278,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
269
278
|
g = await geo();
|
|
270
279
|
ok('S with today in view, a span switch keeps today in its place', g.span === 'y2' && (g.l === 0 || Math.abs(g.at - 0.25) < 0.03), JSON.stringify(g));
|
|
271
280
|
const lab2 = await p.evaluate(() => [...document.querySelectorAll('#ibBody .tg-endl, #ibBody .tg-pdl')].map((e) => e.textContent));
|
|
272
|
-
ok('S 2 yr
|
|
281
|
+
ok('S 2 yr labels say what lands, then when, with the year only when it is not this year (batch 13 item 4)', lab2.length > 0 && lab2.every((x) => /^[A-Z].* [A-Z][a-z]{2} \d{1,2}( ’\d\d)?$/.test(x)) && lab2.some((x) => / ’27$/.test(x)), JSON.stringify(lab2));
|
|
273
282
|
await p.click('#bdSpans [data-sp="sprint"]'); await p.waitForTimeout(200);
|
|
274
283
|
await p.evaluate(() => { const sc = document.querySelector('#ibBody .tg-sc'); if (sc) sc.scrollLeft = 0; });
|
|
275
284
|
await p.click('#bdSpans [data-sp="quarter"]'); await p.waitForTimeout(250);
|
package/workspace/board-shot.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
/* board-shot.js — screenshots of the Board with Project Ascent (initiative program-hierarchy: PgBoard, PgBoardProduct, PgKanban, PgTimeline, PgList)
|
|
4
4
|
* at 1440x900 and 390x844 against the Board's program fixture (fixtures/board-premium-facts.js programFacts). Not a suite: a look at the page.
|
|
5
|
-
* OUT=<dir> names where the PNGs go (default: the state folder of this run). WS=microsites shoots the other product's board.
|
|
5
|
+
* OUT=<dir> names where the PNGs go (default: the state folder of this run). WS=microsites shoots the other product's board. SPAN=year sets
|
|
6
|
+
* the timeline's span; PHONE_TIME=1 shoots the timeline at 390 too. */
|
|
6
7
|
const fs = require('fs');
|
|
7
8
|
const path = require('path');
|
|
8
9
|
const { spawn } = require('child_process');
|
|
@@ -32,13 +33,13 @@ const TRAIL = { ok: true, at: '2026-10-17T09:12:00.000Z', usual: {}, themes: [],
|
|
|
32
33
|
const shots = (process.env.SHOTS || 'track,product,stages,time,list').split(',');
|
|
33
34
|
for (const [w, h, name] of [[1440, 900, '1440'], [390, 844, '390']]) {
|
|
34
35
|
for (const s of shots) {
|
|
35
|
-
if (name === '390' && (s === 'time' || s === 'product')) continue;
|
|
36
|
+
if (name === '390' && ((s === 'time' && !process.env.PHONE_TIME) || s === 'product')) continue;
|
|
36
37
|
const ctx = await browser.newContext({ viewport: { width: w, height: h }, colorScheme: process.env.DARK ? 'dark' : 'light' });
|
|
37
38
|
await ctx.route('**/api/board-premium*', (r) => { const q = new URL(r.request().url()).searchParams; r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, state: 'ready', model: model(q.get('ws') || ws), as_of: Date.now() }) }); });
|
|
38
39
|
await ctx.route('**/api/programs', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, programs: F.programs() }) }));
|
|
39
40
|
await ctx.route('**/api/board-trail*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify(TRAIL) }));
|
|
40
41
|
const v = s === 'product' ? 'track' : s;
|
|
41
|
-
await ctx.addInitScript(([v, s, phone]) => { try { localStorage.setItem(phone ? 'pmos.board.pview' : 'pmos.board.view', v); localStorage.setItem('pmos.board.grouping', s === 'product' ? 'product' : 'program'); } catch {} }, [v, s, name === '390']);
|
|
42
|
+
await ctx.addInitScript(([v, s, phone, sp]) => { try { localStorage.setItem(phone ? 'pmos.board.pview' : 'pmos.board.view', v); localStorage.setItem('pmos.board.grouping', s === 'product' ? 'product' : 'program'); if (sp) localStorage.setItem('pmos.board.span', sp); } catch {} }, [v, s, name === '390', process.env.SPAN || '']);
|
|
42
43
|
const p = await ctx.newPage();
|
|
43
44
|
p.on('pageerror', (e) => errs.push(name + ' ' + s + ': ' + e.message));
|
|
44
45
|
p.on('console', (m) => { if (m.type() === 'error' && !/Failed to load resource/.test(m.text())) errs.push(name + ' ' + s + ' console: ' + m.text()); });
|
|
@@ -347,7 +347,7 @@ const IVREAD = () => {
|
|
|
347
347
|
ok('B6 Year draws Quarter\'s rows (TsAllSpans): one row per initiative with its bar, months as columns; no themes, no Group chip; the chips and the legend stay', yr.rows.join() === tl.rows.join() && yr.bars === 3 && !yr.themes && !yr.group && yr.lgd && yr.jira && yr.heads.length >= 12 && yr.heads.every((h) => /^[A-Z][a-z]{2}$/.test(h)), JSON.stringify(yr));
|
|
348
348
|
await spanTo(p, 'y5');
|
|
349
349
|
const y5 = await p.evaluate(() => ({ rows: document.querySelectorAll('#ibBody .tg-q[data-span="y5"] .tg-n.ini2').length, heads: [...document.querySelectorAll('#ibBody .tg-h .tg-p > span[data-y] b')].map((b) => b.textContent), dates: [...document.querySelectorAll('#ibBody .tg-endl, #ibBody .tg-lab')].map((e) => e.textContent) }));
|
|
350
|
-
ok('B6 5 yr draws the same rows with years as columns, and
|
|
350
|
+
ok('B6 5 yr draws the same rows with years as columns, and each bar ends with what lands, then when (batch 13 item 4)', y5.rows === 3 && y5.heads.length >= 5 && y5.heads.every((h) => /^\d{4}$/.test(h)) && y5.dates.length === 3 && y5.dates.every((d) => /^[A-Z][\w ]* [A-Z][a-z]{2} \d{1,2}( ’\d\d)?$/.test(d)), JSON.stringify(y5));
|
|
351
351
|
const sp = [];
|
|
352
352
|
for (const [k, sel, re] of [['sprint', '.sp[data-span="sprint"]', /Initiative and ticket.*Backlog · \d+ not in/], ['half', '.tg-q[data-span="half"]', /Self-serve onboarding v2/], ['y2', '.tg-q[data-span="y2"]', /Self-serve onboarding v2/]]) { await spanTo(p, k); sp.push(await p.evaluate(([q2, r]) => { const e = document.querySelector('#ibBody ' + q2); return !!e && !document.querySelector('#ibBody .bd-wtag') && new RegExp(r).test(e.textContent); }, [sel, re.source])); }
|
|
353
353
|
ok('B6 Sprint (BdSpans: tickets and the backlog row), Half and 2 yr (Quarter\'s rows) are drawn, with no "Waiting for design" tag', sp.every(Boolean), JSON.stringify(sp));
|
|
@@ -474,7 +474,7 @@ const IVREAD = () => {
|
|
|
474
474
|
await q.click('#bdFilter'); const fgS = await q.evaluate(() => [...document.querySelectorAll('#bdPop .bd-mlbl')].map((e) => e.textContent)); await q.keyboard.press('Escape');
|
|
475
475
|
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 }));
|
|
476
476
|
await spanTo(q, 'quarter');
|
|
477
|
-
ok('T the Quarter
|
|
477
|
+
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)));
|
|
478
478
|
await view(q, 'track');
|
|
479
479
|
/* the row actions write through the console's routes, each with Undo; re-pointed (viewer-shell-a): the initiative's ⋯ opens them */
|
|
480
480
|
await q.click('#bdChipset [data-f="sprint"]');
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
/* calm-timeline-test.js — the calmer Board timeline (feedback batch 13 item 4, A; canvas XcalmA1Desk, A4Dark, A3Phone, A2Folded, A5Milestones).
|
|
4
|
+
* Serves the real page from the real server; GET /api/board-premium answers Project Ascent's IDPF board (fixtures/program-ascent.js) with rows
|
|
5
|
+
* added for each case: a hold, a late row, an at-risk row, an initiative with several milestone tasks. The page's clock is the fixture's (17 Oct 2026).
|
|
6
|
+
* L one label per bar end: what lands, then when; the year only when it is not this year; amber at risk, orange late; no date under a ◇
|
|
7
|
+
* K the mark set: no dotted hold, ⏸, hatched band, blue ◆ or amber tint; a hold is the gap's hairline and opens the hold card
|
|
8
|
+
* P only the pinned milestones show (by default the last); Filter's All shows every one, None none; a ◇ press lists the milestones
|
|
9
|
+
* G group rows draw nothing while open; folded, the roll-up line, the counted ◇s, the end date and the off-track dots
|
|
10
|
+
* Q a dot only off track; no "Running"; no goal dots on an open product head
|
|
11
|
+
* N names wrap to two lines and are never cut · B one tint, quarter lines only · M the phone keeps the labels and the quiet dots
|
|
12
|
+
* SHOTS_4=<dir>: the timeline at 1440 and 390, light and dark, folded, into <dir>. */
|
|
13
|
+
const path = require('path');
|
|
14
|
+
const { spawn } = require('child_process');
|
|
15
|
+
const { findBrowser } = require('./lib/find-browser');
|
|
16
|
+
const T = require('./test-run').configure({ name: 'calm-timeline' });
|
|
17
|
+
const BP = require('./lib/board-premium.js');
|
|
18
|
+
const F = require('./fixtures/board-premium-facts.js');
|
|
19
|
+
|
|
20
|
+
const BASE = T.BASE;
|
|
21
|
+
const results = [];
|
|
22
|
+
const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + extra : ''}`); };
|
|
23
|
+
let srv = null; let browser = null;
|
|
24
|
+
const finish = async (code) => {
|
|
25
|
+
if (browser) await browser.close().catch(() => {});
|
|
26
|
+
if (srv) { try { srv.kill('SIGKILL'); } catch { /* gone */ } }
|
|
27
|
+
T.killTmux();
|
|
28
|
+
const bad = results.filter((x) => !x.cond).length;
|
|
29
|
+
console.log(`\n${results.length - bad}/${results.length} calm-timeline assertions passed`);
|
|
30
|
+
process.exit(code !== undefined ? code : (bad ? 1 : 0));
|
|
31
|
+
};
|
|
32
|
+
process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
33
|
+
|
|
34
|
+
const row = (id, title, o) => ({ id, title, lane: 'feature', stage: 'Build', cat: 'Do', owner: 'Wawan', anchor: 'q4-2026:o3:kr1', horizon: 'now', status: 'on track', start: null, end: null, progress: 30, warnings: [], rank: 0, health: 'on', updated: '2026-10-15T08:00:00.000Z', reading: 'build', stageSource: 'derived', dupOf: null, ...o });
|
|
35
|
+
const EXTRA = [
|
|
36
|
+
row('email-otp', 'Email OTP (passwordless login for every member)', { start: '2026-07-01', end: '2027-06-10', status: 'on hold', holds: [{ from: '2026-08-25', to: null, back: '2027-03-01', reason: 'Waits on the SMS vendor contract' }], stopped: { state: 'on-hold', reason: 'Waits on the SMS vendor contract', at: '2026-08-25T09:00:00.000Z', back: '2027-03-01' } }),
|
|
37
|
+
row('lightbox', 'Lightbox UI Adjustments', { start: '2026-08-10', end: '2026-10-12', status: 'late', progress: 80 }),
|
|
38
|
+
row('magw', 'MAGW migration to auth-service', { start: '2026-09-01', end: '2026-11-02', status: 'at risk', progress: 60 }),
|
|
39
|
+
row('migration', 'Migration — move from Okta to Descope', { start: '2026-10-15', end: '2027-09-05', progress: 15 }),
|
|
40
|
+
];
|
|
41
|
+
const it = (ini, uid, title, o) => ({ uid, key: '', kind: 'Task', src: 'pmos', title, status: 'To do', owner: 'Wawan', ini, start: null, end: null, ref: uid, board: 'idpf', milestone: true, ...o });
|
|
42
|
+
const ITEMS = [
|
|
43
|
+
it('migration', 'm-it1', 'Iteration 1 live', { end: '2027-01-20' }),
|
|
44
|
+
it('migration', 'm-it2', 'Iteration 2 live', { end: '2027-03-25' }),
|
|
45
|
+
it('migration', 'm-rel', 'Release: all users on Descope', { end: '2027-06-01' }),
|
|
46
|
+
it('migration', 'm-okta', 'Okta decommissioned', { end: '2027-09-05', section: 'evaluate' }),
|
|
47
|
+
it('lightbox', 'l-live', 'Lightbox UI live', { end: '2026-10-12', section: 'evaluate' }),
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
(async () => {
|
|
51
|
+
const exe = findBrowser();
|
|
52
|
+
if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the suite cannot run'); return finish(1); }
|
|
53
|
+
let chromium;
|
|
54
|
+
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
55
|
+
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
56
|
+
await T.waitForServer(BASE);
|
|
57
|
+
browser = await chromium.launch({ executablePath: exe });
|
|
58
|
+
|
|
59
|
+
/** The Board on the timeline. o: { w, h, span, dark, mode, fold, phone } */
|
|
60
|
+
const open = async (o = {}) => {
|
|
61
|
+
const ctx = await browser.newContext({ viewport: { width: o.w || 1440, height: o.h || 1000 }, colorScheme: o.dark ? 'dark' : 'light', hasTouch: !!o.phone, isMobile: !!o.phone });
|
|
62
|
+
const page = await ctx.newPage();
|
|
63
|
+
const errors = [];
|
|
64
|
+
page.on('pageerror', (e) => errors.push(String((e && e.stack) || e)));
|
|
65
|
+
await page.clock.setFixedTime(new Date(F.NOW));
|
|
66
|
+
const base = F.programFacts('idpf'), rows = base.rows.concat(EXTRA.map((r) => ({ ...r })));
|
|
67
|
+
await page.route('**/api/board-premium*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, state: 'ready', model: BP.build({ ...base, rows, total: rows.length, items: ITEMS.map((x) => ({ ...x })) }), as_of: Date.now() }) }));
|
|
68
|
+
await page.route('**/api/programs', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, programs: F.programs() }) }));
|
|
69
|
+
await page.route('**/api/board-trail*', (r) => r.fulfill({ status: 500, contentType: 'application/json', body: JSON.stringify({ ok: false, error: 'not in this check' }) }));
|
|
70
|
+
const ls = { 'pmos.board.view': 'time', 'pmos.board.pview': 'time', 'pmos.board.span': o.span || 'year', 'pmos.board.msMode': o.mode || 'pinned' };
|
|
71
|
+
if (o.fold) ls['pmos.board.fold'] = JSON.stringify(o.fold);
|
|
72
|
+
await page.addInitScript(([s]) => { try { if (!sessionStorage.getItem('set')) { sessionStorage.setItem('set', '1'); for (const [k, v] of Object.entries(s)) localStorage.setItem(k, v); } } catch { /* none */ } }, [ls]);
|
|
73
|
+
await page.goto(BASE + '/premium-board.html?ws=idpf&board=idpf');
|
|
74
|
+
await page.waitForSelector(o.fold ? '#ibBody .tg-r' : '#ibBody [data-row]', { timeout: 15000 });
|
|
75
|
+
await page.waitForTimeout(500);
|
|
76
|
+
return { ctx, page, errors };
|
|
77
|
+
};
|
|
78
|
+
const shots = process.env.SHOTS_4;
|
|
79
|
+
const shot = async (p, name) => { if (shots) { await p.waitForTimeout(1200); await p.screenshot({ path: path.join(shots, name + '.png') }); } };
|
|
80
|
+
/** One row's marks, read in the page. */
|
|
81
|
+
const rowOf = (p, key) => p.evaluate((k) => {
|
|
82
|
+
const r = document.querySelector(`#ibBody [data-row="${k}"]`); if (!r) return null;
|
|
83
|
+
return {
|
|
84
|
+
labels: [...r.querySelectorAll('.tg-endl')].map((x) => x.textContent.replace(/\s+/g, ' ').trim()),
|
|
85
|
+
tone: [...r.querySelectorAll('.tg-endl > b')].map((x) => x.className),
|
|
86
|
+
tm: [...r.querySelectorAll('.tg-tm')].map((x) => x.getAttribute('title')), end: (r.querySelector('.tg-end') || {}).className || '',
|
|
87
|
+
holds: [...r.querySelectorAll('.tg-ng.ho')].map((x) => x.getAttribute('aria-label')),
|
|
88
|
+
dot: (r.querySelector('.cz-dot') || {}).className || '',
|
|
89
|
+
};
|
|
90
|
+
}, key);
|
|
91
|
+
|
|
92
|
+
// ── L, K, Q, N, B: the open timeline at Year ──
|
|
93
|
+
{
|
|
94
|
+
const { ctx, page: p, errors } = await open();
|
|
95
|
+
await shot(p, 'calm-1440');
|
|
96
|
+
const mig = await rowOf(p, 'board:migration'), lb = await rowOf(p, 'board:lightbox'), mg = await rowOf(p, 'board:magw'), otp = await rowOf(p, 'board:email-otp'), dp = await rowOf(p, 'board:descope-parity');
|
|
97
|
+
ok('L the end label says what lands, then when, with the year when it is not this year', mig && mig.labels.length === 1 && mig.labels[0] === 'Okta decommissioned Sep 5 ’27', JSON.stringify(mig));
|
|
98
|
+
ok('L with no end milestone the label names the stage the end stands for, and this year carries no year', dp && dp.labels.length === 1 && dp.labels[0] === 'Deliver Nov 12', JSON.stringify(dp));
|
|
99
|
+
ok('L late: the date is orange and the ◇ orange; at risk: the date is amber', lb && lb.tone.join() === 'late' && /late/.test(lb.end) && lb.labels[0] === 'Lightbox UI live Oct 12' && mg && mg.tone.join() === 'risk', JSON.stringify([lb, mg]));
|
|
100
|
+
const gone = await p.evaluate(() => ['.tg-tml', '.tg-pz', '.tg-gap', '.tg-hl', '.tg-out', '.tg-msd', '.tg-dm', '.tg-bar.t-risk', '.tg-bar.t-you', '.tg-end.ms', '.tg-over', '.tg-lab'].filter((s) => document.querySelector('#ibBody ' + s)));
|
|
101
|
+
ok('K no dotted hold, ⏸, return date, hatched band, blue ◆, amber tint or second date anywhere', gone.length === 0, gone.join(' '));
|
|
102
|
+
ok('K a hold is the hairline of a gap, and its words are its label', otp && otp.holds.length === 1 && /^On hold, Aug 25 to Mar 1, 2027, waits on the SMS vendor contract/.test(otp.holds[0]), JSON.stringify(otp));
|
|
103
|
+
await p.click('#ibBody [data-row="board:email-otp"] .tg-ng.ho');
|
|
104
|
+
await p.waitForTimeout(250);
|
|
105
|
+
const card = await p.evaluate(() => { const c = document.querySelector('#bdPop'); return c && !c.hidden ? { resume: !!c.querySelector('[data-holdgo="resume"]'), date: !!c.querySelector('[data-holdgo="date"]'), text: c.textContent } : null; });
|
|
106
|
+
ok('K pressing the hold opens the hold card: resume and change the date', card && card.resume && card.date && /On hold/.test(card.text), JSON.stringify(card));
|
|
107
|
+
await p.keyboard.press('Escape');
|
|
108
|
+
ok('P by default only the last milestone shows: the end ◇, and no ◇ in the middle', mig && mig.tm.length === 0 && /tg-end/.test(mig.end), JSON.stringify(mig));
|
|
109
|
+
await p.click('#ibBody [data-row="board:migration"] .tg-end');
|
|
110
|
+
await p.waitForTimeout(250);
|
|
111
|
+
const list = await p.evaluate(() => [...document.querySelectorAll('.bd-pc-r .bd-pc-n')].map((x) => x.textContent));
|
|
112
|
+
ok('P pressing a ◇ opens the pin card with every milestone of the initiative', list.length === 4 && /Iteration 1 live/.test(list[0]), JSON.stringify(list));
|
|
113
|
+
await p.keyboard.press('Escape');
|
|
114
|
+
const q = await p.evaluate(() => ({
|
|
115
|
+
dots: [...document.querySelectorAll('#ibBody .tg-n.ini2')].map((b) => b.closest('[data-row]').dataset.row + ':' + ((b.querySelector('.cz-dot') || {}).className || '')),
|
|
116
|
+
small: [...document.querySelectorAll('#ibBody .tg-pgo small')].length, goal: document.querySelectorAll('#ibBody .tg-lane .bd-gd').length,
|
|
117
|
+
progTrack: [...document.querySelectorAll('#ibBody .tg-pg > .tg-p')].map((x) => x.querySelectorAll('.tg-span, .tg-pdm, .tg-clu, .tg-tm, .tg-tmc, .tg-endl, .tg-pdl').length),
|
|
118
|
+
laneTrack: [...document.querySelectorAll('#ibBody .tg-lane > .tg-p')].map((x) => x.querySelectorAll('.tg-span, .tg-tm, .tg-tmc, .tg-endl').length),
|
|
119
|
+
}));
|
|
120
|
+
const dotOf = (k) => (q.dots.find((x) => x.startsWith('board:' + k + ':')) || '').split(':').slice(2).join(':');
|
|
121
|
+
ok('Q a dot only off track: none on track, orange late, amber at risk, grey on hold', dotOf('descope-parity') === '' && dotOf('migration') === '' && /late/.test(dotOf('lightbox')) && /risk/.test(dotOf('magw')) && /\bq\b/.test(dotOf('email-otp')), JSON.stringify(q.dots));
|
|
122
|
+
ok('Q no "Running" or product count under a program, no goal dots on an open product head', q.small === 0 && q.goal === 0, JSON.stringify(q));
|
|
123
|
+
ok('G an open program or product draws nothing on its track', q.progTrack.length > 0 && q.progTrack.every((n) => n === 0) && q.laneTrack.every((n) => n === 0), JSON.stringify(q));
|
|
124
|
+
const nm = await p.evaluate(() => [...document.querySelectorAll('#ibBody .tg-n.ini2 b, #ibBody .tg-pgo .tt b')].map((b) => ({ t: b.textContent, cut: b.scrollHeight > b.clientHeight + 1, lines: Math.round(b.clientHeight / parseFloat(getComputedStyle(b).lineHeight)), w: b.closest('.tg-n') ? b.closest('.tg-n').getBoundingClientRect().width : 0 })));
|
|
125
|
+
const otpName = nm.find((x) => /^Email OTP/.test(x.t));
|
|
126
|
+
ok('N the name column is 250 px and a long name wraps to two lines, not cut', nm.length && nm.every((x) => !x.cut) && otpName && otpName.lines === 2 && Math.round(nm[0].w) === 250, JSON.stringify(nm.slice(0, 4)));
|
|
127
|
+
const bg = await p.evaluate(() => {
|
|
128
|
+
const r = document.querySelector('#ibBody [data-row="board:migration"]'), sc = document.querySelector('#ibBody .tg-s');
|
|
129
|
+
const lines = [...r.querySelectorAll('.tg-gl')].map((g) => parseFloat(g.style.left));
|
|
130
|
+
const from = new Date(+sc.dataset.from), to = new Date(+sc.dataset.to), want = [];
|
|
131
|
+
for (let d = new Date(from.getFullYear(), from.getMonth() - (from.getMonth() % 3) + 3, 1); d < to; d = new Date(d.getFullYear(), d.getMonth() + 3, 1)) want.push(((d - from) / (to - from)) * 100);
|
|
132
|
+
const lane = document.querySelector('#ibBody .tg-lane'), pg = document.querySelector('#ibBody .tg-pg');
|
|
133
|
+
return { lines, want, lane: lane ? getComputedStyle(lane).backgroundColor : '', card: getComputedStyle(document.querySelector('#ibBody .tg-r[data-row]')).backgroundColor, pg: pg ? getComputedStyle(pg).backgroundColor : '' };
|
|
134
|
+
});
|
|
135
|
+
ok('B quarter lines only at Year', bg.lines.length === bg.want.length && bg.lines.every((x, i) => Math.abs(x - bg.want[i]) < 0.05), JSON.stringify(bg));
|
|
136
|
+
ok('B one tint: the program row; product rows are plain', bg.pg && bg.pg !== 'rgba(0, 0, 0, 0)' && bg.pg !== bg.lane, JSON.stringify(bg));
|
|
137
|
+
const lg = await p.evaluate(() => (document.querySelector('.tg-lgd') || {}).textContent || '');
|
|
138
|
+
ok('K the legend names one hairline key and no program milestone', /Gap or hold|On hold|No activity/.test(lg) && !/Program milestone/.test(lg), lg);
|
|
139
|
+
ok('no page error', errors.length === 0, errors.join(' | '));
|
|
140
|
+
await ctx.close();
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// ── P: Filter's All and None ──
|
|
144
|
+
{
|
|
145
|
+
const { ctx, page: p } = await open({ mode: 'all' });
|
|
146
|
+
const mig = await rowOf(p, 'board:migration');
|
|
147
|
+
ok('P Filter All: every milestone shows (three in the middle, the end ◇)', mig && mig.tm.length === 3, JSON.stringify(mig));
|
|
148
|
+
await ctx.close();
|
|
149
|
+
const n = await open({ mode: 'none' });
|
|
150
|
+
const m2 = await rowOf(n.page, 'board:migration');
|
|
151
|
+
ok('P Filter None: no ◇ in the middle; the end keeps its ◇ and label', m2 && m2.tm.length === 0 && m2.labels.length === 1, JSON.stringify(m2));
|
|
152
|
+
await n.ctx.close();
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// ── G: folded groups ──
|
|
156
|
+
{
|
|
157
|
+
const { ctx, page: p } = await open({ fold: ['p:IDPF', 'g:ascent'] });
|
|
158
|
+
const keys = await p.evaluate(() => [...document.querySelectorAll('#ibBody [data-fold]')].map((b) => b.dataset.fold));
|
|
159
|
+
await ctx.close();
|
|
160
|
+
const { ctx: c2, page: q } = await open({ fold: keys });
|
|
161
|
+
await shot(q, 'calm-folded-1440');
|
|
162
|
+
const g = await q.evaluate(() => ({
|
|
163
|
+
prog: [...document.querySelectorAll('#ibBody .tg-pg.closed > .tg-p')].map((x) => ({ span: x.querySelectorAll('.tg-span').length, dm: x.querySelectorAll('.tg-tm, .tg-tmc').length, end: (x.querySelector('.tg-endl') || {}).textContent || '' })),
|
|
164
|
+
lane: [...document.querySelectorAll('#ibBody .tg-lane.closed')].map((x) => ({ span: x.querySelectorAll('.tg-p .tg-span').length, end: (x.querySelector('.tg-p .tg-endl') || {}).textContent || '', dots: x.querySelectorAll('.tg-offd .cz-dot').length })),
|
|
165
|
+
}));
|
|
166
|
+
ok('G folded, a program shows the roll-up line, its ◇s and its end date', g.prog.length > 0 && g.prog.every((x) => x.span > 0 && x.dm > 0 && /’\d\d$/.test(x.end)), JSON.stringify(g));
|
|
167
|
+
ok('G folded, a product shows the roll-up, its end date and one dot per initiative off track', g.lane.length > 0 && g.lane.some((x) => x.span > 0 && x.end && x.dots === 3), JSON.stringify(g));
|
|
168
|
+
await c2.close();
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// ── M: the phone ──
|
|
172
|
+
{
|
|
173
|
+
const { ctx, page: p, errors } = await open({ w: 390, h: 844, phone: true });
|
|
174
|
+
await shot(p, 'calm-390');
|
|
175
|
+
const m = await p.evaluate(() => ({
|
|
176
|
+
labels: [...document.querySelectorAll('#ibBody .tgq-r[data-row] .tg-endl')].length,
|
|
177
|
+
dots: [...document.querySelectorAll('#ibBody .tgq-r[data-row] .tgq-n')].map((b) => (b.querySelector('.cz-dot') || {}).className || ''),
|
|
178
|
+
scroll: document.documentElement.scrollWidth <= innerWidth + 1,
|
|
179
|
+
}));
|
|
180
|
+
ok('M the phone keeps the end labels, a dot only off track, and no sideways page scroll', m.labels >= 5 && m.dots.filter(Boolean).length === 3 && m.scroll, JSON.stringify(m));
|
|
181
|
+
ok('M no page error on the phone', errors.length === 0, errors.join(' | '));
|
|
182
|
+
await ctx.close();
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (shots) {
|
|
186
|
+
const d = await open({ dark: true }); await shot(d.page, 'calm-1440-dark'); await d.ctx.close();
|
|
187
|
+
const pd = await open({ w: 390, h: 844, phone: true, dark: true }); await shot(pd.page, 'calm-390-dark'); await pd.ctx.close();
|
|
188
|
+
}
|
|
189
|
+
finish();
|
|
190
|
+
})();
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.426.0",
|
|
4
|
+
"at": "2026-10-27T04:01:13.323Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1068,
|
|
9
|
+
"t": "Thirteenth testing feedback batch",
|
|
10
|
+
"s": "Thirteenth testing feedback batch"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"v": "0.425.0",
|
|
4
16
|
"at": "2026-10-27T01:04:19.475Z",
|
|
@@ -117,7 +117,9 @@ const put = (root, rel, text) => { fs.mkdirSync(path.dirname(path.join(root, rel
|
|
|
117
117
|
await menu(pg); await pg.click('#czMenu [data-cz-news]');
|
|
118
118
|
const nw = await until(() => pg.evaluate(() => { const v = document.querySelector('#czViewer:not([hidden]) .ev-news'); return v && !v.querySelector('.ev-skelrow') ? { t: v.textContent, rest: [...v.querySelectorAll('[data-ev-rest]')].map((b) => b.dataset.evRest), kind: document.querySelector('#czViewer .cz-vw-kind').textContent } : null; }), 20000);
|
|
119
119
|
ok('N1 New for you opens in the Viewer, says what is new or that nothing is, and names where the rest of Around you went', !!nw && /New since this morning/.test(nw.t) && /(Nothing new since you last looked|Mentions|Given to you|Finished while you were away)/.test(nw.t) && nw.rest.join() === 'pulse,rep,prop,scan', JSON.stringify(nw).slice(0, 400));
|
|
120
|
-
|
|
120
|
+
// Home's own background sync of its loose rows (batch 13 item 7) is not a post the Viewer makes.
|
|
121
|
+
const own = posts.filter((u) => u !== '/api/loose-props/rows');
|
|
122
|
+
ok('N1 opening it posted nothing', own.length === 0, JSON.stringify(posts));
|
|
121
123
|
await snap(pg, 'news-1440-light');
|
|
122
124
|
await pg.click('#czViewer [data-ev-rest="pulse"]');
|
|
123
125
|
ok('N2 a Where the rest went row opens its view, with Back to New for you', !!(await until(() => pg.evaluate(() => /Back to New for you/.test((document.querySelector('#czViewer [data-bda="back"]') || {}).textContent || '')))));
|