create-pmos 0.431.0 → 0.432.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -13
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/board-programs-test.js +10 -4
- package/workspace/briefing-premium-board-test.js +24 -22
- package/workspace/briefing-premium-initiative-test.js +10 -5
- package/workspace/briefing-premium-products-test.js +2 -0
- package/workspace/briefing-premium-sources-test.js +15 -8
- package/workspace/briefing-premium-work-test.js +6 -3
- package/workspace/changelog.json +12 -0
- package/workspace/ev-everywhere-test.js +40 -33
- package/workspace/guide/briefing-premium.md +1 -1
- package/workspace/guide/data-freshness.md +3 -1
- package/workspace/guide/home.md +25 -16
- package/workspace/guide/initiative-boards.md +6 -6
- package/workspace/guide/programs.md +2 -2
- package/workspace/ini-workflow-test.js +13 -8
- package/workspace/lib/briefing-premium.js +6 -3
- package/workspace/lib/engine/boards.js +13 -2
- package/workspace/lib/ini-deleted.js +58 -0
- package/workspace/lib/initiative-rows.js +4 -1
- package/workspace/lib/routes-boards.js +48 -0
- package/workspace/lib/search-index.js +3 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +50 -32
- package/workspace/premium-briefing-depth-test.js +33 -34
- package/workspace/premium-core-doc-issue-test.js +1 -1
- package/workspace/premium-vw-backlog-test.js +1 -1
- package/workspace/premium-vw-item-test.js +1 -1
- package/workspace/premium-vw-jira-test.js +1 -1
- package/workspace/program-leave-test.js +20 -19
- package/workspace/public/pm/bd-acts.js +7 -5
- package/workspace/public/pm/bd-ini-panel.js +57 -25
- package/workspace/public/pm/cozy-ev.css +22 -7
- package/workspace/public/pm/cozy-evmodel.js +3 -3
- package/workspace/public/pm/cozy-nav.js +29 -32
- package/workspace/public/pm/cozy-news.js +11 -27
- package/workspace/public/pm/cozy-settings.js +68 -11
- package/workspace/public/pm/cozy-sources.js +5 -89
- package/workspace/public/pm/cozy-today.css +19 -1
- package/workspace/public/pm/hi-pop.css +21 -0
- package/workspace/public/pm/hi-pop.js +5 -5
- package/workspace/public/pm/home-app.js +62 -25
- package/workspace/public/pm/home-day.js +60 -2
- package/workspace/public/pm/home-ini.js +66 -27
- package/workspace/public/pm/home-more.js +9 -50
- package/workspace/public/pm/home-today.js +4 -2
- package/workspace/public/pm/ini-more.js +78 -42
- package/workspace/public/pm/ini-view-model.js +1 -1
- package/workspace/public/pm/ini-view.css +17 -0
- package/workspace/public/pm/ini-view.js +25 -7
- package/workspace/public/pm/premium-board.js +4 -3
- package/workspace/public/pm/prog-move.js +26 -0
- package/workspace/public/premium.html +0 -1
- package/workspace/stage-card-test.js +10 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.432.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.432.0",
|
|
37
|
+
"at": "2026-10-28T02:08:08.690Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1074,
|
|
42
|
+
"t": "Fewer menus, a short initiative menu, Delete with Undo (batch 16 item 5)",
|
|
43
|
+
"s": "Fewer menus, a short initiative menu, Delete with Undo (batch 16 item 5)"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
35
47
|
{
|
|
36
48
|
"v": "0.431.0",
|
|
37
49
|
"at": "2026-10-28T01:37:46.171Z",
|
|
@@ -259,18 +271,6 @@
|
|
|
259
271
|
"s": "Third testing feedback batch (items 1–10)"
|
|
260
272
|
}
|
|
261
273
|
]
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"v": "0.412.0",
|
|
265
|
-
"at": "2026-10-25T06:20:40.812Z",
|
|
266
|
-
"f": 2,
|
|
267
|
-
"prs": [
|
|
268
|
-
{
|
|
269
|
-
"n": 1041,
|
|
270
|
-
"t": "Agents finish the work they were asked to do (D98)",
|
|
271
|
-
"s": "Agents finish the work they were asked to do"
|
|
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-28T02:08:05Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-28T02:08:05Z"}
|
|
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-28T02:08:05Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -437,8 +437,12 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
437
437
|
await p.click('#ibBody .bt-nm >> text=Legacy IdP sunset');
|
|
438
438
|
await p.waitForSelector('#czViewer:not([hidden])');
|
|
439
439
|
const m = await menu();
|
|
440
|
-
ok('P7 an initiative in no program: ⋯
|
|
441
|
-
await p.click('.cz-vw-menu [role="menuitem"]
|
|
440
|
+
ok('P7 an initiative in no program: ⋯ holds one Program entry after split and merge (batch 16 item 5c, FmI1Menu)', m.indexOf('Program') > m.indexOf('Merge into›') && m.indexOf('Merge into›') >= 0 && !m.includes('Change the plan dates'), JSON.stringify(m));
|
|
441
|
+
await p.click('.cz-vw-menu [role="menuitem"]:has(> span:text-is("Program"))');
|
|
442
|
+
await p.waitForSelector('#bdPop [data-pm-to]');
|
|
443
|
+
const pl = await p.evaluate(() => [...document.querySelectorAll('#bdPop [data-pm-to]')].map((b) => b.textContent.trim()));
|
|
444
|
+
ok('P7 its picker ends with Make it a program', pl[pl.length - 1] === 'Make it a program' && !pl.includes('No program'), JSON.stringify(pl));
|
|
445
|
+
await p.click('#bdPop [data-pm-to] >> text=Make it a program');
|
|
442
446
|
await p.waitForTimeout(400);
|
|
443
447
|
const ev = await events(p);
|
|
444
448
|
ok('P7 the press sends the initiative and its title, then opens the new program', sent && sent.initiative && sent.title === 'Legacy IdP sunset' && ev.includes('legacy-idp-sunset'), JSON.stringify({ sent, ev }));
|
|
@@ -448,8 +452,10 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
448
452
|
await R.page.click('#ibBody .bt-kid .bt-nm >> text=Legacy IdP sunset');
|
|
449
453
|
await R.page.waitForSelector('#czViewer:not([hidden])');
|
|
450
454
|
await R.page.click('#czViewer [data-cz-vw="more"]'); await R.page.waitForTimeout(80);
|
|
451
|
-
|
|
452
|
-
|
|
455
|
+
await R.page.click('.cz-vw-menu [role="menuitem"]:has(> span:text-is("Program"))');
|
|
456
|
+
await R.page.waitForSelector('#bdPop [data-pm-to]');
|
|
457
|
+
const m2 = await R.page.evaluate(() => [...document.querySelectorAll('#bdPop [data-pm-to]')].map((b) => b.textContent.trim()));
|
|
458
|
+
ok('P7 an initiative that is in a program: its picker offers No program, not Make it a program', m2.includes('No program') && !m2.includes('Make it a program'), JSON.stringify(m2));
|
|
453
459
|
await R.ctx.close();
|
|
454
460
|
}
|
|
455
461
|
finish();
|
|
@@ -110,6 +110,8 @@ const IVREAD = () => {
|
|
|
110
110
|
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);
|
|
111
111
|
const vwTitle = (pg) => pg.evaluate(() => { const v = document.querySelector('#czViewer'); return v && !v.hidden ? (v.querySelector('.cz-vw-title') || {}).textContent || '' : ''; });
|
|
112
112
|
const vwMore = async (pg, label) => { await pg.click('#czViewer [data-cz-vw="more"]'); await pg.waitForSelector('.cz-vw-menu [role="menuitem"]'); const i = await pg.evaluate((l) => [...document.querySelectorAll('.cz-vw-menu [role="menuitem"]')].findIndex((b) => b.textContent.trim() === l), label); if (i < 0) return false; await pg.locator('.cz-vw-menu [role="menuitem"]').nth(i).click(); return true; };
|
|
113
|
+
const spOpen = async (pg) => { await pg.waitForSelector('#czViewer [data-iv-stagepick]'); await pg.click('#czViewer [data-iv-stagepick]'); await pg.waitForSelector('.hi-pop [data-sp-go]'); }; // the stage chip's picker (batch 16 item 5c)
|
|
114
|
+
const spLife = async (pg, k) => { await spOpen(pg); await pg.click(`.hi-pop [data-sp-life="${k}"]`); };
|
|
113
115
|
const vwShut = (pg) => until(() => pg.evaluate(() => { const v = document.querySelector('#czViewer'); return !v || v.hidden; }));
|
|
114
116
|
|
|
115
117
|
/* B1 (premium-agreed-design N1 N2): the floating place menu, no page header, one toolbar */
|
|
@@ -214,11 +216,11 @@ const IVREAD = () => {
|
|
|
214
216
|
/* re-pointed (batch 6 rules 1, 4 and 11): the card says where it is (6 of 8 on the ladder) and how much of Deliver's tickets are done; the
|
|
215
217
|
* tickets themselves are said once, as Deliver's section in Tasks, blocked first, with "N of M done in Jira" */
|
|
216
218
|
ok('B1 the stage card names the stage (Deliver, 6 on the ladder of eight, ◆ on Deliver and Evaluate) and how many tickets are done; Deliver\'s section lists the open tickets, blocked first, with the done count', !!pk && pk.bars.split('|').length === 8 && pk.bars.split('|')[5] === 'now ms' && /ms$/.test(pk.bars.split('|')[7]) && pk.stage === 'Deliver' && pk.no === '' && /^1 of 4 done in Jira/.test(pk.where || '') && pk.tks.split(',')[0] === 'SSO-12' && pk.tks.split(',').sort().join() === 'SSO-12,SSO-14,SSO-15' && /SSO-12 SAML errors ?Blocked by PLAT-88/.test(pk.body) && pk.q.some((x) => /^1 of 4 done in Jira/.test(x)) && !pk.folds.includes('Dates and trend'), JSON.stringify(pk && [pk.stage, pk.where, pk.bars, pk.tks, pk.q, pk.folds]));
|
|
217
|
-
ok('B1 what PMOS has no record of is not drawn: no
|
|
219
|
+
ok('B1 what PMOS has no record of is not drawn: no Drafted row, no Jira-differs row; Linked holds only Jira\'s freshness and its ↻ (batch 16 item 5c)', !!pk && !pk.folds.includes('Drafted in PMOS') && !pk.folds.includes('Jira differs from the PRD'), JSON.stringify(pk && pk.folds));
|
|
218
220
|
ok('B1 there is no ask box; Discuss in chat sits in the header', !!pk && pk.ask === 0 && pk.disc, JSON.stringify(pk));
|
|
219
221
|
if (process.env.PMOS_SHOTS) await q.screenshot({ path: path.join(process.env.PMOS_SHOTS, 'ini-deliver-1280.png') });
|
|
220
|
-
const n0 = R.posts.length; await
|
|
221
|
-
ok('B1
|
|
222
|
+
const n0 = R.posts.length; if (await q.$('#czViewer [data-iv-fold="linked"][aria-expanded="false"]')) await q.click('#czViewer [data-iv-fold="linked"]'); await q.click('#czViewer [data-iv-jira]');
|
|
223
|
+
ok('B1 the ↻ beside Jira\'s freshness in Linked reads Jira through the Jira source\'s own refresh, and says so', await until(() => R.posts.slice(n0).some((x) => x.path === '/api/sources/refresh' && x.body.source === 'jira' && x.body.ws === 'w1')) && await until(() => q.evaluate(() => /Reading Jira again/.test(document.querySelector('#bdToast').textContent))), JSON.stringify(R.posts.slice(n0)));
|
|
222
224
|
await q.click('#czViewer [data-iv-ticket="SSO-12"]');
|
|
223
225
|
const tk = await until(() => q.evaluate(() => { const v = document.querySelector('#czViewer'), t = v && v.querySelector('.cz-vw-title'), b = v && v.querySelector('.tkv'); return t && /SSO-12/.test(t.textContent) && b ? { t: t.textContent, back: !!v.querySelector('[data-cz-vw="back"]'), line: (v.querySelector('.czs-line') || {}).textContent || '', right: (v.querySelector('.czs-line .czs-r') || {}).textContent || '', sprint: (v.querySelector('[data-tkv-f="sprint"]') || {}).textContent, foot: (v.querySelector('.tkv .ovf .foot') || {}).textContent, where: (v.querySelector('.tkv .ovw') || {}).textContent, body: v.querySelector('.cz-vw-body').textContent.replace(/\s+/g, ' '), pri: !!v.querySelector('.czs-pri'), jira: (v.querySelector('.ovft a') || {}).href } : null; }));
|
|
224
226
|
/* re-pointed (batch 6 item 1b, canvas OvViewers "Jira ticket"): the one ticket Viewer. What blocks it leads; the facts are plain text with
|
|
@@ -336,12 +338,12 @@ const IVREAD = () => {
|
|
|
336
338
|
await p.click('#czViewer [data-cz-vw="more"]'); await sleep(80);
|
|
337
339
|
const tm = await p.evaluate(() => [...document.querySelectorAll('.cz-vw-menu [role="menuitem"]')].map((b) => b.querySelector('span').textContent.trim()));
|
|
338
340
|
/* re-pointed (batch 14 item 5): ⋯ is the ONE initiative menu (pm/ini-more.js), Home's order; no "Move, hold, cancel or archive", no "Open in full" */
|
|
339
|
-
ok('B6 ⋯ is the one initiative menu
|
|
340
|
-
await p.
|
|
341
|
-
await
|
|
342
|
-
ok('B6
|
|
341
|
+
ok('B6 ⋯ is the one initiative menu, short (batch 16 item 5c): split or merge, its program, look at it, then Delete, red and last; the rest sits on what it changes', !tm.includes('Change workflow') && !tm.includes('Move to a stage') && !tm.includes('Change the plan dates') && tm.includes('Program') && tm.includes('Copy') && tm.includes('The record') && !tm.includes('Open on the Board') && !tm.includes('Open in full') && tm[tm.length - 1] === 'Delete', JSON.stringify(tm));
|
|
342
|
+
await p.keyboard.press('Escape'); await sleep(80);
|
|
343
|
+
await p.click('#czViewer [data-iv-stagepick]');
|
|
344
|
+
ok('B6 the stage chip lists every stage with Plan marked, a press for each other one', await until(() => p.evaluate(() => { const m = document.querySelector('.hi-pop'); if (!m) return false; const L = [...m.querySelectorAll('[data-sp-go]')]; const now = L.find((b) => b.getAttribute('aria-checked') === 'true'); return L.length > 3 && !!now && now.textContent.includes('Plan') && L.some((b) => /Prioritize/.test(b.textContent) && !b.disabled); })));
|
|
343
345
|
await p.keyboard.press('Escape');
|
|
344
|
-
ok('B6 Escape closes the
|
|
346
|
+
ok('B6 Escape closes the picker first and leaves the Viewer open', await until(() => p.evaluate(() => !document.querySelector('.hi-pop'))) && await vwOn(p, 'Initiative'));
|
|
345
347
|
await p.keyboard.press('Escape'); await vwShut(p);
|
|
346
348
|
await spanTo(p, 'year');
|
|
347
349
|
const yr = await p.evaluate(() => ({ rows: [...document.querySelectorAll('#ibBody .tg-q[data-span="year"] .tg-n.ini2 b')].map((b) => b.textContent), bars: document.querySelectorAll('#ibBody .tg-bar').length, themes: document.querySelectorAll('#ibBody .tg-th, #ibBody .tg-tn, #ibBody .tg-phase').length, group: !!document.querySelector('#chGroup'), lgd: !!document.querySelector('#bdChipset .tg-lgd'), jira: !!document.querySelector('#chJira'), heads: [...document.querySelectorAll('#ibBody .tg-h .tg-p > span[data-y] b')].map((b) => b.textContent) }));
|
|
@@ -388,10 +390,10 @@ const IVREAD = () => {
|
|
|
388
390
|
if (noFull) await D.page.keyboard.press('Escape');
|
|
389
391
|
if (!noFull) await D.page.keyboard.press('Escape');
|
|
390
392
|
ok('B14 ⋯ has no Open in full, and the header keeps Open wide', !noFull && await D.page.evaluate(() => !!document.querySelector('#czViewer [data-cz-vw="wide"]')));
|
|
391
|
-
await
|
|
393
|
+
await D.page.click('#czViewer [data-cz-vw="more"]'); await D.page.click('.cz-vw-menu [role="menuitem"]:has(> span:text-is("Copy"))'); await D.page.click('.hi-pop [role="menuitem"]:has(> span:text-is("Link"))');
|
|
392
394
|
const cl = await until(() => D.page.evaluate(() => navigator.clipboard.readText().catch(() => '')));
|
|
393
395
|
const u = new URL(cl || 'http://x/none');
|
|
394
|
-
ok('B14 Copy
|
|
396
|
+
ok('B14 Copy › Link holds the initiative page with the initiative, the workspace and the board', u.pathname === '/premium-initiative.html' && u.searchParams.get('id') === 'self-serve-v2' && u.searchParams.get('ws') === 'w1' && u.searchParams.get('board') === 'w1', cl);
|
|
395
397
|
ok('0 no page error on expand', D.errors.length === 0, D.errors.join(' | '));
|
|
396
398
|
await D.ctx.close();
|
|
397
399
|
}
|
|
@@ -433,8 +435,8 @@ const IVREAD = () => {
|
|
|
433
435
|
/* 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 */
|
|
434
436
|
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 }; }));
|
|
435
437
|
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));
|
|
436
|
-
await
|
|
437
|
-
ok(`B13 at 390 px (${theme})
|
|
438
|
+
await spOpen(q);
|
|
439
|
+
ok(`B13 at 390 px (${theme}) the stage chip opens the stages as a sheet across the width, with 44 px rows, and no dialog`, await until(() => q.evaluate(() => { const m = document.querySelector('.hi-pop'); if (!m) return false; const r = m.getBoundingClientRect(); return m.classList.contains('sheet') && Math.round(r.left) === 0 && Math.round(r.width) === innerWidth && m.querySelectorAll('[data-sp-go]').length >= 3 && [...m.querySelectorAll('.hi-mi')].every((b) => b.getBoundingClientRect().height >= 44) && !document.querySelector('#dlg.on'); })));
|
|
438
440
|
await q.keyboard.press('Escape');
|
|
439
441
|
ok(`0 no page error at 390 px (${theme})`, R.errors.length === 0, R.errors.join(' | '));
|
|
440
442
|
await R.ctx.close();
|
|
@@ -485,21 +487,21 @@ const IVREAD = () => {
|
|
|
485
487
|
/* 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 ⋯ */
|
|
486
488
|
await q.click('#bdChipset [data-f="sprint"]');
|
|
487
489
|
const n3 = R.posts.length;
|
|
488
|
-
await q.click('.bt-l[data-row="board:partner-rate-limits"] .bt-nm'); await until(() => vwOn(q, 'Initiative')); await
|
|
490
|
+
await q.click('.bt-l[data-row="board:partner-rate-limits"] .bt-nm'); await until(() => vwOn(q, 'Initiative')); await spLife(q, 'hold');
|
|
489
491
|
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));
|
|
490
492
|
await until(() => q.evaluate(() => !!document.querySelector('#bdToast .bd-undo')));
|
|
491
493
|
await q.click('#bdToast .bd-undo');
|
|
492
494
|
ok('T Undo writes the state it had before through the same route', await until(() => R.posts.slice(n3).some((x) => x.path === '/api/lifecycle' && x.body.state === 'active' && x.body.reason === 'undo')), JSON.stringify(R.posts.slice(n3)));
|
|
493
|
-
await q.click('.bt-l[data-row="board:partner-rate-limits"] .bt-nm'); await until(() => vwOn(q, 'Initiative')); await
|
|
494
|
-
|
|
495
|
-
await q.
|
|
495
|
+
await q.click('.bt-l[data-row="board:partner-rate-limits"] .bt-nm'); await until(() => vwOn(q, 'Initiative')); await spOpen(q);
|
|
496
|
+
const nextRow = '.hi-pop [data-sp-go]:has(> span:text-is("Prioritize"))';
|
|
497
|
+
ok('T the stage chip says how much of the step is ready next to the next stage', await until(() => q.evaluate(() => [...document.querySelectorAll('.hi-pop [data-sp-go]')].some((b) => /^\d*Prioritize1 of 4 ready$/.test(b.textContent)))), await q.evaluate(() => (document.querySelector('.hi-pop') || {}).textContent));
|
|
498
|
+
await q.click(nextRow);
|
|
496
499
|
ok('T Move to the next stage writes a move line in the board ledger', await until(() => R.posts.some((x) => x.path === '/api/boards/move' && x.body.id === 'partner-rate-limits' && x.body.to === 'Prioritize' && x.body.board === 'w1')), JSON.stringify(R.posts.slice(-2)));
|
|
497
|
-
await q.click('.bt-l[data-row="board:partner-rate-limits"] .bt-nm'); await until(() => vwOn(q, 'Initiative')); await
|
|
498
|
-
ok('T Cancel
|
|
499
|
-
await q.
|
|
500
|
-
|
|
501
|
-
await
|
|
502
|
-
ok('T Archive needs no reason and writes an archive line, with Undo', await until(() => R.posts.some((x) => x.path === '/api/boards/archive' && x.body.archived === true && x.body.id === 'partner-rate-limits')) && await until(() => q.evaluate(() => !!document.querySelector('#bdToast .bd-undo'))), JSON.stringify(R.posts.slice(-2)));
|
|
500
|
+
await q.click('.bt-l[data-row="board:partner-rate-limits"] .bt-nm'); await until(() => vwOn(q, 'Initiative')); await spOpen(q);
|
|
501
|
+
ok('T Cancel is gone: Won\'t do says the same and keeps the record (batch 16 item 5c)', await q.evaluate(() => !!document.querySelector('.hi-pop [data-sp-life="wontDo"]') && !/Cancel/.test(document.querySelector('.hi-pop').textContent)));
|
|
502
|
+
await q.keyboard.press('Escape');
|
|
503
|
+
await q.click('.bt-l[data-row="board:partner-rate-limits"] .bt-nm'); await until(() => vwOn(q, 'Initiative')); await spLife(q, 'archive');
|
|
504
|
+
ok('T Archive needs no reason and writes an archive line, with Undo', await until(() => R.posts.some((x) => x.path === '/api/boards/archive' && x.body.archived === true && x.body.id === 'partner-rate-limits')) && await until(() => q.evaluate(() => !!document.querySelector('#bdToast .bd-undo, .hi-toast button'))), JSON.stringify(R.posts.slice(-2)));
|
|
503
505
|
/* New initiative and the new asks */
|
|
504
506
|
await q.keyboard.press('Escape');
|
|
505
507
|
if (!(await until(() => q.evaluate(() => (!document.querySelector('#czViewer') || document.querySelector('#czViewer').hidden)), 2000))) await q.keyboard.press('Escape');
|
|
@@ -72,7 +72,7 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
72
72
|
const V = '#czViewer:not([hidden])';
|
|
73
73
|
// ready: the initiative's page is open in the Viewer (canvas HbC), its kind line from the board's row (kind · anchor) and, when the
|
|
74
74
|
// initiative reads, its card from the record (the ladder). Before the record reads, the page says it is reading.
|
|
75
|
-
async function ready(page, full = true) { return until(() => page.evaluate((f) => /·/.test((document.querySelector('#czViewer:not([hidden]) .cz-vw-kind') || {}).textContent || '') && (!f || (!!document.querySelector('#czViewer .iv-sc') && !!((document.querySelector('#czViewer .iv-sch > b') || {}).textContent || '').trim())), full), 30000); }
|
|
75
|
+
async function ready(page, full = true) { return until(() => page.evaluate((f) => /·/.test((document.querySelector('#czViewer:not([hidden]) .cz-vw-kind') || {}).textContent || '') && (!f || (!!document.querySelector('#czViewer .iv-sc') && !!((document.querySelector('#czViewer .iv-sch > b, .iv-sch .iv-stc b') || {}).textContent || '').trim())), full), 30000); }
|
|
76
76
|
const txt = (p, s) => p.evaluate((q) => ((document.querySelector(q) || {}).textContent || '').replace(/\s+/g, ' ').trim(), s);
|
|
77
77
|
// batch 11 item 20: the page holds the Tasks (the old All tasks panel is gone); its ⋯ holds Move to a stage and its Documents fold opens
|
|
78
78
|
// Documents; the Stage and Documents views hold each other under ⋯; ← goes back to the page. view names the one to show ('tasks' is the page)
|
|
@@ -81,7 +81,11 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
81
81
|
const show = async (p, view) => {
|
|
82
82
|
if (view === 'tasks') { for (let i = 0; i < 4 && !(await onPage(p)); i++) { await p.click('#czViewer [data-cz-vw="back"]'); await sleep(150); } return until(() => onPage(p)); }
|
|
83
83
|
if (await onPage(p) && view === 'docs') await p.click(`${V} [data-iv-docs]`);
|
|
84
|
-
else {
|
|
84
|
+
else if (await onPage(p)) { // batch 16 item 5c: the page's ⋯ no longer holds the stage; the Stage view sits under Documents' ⋯
|
|
85
|
+
await p.click(`${V} [data-iv-docs]`); await until(() => p.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="docs"]'), V));
|
|
86
|
+
await p.click('#czViewer [data-cz-vw="more"]'); await until(() => p.evaluate(() => !!document.querySelector('#czViewer .cz-vw-menu')));
|
|
87
|
+
await p.click('#czViewer .cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("Stage"))');
|
|
88
|
+
} else {
|
|
85
89
|
await p.click('#czViewer [data-cz-vw="more"]'); await until(() => p.evaluate(() => !!document.querySelector('#czViewer .cz-vw-menu')));
|
|
86
90
|
await p.click(`#czViewer .cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("${(await onPage(p)) ? 'Move to a stage' : LABEL[view]}"))`);
|
|
87
91
|
}
|
|
@@ -125,7 +129,7 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
125
129
|
|
|
126
130
|
/* I3 header and the ONE view (batch 6 items 1 and 3: the Board's panel draws the same; stage-card-test.js holds the stage card's behaviour) */
|
|
127
131
|
const card = await p.evaluate(() => { const c = document.querySelector('#czViewer .iv-sc'), iv = document.querySelector('#czViewer .iv'); const q = (s, r = c) => ((r.querySelector(s) || {}).textContent || '').replace(/\s+/g, ' ').trim(), d = (s) => ((document.querySelector(s) || {}).textContent || '').trim();
|
|
128
|
-
return { kind: d('#czViewer .cz-vw-kind'), title: d('#czVwTitle'), stage: q('.iv-sch > b'), where: q('.iv-scm'), bars: new Set([...c.querySelectorAll('.iv-tl .iv-tlp')].map((x) => x.dataset.ivStage)).size + c.querySelectorAll('.iv-tl .iv-tl-sk').length, now: new Set([...c.querySelectorAll('.iv-tl .iv-tlp.now')].map((x) => x.dataset.ivStage)).size, tail: (c.querySelector('.iv-scgo') || { getAttribute: () => '' }).getAttribute('aria-label') || '', ms: !!c.querySelector('.iv-scgo[data-ms]'),
|
|
132
|
+
return { kind: d('#czViewer .cz-vw-kind'), title: d('#czVwTitle'), stage: q('.iv-sch > b, .iv-sch .iv-stc b'), where: q('.iv-scm'), bars: new Set([...c.querySelectorAll('.iv-tl .iv-tlp')].map((x) => x.dataset.ivStage)).size + c.querySelectorAll('.iv-tl .iv-tl-sk').length, now: new Set([...c.querySelectorAll('.iv-tl .iv-tlp.now')].map((x) => x.dataset.ivStage)).size, tail: (c.querySelector('.iv-scgo') || { getAttribute: () => '' }).getAttribute('aria-label') || '', ms: !!c.querySelector('.iv-scgo[data-ms]'),
|
|
129
133
|
pri: iv.querySelectorAll('[data-iv-primary]').length, cta: !!iv.querySelector('[data-hm-cta]'), tasks: q('.iv-th', iv), empty: !!iv.querySelector('.iv-empty'), secs: [...iv.querySelectorAll('.iv-ws b')].map((b) => b.textContent), meta: q('.iv-meta', iv) }; });
|
|
130
134
|
ok('I3 the page\'s header names the initiative, its workflow and its anchor (D99)', card.title === 'Self-serve onboarding v2' && /^Product feature · \S/.test(card.kind), JSON.stringify(card));
|
|
131
135
|
ok('I3 the card shows the stage the workflow engine derives, with one part a stage on its line and the current one marked', card.stage === 'Build' && card.bars === 8 && card.now === 1, JSON.stringify(card));
|
|
@@ -146,13 +150,14 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
146
150
|
ok('I4 the page holds the Tasks with its +, and no All tasks switch (batch 11 item 20), and no Waiting for design marker', !!i4);
|
|
147
151
|
ok('I4 the card has no Overview tile: the chat box on the page talks about the initiative (stage card D)', await p.evaluate((v) => !document.querySelector(v + ' .iv [data-hm-ov]') && /^Message Claude about Self-serve onboarding v2/.test(document.querySelector('#hmIn').placeholder), V));
|
|
148
152
|
const pm = await moreLabels(p);
|
|
149
|
-
|
|
153
|
+
// batch 16 item 5c (FmI1Menu): seven entries at most, Delete last; the rest sits on what it changes (stage-card-test.js holds the stage chip)
|
|
154
|
+
ok('I4 the page\'s ⋯ is the short menu: Split, Merge, Program, Open on the Board, Copy, The record, then Delete last (FmI1Menu)', ['Open on the Board', 'Copy', 'The record', 'Delete'].every((l) => pm.includes(l)) && pm.length <= 7 && pm[pm.length - 1] === 'Delete' && !['Move to a stage', 'Moves on by itself', 'Add a stakeholder', 'Put on hold', 'Cancel the initiative', 'Rename', 'All tasks'].some((l) => pm.includes(l)), JSON.stringify(pm));
|
|
150
155
|
await show(p, 'stage');
|
|
151
156
|
const st = await p.evaluate((v) => { const o = document.querySelector(v); return { moves: [...o.querySelectorAll('[data-ov-move]')].map((b) => b.dataset.ovMove), cur: (o.querySelector('[data-ov-move][aria-pressed="true"]') || {}).textContent, life: [...o.querySelectorAll('[data-ov-life]')].map((b) => b.dataset.ovLife) }; }, V);
|
|
152
157
|
await show(p, 'docs');
|
|
153
158
|
const ov = await p.evaluate((v) => { const o = document.querySelector(v); return { docs: [...o.querySelectorAll('[data-ov-doc]')].map((d) => d.dataset.ovDoc).sort(), draft: [...o.querySelectorAll('[data-ov-draft], [data-czs-act^="draft:"], [data-ov-none]')].map((b) => b.dataset.ovDraft || b.dataset.ovNone || b.dataset.czsAct.slice(6)).sort(), pri: ((o.querySelector('.czs-pri[data-czs-act^="draft:"]') || {}).dataset || {}).czsAct || '', drafting: [...o.querySelectorAll('[data-ov-doc]')].filter((d) => /Drafting/.test(d.textContent)).map((d) => d.dataset.ovDoc), dread: [...o.querySelectorAll('[data-ov-dread]')].map((b) => b.dataset.ovDread), sum: (o.querySelector('[data-ov-dsum]') || {}).textContent || '' }; }, V);
|
|
154
159
|
const M = mk();
|
|
155
|
-
ok('I4 the Stage view lists the board\'s stages with the current one pressed, and the lifecycle presses', JSON.stringify(st.moves) === JSON.stringify(M.acts.stages) && st.cur === 'Build' && st.life.join() === 'on-hold
|
|
160
|
+
ok('I4 the Stage view lists the board\'s stages with the current one pressed, and the lifecycle presses', JSON.stringify(st.moves) === JSON.stringify(M.acts.stages) && st.cur === 'Build' && st.life.join() === 'on-hold', JSON.stringify(st)); // Cancel merged into Won't do (batch 16 item 5c)
|
|
156
161
|
ok('I7 the core documents are the non-technical ones, with the engine\'s summary', JSON.stringify(ov.docs) === JSON.stringify(M.docs.rows.filter((d) => !d.tech).map((d) => d.key).sort()) && ov.sum === M.docs.cap, JSON.stringify(ov));
|
|
157
162
|
ok('I7 a document not started offers Draft it (the summary\'s one primary drafts the first, the rest offer it from their row); a running one says Drafting and has no press; a draft offers Read', /^draft:(problem|research)$/.test(ov.pri) && [...new Set(ov.draft)].filter((k) => k === 'problem' || k === 'research').sort().join() === 'problem,research' && ov.drafting.join() === 'launch' && ov.dread.length === M.docs.rows.filter((d) => !d.tech && d.st === 'draft' && d.path && d.slot).length, JSON.stringify(ov));
|
|
158
163
|
|
|
@@ -137,6 +137,8 @@ const product = (name, cond) => {
|
|
|
137
137
|
await page.keyboard.press('Escape');
|
|
138
138
|
ok('P13 keyboard: Escape closes the list and applies the ticks', !(await page.$('#ppMenu')) && !!(await until(async () => (await rowsOf(page)).length === 2, 20000)));
|
|
139
139
|
ok('P3 the default ticks save the default: the saved choice is gone', (await until(async () => ((await setting()) || {}).changed === false, 10000)), JSON.stringify(await setting()));
|
|
140
|
+
// the page reads the saved default back before the list opens again: a list opened on the pick before it would tick from stale state
|
|
141
|
+
await until(async () => /all 3$/.test(await page.getAttribute('#hmPick', 'aria-label') || ''), 20000);
|
|
140
142
|
await pick(page); if ((await ticks(page)).includes(home.id + ':true')) await tick(page, home.id); await tick(page, wB.id); await page.keyboard.press('Escape');
|
|
141
143
|
await until(async () => JSON.stringify(((await setting()) || {}).value) === JSON.stringify([wA.id]), 10000);
|
|
142
144
|
ok('P3 the choice survives a reload', await (async () => { await page.reload({ waitUntil: 'domcontentloaded' }); return until(async () => { const r = await rowsOf(page); return r.length === 1 && r[0].tag === 'IDPF' ? 1 : 0; }, 20000); })());
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* S3 the dialog opens an https link and records nothing S7 the digests in Today S9 the writes refuse a source key; the agent answers
|
|
7
7
|
* S11 the source row and the digest are drawn in the Agreed design's tokens at 1280 and 390 px, light and dark; no sideways scroll
|
|
8
8
|
* (re-pointed by premium-agreed-design: rows are Home's Needs-you rows; by premium-uncovered-features: the digests are in New for you and
|
|
9
|
-
* the read lines in Sources
|
|
9
|
+
* the read lines in Sources; by feedback batch 16 item 5: New for you opens from Your day's fold, and Sources is Settings › Connectors)
|
|
10
10
|
* Every wait polls the page; no fixed sleep stands in for a state. */
|
|
11
11
|
const fs = require('fs');
|
|
12
12
|
const os = require('os');
|
|
@@ -21,10 +21,17 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
|
21
21
|
* Home (its hint leads with the product, then the source and sender, then the prepared line) and opens in the Viewer.
|
|
22
22
|
* premium-uncovered-features: Around you is gone. Today's digests are in New for you, and the read lines and the background line are in
|
|
23
23
|
* Sources; both open from the place menu (cozy-nav.js). */
|
|
24
|
-
|
|
24
|
+
/* feedback batch 16 item 5: New for you is a fold of Your day (its digests row opens the whole list), and Sources is Settings › Connectors. */
|
|
25
25
|
const moreItem = async (pg, label, sel) => {
|
|
26
26
|
if (await pg.isVisible('#czViewer')) { await pg.keyboard.press('Escape'); }
|
|
27
|
-
|
|
27
|
+
if (label === 'Sources') {
|
|
28
|
+
await pg.click('#czFab'); await pg.click('#czMenu [data-cz-settings]'); await pg.waitForSelector('#evSettings:not([hidden])');
|
|
29
|
+
if (!(await pg.$('#evSettings [data-ev-sec="connectors"][aria-current="page"]'))) await pg.click('#evSettings [data-ev-sec="connectors"]');
|
|
30
|
+
await pg.waitForSelector('#evSettings ' + sel, { timeout: 15000 });
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
await pg.click('#hmList [data-hm-day]'); await pg.waitForSelector('#czViewer [data-yd="news-all"]', { timeout: 15000 });
|
|
34
|
+
await pg.click('#czViewer [data-yd="news-all"] >> nth=-1');
|
|
28
35
|
await pg.waitForSelector('#czViewer ' + sel, { timeout: 15000 });
|
|
29
36
|
};
|
|
30
37
|
const srcRowsOf = (pg) => pg.$$eval('#hmList .hm-r[data-id^="n:src:"]', (els) => els.map((e) => ({ key: e.dataset.id.slice(2), title: e.querySelector('.hm-rt b').textContent, line2: (e.querySelector('.hm-rt em') || {}).textContent || (e.querySelector('.hm-rm') || { title: '' }).title || '' }))); // Home A + C (HvAC): a row is one line; the second line is the row's title (its tooltip)
|
|
@@ -132,7 +139,7 @@ const sh = (cwd, args) => spawnSync('git', args, { cwd, encoding: 'utf8' });
|
|
|
132
139
|
await ctx.close();
|
|
133
140
|
}
|
|
134
141
|
|
|
135
|
-
{ /* harness-health: the background line at the top of Sources, and the chip's dot takes its level */
|
|
142
|
+
{ /* harness-health: the background line at the top of Settings › Connectors (was Sources), and the chip's dot takes its level */
|
|
136
143
|
const api = (await json('GET', '/api/sources')).body;
|
|
137
144
|
const h = api && api.health;
|
|
138
145
|
ok('H1 GET /api/sources carries the background health: a level, a line and the issues', h && ['ok', 'warn', 'bad'].includes(h.level) && typeof h.line === 'string' && h.line.length > 10 && Array.isArray(h.issues), JSON.stringify(h));
|
|
@@ -144,13 +151,13 @@ const sh = (cwd, args) => spawnSync('git', args, { cwd, encoding: 'utf8' });
|
|
|
144
151
|
await moreItem(page, 'Sources', '#srcHealth');
|
|
145
152
|
if (theme === 'light') {
|
|
146
153
|
// briefing-source-flow, slice 5: Home names which reads each part shows and when, from the same Sources read (Home's Sources card)
|
|
147
|
-
const rd = await page.evaluate(() => ({ cal: ((document.querySelector('#
|
|
148
|
-
ok('H5
|
|
154
|
+
const rd = await page.evaluate(() => ({ cal: ((document.querySelector('#evSettings [data-reads="Today"]') || {}).textContent || '').replace(/^Today:\s*/, ''), moves: ((document.querySelector('#evSettings [data-reads="Needs you"]') || {}).textContent || '').replace(/^Needs you:\s*/, '') }));
|
|
155
|
+
ok('H5 Settings › Connectors names the read Today shows, and the initiatives, My work and the brief that Needs you shows', /^Calendar (read|not read yet|failed)/.test(rd.cal) && /Initiatives/.test(rd.moves) && /My work/.test(rd.moves) && /Brief (built|not built yet|off)/.test(rd.moves), JSON.stringify(rd));
|
|
149
156
|
if (shot) await page.screenshot({ path: path.join(shot, 'cards-reads-light.png'), fullPage: true });
|
|
150
157
|
}
|
|
151
|
-
const line = await page.$eval('#
|
|
158
|
+
const line = await page.$eval('#evSettings #srcHealth', (e) => ({ text: e.textContent.trim(), dot: (e.querySelector('.ev-dot') || {}).className || '', w: Math.round(e.getBoundingClientRect().width), sw: document.documentElement.scrollWidth }));
|
|
152
159
|
if (theme === 'light') {
|
|
153
|
-
ok('H2
|
|
160
|
+
ok('H2 Settings › Connectors opens with the background line on top, in the level\'s colour', line.text.startsWith(h.line.slice(0, 20)) && line.dot === 'ev-dot ' + (h.level === 'ok' ? 'ok' : 'risk'), JSON.stringify(line));
|
|
154
161
|
ok('H3 no Sources chip and no dot are drawn on the page; the line above carries the level (premium-agreed-design)', dot === 'none', dot);
|
|
155
162
|
} else ok('H4 on a phone the line fits: no sideways scroll', line.sw <= 390 && line.w > 0, JSON.stringify(line));
|
|
156
163
|
if (shot) { await sleep(1200); await page.screenshot({ path: path.join(shot, 'sources-health-' + theme + '.png') }); }
|
|
@@ -86,9 +86,12 @@ const view = () => { const v = document.querySelector('#czViewer:not([hidden])')
|
|
|
86
86
|
ok('M7 the card has no "My work" / "Weekly review" switch: the review opens from Home', await p.evaluate((V) => !document.querySelector(V + ' [data-ut-tab]'), MW));
|
|
87
87
|
ok('M8 Home has no "All of my work" row and the ⋯ menu has no My work', await p.evaluate(async () => {
|
|
88
88
|
if (document.querySelector('#hmList [data-hm-work], #hmList .hm-all') || /All of my work/.test(document.querySelector('#hmList').textContent)) return false;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
// feedback batch 16 item 5: the place menu has no More; what it holds is read, then the button closes it again
|
|
90
|
+
document.querySelector('#czFab').click(); await new Promise((r) => setTimeout(r, 100));
|
|
91
|
+
const t = [...document.querySelectorAll('#czMenu a, #czMenu button, #hmMenu button')].map((b) => b.textContent + (b.getAttribute('aria-label') || '')).join('|');
|
|
92
|
+
const more = !!document.querySelector('[data-cz-more]');
|
|
93
|
+
document.querySelector('#czFab').click(); await new Promise((r) => setTimeout(r, 100));
|
|
94
|
+
return !more && !/My work/.test(t);
|
|
92
95
|
}));
|
|
93
96
|
await p.click(`${MW} [data-tab="stale"]`);
|
|
94
97
|
const v2 = await p.evaluate(view);
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.432.0",
|
|
4
|
+
"at": "2026-10-28T02:08:08.690Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1074,
|
|
9
|
+
"t": "Fewer menus, a short initiative menu, Delete with Undo (batch 16 item 5)",
|
|
10
|
+
"s": "Fewer menus, a short initiative menu, Delete with Undo (batch 16 item 5)"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"v": "0.431.0",
|
|
4
16
|
"at": "2026-10-28T01:37:46.171Z",
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
/* ev-everywhere-test.js — the Everywhere parts (initiative premium-uncovered-features, E1 to E4; canvas EvMenu, EvSearch, EvInbox, EvSources,
|
|
4
4
|
* EvSettings, EvStates, EvDark, EvPhone). The real server with one scratch product repository that has a worktree with a draft.
|
|
5
|
-
* U1 the place menu: Home, Board, Intelligence, then Search
|
|
5
|
+
* U1 the place menu: Home, Board, Intelligence, then Search and Settings as icons (feedback batch 16 item 5, FmA1Menu); no More anywhere
|
|
6
6
|
* S1 Ctrl K opens Search over the page; typing finds a document on main and a draft on the worktree; the kind chips narrow; Escape closes
|
|
7
7
|
* S2 the worktree chip lists the worktree and leaving it out drops its draft; S3 a result opens in the Viewer
|
|
8
|
-
* N1
|
|
9
|
-
* R1
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* N1 Good morning opens Your day with the calendar icon; New for you is its fold (FmA2Day); nothing is posted on open
|
|
9
|
+
* R1 Settings › Connectors lists each source with when it was read (was Sources, FmA3Settings); R2 Settings opens on General with its
|
|
10
|
+
* sections (on Connectors while a source is stale), and Escape closes it
|
|
11
|
+
* B1 the Board's Settings and Sources open Settings; B2 Ctrl K on Board opens the same Search
|
|
12
|
+
* D1 Theme Dark in Settings › General draws the page dark (data-theme), kept for the next page; P1 at 390 px Search fills the screen and nothing scrolls sideways
|
|
12
13
|
* Set EV_SHOTS=<dir> for screenshots at 1440x900 and 390x844, light and dark. Every wait polls the page; no fixed sleep stands in for a state. */
|
|
13
14
|
const fs = require('fs');
|
|
14
15
|
const os = require('os');
|
|
@@ -82,8 +83,9 @@ const put = (root, rel, text) => { fs.mkdirSync(path.dirname(path.join(root, rel
|
|
|
82
83
|
{ /* U: the place menu on Home */
|
|
83
84
|
const { ctx, pg, errors, posts } = await open();
|
|
84
85
|
await menu(pg);
|
|
85
|
-
const m = await pg.evaluate(() => ({ links: [...document.querySelectorAll('#czMenu a')].map((a) => a.textContent.trim()),
|
|
86
|
-
|
|
86
|
+
const m = await pg.evaluate(() => ({ links: [...document.querySelectorAll('#czMenu a')].map((a) => a.textContent.trim()), tray: [...document.querySelectorAll('#czMenu .ev-tray button')].map((b) => b.getAttribute('aria-label').replace(/\..*$/, '')), rows: document.querySelectorAll('#czMenu .ev-mi, #czMenu [data-cz-more], #czMenu [data-cz-news], #czMenu [data-cz-sources], #czMenu [data-ev-theme]').length }));
|
|
87
|
+
// feedback batch 16 item 5 (canvas FmA1Menu): the three places, then Search and Settings as icons, and nothing else
|
|
88
|
+
ok('U1 the menu holds Home, Board, Intelligence, then Search and Settings as two icons, and no New for you, Sources, More or Theme', m.links.join() === 'Home,Board,Intelligence' && m.tray.join() === 'Search (⌘K),Settings' && m.rows === 0, JSON.stringify(m));
|
|
87
89
|
await snap(pg, 'menu-1440-light');
|
|
88
90
|
await pg.keyboard.press('Escape');
|
|
89
91
|
ok('U2 Escape closes the menu', await until(() => pg.isHidden('#czMenu')));
|
|
@@ -112,45 +114,50 @@ const put = (root, rel, text) => { fs.mkdirSync(path.dirname(path.join(root, rel
|
|
|
112
114
|
await pg.keyboard.press('Escape');
|
|
113
115
|
await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
|
|
114
116
|
|
|
115
|
-
/* N: New for you */
|
|
117
|
+
/* N: New for you, a fold of Your day (feedback batch 16 item 5b, canvas FmA2Day) */
|
|
116
118
|
posts.length = 0;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
const nfy = (await json('GET', '/api/news-for-you?ws=' + encodeURIComponent(ws))).body || {};
|
|
120
|
+
await pg.click('#hmList [data-hm-day]');
|
|
121
|
+
const yd = await until(() => pg.evaluate(() => { const v = document.querySelector('#czViewer:not([hidden])'); if (!v || !v.querySelector('.yd')) return null; const f = v.querySelector('.czs-sec[data-czs-id="news"]');
|
|
122
|
+
return { cal: !!v.querySelector('.cz-vw-hd [data-cz-vw-p="cal"]'), more: !!v.querySelector('.cz-vw-hd [data-cz-vw="more"]'), fold: !!f, rows: f ? f.querySelectorAll('[data-yd="news"]').length : 0, all: !!(f && f.querySelector('[data-yd="seen"]')) }; }), 20000);
|
|
123
|
+
ok('N1 Good morning opens Your day, with the calendar as an icon in its header and no ⋯', !!yd && yd.cal && !yd.more, JSON.stringify(yd));
|
|
124
|
+
ok('N1 New for you is a fold of Your day: the newest 3 at most, with ✓✓; nothing new draws no fold', !!yd && (nfy.count > 0 ? yd.fold && yd.rows === Math.min(3, nfy.count) && yd.all : !yd.fold), JSON.stringify({ yd, count: nfy.count }));
|
|
125
|
+
ok('N1 the place menu no longer opens a New for you page', await pg.evaluate(() => !document.querySelector('#czMenu [data-cz-news]')));
|
|
121
126
|
const own = posts.filter((u) => u !== '/api/loose-props/rows');
|
|
122
|
-
ok('N1 opening
|
|
123
|
-
await snap(pg, '
|
|
124
|
-
await pg.click('#czViewer [data-ev-rest="pulse"]');
|
|
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 || '')))));
|
|
126
|
-
await pg.click('#czViewer [data-bda="back"]');
|
|
127
|
-
ok('N2 Back goes to New for you', !!(await until(() => pg.evaluate(() => !!document.querySelector('#czViewer .ev-news [data-ev-rest]')))));
|
|
127
|
+
ok('N1 opening Your day posted nothing', own.length === 0, JSON.stringify(posts));
|
|
128
|
+
await snap(pg, 'day-1440-light');
|
|
128
129
|
await pg.keyboard.press('Escape');
|
|
129
130
|
|
|
130
131
|
/* R: Sources and Settings */
|
|
131
132
|
await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
await
|
|
133
|
+
// Sources is Settings › Connectors now (feedback batch 16 item 5, canvas FmA3Settings): each source's last read, ↻ in the header reads all
|
|
134
|
+
await menu(pg); await pg.click('#czMenu [data-cz-settings]');
|
|
135
|
+
const stale = await pg.evaluate(() => !!document.querySelector('#czFdRisk:not([hidden]), #czMenu .ev-md.risk'));
|
|
136
|
+
await pg.waitForSelector('#evSettings:not([hidden])');
|
|
137
|
+
if (!stale) await pg.click('#evSettings [data-ev-sec="connectors"]');
|
|
138
|
+
const src = await until(() => pg.evaluate(() => { const d = document.querySelector('#evSettings:not([hidden])'); const r = d ? [...d.querySelectorAll('.ev-fr[data-src]')] : []; return r.length && /never posts/.test(d.textContent) ? { n: r.length, h: (d.querySelector('#evStTitle') || {}).textContent, all: !!d.querySelector('.ev-top [data-ev-readall]'), t: d.textContent } : null; }), 20000);
|
|
139
|
+
ok('R1 Settings › Connectors lists each source with when it was last read, and ↻ in its header reads all', !!src && src.h === 'Connectors' && src.n >= 3 && src.all && /never posts/.test(src.t), JSON.stringify(src).slice(0, 300));
|
|
140
|
+
await snap(pg, 'connectors-1440-light');
|
|
136
141
|
await pg.keyboard.press('Escape');
|
|
137
|
-
await until(() => pg.evaluate(() => !document.querySelector('#
|
|
142
|
+
await until(() => pg.evaluate(() => !document.querySelector('#evSettings:not([hidden])')));
|
|
138
143
|
await menu(pg); await pg.click('#czMenu [data-cz-settings]');
|
|
139
144
|
const st = await until(() => pg.evaluate(() => { const d = document.querySelector('#evSettings:not([hidden])'); return d ? { nav: [...d.querySelectorAll('[data-ev-sec]')].map((a) => a.textContent.replace(/\d+$/, '').trim()), h: (d.querySelector('#evStTitle') || {}).textContent, t: d.textContent } : null; }));
|
|
140
|
-
ok('R2 Settings opens on General, with Connectors, Workspaces, Updates and What\'s new', !!st && st.h === 'General' && ['General', 'Connectors', 'Workspaces', 'Updates', 'What\'s new'].every((k) => st.nav.some((n) => n.startsWith(k))) && /Theme/.test(st.t), JSON.stringify(st && { nav: st.nav, h: st.h }));
|
|
145
|
+
ok('R2 Settings opens on General (or Connectors while a source is stale), with Connectors, Workspaces, Updates and What\'s new', !!st && st.h === (stale ? 'Connectors' : 'General') && ['General', 'Connectors', 'Workspaces', 'Updates', 'What\'s new'].every((k) => st.nav.some((n) => n.startsWith(k))) && (stale || /Theme/.test(st.t)), JSON.stringify(st && { nav: st.nav, h: st.h }));
|
|
141
146
|
await snap(pg, 'settings-1440-light');
|
|
142
147
|
await pg.click('#evSettings [data-ev-sec="workspaces"]');
|
|
143
148
|
ok('R2 Workspaces lists the product', !!(await until(() => pg.evaluate(() => /EVPROD/.test(document.querySelector('#evSettings').textContent)))));
|
|
144
149
|
await pg.keyboard.press('Escape');
|
|
145
150
|
ok('R2 Escape closes Settings', !!(await until(() => pg.evaluate(() => !document.querySelector('#evSettings:not([hidden])')))));
|
|
146
151
|
|
|
147
|
-
/* D: Theme */
|
|
148
|
-
await menu(pg); await pg.click('#czMenu [data-
|
|
149
|
-
|
|
152
|
+
/* D: Theme, in Settings › General (feedback batch 16 item 5) */
|
|
153
|
+
await menu(pg); await pg.click('#czMenu [data-cz-settings]'); await pg.waitForSelector('#evSettings:not([hidden])');
|
|
154
|
+
await pg.click('#evSettings [data-ev-sec="general"]'); await pg.click('#evSettings [data-ev-seg="theme"][data-v="dark"]');
|
|
155
|
+
await pg.keyboard.press('Escape');
|
|
156
|
+
ok('D1 Theme Dark in Settings › General draws the page dark', !!(await until(() => pg.evaluate(() => document.documentElement.dataset.theme === 'dark' && getComputedStyle(document.body).backgroundColor !== 'rgb(255, 255, 255)'))));
|
|
150
157
|
await pg.goto(`${BASE}/premium-insights.html?ws=${encodeURIComponent(ws)}`); await pg.waitForSelector('#czFab');
|
|
151
158
|
ok('D1 the choice is kept for the next page', await pg.evaluate(() => document.documentElement.dataset.theme === 'dark'));
|
|
152
159
|
await menu(pg);
|
|
153
|
-
ok('U1 More
|
|
160
|
+
ok('U1 no page has More in its menu', await pg.evaluate(() => !document.querySelector('#czMenu [data-cz-more]') && document.querySelectorAll('#czMenu .ev-tray button').length === 2));
|
|
154
161
|
await snap(pg, 'menu-1440-dark');
|
|
155
162
|
await pg.keyboard.press('Escape');
|
|
156
163
|
await pg.keyboard.press('Control+k'); await pg.waitForSelector('#evSearch:not([hidden])'); await pg.keyboard.type('billing');
|
|
@@ -170,7 +177,7 @@ const put = (root, rel, text) => { fs.mkdirSync(path.dirname(path.join(root, rel
|
|
|
170
177
|
await pg.keyboard.press('Escape');
|
|
171
178
|
await until(() => pg.evaluate(() => !document.querySelector('#evSettings:not([hidden])')));
|
|
172
179
|
await pg.click('#moreBtn'); await pg.click('#srcItem');
|
|
173
|
-
ok('B1 the Board\'s Sources opens
|
|
180
|
+
ok('B1 the Board\'s Sources opens Settings at Connectors', !!(await until(() => pg.evaluate(() => /^Connectors$/.test((document.querySelector('#evSettings:not([hidden]) #evStTitle') || {}).textContent || '')), 20000)));
|
|
174
181
|
await pg.keyboard.press('Escape');
|
|
175
182
|
} else ok('B1 the Board has its top bar', false);
|
|
176
183
|
await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
|
|
@@ -194,10 +201,10 @@ const put = (root, rel, text) => { fs.mkdirSync(path.dirname(path.join(root, rel
|
|
|
194
201
|
ok(`P1 ${theme} at 390 px Search fills the screen and nothing scrolls sideways`, sp.w >= 388 && sp.h >= 800 && sp.side <= 0, JSON.stringify(sp));
|
|
195
202
|
await snap(pg, 'search-390-' + theme);
|
|
196
203
|
await pg.keyboard.press('Escape');
|
|
197
|
-
await
|
|
198
|
-
await until(() => pg.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) .
|
|
199
|
-
ok(`P2 ${theme} at 390 px New for you does not scroll sideways`, await pg.evaluate(() => { const b = document.querySelector('#czViewer .cz-vw-body'); return document.documentElement.scrollWidth - innerWidth <= 0 && b.scrollWidth - b.clientWidth <= 1; }));
|
|
200
|
-
await snap(pg, '
|
|
204
|
+
await pg.click('#hmList [data-hm-day]');
|
|
205
|
+
await until(() => pg.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) .yd')), 20000);
|
|
206
|
+
ok(`P2 ${theme} at 390 px Your day (with New for you) does not scroll sideways`, await pg.evaluate(() => { const b = document.querySelector('#czViewer .cz-vw-body'); return document.documentElement.scrollWidth - innerWidth <= 0 && b.scrollWidth - b.clientWidth <= 1; }));
|
|
207
|
+
await snap(pg, 'day-390-' + theme);
|
|
201
208
|
await pg.keyboard.press('Escape');
|
|
202
209
|
await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
|
|
203
210
|
await menu(pg); await pg.click('#czMenu [data-cz-settings]');
|
|
@@ -338,7 +338,7 @@ Board is the fourth place on the rail, after Chat, at `/premium-board.html`. It
|
|
|
338
338
|
- **Opening an initiative.** A click on an initiative opens its page (see "Initiative page"). **Open initiatives** (Page or Popup) in the ⋯ menu changes that: Popup opens the initiative's dialog instead, which shows its record as a grid and the path of its file, with the read-only agent beside it. The choice is kept in this browser. The dialog holds no press.
|
|
339
339
|
- **New asks** sits at the top of the right column on a team board. Each ask shows where it came from and the drafted title, lane and anchor. **Accept** makes it an initiative in the first stage, through the console's accept route; **Decline** asks for a reason first. The card says when nothing is left to triage.
|
|
340
340
|
- **New initiative** (beside the Initiatives heading, team boards only) asks for a title, a lane and an anchor (a KR or a health budget). It writes an ask and accepts it, as the console does. An unanchored initiative is refused on the page.
|
|
341
|
-
-
|
|
341
|
+
- **The stage chip** on an initiative's stage card (and the bar under an initiative page's heading) moves it to the next or another stage, puts it on hold with a reason and a check-back day, marks it Won't do with a reason, or archives it. **⋯** holds the short menu, with **Delete** last (see the Home guide). Each press writes one line through the console's route, says what it recorded, and offers Undo for a few seconds. An on-hold row offers Resume; a cancelled one offers Reopen; an archived one offers Restore. Cancelled and archived initiatives leave the list and sit under a fold below it. On the PMOS board the workflow engine places each initiative, so the moves are not offered and New asks and New initiative are hidden.
|
|
342
342
|
|
|
343
343
|
Not drawn, because PMOS holds no record for them: the mockup's demo measures (Activation, Partner uptime, API p95), targets, and the mockup's demo boards.
|
|
344
344
|
|