create-pmos 0.443.0 → 0.444.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/briefing-premium-board-test.js +8 -2
- package/workspace/briefing-premium-insights-test.js +40 -38
- package/workspace/briefing-premium-test.js +2 -1
- package/workspace/changelog.json +12 -0
- package/workspace/goals-clear-ui-test.js +34 -20
- package/workspace/guide/home.md +5 -0
- package/workspace/intel-report-ui-test.js +1 -1
- package/workspace/lib/board-premium.js +1 -1
- package/workspace/lib/engine/boards.js +9 -2
- package/workspace/lib/routes-boards.js +40 -1
- package/workspace/live-pill-round-test.js +178 -0
- package/workspace/okr-goals-ui-test.js +21 -19
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/panels-test.js +231 -0
- package/workspace/premium-rec-tab-test.js +2 -1
- package/workspace/premium-vw-item-test.js +10 -2
- package/workspace/premium-vw-jira-test.js +3 -0
- package/workspace/public/pm/bd-ini-panel.js +3 -2
- package/workspace/public/pm/cozy-adler.js +21 -0
- package/workspace/public/pm/cozy-divider.css +32 -0
- package/workspace/public/pm/cozy-divider.js +45 -0
- package/workspace/public/pm/cozy-insights.css +14 -0
- package/workspace/public/pm/cozy-live-pill.css +16 -22
- package/workspace/public/pm/cozy-live-pill.js +28 -17
- package/workspace/public/pm/cozy-panels.css +59 -0
- package/workspace/public/pm/cozy-panels.js +524 -0
- package/workspace/public/pm/cozy-viewer.js +146 -70
- package/workspace/public/pm/goals-clear.js +9 -2
- package/workspace/public/pm/home-app.js +22 -11
- package/workspace/public/pm/home-ini.js +9 -3
- package/workspace/public/pm/home-today.js +4 -2
- package/workspace/public/pm/ini-edit.js +401 -0
- package/workspace/public/pm/ini-tasks.js +42 -18
- package/workspace/public/pm/ini-versions.js +18 -4
- package/workspace/public/pm/ini-view-model.js +8 -4
- package/workspace/public/pm/ini-view.css +88 -1
- package/workspace/public/pm/ini-view.js +42 -11
- package/workspace/public/pm/premium-board.js +8 -6
- package/workspace/public/pm/premium-insights.js +205 -43
- package/workspace/public/pm/task-card.css +2 -0
- package/workspace/public/pm/task-card.js +4 -1
- package/workspace/stage-card-tasks-test.js +396 -0
- package/workspace/stage-card-test.js +1 -1
- package/workspace/task-delete-test.js +9 -1
- package/workspace/task-milestones-test.js +3 -3
- package/workspace/task-press-test.js +12 -4
- package/workspace/task-views-test.js +8 -4
- package/workspace/test-lists/batch18-live-pill-round.json +10 -0
- package/workspace/test-lists/batch18-panels.json +9 -0
- package/workspace/test-lists/stage-card-tasks.json +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.444.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.444.0",
|
|
37
|
+
"at": "2026-10-28T16:25:00.066Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1088,
|
|
42
|
+
"t": "Arrange panels, manage tasks in the stage card, goals dashboard (batch 18 items 15, 16, 11 gap)",
|
|
43
|
+
"s": "Arrange panels, manage tasks in the stage card, goals dashboard (batch 18 items 15, 16, 11 gap)"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
35
47
|
{
|
|
36
48
|
"v": "0.443.0",
|
|
37
49
|
"at": "2026-10-28T14:17:24.774Z",
|
|
@@ -259,18 +271,6 @@
|
|
|
259
271
|
"s": "Recording tab and one product picker (batch 12, items 1 and 5)"
|
|
260
272
|
}
|
|
261
273
|
]
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"v": "0.424.0",
|
|
265
|
-
"at": "2026-10-27T00:38:50.632Z",
|
|
266
|
-
"f": 2,
|
|
267
|
-
"prs": [
|
|
268
|
-
{
|
|
269
|
-
"n": 1064,
|
|
270
|
-
"t": "Twelfth testing feedback batch",
|
|
271
|
-
"s": "Twelfth testing feedback batch"
|
|
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-28T16:24:57Z"}
|
|
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-28T16:24:57Z"}
|
|
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-28T16:24:57Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -63,7 +63,7 @@ const IVREAD = () => {
|
|
|
63
63
|
bars: sc ? [...sc.querySelectorAll('.mi-svg :is(.mi-st, .mi-dsh)')].map((x) => (x.classList.contains('dn') ? 'done' : x.classList.contains('q') ? 'next' : 'now')).join('|') : '',
|
|
64
64
|
nm: sc && tx('.iv-mi-nm', sc), ms: sc ? [...sc.querySelectorAll('.iv-mio .iv-msr')].map((x) => x.textContent.replace(/\s+/g, ' ').trim()) : [],
|
|
65
65
|
aria: sc && sc.getAttribute('aria-label'), dates: sc && tx('.iv-mio-h .iv-dtc', sc), next: sc && sc.querySelector('.iv-scgo') ? sc.querySelector('.iv-scgo').getAttribute('aria-label') : null,
|
|
66
|
-
tasks: tx('.iv-th'), secs: [...iv.querySelectorAll('.iv-ws')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()), tks: [...iv.querySelectorAll('[data-iv-ticket]')].map((e) => e.dataset.ivTicket).join(),
|
|
66
|
+
tasks: tx('.iv-th'), secs: [...iv.querySelectorAll('.iv-ws')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()), tks: [...iv.querySelectorAll('[data-iv-ticket], .iv-tkr [data-iv-edit]')].map((e) => e.dataset.ivTicket || e.dataset.ivEdit).join(),
|
|
67
67
|
rows: [...iv.querySelectorAll('.iv-tr')].map((e) => e.textContent.replace(/\s+/g, ' ').trim()), q: [...iv.querySelectorAll('.iv-q')].map((e) => e.textContent), empty: !!iv.querySelector('.iv-empty'),
|
|
68
68
|
folds: [...iv.querySelectorAll('.iv-fr b, .czs-row b')].map((b) => b.textContent), body: v.querySelector('.cz-vw-body').textContent.replace(/\s+/g, ' '),
|
|
69
69
|
ask: v.querySelectorAll('.cz-vw-body input, .cz-vw-body textarea').length, disc: !!v.querySelector('[data-cz-vw="discuss"]'), w: Math.round(r.width), side: Math.round(innerWidth - r.right) < 40 };
|
|
@@ -224,6 +224,8 @@ const IVREAD = () => {
|
|
|
224
224
|
if (process.env.PMOS_SHOTS) await q.screenshot({ path: path.join(process.env.PMOS_SHOTS, 'ini-deliver-1280.png') });
|
|
225
225
|
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]');
|
|
226
226
|
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)));
|
|
227
|
+
// batch 18 item 16: a ticket row's title opens the row in place; its Open the ticket sits there, after the dates
|
|
228
|
+
if (!(await q.$('#czViewer [data-iv-ticket="SSO-12"]'))) await q.click('#czViewer [data-iv-edit="SSO-12"]');
|
|
227
229
|
await q.click('#czViewer [data-iv-ticket="SSO-12"]');
|
|
228
230
|
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; }));
|
|
229
231
|
/* re-pointed (batch 6 item 1b, canvas OvViewers "Jira ticket"): the one ticket Viewer. What blocks it leads; the facts are plain text with
|
|
@@ -233,6 +235,7 @@ const IVREAD = () => {
|
|
|
233
235
|
await four(q, 'ticket');
|
|
234
236
|
await q.click('#czViewer [data-cz-vw="back"]');
|
|
235
237
|
ok('B1 the ticket\'s Back goes to the initiative', await until(async () => (await vwTitle(q)) === 'SSO for partners'));
|
|
238
|
+
if (await q.$('#czViewer .iv-ed')) await q.keyboard.press('Escape'); // the ticket's row is still open in place (batch 18 item 16): Esc shuts it first
|
|
236
239
|
await q.keyboard.press('Escape');
|
|
237
240
|
ok('B1 Escape closes the Viewer', await vwShut(q));
|
|
238
241
|
const n1 = R.posts.length; await q.click('#chJira');
|
|
@@ -470,7 +473,10 @@ const IVREAD = () => {
|
|
|
470
473
|
ok('T a linked document opens in the Viewer, as its text', await until(() => q.evaluate(() => { const v = document.querySelector('#czViewer'); return !!v && !v.hidden && /New teams stall at the invite step/.test(v.textContent); })));
|
|
471
474
|
await q.keyboard.press('Escape'); await sleep(150);
|
|
472
475
|
if (await vwOn(q)) { await q.keyboard.press('Escape'); await sleep(150); }
|
|
473
|
-
await q.click('.bt-l[data-row="board:sso-partners"] .bt-nm'); await until(() => vwOn(q, 'Initiative'));
|
|
476
|
+
await q.click('.bt-l[data-row="board:sso-partners"] .bt-nm'); await until(() => vwOn(q, 'Initiative'));
|
|
477
|
+
await q.waitForSelector('#czViewer [data-iv-ticket="SSO-12"], #czViewer [data-iv-edit="SSO-12"]');
|
|
478
|
+
if (!(await q.$('#czViewer [data-iv-ticket="SSO-12"]'))) await q.click('#czViewer [data-iv-edit="SSO-12"]'); // batch 18 item 16: the row opens in place first
|
|
479
|
+
await q.click('#czViewer [data-iv-ticket="SSO-12"]');
|
|
474
480
|
ok('T the ticket counts its subtasks from the Jira reading (the Subtasks fold: "1 of 3 done")', await until(() => q.evaluate(() => { const x = document.querySelector('#czViewer [data-czs-id="sub"]'); if (!x) return false; const t = x.textContent.replace(/\s+/g, ' '); return (x.querySelector('.czs-n') || {}).textContent === '1 of 3 done' && (x.querySelector('.czs-body') ? /1 done, 2 open/.test(t) : true) && !document.querySelector('#czViewer .seg5'); })));
|
|
475
481
|
await q.keyboard.press('Escape'); await vwShut(q);
|
|
476
482
|
/* the long spans draw Quarter's rows (timeline spans C): the trail's themes group nothing there any more, and there is no Group control */
|
|
@@ -78,7 +78,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
78
78
|
r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, all: false, chosen: true, products: reg.map((x, i) => ({ ...x, home: false, primary: !i, initials: null, on: pk.on.includes(x.ws) })) }) });
|
|
79
79
|
});
|
|
80
80
|
await page.goto(BASE + '/premium-intelligence.html?theme=' + theme + q);
|
|
81
|
-
const up = await until(() => page.evaluate(() => document.querySelectorAll('#goalTbl .
|
|
81
|
+
const up = await until(() => page.evaluate(() => document.querySelectorAll('#goalTbl .ins-row').length > 0 || /could not be read/.test(document.querySelector('#brief').textContent) || !!document.querySelector('#goalTbl .ins-empty')), 20000);
|
|
82
82
|
return { ctx, page, errors, posts, up, pk, calls: () => calls, setModel: (m) => { current = m; } };
|
|
83
83
|
};
|
|
84
84
|
/* the Viewer card (pm/cozy-viewer.js): its title, and the feature its "Waiting for design" card names */
|
|
@@ -150,27 +150,31 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
150
150
|
ok('B1 the product chip is the one picker Home and Board share; with one product it lists that one and Add a product, no All', pr.chip === 'Products: pmos' && pr.items === 'pmos' && !pr.all && pr.add, JSON.stringify(pr));
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
/* G1 the
|
|
154
|
-
* the
|
|
155
|
-
{ const g = await p.evaluate(() => { const r = [...document.querySelectorAll('#goalTbl .
|
|
156
|
-
ok('G1 key results are grouped by objective, then Health budgets; Delivery trends moved to ⋯ (Iq8Overview
|
|
157
|
-
ok('G1 a goal row
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
153
|
+
/* G1 the Goals table (re-pointed back, batch 18 item 11 gap: the agreed goals dashboard is Iq8Overview again, GcJ2FirstMonday and GcJ4Full;
|
|
154
|
+
* the budget over its cap also keeps the one red, pulsing dot of a broken limit) */
|
|
155
|
+
{ const g = await p.evaluate(() => { const r = [...document.querySelectorAll('#goalTbl .ins-grp')].map((x) => x.textContent.replace(/\s+/g, ' ').trim()), a = document.querySelector('#goalTbl [data-goal="krm-act"]'); return { groups: r, title: a.querySelector('.nm b').textContent, type: a.querySelector('.ins-type').textContent, sub: a.querySelector('.ins-sub').textContent, val: a.querySelector('.val b').textContent, of: a.querySelector('.val .note').textContent, today: !!a.querySelector('.ins-bar1 .today'), spark: !!a.querySelector('svg.ins-spark .pj'), pace: a.querySelector('.pace').textContent, moves: [...a.querySelectorAll('.ins-ini')].map((m) => m.querySelector('.n').textContent + ':' + m.querySelectorAll('.ins-trk i').length + ':' + [...m.querySelectorAll('.ins-trk i')].findIndex((i) => i.classList.contains('c')) + ':' + m.querySelectorAll('.ins-trk i.m').length + ':' + ((m.querySelector('.cz-pill') || {}).textContent || '')) }; });
|
|
156
|
+
ok('G1 key results are grouped by objective, then Health budgets; Delivery trends moved to ⋯ (Iq8Overview)', g.groups.length === 3 && /^Objective 1 · Growth Q4 2026/.test(g.groups[0]) && /3 of 3 behind/.test(g.groups[0]) && /^Objective 2 · Reliability/.test(g.groups[1]) && /^Health budgets always on, judged every week/.test(g.groups[2]), JSON.stringify(g.groups));
|
|
157
|
+
ok('G1 a goal row has its type, direction and start, value of target with the today mark, the so-far line with its pace, and the pace said by its date', g.title === 'Partner activation' && g.type === 'Percentage' && g.sub === 'up is better · from 20% on Jul 1' && g.val === '28%' && g.of === 'of 50%' && g.today && g.spark && /^≈34% by Dec 31/.test(g.pace) && /16 pts short at this pace/.test(g.pace), JSON.stringify(g));
|
|
158
|
+
ok('G1 what moves it is on the lifecycle track with its milestones, and its pill is a delivery fact (ships soon, days over)', g.moves.join() === 'SSO for partners:8:5:2:Ships in 5 days,Self-serve onboarding v2:8:4:2:8 days over', JSON.stringify(g.moves));
|
|
159
|
+
const pills = await p.evaluate(() => Object.fromEntries([...document.querySelectorAll('#goalTbl .ins-ini')].map((m) => [m.querySelector('.n').textContent, (m.querySelector('.cz-pill') || {}).textContent || ''])));
|
|
160
|
+
ok('G1 an initiative with no owner says No owner; one that has shipped is not "days over" and never "in -N days"', pills['First call kit'] === 'No owner' && pills['Audit log export'] === 'On track' && !Object.values(pills).some((x) => /-\d/.test(x)), JSON.stringify(pills));
|
|
161
|
+
const leg = await p.evaluate(() => document.querySelector('#goalTbl .ins-th .ins-mvh').textContent.replace(/\s+/g, ' '));
|
|
162
|
+
ok('G1 the Moved by header carries the legend: skipped and milestone', /Skipped/.test(leg) && /Milestone/.test(leg), leg);
|
|
163
|
+
const nps = await p.evaluate(() => document.querySelector('#goalTbl [data-goal="krm-nps"]').textContent);
|
|
164
|
+
ok('G1 a goal with one reading draws no line and no pace: it shows the one value and No trend yet (IsMenus)', /1 reading/.test(nps) && /No trend yet/.test(nps) && /needs a second reading/.test(nps) && /No initiative anchors to it/.test(nps), nps);
|
|
165
|
+
const up = await txt('#goalTbl [data-goal="krm-up"] .pace');
|
|
166
|
+
ok('G1 a percentage pace never passes 100%, and a goal ahead of its time says so', /^≈100% by Dec 31/.test(up) && /ahead: 67% done, 39% of time gone/.test(up), up);
|
|
167
|
+
const ch = await txt('#goalTbl [data-goal="krm-churn"]');
|
|
168
|
+
ok('G1 a goal with no reading shows a dash and no number', /—/.test(ch) && /No reading yet/.test(ch) && /no reading yet/.test(ch) && !/\d+%\s*of/.test(ch.replace('of 2%', '')), ch);
|
|
164
169
|
}
|
|
165
|
-
/* G1 health budgets (D59): each budget of the registry, read as its share of the board's open initiatives against its cap
|
|
166
|
-
* record replaces it (lib/goal-status.js) */
|
|
170
|
+
/* G1 health budgets (D59): each budget of the registry, read as its share of the board's open initiatives against its cap */
|
|
167
171
|
{
|
|
168
|
-
const b = await p.evaluate(() => [...document.querySelectorAll('#goalTbl [data-budget]')].map((r) => ({ id: r.dataset.budget,
|
|
169
|
-
ok('G1 a health budget is a row with its share of the open initiatives
|
|
172
|
+
const b = await p.evaluate(() => [...document.querySelectorAll('#goalTbl [data-budget]')].map((r) => ({ id: r.dataset.budget, type: r.querySelector('.ins-type').textContent, sub: r.querySelector('.ins-sub').textContent, val: r.querySelector('.val').textContent.replace(/\s+/g, ' ').trim(), pace: r.querySelector('.pace').textContent, cap: !!r.querySelector('.ins-bar1 .today'), moves: [...r.querySelectorAll('.ins-ini .n')].map((x) => x.textContent).join() })));
|
|
173
|
+
ok('G1 a health budget is a Stay within row, always on, with its cap, its share of the open initiatives and what moves it', b.length === 2 && b[0].id === 'docs' && b[0].type === 'Stay within' && b[0].sub === 'always on · cap 20% of a quarter' && b[0].val === '1 of 6 open initiatives' && /^Within its 20% cap/.test(b[0].pace) && /17% of open initiatives/.test(b[0].pace) && b[0].cap && b[0].moves === 'Docs search' && b[1].id === 'ops' && b[1].val === '0 of 6 open initiatives', JSON.stringify(b));
|
|
170
174
|
const R = await open({ model: mk({ budgets: [{ id: 'docs', covers: 'docs', cap: 0.1 }] }) });
|
|
171
|
-
ok('G1 a budget over its cap
|
|
175
|
+
ok('G1 a budget over its cap says so, with the red pulsing dot of a broken limit', /^Over its 10% cap/.test(await txt('#goalTbl [data-budget="docs"] .pace', R.page)) && /red m-crit/.test(await R.page.evaluate(() => document.querySelector('#goalTbl [data-budget="docs"] .cz-dot').className)));
|
|
172
176
|
await R.ctx.close();
|
|
173
|
-
await p.click('#goalTbl [data-budget="docs"] .
|
|
177
|
+
await p.click('#goalTbl [data-budget="docs"] .nm');
|
|
174
178
|
const v = await until(() => vw(p));
|
|
175
179
|
ok('G1 a budget press opens its detail in the goal\'s frame: its reading, its cap, what it covers (IsGoal)', v && v.title === 'docs' && !v.wait && /documentation upkeep/.test(v.text) && /cap 20% of a quarter/.test(v.text) && /1 of 6 open on the Board/.test(v.text), JSON.stringify(v));
|
|
176
180
|
/* re-pointed (viewer-shell-a, XvAInsight): Moved by is a folding row under the summary, not a tab */
|
|
@@ -184,7 +188,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
184
188
|
const R = await open(), q = R.page, sent = [], saved = [];
|
|
185
189
|
await q.route('**/api/records/kr-metrics/reading', (r) => { sent.push(JSON.parse(r.request().postData() || '{}')); r.fulfill({ contentType: 'application/json', body: '{"ok":true}' }); });
|
|
186
190
|
await q.route('**/api/premium-dashboards/save', (r) => { saved.push(JSON.parse(r.request().postData() || '{}')); r.fulfill({ contentType: 'application/json', body: '{"ok":true}' }); });
|
|
187
|
-
await q.click('#goalTbl [data-goal="krm-act"] .
|
|
191
|
+
await q.click('#goalTbl [data-goal="krm-act"] .nm');
|
|
188
192
|
const v = await until(() => vw(q));
|
|
189
193
|
/* re-pointed (batch 16 item 6, GsViewer): the reading against its line with the owner, the chart (its target, the milestones and the ship date
|
|
190
194
|
* of the work that moves it), why with the work that moves it, then the folds How I read it (with the readings), What it counts, History and
|
|
@@ -210,7 +214,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
210
214
|
ok('G1 the dashboard switch saves that dashboard without the goal', saved[0] && saved[0].id === 'pd-1' && saved[0].charts.join() === 'krm-ttfc,krm-gone' && saved[0].ws === 'w1', JSON.stringify(saved));
|
|
211
215
|
ok('G1 the work that moves it is listed under why, each a link to it', (await q.evaluate(() => [...document.querySelectorAll('#czViewer .okr-why a.ins-mvr')].filter((a) => /premium-initiative\.html/.test(a.href)).length)) === 2);
|
|
212
216
|
await vwClose(q);
|
|
213
|
-
await q.click('#goalTbl [data-goal="krm-nps"] .
|
|
217
|
+
await q.click('#goalTbl [data-goal="krm-nps"] .nm'); await until(() => vw(q));
|
|
214
218
|
const e1 = await txt('#czViewer .ins-etr', q), p1 = await txt('#czViewer .ins-etr [data-gx="add"]', q);
|
|
215
219
|
/* re-pointed (batch 6 item 1b): the goal Viewer has no primary, so the empty trend carries Add a reading, its next action */
|
|
216
220
|
ok('G1 a goal with one reading says a trend needs 2 readings and where the next comes from, with Add a reading (IsMenus)', /A trend needs 2 readings\./.test(e1) && p1 === 'Add a reading', e1 + ' | ' + p1);
|
|
@@ -307,12 +311,12 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
307
311
|
await q.fill('#ndAskIn', 'Are partners getting value? activation and uptime over 8 weeks'); await q.press('#ndAskIn', 'Enter'); await sleep(300);
|
|
308
312
|
const d1 = await q.evaluate(() => ({ name: document.querySelector('#ndName').value, qn: document.querySelector('#ndQ').value, list: [...document.querySelectorAll('#ndList [data-pk]')].map((r) => r.dataset.pk).join(), range: (document.querySelector('#sideBody [data-seg="Range"] [aria-checked="true"]') || {}).textContent, msg: document.querySelector('#ndMsg').textContent })); // re-pointed (insights fix): the describe message is under the describe box
|
|
309
313
|
ok('D1 Describe asks the describe route and fills the name, the question, the goals and the range, saying which words matched', last()[0] === '/api/insights-records/describe' && last()[1].text === 'Are partners getting value? activation and uptime over 8 weeks' && d1.name === 'Partner first week' && d1.qn === 'Are partners getting value?' && d1.list === 'krm-act,krm-up' && d1.range === '8w' && /Partner activation, Partner uptime/.test(d1.msg), JSON.stringify(d1));
|
|
310
|
-
await q.click('#goalTbl [data-goal="krm-ttfc"] .
|
|
314
|
+
await q.click('#goalTbl [data-goal="krm-ttfc"] .nm');
|
|
311
315
|
const s1 = await q.evaluate(() => ({ title: document.querySelector('#sideTitle').textContent, sel: [...document.querySelectorAll('#goalTbl [aria-selected="true"]')].map((r) => r.dataset.goal).join(), list: [...document.querySelectorAll('#ndList [data-pk]')].map((r) => r.dataset.pk + ':' + r.querySelectorAll('[data-v]').length + ':' + r.draggable).join(), forms: [...document.querySelectorAll('#ndList [data-pk]')[0].querySelectorAll('[data-v]')].map((b) => b.dataset.v).join(), pin: document.querySelector('#ndPin').getAttribute('aria-checked') }));
|
|
312
316
|
ok('D1 goals are picked in the table; each picked chart has its form (Line, Bars, Number, Meter) and can be dragged; the name is the title', s1.title === 'Partner first week' && s1.sel === 'krm-act,krm-ttfc,krm-up' && s1.list === 'krm-act:4:true,krm-up:4:true,krm-ttfc:4:true' && s1.forms === 'Line,Bars,Number,Meter' && s1.pin === 'false', JSON.stringify(s1));
|
|
313
317
|
await q.focus('#ndList [data-pk="krm-ttfc"]'); await q.keyboard.press('Alt+ArrowUp'); await sleep(100);
|
|
314
318
|
const ord = await q.evaluate(() => [...document.querySelectorAll('#ndList [data-pk]')].map((r) => r.dataset.pk).join());
|
|
315
|
-
await q.click('#goalTbl [data-goal="krm-act"] .
|
|
319
|
+
await q.click('#goalTbl [data-goal="krm-act"] .nm'); // re-pointed (insights fix, AgInsNewDash has no ×): pressing a picked row again takes its chart off
|
|
316
320
|
await q.click('#ndAdd'); await q.selectOption('#ndAddSel', 'krm-churn'); await sleep(100);
|
|
317
321
|
const ord2 = await q.evaluate(() => [...document.querySelectorAll('#ndList [data-pk]')].map((r) => r.dataset.pk).join());
|
|
318
322
|
ok('D1 the order moves (Alt+Arrow, as a drag does), a chart comes off, and a goal not in view can be added', ord === 'krm-act,krm-ttfc,krm-up' && ord2 === 'krm-ttfc,krm-up,krm-churn', JSON.stringify([ord, ord2]));
|
|
@@ -323,19 +327,19 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
323
327
|
ok('D1 the question is required; Save posts the name, the question, each goal with its form in order, the range and the pin, in one press', /question it answers/.test(need) && !!sv && sv[1].name === 'Partner first week' && sv[1].purpose === 'Are partners getting value?' && JSON.stringify(sv[1].charts) === JSON.stringify([{ goal: 'krm-ttfc', form: 'Line' }, { goal: 'krm-up', form: 'Bars' }, { goal: 'krm-churn', form: 'Line' }]) && sv[1].range === '26w' && sv[1].pin === true && sv[1].board === 'w1' && sv[1].ws === 'w1', JSON.stringify([need, sv]));
|
|
324
328
|
sent.length = 0;
|
|
325
329
|
/* the saved view and Edit chart */
|
|
326
|
-
R.setModel(mk({ ins: { charts: { w1: { 'pd-1': { 'krm-ttfc': { form: 'Bars', range: '8w', compare: '', target: false, forecast: true, note: 'Outage on Oct 1' } } } }, verdicts: {}, targets: {} } })); await q.reload(); await until(() => q.evaluate(() => document.querySelectorAll('#goalTbl .
|
|
330
|
+
R.setModel(mk({ ins: { charts: { w1: { 'pd-1': { 'krm-ttfc': { form: 'Bars', range: '8w', compare: '', target: false, forecast: true, note: 'Outage on Oct 1' } } } }, verdicts: {}, targets: {} } })); await q.reload(); await until(() => q.evaluate(() => document.querySelectorAll('#goalTbl .ins-row').length > 0));
|
|
327
331
|
await q.click('#viewChip'); await q.click('#viewMenu [data-view="pd-1"]'); await sleep(150);
|
|
328
332
|
const svw = await q.evaluate(() => ({ name: document.querySelector('#viewName').textContent, rows: [...document.querySelectorAll('#goalTbl [data-goal]')].map((r) => r.dataset.goal).join(), budgets: document.querySelectorAll('#goalTbl [data-budget]').length }));
|
|
329
333
|
ok('D2 View opens a saved dashboard on Goals: its goals in its order, and no budgets (a dashboard holds goals)', svw.name === 'Weekly partner review' && svw.rows === 'krm-act,krm-ttfc' && svw.budgets === 0, JSON.stringify(svw));
|
|
330
|
-
await q.click('#goalTbl [data-goal="krm-ttfc"] .
|
|
334
|
+
await q.click('#goalTbl [data-goal="krm-ttfc"] .nm'); await sleep(150);
|
|
331
335
|
const ce = await q.evaluate(() => ({ kind: document.querySelector('#side').dataset.kind, eye: document.querySelector('#sideEye').textContent, title: document.querySelector('#sideTitle').textContent, goal: document.querySelector('#chGoal').value, prev: !!document.querySelector('#chPrev svg.ins-ch2'), form: (document.querySelector('#sideBody [data-seg="Form"] [aria-checked="true"]') || {}).textContent, range: (document.querySelector('#sideBody [data-seg="Range"] [aria-checked="true"]') || {}).textContent, togs: [...document.querySelectorAll('#sideBody .ins-tog')].map((b) => b.id + ':' + b.getAttribute('aria-checked')).join(), ns: document.querySelectorAll('#sideBody .ins-ns').length, cmp: document.querySelector('#chCmp').value, note: document.querySelector('#chNote').value }));
|
|
332
336
|
ok('D2 a goal press on a saved dashboard opens Edit chart with that chart\'s saved form, range, comparison, target line, forecast and note', ce.kind === 'chart' && ce.eye === 'Chart on Weekly partner review' && ce.title === 'Time to first call' && ce.goal === 'krm-ttfc' && ce.prev && ce.form === 'Bars' && ce.range === '8w' && ce.togs === 'chTgt:false,chFc:true' && ce.ns === 0 && ce.cmp === '' && ce.note === 'Outage on Oct 1', JSON.stringify(ce));
|
|
333
337
|
ok('D2 the preview is drawn in the chart\'s form', await q.evaluate(() => document.querySelectorAll('#chPrev svg.ins-ch2 rect').length > 0));
|
|
334
338
|
await q.click('#sideBody [data-seg="Form"] [data-v="Line"]'); await q.fill('#chNote', 'Better after the kit'); await q.click('#sideGo'); await until(() => q.evaluate(() => document.querySelector('#side').hidden), 5000);
|
|
335
339
|
ok('D2 Save chart posts every setting of the chart on its dashboard', last()[0] === '/api/insights-records/chart' && last()[1].dash === 'pd-1' && last()[1].goal === 'krm-ttfc' && last()[1].form === 'Line' && last()[1].range === '8w' && last()[1].compare === '' && last()[1].target === false && last()[1].forecast === true && last()[1].note === 'Better after the kit' && last()[1].add === false, JSON.stringify(last()));
|
|
336
|
-
await q.click('#goalTbl [data-goal="krm-act"] .
|
|
340
|
+
await q.click('#goalTbl [data-goal="krm-act"] .nm'); await sleep(100); await q.selectOption('#chGoal', 'krm-up'); await q.click('#sideGo'); await until(() => q.evaluate(() => document.querySelector('#side').hidden), 5000);
|
|
337
341
|
ok('D2 Save chart with a goal not on the dashboard adds it there', last()[0] === '/api/insights-records/chart' && last()[1].goal === 'krm-up' && last()[1].add === true, JSON.stringify(last()));
|
|
338
|
-
await q.click('#goalTbl [data-goal="krm-act"] .
|
|
342
|
+
await q.click('#goalTbl [data-goal="krm-act"] .nm'); await sleep(100); await q.click('#chMore');
|
|
339
343
|
const cm = await q.evaluate(() => [...document.querySelectorAll('#chMenu button')].map((b) => b.textContent.replace(/\s+/g, ' ') + ':' + (b.disabled ? 'off' : 'on')).join('|'));
|
|
340
344
|
await q.click('#chRemove'); await until(() => q.evaluate(() => document.querySelector('#side').hidden), 5000);
|
|
341
345
|
ok('D2 ⋯ on a chart: Remove from dashboard saves it without that goal (a dashboard holds one chart for each goal, so Duplicate is off)', /^DuplicateA dashboard holds one chart for each goal:off\|Remove from dashboard/.test(cm) && last()[0] === '/api/premium-dashboards/save' && JSON.stringify(last()[1].charts) === JSON.stringify(['krm-ttfc', 'krm-gone']), JSON.stringify([cm, last()]));
|
|
@@ -480,10 +484,9 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
480
484
|
const R = await open({ w: 390, h: 844, theme }), q = R.page;
|
|
481
485
|
const m = await q.evaluate(() => { const vis = (b) => !b.closest('[hidden]') && b.getBoundingClientRect().height > 0; /* re-pointed (insights fix, AgInsPhone): a control keeps the design's size and its 44 px hit area is its ::after */
|
|
482
486
|
const hit = (b) => Math.max(b.getBoundingClientRect().height, parseFloat(getComputedStyle(b, '::after').height) || 0);
|
|
483
|
-
const small = [...document.querySelectorAll('#insBar button, #askWhy, #
|
|
484
|
-
return { over: document.documentElement.scrollWidth > innerWidth + 1, small, table: getComputedStyle(document.querySelector('#goalTbl')).display,
|
|
485
|
-
|
|
486
|
-
ok(`I11 at 390 px (${theme}) the goals are the same list with their dots, there is no sideways scroll and every control is 44 px`, !m.over && m.small.length === 0 && m.table === 'block' && m.rows === 'krm-act:Behind its line,krm-ttfc:Behind its line,krm-nps:Behind its line,krm-up:On its line,krm-churn:No reading yet', JSON.stringify(m));
|
|
487
|
+
const small = [...document.querySelectorAll('#insBar button, #askWhy, #goalCards .ins-card, #czFab')].filter((b) => vis(b) && hit(b) < 44).map((b) => (b.id || b.className) + ':' + Math.round(hit(b)));
|
|
488
|
+
return { over: document.documentElement.scrollWidth > innerWidth + 1, small, table: getComputedStyle(document.querySelector('#goalTbl')).display, cards: [...document.querySelectorAll('#goalCards .ins-card')].map((c) => c.dataset.goal + ':' + ((c.querySelector('.ins-ch .cz-pill') || {}).textContent || '')).join() }; });
|
|
489
|
+
ok(`I11 at 390 px (${theme}) the goals are cards with their status, the table is hidden, there is no sideways scroll and every control is 44 px`, !m.over && m.small.length === 0 && m.table === 'none' && m.cards === 'krm-act:Behind,krm-up:Ahead,krm-ttfc:Behind,krm-nps:Behind,krm-churn:', JSON.stringify(m));
|
|
487
490
|
await R.ctx.close();
|
|
488
491
|
}
|
|
489
492
|
|
|
@@ -519,8 +522,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
519
522
|
const H0 = await T.pressHeaders(base2), self = ((await (await fetch(base2 + '/api/briefing-premium/products')).json()).products || []).find((x) => x.primary);
|
|
520
523
|
await fetch(base2 + '/api/briefing-premium/products', { method: 'POST', headers: H0, body: JSON.stringify({ on: [self && self.ws] }) }); // the pick: this repository only
|
|
521
524
|
await pg.goto(base2 + '/premium-insights.html');
|
|
522
|
-
|
|
523
|
-
ok('E7 the real page draws that goal with the record\'s numbers against its target, a small count as one of two, and no script error', await until(() => pg.evaluate(() => { const r = document.querySelector('#goalTbl [data-goal="krm-a"]'), b = document.querySelector('#goalTbl [data-goal="krm-b"]'); return !!r && !!b && /\+10 of \+30 points|30%/.test(r.querySelector('.okr-t .note').textContent) && /^1 of 2\b/.test(b.querySelector('.okr-t .note').textContent); }), 20000) && errs.length === 0, errs.join(' | '));
|
|
525
|
+
ok('E7 the real page draws that goal with the record\'s numbers and its line, a small count as blocks, and no script error', await until(() => pg.evaluate(() => { const r = document.querySelector('#goalTbl [data-goal="krm-a"]'); return !!r && r.querySelector('.val b').textContent === '30%' && !!r.querySelector('svg.ins-spark') && document.querySelectorAll('#goalTbl [data-goal="krm-b"] .ins-blocks i.on').length === 1 && document.querySelectorAll('#goalTbl [data-goal="krm-b"] .ins-blocks i').length === 2; }), 20000) && errs.length === 0, errs.join(' | '));
|
|
524
526
|
const H = await T.pressHeaders(base2);
|
|
525
527
|
const made = await fetch(base2 + '/api/premium-dashboards/save', { method: 'POST', headers: H, body: JSON.stringify({ ws: m.board.ws, board: m.board.id, name: 'Partner review', purpose: 'The Monday partner review.', charts: [m.charts[0].id], main: true }) }).then((x) => x.status);
|
|
526
528
|
await pg.reload();
|
|
@@ -538,7 +540,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
538
540
|
const krFile = path.join(dir, 'planning', 'records', 'kr-metrics.jsonl'), recs = () => fs.readFileSync(krFile, 'utf8').trim().split('\n').map((x) => JSON.parse(x));
|
|
539
541
|
const landed = await until(() => /Weekly partners/.test(fs.readFileSync(krFile, 'utf8')), 8000);
|
|
540
542
|
const rec = landed ? recs().find((x) => x.fields && x.fields.metric === 'Weekly partners') : null;
|
|
541
|
-
ok('E10 New goal on the real page adds a KR metric record with its type, direction, numbers, date, period, objective, owner and source, and the page draws it', !!rec && rec.fields.type === 'Count' && rec.fields.direction === 'up' && rec.fields.baseline === 5 && rec.fields.target === 9 && rec.fields.pillar === 'Growth' && rec.fields.owner === 'Lee' && rec.fields.source === 'file' && rec.fields.period.kind === 'Quarter' && /^\d{4}-\d{2}-\d{2}$/.test(rec.fields.by) && await until(() => pg.evaluate(() => [...document.querySelectorAll('#goalTbl .
|
|
543
|
+
ok('E10 New goal on the real page adds a KR metric record with its type, direction, numbers, date, period, objective, owner and source, and the page draws it', !!rec && rec.fields.type === 'Count' && rec.fields.direction === 'up' && rec.fields.baseline === 5 && rec.fields.target === 9 && rec.fields.pillar === 'Growth' && rec.fields.owner === 'Lee' && rec.fields.source === 'file' && rec.fields.period.kind === 'Quarter' && /^\d{4}-\d{2}-\d{2}$/.test(rec.fields.by) && await until(() => pg.evaluate(() => [...document.querySelectorAll('#goalTbl .ins-row b')].some((b) => b.textContent === 'Weekly partners')), 8000), JSON.stringify(rec));
|
|
542
544
|
const post = (route, b, h = H) => fetch(base2 + '/api/insights-records/' + route, { method: 'POST', headers: h, body: JSON.stringify(Object.assign({ ws: m.board.ws, board: m.board.id }, b)) }).then(async (x) => ({ status: x.status, body: await x.json() }));
|
|
543
545
|
const bad1 = await post('goal', { name: 'Wrong way', type: 'Count', direction: 'Up', baseline: 9, target: 5, due: '2026-12-31' });
|
|
544
546
|
const done = await post('goal', { name: 'SOC 2 report', type: 'Done or not', due: '2026-12-15', steps: ['Scope', 'Audit'] });
|
|
@@ -567,12 +569,12 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
567
569
|
const R = await open({ model: mk({ boards: two }), pick: ['w1', 'w2'] }), q = R.page;
|
|
568
570
|
await q.route('**/api/insights-premium?ws=w2*', (r) => { asked.push(r.request().url()); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, state: 'ready', model: other }) }); });
|
|
569
571
|
await q.reload(); // the route above answers the second product from the first read on
|
|
570
|
-
const pf = await until(async () => { const x = await q.evaluate(() => ({ chip: (document.querySelector('#prodPick') || { getAttribute: () => '' }).getAttribute('aria-label'), all: (document.querySelector('#prodPick .ppk-all') || {}).textContent, groups: [...document.querySelectorAll('#goalTbl .
|
|
572
|
+
const pf = await until(async () => { const x = await q.evaluate(() => ({ chip: (document.querySelector('#prodPick') || { getAttribute: () => '' }).getAttribute('aria-label'), all: (document.querySelector('#prodPick .ppk-all') || {}).textContent, groups: [...document.querySelectorAll('#goalTbl .ins-grp')].map((g) => g.querySelector('[role="cell"]').textContent), rows: document.querySelectorAll('#goalTbl [data-goal]').length, brief: document.querySelector('#brief').textContent, budgets: document.querySelectorAll('#goalTbl [data-budget]').length })); return x.groups.includes('Billing') ? x : null; }, 8000);
|
|
571
573
|
ok('M1 two products ticked (the chip says All): Portfolio reads the other product once and groups every goal by product; budgets stay with their product', !!pf && pf.chip === 'Products: all 2' && pf.all === 'All' && pf.groups.slice(0, 2).join() === 'pmos,Billing' && pf.rows === 6 && /^Portfolio: 6 goals across 2 products/.test(pf.brief) && pf.budgets === 0 && asked.length === 1, JSON.stringify(pf));
|
|
572
574
|
await q.click('#prodPick'); const pm = await q.evaluate(() => [...document.querySelectorAll('#ppMenu [data-pp]')].map((b) => b.querySelector('b').textContent + ':' + ((b.querySelector('em') || {}).textContent || '') + ':' + b.getAttribute('aria-checked')).join());
|
|
573
575
|
ok('M1 the list counts each product\'s goals and ticks both', pm === 'All products::true,pmos:5 goals:true,Billing:1 goal:true', pm);
|
|
574
576
|
await q.keyboard.press('Escape');
|
|
575
|
-
await q.click('#goalTbl [data-goal="w2~krm-inv"] .
|
|
577
|
+
await q.click('#goalTbl [data-goal="w2~krm-inv"] .nm'); const gv = await until(() => vw(q));
|
|
576
578
|
ok('M1 a goal of another product opens its detail, named with its product and not on this product\'s dashboards', gv && /Invoices paid on time$/.test(gv.title) && /Billing/.test(gv.text) && !(await q.evaluate(() => document.querySelector('#czViewer [data-gx="dash"], #czViewer [data-gx="chart"]'))), JSON.stringify(gv));
|
|
577
579
|
await vwClose(q);
|
|
578
580
|
await sleep(100);
|
|
@@ -580,13 +582,13 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
580
582
|
await q.click('#prodPick'); await q.click('#ppMenu [data-pp="w2"]');
|
|
581
583
|
await Promise.all([q.waitForNavigation(), q.keyboard.press('Escape')]);
|
|
582
584
|
await until(() => q.evaluate(() => document.querySelectorAll('#goalTbl [data-goal]').length === 5), 8000);
|
|
583
|
-
ok('M1 unticking the other product saves the pick and leaves Portfolio', JSON.stringify(R.pk.posts) === '[["w1"]]' && (await q.evaluate(() => document.querySelector('#prodPick').getAttribute('aria-label'))) === 'Products: pmos' && (await q.evaluate(() => ![...document.querySelectorAll('#goalTbl .
|
|
585
|
+
ok('M1 unticking the other product saves the pick and leaves Portfolio', JSON.stringify(R.pk.posts) === '[["w1"]]' && (await q.evaluate(() => document.querySelector('#prodPick').getAttribute('aria-label'))) === 'Products: pmos' && (await q.evaluate(() => document.querySelectorAll('#goalTbl .ins-grp').length === 0 || ![...document.querySelectorAll('#goalTbl .ins-grp')].some((g) => /Billing/.test(g.textContent)))), JSON.stringify(R.pk.posts));
|
|
584
586
|
await R.ctx.close();
|
|
585
587
|
}
|
|
586
588
|
/* P: the phone (IsPhone): the goal detail full screen with Readings, Moved by and Dashboards; a report setup as a sheet */
|
|
587
589
|
{
|
|
588
590
|
const R = await open({ w: 390, h: 844 }), q = R.page;
|
|
589
|
-
await q.click('#
|
|
591
|
+
await q.click('#goalCards [data-goal="krm-act"]'); await until(() => vw(q));
|
|
590
592
|
/* re-pointed (batch 16 item 6, GsViewer phone): the same Viewer, full screen: the reading against its line, the chart, why, then the folds */
|
|
591
593
|
const ph = await q.evaluate(() => { const v = document.querySelector('#czViewer').getBoundingClientRect(), b = document.querySelector('#czViewer .cz-vw-body'); return { w: Math.round(v.width), tabs: [...document.querySelectorAll('#czViewer .czs-row b')].map((t) => t.textContent).join(), first: b.firstElementChild.className, order: [...b.children].map((x) => x.className.split(' ')[0]).join(), over: document.documentElement.scrollWidth > innerWidth }; });
|
|
592
594
|
ok('P1 on a phone the goal Viewer covers the screen: the reading first, the chart, why, then How I read it, What it counts, History and On dashboards', ph.w === 390 && ph.tabs === 'How I read it,What it counts,History,On dashboards' && ph.first === 'okr-vh' && /^okr-vh,ins-gbig,okr-why,czs-secs/.test(ph.order) && !ph.over, JSON.stringify(ph));
|
|
@@ -604,7 +606,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
604
606
|
/* I11 fidelity to the Agreed design (AgInsGoals, AgInsPhone): Nunito, the cozy panel, the pill tabs, the table, the strip and the six tiles */
|
|
605
607
|
for (const [w, h] of [[1440, 900], [390, 844]]) {
|
|
606
608
|
const R = await open({ w, h }); await sleep(300);
|
|
607
|
-
const f = await R.page.evaluate(() => { const cs = (s) => getComputedStyle(document.querySelector(s)); const main = cs('main.ins'), tab = cs('#viewChip'), strip = cs('#insHero'), row = document.querySelector('#goalTbl .
|
|
609
|
+
const f = await R.page.evaluate(() => { const cs = (s) => getComputedStyle(document.querySelector(s)); const main = cs('main.ins'), tab = cs('#viewChip'), strip = cs('#insHero'), row = document.querySelector('#goalTbl .ins-row').getBoundingClientRect();
|
|
608
610
|
return { font: cs('body').fontFamily, radius: main.borderTopLeftRadius, bg: main.backgroundColor, tabBg: tab.backgroundColor, tabR: tab.borderTopLeftRadius, tabW: tab.fontWeight, stripR: strip.borderTopLeftRadius, stripBg: strip.backgroundColor, rowH: Math.round(row.height), over: document.documentElement.scrollWidth > innerWidth, fab: document.querySelector('#czFab').getBoundingClientRect().width, fabX: Math.round(document.querySelector('#czFab').getBoundingClientRect().left) }; });
|
|
609
611
|
const phone = w < 720;
|
|
610
612
|
ok(`I11 the page wears the Agreed design at ${w} px: Nunito, the white panel, the pill View chip, the well strip, 56 px floating button`, /^Nunito/.test(f.font) && f.radius === (phone ? '0px' : '28px') && (phone || f.bg === 'rgb(255, 255, 255)') && f.tabBg === 'rgb(244, 243, 240)' && f.tabR === '999px' && +f.tabW >= 700 && (phone || (f.stripR === '16px' && f.stripBg === 'rgb(244, 243, 240)' && f.rowH >= 60)) && !f.over && f.fab === 56 && (phone ? f.fabX > 300 : f.fabX === 36), JSON.stringify(f));
|
|
@@ -108,7 +108,8 @@ const vw = () => { const v = document.querySelector('#czViewer:not([hidden])');
|
|
|
108
108
|
ok('R2 the list head is the greeting (Home A + C, HvAC), and New offers its four kinds, one word each (batch 14 item 10, canvas PmAHome)', await p.evaluate(() => /^Good (morning|afternoon|evening)$/.test(document.querySelector('#hmList .hm-hd [data-hm-day] b').textContent)) && !!nw && nw.length === 4 && /^Task/.test(nw[0]) && /^Chat/.test(nw[1]) && /^Recording/.test(nw[2]) && /^Initiative/.test(nw[3]), JSON.stringify(nw));
|
|
109
109
|
ok('R2 New is headed New and has no sub lines (no "What is it for?")', await p.evaluate(() => { const m = document.querySelector('#hmMenu:not([hidden])'); return !!m && m.querySelector('.hm-ml').textContent === 'New' && !m.querySelector('em'); }));
|
|
110
110
|
await p.keyboard.press('Escape');
|
|
111
|
-
|
|
111
|
+
// batch 18 item 15 (TbT1Split) put one icon-only fold back on the list head, after New: it folds the list to the rail
|
|
112
|
+
ok('R2 the list head has one icon-only fold, last, named for a screen reader', await p.evaluate(() => { const f = document.querySelectorAll('#hmList .hm-hd [data-hm-fold]'); return f.length === 1 && !f[0].textContent.trim() && f[0].getAttribute('aria-label') === 'Fold the list to the rail' && !f[0].nextElementSibling; })); }
|
|
112
113
|
|
|
113
114
|
/* R4 */
|
|
114
115
|
{ const L = await p.evaluate((sel) => ({ rows: [...document.querySelectorAll(sel)].map((r) => ({ id: r.dataset.id, t: r.querySelector('.hm-rt b').textContent, h: (r.querySelector('.hm-rm') || {}).title || '', mark: !!r.querySelector('.hv-mk .hv-d, .hv-mk .hv-ck, .hv-mk svg') })), more: (document.querySelector('[data-hm-allneeds]') || {}).textContent || '', sel: (document.querySelector('.hm-r.sel') || {}).dataset ? document.querySelector('.hm-r.sel').dataset.id : null }), NEEDS);
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.444.0",
|
|
4
|
+
"at": "2026-10-28T16:25:00.066Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1088,
|
|
9
|
+
"t": "Arrange panels, manage tasks in the stage card, goals dashboard (batch 18 items 15, 16, 11 gap)",
|
|
10
|
+
"s": "Arrange panels, manage tasks in the stage card, goals dashboard (batch 18 items 15, 16, 11 gap)"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"v": "0.443.0",
|
|
4
16
|
"at": "2026-10-28T14:17:24.774Z",
|
|
@@ -6,11 +6,14 @@
|
|
|
6
6
|
* metrics with their recipe, counts, live read and checks. The write routes are stubbed so each press can be read back.
|
|
7
7
|
* T GcJ1aTable: the drafted metrics are one table (Proposed metric, How it is counted, Now read hh:mm, Target, From, how often), grouped, with
|
|
8
8
|
* ✕ / ✓; no second North Star row; ✓ keeps that row and the toast names its rhythm, never "every morning"
|
|
9
|
-
* C GcJ1Drafts: a row opens its check panel: how it is counted, the live read, my checks, your number, how often
|
|
9
|
+
* C GcJ1Drafts: a row opens its check panel: how it is counted, the live read, my checks, your number, how often with "it needs a full week",
|
|
10
|
+
* the query open on its lines, ↗ ✎ ↻ Keep;
|
|
10
11
|
* ↻ posts the live read; a number posts the compare
|
|
11
12
|
* S GcS3Differs: mine beside yours, why, the suggestion; ✓ posts the pick
|
|
12
|
-
* F GcJ2FirstMonday:
|
|
13
|
-
*
|
|
13
|
+
* F GcJ2FirstMonday: the dashboard (North Star card, then Key results · Now, of target · So far · By its date · Moved by); one reading: a grey
|
|
14
|
+
* dot for So far, "Known after 3 readings" with the day of the 3rd; the North Star's line waits in a dashed box for the 2nd
|
|
15
|
+
* K GcJ4Full, GcR3Goal: from the 3rd reading the dashboard is Iq8Overview; a key result's Viewer leads with the counts as a fraction, not its
|
|
16
|
+
* chart, From … with the rhythm and the last and next read said once, ↻ in the header; the chart's labels never overlap
|
|
14
17
|
* R GcR4Failed: the last good number stays, the reason, Reconnect posts the drafted connect fix
|
|
15
18
|
* H GcR5Held: the held reading is not drawn; why, its checks, the Jira draft; ✓✓ files it
|
|
16
19
|
* P on a phone: the table and the check panel with no sideways scroll. PMOS_SHOTS=<dir> also saves screenshots. */
|
|
@@ -149,11 +152,11 @@ const FIX = { id: 'fx-amp', kind: 'connect', goal: 'krm-act', connector: 'Amplit
|
|
|
149
152
|
/* C · the check panel */
|
|
150
153
|
await p.click('[data-gc-row="d-ns"] .gc-hw');
|
|
151
154
|
const c1 = await vw(p);
|
|
152
|
-
const cp = await p.evaluate(() => { const V = document.querySelector('#czViewer'); return { title: (V.querySelector('.cz-vw-title') || {}).textContent || '', sel: !!document.querySelector('[data-gc-row="d-ns"].sel'), q: !!V.querySelector('details.gc-q
|
|
155
|
+
const cp = await p.evaluate(() => { const V = document.querySelector('#czViewer'); return { title: (V.querySelector('.cz-vw-title') || {}).textContent || '', sel: !!document.querySelector('[data-gc-row="d-ns"].sel'), q: !!V.querySelector('details.gc-q[open] pre'),
|
|
153
156
|
foot: [...V.querySelectorAll('.gc-foot .cz-ib')].map((b) => b.getAttribute('aria-label') + '|' + b.textContent.trim()) }; });
|
|
154
157
|
ok('C1 a row opens its check panel beside the table, the row marked', /Weekly signed-in shoppers/.test(cp.title) && cp.sel, JSON.stringify(cp));
|
|
155
158
|
ok('C2 how it is counted with the live read, then my checks', /How it is counted Shoppers who signed in at least once in the week, each person once 38\.8k read .*week of 19 Oct My checks No segment reads 0/.test(c1 || '') && /It is less than all shoppers \(61k\), as it must be/.test(c1), c1);
|
|
156
|
-
ok('C3 "No other number to compare yet", the input for yours, how often once, and the query
|
|
159
|
+
ok('C3 "No other number to compare yet", the input for yours, how often once with why (it needs a full week), and the query open on its lines', /No other number to compare yet: type yours/.test(c1) && /How often every Monday 07:00 · it needs a full week/.test(c1) && (c1.match(/every Monday/g) || []).length === 1 && cp.q, c1);
|
|
157
160
|
ok('C4 ↗ ✎ ↻ and Keep, icon-only', cp.foot.length === 4 && /^Open in Amplitude/.test(cp.foot[0]) && /^Edit/.test(cp.foot[1]) && /^Read it now/.test(cp.foot[2]) && /^Keep\|$/.test(cp.foot[3]) && cp.foot.every((f) => /\|$/.test(f)), cp.foot.join(', '));
|
|
158
161
|
ok('C5 the old "test read" wording is gone', !/test read/i.test(c1) && !/test read/i.test(await txt(p, '#draftBox')));
|
|
159
162
|
await shot(p, 'GcJ1Drafts-built');
|
|
@@ -175,21 +178,32 @@ const FIX = { id: 'fx-amp', kind: 'connect', goal: 'krm-act', connector: 'Amplit
|
|
|
175
178
|
await A.ctx.close();
|
|
176
179
|
|
|
177
180
|
/* F · the first readings */
|
|
178
|
-
const B = await open({ m: model('first'), rows: [], ready: '#goalTbl .
|
|
179
|
-
const f1 = await B.page.evaluate(() => { const r = document.querySelector('#goalTbl [data-goal="krm-act"]'); return {
|
|
180
|
-
|
|
181
|
+
const B = await open({ m: model('first'), rows: [], ready: '#goalTbl .ins-row' });
|
|
182
|
+
const f1 = await B.page.evaluate(() => { const r = document.querySelector('#goalTbl [data-goal="krm-act"]'), c = (s) => (r.querySelector(s) || {}).textContent || ''; return { head: [...document.querySelectorAll('#goalTbl .ins-th [role="columnheader"]')].map((h) => h.childNodes[0].textContent.trim()).join('|'), now: c('.val'), dot: !!r.querySelector('.sofar .ins-dot1') && !r.querySelector('.sofar svg'), pace: c('.pace'), bar: !!r.querySelector('.ins-bar1'),
|
|
183
|
+
ns: (document.querySelector('#nsRow .ins-nsc') || {}).innerText || '', wait: !!document.querySelector('#nsRow .ins-nsc .gc-wait') && !document.querySelector('#nsRow .ins-nsch'), seg: !!document.querySelector('#nsRow .cz-seg'), inputs: !!document.querySelector('#nsRow .ins-nsi'),
|
|
184
|
+
line: document.querySelector('#brief').textContent + ' ' + document.querySelector('#insWhy').textContent }; });
|
|
185
|
+
ok('F0 the dashboard: the North Star card, then one table Key results · Now, of target · So far · By its date · Moved by', f1.head === 'Key results|Now, of target|So far|By its date|Moved by', JSON.stringify(f1));
|
|
186
|
+
ok('F1 one reading: the number of its target, a grey dot for So far, "Known after 3 readings" and the day of the 3rd, Mon 16 Nov, and no bar yet', /^\S+ of \S+$/.test(f1.now.trim()) && f1.dot && /^Known after 3 readings\s*Mon 16 Nov$/.test(f1.pace.trim()) && !f1.bar, JSON.stringify(f1));
|
|
187
|
+
ok('F1b the North Star: its number with its source and time, the line waiting in a dashed box for the 2nd reading, no span buttons yet', /North Star/.test(f1.ns) && /Amplitude · Mon 2 Nov, 07:02/.test(f1.ns) && /The line starts with the 2nd reading, Mon 9 Nov/.test(f1.ns) && f1.wait && !f1.seg, JSON.stringify(f1));
|
|
181
188
|
ok('F2 the ✦ line: the first readings are in; one reading is a starting point, not a trend', /^The first readings are in/.test(f1.line) && /One reading is a starting point, not a trend/.test(f1.line), f1.line);
|
|
182
189
|
await shot(B.page, 'GcJ2FirstMonday-built');
|
|
183
|
-
await B.page.click('#goalTbl [data-goal="krm-act"] .
|
|
190
|
+
await B.page.click('#goalTbl [data-goal="krm-act"] .nm');
|
|
184
191
|
const f2 = await vw(B.page);
|
|
185
192
|
ok('F3 the Viewer waits for the 2nd reading instead of drawing a line', /The line starts with the 2nd reading, Mon 9 Nov/.test(f2 || '') && /pace known after 3 readings/.test(f2 || ''), f2);
|
|
186
193
|
await B.ctx.close();
|
|
187
194
|
|
|
188
195
|
/* K · a key result's panel */
|
|
189
|
-
const K = await open({ m: model('kr'), rows: [], ready: '#goalTbl .
|
|
190
|
-
await K.page.
|
|
196
|
+
const K = await open({ m: model('kr'), rows: [], ready: '#goalTbl .ins-row' });
|
|
197
|
+
const k0 = await K.page.evaluate(() => ({ ns: !!document.querySelector('#nsRow .ins-nsch'), seg: [...document.querySelectorAll('#nsRow .cz-seg button')].map((b) => b.textContent).join('|'), spark: document.querySelectorAll('#goalTbl .ins-row .sofar svg').length }));
|
|
198
|
+
ok('K0 from the 3rd reading the dashboard is Production Iq8Overview: the North Star line with its spans, a line per key result', k0.ns && k0.seg === '4 weeks|12 weeks|This quarter vs last' && k0.spark > 0, JSON.stringify(k0));
|
|
199
|
+
await K.page.click('#goalTbl [data-goal="krm-act"] .nm');
|
|
191
200
|
const k1 = await vw(K.page);
|
|
192
|
-
const kh = await K.page.evaluate(() => ({ read: !!document.querySelector('#czViewer [data-cz-act="gc-read"], #czViewer button[aria-label="Read it now"]'), folds: [...document.querySelectorAll('#czViewer .czs-row b')].map((b) => b.textContent)
|
|
201
|
+
const kh = await K.page.evaluate(() => { const B = document.querySelector('#czViewer .ins-vbody'), kr = B && B.querySelector('.gc-kr'), ch = B && B.querySelector('.ins-gbig'); return { read: !!document.querySelector('#czViewer [data-cz-act="gc-read"], #czViewer button[aria-label="Read it now"]'), folds: [...document.querySelectorAll('#czViewer .czs-row b')].map((b) => b.textContent),
|
|
202
|
+
first: !!(kr && ch && (kr.compareDocumentPosition(ch) & Node.DOCUMENT_POSITION_FOLLOWING)) }; });
|
|
203
|
+
ok('K0b the panel leads with the number and how it is counted, not with its chart', kh.first, JSON.stringify(kh));
|
|
204
|
+
const lb = await K.page.evaluate(() => { const T = [...document.querySelectorAll('#czViewer .ins-gch .msl, #czViewer .ins-gch .shipl')].map((t) => ({ s: t.textContent, r: t.getBoundingClientRect() }));
|
|
205
|
+
const hit = []; for (let i = 0; i < T.length; i++) for (let j = i + 1; j < T.length; j++) { const a = T[i].r, b = T[j].r; if (a.left < b.right && b.left < a.right && a.top < b.bottom && b.top < a.bottom) hit.push(T[i].s + ' × ' + T[j].s); } return { n: T.length, hit }; });
|
|
206
|
+
ok('K0c the chart\'s release and milestone labels (Deliver, Evaluate) never overlap', lb.n >= 3 && !lb.hit.length, JSON.stringify(lb));
|
|
193
207
|
ok('K1 how it is counted as the two counts: 1,212 over 6,000 = 20.2%, week of 9 Nov', /How it is counted 1,212 checkouts stopped at login 6,000 checkouts reached login = 20\.2%, week of 9 Nov/.test(k1 || ''), k1);
|
|
194
208
|
ok('K2 From Amplitude, its chart, every Monday 07:00; last and next read said once', /From Amplitude, chart “Checkout funnel”, every Monday 07:00\. Last Mon 16 Nov, next Mon 23 Nov\./.test(k1 || '') && (k1.match(/every Monday/g) || []).length === 1, k1);
|
|
195
209
|
ok('K3 the last read with its checks, and the query', /Last read Mon 16 Nov, 07:02/.test(k1) && /The last 8 weeks rise slowly/.test(k1) && /The query Amplitude · chart “Checkout funnel” event login_success/.test(k1), k1);
|
|
@@ -200,12 +214,12 @@ const FIX = { id: 'fx-amp', kind: 'connect', goal: 'krm-act', connector: 'Amplit
|
|
|
200
214
|
await K.ctx.close();
|
|
201
215
|
|
|
202
216
|
/* R · a read that failed */
|
|
203
|
-
const R = await open({ m: model('failed'), rows: [FIX], ready: '#goalTbl .
|
|
204
|
-
const r0 = await R.page.evaluate(() => ({ meta: document.querySelector('#goalTbl [data-goal="krm-act"] .
|
|
205
|
-
ok('R1 the row keeps the last good reading and says it was not read', /^20\.2% of
|
|
217
|
+
const R = await open({ m: model('failed'), rows: [FIX], ready: '#goalTbl .ins-row' });
|
|
218
|
+
const r0 = await R.page.evaluate(() => ({ meta: document.querySelector('#goalTbl [data-goal="krm-act"] .val').textContent, line: document.querySelector('#brief').textContent + ' ' + document.querySelector('#insWhy').textContent }));
|
|
219
|
+
ok('R1 the row keeps the last good reading and says it was not read', /^20\.2% of \S+\s*not read Mon 16 Nov$/.test(r0.meta.trim()), r0.meta);
|
|
206
220
|
ok('R2 the ✦ line: I couldn’t read it, the reason the source gave, reconnect and I read it straight away', /^I couldn’t read Partner activation on Monday\. Amplitude said your login has expired\. Reconnect it and I read it straight away\./.test(r0.line), r0.line);
|
|
207
221
|
ok('R2b the drafted reconnect is not said again under the row', !(await R.page.$('#goalTbl [data-goal="krm-act"] [data-draft="fx-amp"]')));
|
|
208
|
-
await R.page.click('#goalTbl [data-goal="krm-act"] .
|
|
222
|
+
await R.page.click('#goalTbl [data-goal="krm-act"] .nm');
|
|
209
223
|
const r1 = await vw(R.page);
|
|
210
224
|
ok('R3 the Viewer: the last good number, when it was not read and why, and that no number was guessed', /from Mon 9 Nov, the last good reading/.test(r1 || '') && /Mon 16 Nov, 07:02 · not read Amplitude said your login has expired\. I did not guess a number\./.test(r1 || ''), r1);
|
|
211
225
|
ok('R4 the counts are not known for this week', /\? checkouts stopped at login \? checkouts reached login = not known for this week/.test(r1 || ''), r1);
|
|
@@ -215,12 +229,12 @@ const FIX = { id: 'fx-amp', kind: 'connect', goal: 'krm-act', connector: 'Amplit
|
|
|
215
229
|
await R.ctx.close();
|
|
216
230
|
|
|
217
231
|
/* H · a held reading */
|
|
218
|
-
const H = await open({ m: model('held'), rows: [TICKET], ready: '#nsRow .
|
|
219
|
-
const h0 = await H.page.evaluate(() => ({ meta: document.querySelector('#nsRow
|
|
220
|
-
ok('H1 the
|
|
232
|
+
const H = await open({ m: model('held'), rows: [TICKET], ready: '#nsRow .ins-nsc' });
|
|
233
|
+
const h0 = await H.page.evaluate(() => ({ meta: document.querySelector('#nsRow .ins-nsv').innerText.replace(/\s+/g, ' '), line: document.querySelector('#brief').textContent + ' ' + document.querySelector('#insWhy').textContent }));
|
|
234
|
+
ok('H1 the North Star keeps its last good reading, says so, and never shows the held one', /the last good reading, Mon 16 Nov/.test(h0.meta) && !/52\.3k/.test(h0.meta), h0.meta);
|
|
221
235
|
ok('H2 the ✦ line: I held back one reading of the North Star', /^I held back one reading of the North Star\. Moved more than 3× a normal week\. Check it in the side panel\./.test(h0.line), h0.line);
|
|
222
236
|
ok('H2b the held reading\'s drafted ticket is said in the panel, not again under the row', !(await H.page.$('#nsRow [data-draft="tk-held"]')));
|
|
223
|
-
await H.page.click('#nsRow [data-
|
|
237
|
+
await H.page.click('#nsRow [data-nsopen]');
|
|
224
238
|
const h1 = await vw(H.page);
|
|
225
239
|
ok('H3 the Viewer: the last good number, the held reading with why and its checks', /the last good reading, Mon 16 Nov/.test(h1 || '') && /Mon 23 Nov · read 52\.3k · held Moved more than 3× a normal week/.test(h1 || '') && /Both counts came back/.test(h1 || ''), h1);
|
|
226
240
|
ok('H4 the drafted Jira ticket, and "(held)" said once in From', /I drafted a Jira ticket: “login_success fires twice on app 5\.2”/.test(h1 || '') && /Last Mon 23 Nov \(held\), next Mon 30 Nov\./.test(h1 || ''), h1);
|
package/workspace/guide/home.md
CHANGED
|
@@ -102,6 +102,11 @@ Press an initiative's name in the list, or open `?ini=<id>`. The list stays as i
|
|
|
102
102
|
- A key that PMOS did not read from Jira is only text in the name. The task stays a PMOS task with its box.
|
|
103
103
|
- **Set a Jira ticket's dates.** Press the dates of a Jira ticket in the List, or drag its bar on the Timeline, as you do for a task. PMOS keeps the start and due days and shows them in place of the sprint end. Jira does not change. The status and the name stay Jira's.
|
|
104
104
|
- **Tasks** show one row (one group) for each stage of the workflow, in order. Finished stages and later stages are never merged into one row; they start folded, and the current stage and any stage with a late task start open.
|
|
105
|
+
- **Change a task where it is.** In the List, press a task's name. The row opens in place: change the name (Enter saves), the status, and the dates. Only one row is open at a time. Esc closes it. The ⋯ after the dates has **Milestone** (or **Make it a plain task**), **Move to a stage**, **Open the task card** and **Delete task**. A milestone has one date: its due day. Each change shows **Undo**.
|
|
106
|
+
- In the List, a row shows the dates at the right. On a phone, it shows only the due day. A task with no dates shows no date; open the row to set them.
|
|
107
|
+
- **Add a task to a stage.** Press **+** on an open stage. The field opens at the top of that stage. Enter adds the task and keeps the field open for the next one. **Dates** is optional. Esc closes the field.
|
|
108
|
+
- **Move a task between stages.** On a computer, drag the grip at the left of a row. On a phone, press and hold the task's name, then drag. Drop it on a stage name to put it last in that stage, or between two rows to put it there. The status and the dates do not change. The message shows **Undo**.
|
|
109
|
+
- A linked Jira ticket opens in place too. Its name and status stay Jira's ("In Progress in Jira · read 4 min ago"). Its dates can change, and it can be a milestone. It has no **Delete**.
|
|
105
110
|
- **Delete a task.** Press the caret under a task's box (on a phone, press and hold the box) and press the trash at the end of the status picker. The task goes at once and the message shows **Undo**. In the Task Viewer, the trash is the last icon of the Status row, and **Delete** is the last entry of its ⋯ menu. You can delete every PMOS task, also a task that Claude planned in the breakdown and a task that a stage's To finish list made. A deleted To finish task does not come back when the stage is read again or when the initiative moves back to that stage. A Jira ticket has no Delete: change it in Jira. A task deleted in a draft leaves only the draft.
|
|
106
111
|
|
|
107
112
|
## Back and forward
|
|
@@ -158,7 +158,7 @@ const FINDING = { id: 'rf-0123456789', name: 'Partner numbers to Lee', why: 'You
|
|
|
158
158
|
await vClose(p);
|
|
159
159
|
|
|
160
160
|
/* ── G: a key result's Viewer carries the press ── */
|
|
161
|
-
await p.click('#goalTbl .
|
|
161
|
+
await p.click('#goalTbl .ins-row .nm');
|
|
162
162
|
const gp = await until(() => p.evaluate(() => { const b = document.querySelector('#czViewer:not([hidden]) [data-cz-vw-p="report"]'); return b ? { label: b.getAttribute('aria-label'), text: b.textContent.trim() } : null; }), 4000);
|
|
163
163
|
ok('G a key result\'s Viewer has the report icon', !!gp && gp.label === 'Make a report from this' && !gp.text, JSON.stringify(gp));
|
|
164
164
|
if (gp) { await p.click('#czViewer [data-cz-vw-p="report"]'); await until(() => A.gets.some((g) => /^goal:/.test(g.scope)), 3000); ok('G it opens the draft for that one goal', A.gets.some((g) => /^goal:/.test(g.scope))); }
|
|
@@ -316,7 +316,7 @@ function build(f) {
|
|
|
316
316
|
// the start too: the Tasks Timeline draws a bar from the start to the due day (batch 9 item 5b)
|
|
317
317
|
taskBy.get(w.ini).push({ uid: w.uid, title: clip(w.title || '', 160), status: w.status || 'To do', owner: w.owner || '', start: w.start || '', end: w.end || '', ...(w.from ? { from: { stage: w.from.stage, finish: w.from.finish } } : {}),
|
|
318
318
|
// one view (feedback batch 6 item 1): its place in the breakdown, and a breakdown item's own stage and order
|
|
319
|
-
...(typeof w.section === 'string' ? { section: w.section } : {}), ...(w.itemStage ? { itemStage: w.itemStage } : {}), ...(Number.isFinite(w.order) ? { order: w.order } : {}), ...(w.store === 'item' ? { item: true } : {}), ...(w.milestone ? { milestone: true } : {}) });
|
|
319
|
+
...(typeof w.section === 'string' ? { section: w.section } : {}), ...(w.itemStage ? { itemStage: w.itemStage } : {}), ...(Number.isFinite(w.order) ? { order: w.order } : {}), ...(Number.isFinite(w.rank) ? { rank: w.rank } : {}), ...(w.store === 'item' ? { item: true } : {}), ...(w.milestone ? { milestone: true } : {}) });
|
|
320
320
|
}
|
|
321
321
|
// the milestones of each initiative (feedback batch 11 item 3): its tasks flagged ◇, PMOS and Jira alike, at their due dates. Won't do and
|
|
322
322
|
// Archived take one off the timeline; one with no due date is not drawn (the Tasks list asks for the date)
|