create-pmos 0.660.0 → 0.662.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 +15 -9
- 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-insights-test.js +9 -9
- package/workspace/changelog.json +14 -8
- package/workspace/goals-clear-ui-test.js +12 -12
- package/workspace/guide/intelligence-okr-goals.md +12 -1
- package/workspace/guide/routine.md +4 -5
- package/workspace/intel-report-ui-test.js +1 -1
- package/workspace/intelligence-gaps-ui-test.js +1 -1
- package/workspace/okr-goals-ui-test.js +3 -3
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/panels-test.js +2 -2
- package/workspace/public/pm/cozy-insights.css +78 -65
- package/workspace/public/pm/cozy-routine-detail.js +99 -0
- package/workspace/public/pm/cozy-routine-model.js +2 -2
- package/workspace/public/pm/cozy-routine.css +64 -66
- package/workspace/public/pm/cozy-routine.js +127 -38
- package/workspace/public/pm/premium-insights.js +183 -73
- package/workspace/public/premium-intelligence.html +38 -24
- package/workspace/public/premium-routine.html +16 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.662.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": {
|
|
@@ -34,21 +34,27 @@
|
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
36
|
{
|
|
37
|
-
"v": "0.
|
|
38
|
-
"at": "2026-11-
|
|
37
|
+
"v": "0.662.0",
|
|
38
|
+
"at": "2026-11-22T04:06:35.609Z",
|
|
39
39
|
"f": 4,
|
|
40
40
|
"prs": [
|
|
41
|
-
{
|
|
42
|
-
"n": 1444,
|
|
43
|
-
"t": "Library is built from the design system's blocks",
|
|
44
|
-
"s": "Library is built from the design system's blocks",
|
|
45
|
-
"k": "new"
|
|
46
|
-
},
|
|
47
41
|
{
|
|
48
42
|
"n": 1445,
|
|
49
43
|
"t": "Pmos design drift, the design drift guard",
|
|
50
44
|
"s": "Pmos design drift, the design drift guard",
|
|
51
45
|
"k": "new"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"n": 1449,
|
|
49
|
+
"t": "Rebuild the Intelligence page from Komorebi blocks",
|
|
50
|
+
"s": "Rebuild the Intelligence page from Komorebi blocks",
|
|
51
|
+
"k": "new"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"n": 1442,
|
|
55
|
+
"t": "Routine is built from the design system's blocks",
|
|
56
|
+
"s": "Routine is built from the design system's blocks",
|
|
57
|
+
"k": "new"
|
|
52
58
|
}
|
|
53
59
|
]
|
|
54
60
|
},
|
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-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-22T04:06:31Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-22T04:06:31Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-22T04:06:31Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -78,7 +78,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
78
78
|
if (r.request().method() === 'POST') { pk.on = JSON.parse(r.request().postData() || '{}').on; pk.posts.push(pk.on); }
|
|
79
79
|
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) })) }) });
|
|
80
80
|
});
|
|
81
|
-
await page.goto(BASE + '/premium-intelligence.html?theme=' + theme + q);
|
|
81
|
+
await page.goto(BASE + '/premium-intelligence.html?theme=' + theme + '&tab=goals' + q); // key results live on Goals: ?tab=goals shows them here (intelligence-ds-page)
|
|
82
82
|
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);
|
|
83
83
|
return { ctx, page, errors, posts, up, pk, calls: () => calls, setModel: (m) => { current = m; } };
|
|
84
84
|
};
|
|
@@ -123,7 +123,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
123
123
|
ok('B1 the filter is chips by status, owner and kind; the owners are the goals\' owners and the work that moves them', fl.heads === 'Status,Owner,Kind' && fl.status === 'Off track,On track,Hit,No readings' && fl.owners === 'Dara,Lee,Mira' && fl.kinds === 'Goals,Health budgets' && /status, owner or kind/.test(fl.label), JSON.stringify(fl));
|
|
124
124
|
// re-pointed (U3): ⋯ is Reports and dashboards and Export CSV; About moved to the guide, Sources is Settings › Connectors, Metrics and Delivery trends left the menu
|
|
125
125
|
await p.click('#moreB'); const mo = await p.evaluate(() => [...document.querySelectorAll('#moreMenu [data-more]')].map((b) => b.dataset.more + ':' + (b.disabled ? 'off' : 'on')).join()); await p.keyboard.press('Escape');
|
|
126
|
-
ok('B1 ⋯ holds Reports and dashboards and Export CSV
|
|
126
|
+
ok('B1 ⋯ holds Reports and dashboards, Key results here and Export CSV (U3, intelligence-ds-page)', mo === 'library:on,krs:on,export:on', mo);
|
|
127
127
|
{ const R = await open(), q = R.page; await q.route('**/api/insights-records/export*', (r) => r.fulfill({ status: 200, contentType: 'text/csv', headers: { 'Content-Disposition': 'attachment; filename="insights-goals.csv"' }, body: 'id\n' }));
|
|
128
128
|
const [rq] = await Promise.all([q.waitForRequest(/\/api\/insights-records\/export/), (async () => { await q.click('#moreB'); await q.click('#moreMenu [data-more="export"]'); })()]);
|
|
129
129
|
const u = new URL(rq.url());
|
|
@@ -281,9 +281,9 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
281
281
|
|
|
282
282
|
/* L1 the strip */
|
|
283
283
|
{ const hero = await p.evaluate(() => ({ eye: document.querySelector('#insEye').textContent, head: document.querySelector('#brief').textContent, why: document.querySelector('#insWhy').textContent, ask: document.querySelector('#askWhy').getAttribute('href') }));
|
|
284
|
-
const pg = await p.evaluate(() =>
|
|
284
|
+
const pg = await p.evaluate(() => (document.querySelector('#insOf') || {}).textContent || '');
|
|
285
285
|
/* re-pointed (batch 16 item 6, GsM3): the ✦ line about the goals leads; the strongest finding is the next page */
|
|
286
|
-
ok('L1 the ✦ strip leads the page with the goal furthest behind and why (the period chip says the day, so the strip does not); Ask why opens Home with the question;
|
|
286
|
+
ok('L1 the ✦ strip leads the page with the goal furthest behind and why (the period chip says the day, so the strip does not); Ask why opens Home with the question; ‹ › page through the findings, 1 of N', hero.eye === '' && /^1 of [3-9]/.test(pg) && hero.head === 'Partner activation is behind its line: 28% of 50%, its line says 38%. 2 other goals are behind too.' && !!hero.why && /^\/premium\.html\?ws=w1&ask=insights&q=Why/.test(hero.ask), JSON.stringify(hero));
|
|
287
287
|
await p.click('#insPg [data-ins="1"]'); await sleep(80);
|
|
288
288
|
const f1 = await p.evaluate(() => ({ head: document.querySelector('#brief').textContent, why: document.querySelector('#insWhy').textContent }));
|
|
289
289
|
ok('L1 the next page is the strongest finding and its reason', f1.head === 'Time to first call will miss its 3 days target on 31 Dec unless it turns.' && /Over its last 4 readings it went from 8 days to 9 days/.test(f1.why), JSON.stringify(f1));
|
|
@@ -344,8 +344,8 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
344
344
|
/* O: Did it work? (Iq8Overview), the drafted verdict with ✓ Keep and Undo, and the full verdict (AgInsVerdict) */
|
|
345
345
|
{
|
|
346
346
|
const R = await open(), q = R.page;
|
|
347
|
-
const o = await q.evaluate(() => ({ cols: [
|
|
348
|
-
ok('O1 Did it work? sits under the key results
|
|
347
|
+
const o = await q.evaluate(() => ({ cols: [((document.querySelector('#outTbl .head h2') || {}).textContent || '') + ' ' + ((document.querySelector('#outTbl .head .pm-meta') || {}).textContent || ''), ...[...document.querySelectorAll('#outTbl th')].map((c) => c.textContent.trim())].join('|'), rows: [...document.querySelectorAll('#outTbl [data-ini]')].map((r) => r.dataset.ini), sso: document.querySelector('#outTbl [data-ini="sso-partners"]').textContent.replace(/\s+/g, ' '), decide: document.querySelectorAll('#outTbl [data-verdict]').length, keep: document.querySelectorAll('#outTbl [data-keep]').length, shown: !document.querySelector('#pOutcomes').hidden }));
|
|
348
|
+
ok('O1 Did it work? sits under the key results as a Table (board IntelligenceDS): Work, Expected, What happened, PMOS thinks and Keep or change, and counts what is to judge and in window', o.shown && o.cols === 'Did it work? 1 to judge · 2 in window|Work|Expected|What happened|PMOS thinks|Keep or change', o.cols);
|
|
349
349
|
ok('O1 it lists only the work to judge and in its window; a row says what its goal promised and what it got, and its date', o.rows.join() === 'refund-reason-codes,sso-partners,audit-log-export' && /Partner activation \+30 pts/.test(o.sso) && /\+8 pts/.test(o.sso) && /Judged Dec 31/.test(o.sso) && /shipped Oct 23/.test(o.sso), JSON.stringify(o));
|
|
350
350
|
ok('O1 a promise with no reading has no drafted verdict: Decide only, no ✓', o.decide === 1 && o.keep === 0, JSON.stringify(o));
|
|
351
351
|
await R.ctx.close();
|
|
@@ -357,7 +357,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
357
357
|
const R3 = await open({ model: IP.build(met) }), q3 = R3.page, sent = [];
|
|
358
358
|
await q3.route(/\/api\/insights-records\/verdict(-undo)?$/, (r) => { sent.push([new URL(r.request().url()).pathname, JSON.parse(r.request().postData() || '{}')]); r.fulfill({ contentType: 'application/json', body: '{"ok":true}' }); });
|
|
359
359
|
const dv = await q3.evaluate(() => ({ text: document.querySelector('#outTbl [data-ini="refund-reason-codes"]').textContent.replace(/\s+/g, ' '), keep: (document.querySelector('#outTbl [data-keep]') || {}).getAttribute && document.querySelector('#outTbl [data-keep]').getAttribute('aria-label') }));
|
|
360
|
-
ok('O2 a met promise gets a drafted verdict said from the readings, with ✓ Record the verdict: Keep', /
|
|
360
|
+
ok('O2 a met promise gets a drafted verdict said from the readings, with ✓ Record the verdict: Keep', /It beat the promise: −2\.2 pts against −2 pts\./.test(dv.text) && dv.keep === 'Record the verdict: Keep', JSON.stringify(dv));
|
|
361
361
|
await q3.click('#outTbl [data-keep]'); await until(() => sent.length > 0, 4000);
|
|
362
362
|
ok('O2 ✓ Keep records Keep with the drafted line, marked drafted, without opening a panel', sent[0][0] === '/api/insights-records/verdict' && sent[0][1].verdict === 'Keep' && sent[0][1].drafted === true && /beat the promise/.test(sent[0][1].learned) && sent[0][1].ini === 'refund-reason-codes' && sent[0][1].board === 'w1' && await q3.evaluate(() => document.querySelector('#side').hidden), JSON.stringify(sent));
|
|
363
363
|
await q3.click('#toast .cta'); await until(() => sent.length > 1, 4000);
|
|
@@ -564,7 +564,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
564
564
|
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 }) }); });
|
|
565
565
|
await q.reload(); // the route above answers the second product from the first read on
|
|
566
566
|
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);
|
|
567
|
-
ok('M1 two products ticked (the chip says All; the ✦ line sums All products, redesign A): Portfolio reads the other product once and groups every goal by product; budgets stay with their product', !!pf && pf.chip === 'Products: all 2' && /^All( products)?$/.test(pf.all) && pf.groups.slice(0, 2).join() === 'pmos,Billing' && pf.rows === 6 && /^Across your 2 products/.test(pf.brief) && pf.budgets === 0 && asked.length === 1, JSON.stringify(pf));
|
|
567
|
+
ok('M1 two products ticked (the chip says All; the ✦ line sums All products, redesign A): Portfolio reads the other product once and groups every goal by product; budgets stay with their product', !!pf && pf.chip === 'Products: all 2' && /^All( products)?$/.test(pf.all) && pf.groups.slice(0, 2).join() === 'pmos,Billing' && pf.rows === 6 && /^Across your 2 products/.test(pf.brief) && pf.budgets === 0 && asked.length === 1, JSON.stringify(pf) + ' asked ' + JSON.stringify(asked));
|
|
568
568
|
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());
|
|
569
569
|
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);
|
|
570
570
|
await q.keyboard.press('Escape');
|
|
@@ -603,7 +603,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
603
603
|
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();
|
|
604
604
|
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, rail: document.querySelector('#czMenu.ev-rail') ? Math.round(document.querySelector('#czMenu.ev-rail').getBoundingClientRect().width) : 0, fabX: Math.round(document.querySelector('#czFab').getBoundingClientRect().left) }; });
|
|
605
605
|
const phone = w < 720;
|
|
606
|
-
ok(`I11 the page wears the Agreed design at ${w} px: Plus Jakarta Sans, the white panel, the pill View chip, the
|
|
606
|
+
ok(`I11 the page wears the Agreed design at ${w} px: Plus Jakarta Sans, the white panel, the pill View chip, the finding as a white Block (board IntelligenceDS), the 44 px ⋯ at the top right on a phone (phone design, Ph2_menu), the 72 px rail of places on a desktop (slice 1)`, /^"?Plus Jakarta Sans/.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 >= 600 && (phone || (f.stripR === '16px' && f.stripBg === 'rgb(255, 255, 255)' && f.rowH >= 60)) && !f.over && (phone ? f.fab === 44 && f.fabX > 300 : f.rail === 72), JSON.stringify(f));
|
|
607
607
|
if (!phone) {
|
|
608
608
|
await toTrends(R.page);
|
|
609
609
|
const t = await R.page.evaluate(() => { const tiles = [...document.querySelectorAll('#bmBody [data-tile]')].map((x) => x.getBoundingClientRect()); return { n: tiles.length, tileH: tiles.length ? Math.round(tiles[0].height) : 0, over: document.documentElement.scrollWidth > innerWidth }; });
|
package/workspace/changelog.json
CHANGED
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"v": "0.
|
|
4
|
-
"at": "2026-11-
|
|
3
|
+
"v": "0.662.0",
|
|
4
|
+
"at": "2026-11-22T04:06:35.609Z",
|
|
5
5
|
"f": 4,
|
|
6
6
|
"prs": [
|
|
7
|
-
{
|
|
8
|
-
"n": 1444,
|
|
9
|
-
"t": "Library is built from the design system's blocks",
|
|
10
|
-
"s": "Library is built from the design system's blocks",
|
|
11
|
-
"k": "new"
|
|
12
|
-
},
|
|
13
7
|
{
|
|
14
8
|
"n": 1445,
|
|
15
9
|
"t": "Pmos design drift, the design drift guard",
|
|
16
10
|
"s": "Pmos design drift, the design drift guard",
|
|
17
11
|
"k": "new"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"n": 1449,
|
|
15
|
+
"t": "Rebuild the Intelligence page from Komorebi blocks",
|
|
16
|
+
"s": "Rebuild the Intelligence page from Komorebi blocks",
|
|
17
|
+
"k": "new"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"n": 1442,
|
|
21
|
+
"t": "Routine is built from the design system's blocks",
|
|
22
|
+
"s": "Routine is built from the design system's blocks",
|
|
23
|
+
"k": "new"
|
|
18
24
|
}
|
|
19
25
|
]
|
|
20
26
|
},
|
|
@@ -120,7 +120,7 @@ const FIX = { id: 'fx-amp', kind: 'connect', goal: 'krm-act', connector: 'Amplit
|
|
|
120
120
|
for (const k of ['metric-drafts/keep', 'metric-drafts/keep-all', 'metric-drafts/drop', 'metric-drafts/edit', 'metric-drafts/undo', 'goal-status/test', 'goal-status/read', 'goal-status/compare', 'goal-status/compare-pick', 'goal-status/file-held']) {
|
|
121
121
|
await page.route('**/api/' + k, (r) => { const p = '/api/' + k, body = JSON.parse(r.request().postData() || '{}'); posts.push({ path: p, body }); r.fulfill({ contentType: 'application/json', body: JSON.stringify(answer(p, body)) }); });
|
|
122
122
|
}
|
|
123
|
-
await page.goto(BASE + '/premium-intelligence.html?theme=' + theme);
|
|
123
|
+
await page.goto(BASE + '/premium-intelligence.html?tab=goals&theme=' + theme);
|
|
124
124
|
await until(() => page.evaluate((s) => !!document.querySelector(s), ready), 20000);
|
|
125
125
|
return { ctx, page, errors, posts, S };
|
|
126
126
|
};
|
|
@@ -129,18 +129,18 @@ const FIX = { id: 'fx-amp', kind: 'connect', goal: 'krm-act', connector: 'Amplit
|
|
|
129
129
|
|
|
130
130
|
/* T · the drafts table */
|
|
131
131
|
const A = await open(), p = A.page;
|
|
132
|
-
const tb = await p.evaluate(() => ({
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
g1: (document.querySelector('[data-gc-row="d-g1"] .gc-from') || {}).innerText || '', g2: (document.querySelector('[data-gc-row="d-g2"] .gc-from') || {}).innerText || '',
|
|
132
|
+
const tb = await p.evaluate(() => ({ head: ((document.querySelector('#draftBox .head h2') || {}).textContent || ''), rows: document.querySelectorAll('#draftBox .gc-tr.pm-li').length,
|
|
133
|
+
ns: ((document.querySelector('[data-gc-row="d-ns"] .gc-hw') || {}).innerText || '').replace(/\s+/g, ' ').trim(), nsName: ((document.querySelector('[data-gc-row="d-ns"] .gc-nm .t') || {}).textContent || ''),
|
|
134
|
+
g1: (document.querySelector('[data-gc-row="d-g1"] .gc-hw') || {}).innerText || '', g2: (document.querySelector('[data-gc-row="d-g2"] .gc-hw') || {}).innerText || '',
|
|
136
135
|
nsRow: !document.querySelector('#nsRow').hidden, list: document.querySelectorAll('#goalTbl .okr-row').length, empty: /No key result is recorded/.test(document.querySelector('#goalTbl').textContent),
|
|
137
136
|
acts: [...document.querySelectorAll('[data-gc-row="d-ns"] .gc-acts button')].map((b) => b.getAttribute('aria-label') + '|' + b.textContent.trim()) }));
|
|
138
|
-
|
|
139
|
-
ok('
|
|
140
|
-
ok('
|
|
141
|
-
ok('
|
|
137
|
+
// intelligence-ds-page (board IntelligenceDS): the drafted metrics are one List block, "PMOS drafted N measures for <product>", a ListRow each
|
|
138
|
+
ok('T1 one List: PMOS drafted 6 measures, a ListRow each', /^PMOS drafted 6 measures for /.test(tb.head) && tb.rows === 6, JSON.stringify(tb));
|
|
139
|
+
ok('T2 each row says what it is: the North Star, an input, a guardrail', /^The North Star\./.test(tb.ns) && /^(An input|A guardrail)/.test(tb.g1) && /^(An input|A guardrail)/.test(tb.g2), JSON.stringify(tb));
|
|
140
|
+
ok('T3 a row says how it is counted, where and how often it is read, now and its target', tb.nsName === 'Weekly signed-in shoppers' && /Shoppers who signed in at least once in the week, each person once\. Read every Monday 07:00 from Amplitude\. now 38\.8k\. Target 45k by Dec 31\./.test(tb.ns), tb.ns);
|
|
141
|
+
ok('T4 the rhythm is each goal\'s own: every hour, every day 07:00', /every hour/.test(tb.g1) && /from Datadog/.test(tb.g1) && /every day 07:00 from Jira/.test(tb.g2), tb.g1 + ' | ' + tb.g2);
|
|
142
142
|
ok('T5 no second North Star row, no plain goal list and no empty card under the table', !tb.nsRow && tb.list === 0 && !tb.empty, JSON.stringify(tb));
|
|
143
|
-
ok('T6
|
|
143
|
+
ok('T6 ✓ and ✕ are icon-only, named in their label', tb.acts.length === 2 && tb.acts.every((a) => /\|$/.test(a)) && /^Keep: /.test(tb.acts[0]) && /^Not now: /.test(tb.acts[1]), tb.acts.join(', '));
|
|
144
144
|
const line = await p.evaluate(() => document.querySelector('#brief').textContent + ' ' + document.querySelector('#insWhy').textContent);
|
|
145
145
|
ok('T7 a goal behind its line stays the ✦ news; the drafts are kept from the table or with Keep all', /^Partner activation is behind its line/.test(line) && !/I drafted a North Star/.test(line) && !!(await p.$('#insAct [data-okl="keep-all"]')), line);
|
|
146
146
|
await shot(p, 'GcJ1aTable-built');
|
|
@@ -180,7 +180,7 @@ const FIX = { id: 'fx-amp', kind: 'connect', goal: 'krm-act', connector: 'Amplit
|
|
|
180
180
|
/* F · the first readings */
|
|
181
181
|
const B = await open({ m: model('first'), rows: [], ready: '#goalTbl .ins-row' });
|
|
182
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 .
|
|
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 .pm-tabs'), inputs: !!document.querySelector('#nsRow .ins-nsi'),
|
|
184
184
|
line: document.querySelector('#brief').textContent + ' ' + document.querySelector('#insWhy').textContent }; });
|
|
185
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
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));
|
|
@@ -194,7 +194,7 @@ const FIX = { id: 'fx-amp', kind: 'connect', goal: 'krm-act', connector: 'Amplit
|
|
|
194
194
|
|
|
195
195
|
/* K · a key result's panel */
|
|
196
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 .
|
|
197
|
+
const k0 = await K.page.evaluate(() => ({ ns: !!document.querySelector('#nsRow .ins-nsch'), seg: [...document.querySelectorAll('#nsRow .pm-tabs [data-span]')].map((b) => b.textContent).join('|'), spark: document.querySelectorAll('#goalTbl .ins-row .sofar svg').length }));
|
|
198
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
199
|
await K.page.click('#goalTbl [data-goal="krm-act"] .nm');
|
|
200
200
|
const k1 = await vw(K.page);
|
|
@@ -13,6 +13,17 @@ Intelligence (`/premium-intelligence.html`) uses the OKR file of a product as it
|
|
|
13
13
|
|
|
14
14
|
Goals and Intelligence use the PMOS design system (see [Layout](layout.md#the-design-system)). On Goals, the North Star is one block. When PMOS drafted it, the draft is a suggestion with ✓ and ✕. The goals are one table: objective, key result, actual and target, days left, levers and initiative. On a phone, the table becomes a list under each objective. On both pages, red means late or at risk, blue means PMOS speaks or waits on you, and a goal on track has no colour.
|
|
15
15
|
|
|
16
|
+
Intelligence is built from the design system's blocks, in one column. It is the place for charts, so key results are not repeated here: they are on Goals. From top to bottom:
|
|
17
|
+
|
|
18
|
+
1. **What PMOS found**: one finding at a time ("1 of 3", with ‹ and ›) and its suggestion: why, what PMOS will do, what changes and what it is based on, with ✓ and ✕.
|
|
19
|
+
2. **North Star**: a chart with the target line, and a diamond on each day that work moving it shipped. Point at a reading to see its value and source. Its inputs and guardrail are small numbers under it.
|
|
20
|
+
3. **Measures PMOS drafted**: keep each with ✓, or drop it with ✕.
|
|
21
|
+
4. **Delivery trends**: the tiles, with **Choose tiles**.
|
|
22
|
+
5. **Did it work?** (below).
|
|
23
|
+
6. **Waiting on a source**: a key result with no reading, with Connect or Add a reading.
|
|
24
|
+
|
|
25
|
+
To see the key results on this page too, pick **Key results here** in ⋯, or open a link with `?tab=goals`.
|
|
26
|
+
|
|
16
27
|
## The goal list
|
|
17
28
|
|
|
18
29
|
- **The period.** The first period in the period chip is the period of the OKR file, for example H2 2026. It is the default, so a filter for one quarter does not hide a goal of the half.
|
|
@@ -51,7 +62,7 @@ The panel shows the drafts that wait for you and the asks that are ready first,
|
|
|
51
62
|
|
|
52
63
|
## The ⋯ menu
|
|
53
64
|
|
|
54
|
-
The ⋯ menu has
|
|
65
|
+
The ⋯ menu has three items: **Reports and dashboards**, **Key results here** and **Export CSV**. Sources are in **Settings › Connectors**. To make a report, use the report icon in the bar (**Make a report from this**).
|
|
55
66
|
|
|
56
67
|
## Forecasts
|
|
57
68
|
|
|
@@ -10,14 +10,13 @@ Routine is the place for everything PMOS does by itself on a schedule, and for y
|
|
|
10
10
|
|
|
11
11
|
## The table
|
|
12
12
|
|
|
13
|
-
Routine is
|
|
13
|
+
Routine is built from the PMOS design system's blocks. One "PMOS did" line is at the top, then the kinds as tabs, then one table. A switch that is on is green. A late Next shows as a rust-coloured label. Undo is the arrow in the toast at the bottom.
|
|
14
14
|
|
|
15
|
-
Routine is one table. Each row has these columns:
|
|
15
|
+
Routine is one table. The group a row is in says its type, so there is no Type column. Each row has these columns:
|
|
16
16
|
|
|
17
17
|
| Column | What it shows |
|
|
18
18
|
|---|---|
|
|
19
19
|
| Routine | The name of the report, the source, the job or the task. |
|
|
20
|
-
| Type | Report, Read, PMOS job or Your task. |
|
|
21
20
|
| Product | The product the routine belongs to, by the same name as on every other page (IDPF, not a folder name). This column shows only when the table holds routines of two products or more. |
|
|
22
21
|
| What it does | For a report, who it tells. A report that names no reader tells you. For a read or a job, what it does. |
|
|
23
22
|
| When | How often it repeats, in short words, for example "Every two weeks, Wed 09:00". |
|
|
@@ -32,7 +31,7 @@ The rows are in these groups, in this order:
|
|
|
32
31
|
4. **PMOS jobs.** The jobs PMOS runs by itself, such as the day check and the initiative driver.
|
|
33
32
|
5. **Your tasks.** Your own scheduled tasks.
|
|
34
33
|
|
|
35
|
-
A group with no rows does not show. Use the kinds at the top (All, Reports, Reads,
|
|
34
|
+
A group with no rows does not show. Use the kinds at the top (All, Reports, Reads, Jobs, Your tasks) to show one kind. Each kind shows how many routines it holds. PMOS remembers the kind you chose on this computer.
|
|
36
35
|
|
|
37
36
|
The chip on the left of the kinds is the same chip as on Events. Tick products, programs or projects to show only their routines. The products you tick are the same as on Work. A report shows under a program or a project when its setup is about it. Reads and PMOS jobs serve every product, so they always show. When you tick a program or a project, they fold to their heading, so its reports come first. Press the heading to open them. When the chip hides routines, one grey line says how many. Press **Show all** to show them on this page. What you ticked does not change.
|
|
38
37
|
|
|
@@ -44,7 +43,7 @@ The line at the top says how many things PMOS did since yesterday, and how many
|
|
|
44
43
|
|
|
45
44
|
## Open a routine
|
|
46
45
|
|
|
47
|
-
Press a row.
|
|
46
|
+
Press a row. On a desk, the first press shows the routine at the right: what it does, its product, when it runs, what it reads, its template and its last runs. When PMOS sees a pattern, for example the last two runs failed, a suggestion sits under it. Press the row again, press Enter or press Open in full to open it in the popup. When Ask PMOS is hidden, press **Ask PMOS** to show it on the right.
|
|
48
47
|
|
|
49
48
|
Every routine has the same parts:
|
|
50
49
|
|
|
@@ -82,7 +82,7 @@ const FINDING = { id: 'rf-0123456789', name: 'Partner numbers to Lee', why: 'You
|
|
|
82
82
|
});
|
|
83
83
|
await page.route('**/api/report-setups?*', (r) => json(r, { setups: [], findings: [], asks: [], finder: {} }));
|
|
84
84
|
await page.route('**/api/report-documents/**', (r) => { posts.push({ path: new URL(r.request().url()).pathname, body: JSON.parse(r.request().postData() || '{}') }); return json(r, { ok: true }); });
|
|
85
|
-
await page.goto(BASE + '/premium-intelligence.html');
|
|
85
|
+
await page.goto(BASE + '/premium-intelligence.html?tab=goals'); // key results live on Goals: ?tab=goals shows them here
|
|
86
86
|
await until(() => page.evaluate(() => document.querySelectorAll('#goalTbl .ins-row').length > 0), 20000);
|
|
87
87
|
return { page, ctx: c, errors, posts, gets, st };
|
|
88
88
|
};
|
|
@@ -92,7 +92,7 @@ const WEEKLY = { view: 'view', weeks: 3, day: 'Mon', opens: 4 };
|
|
|
92
92
|
// the ✦ line about the goals comes first (batch 16 item 6, GsM1–M5); the finding with its drafted move is the next page
|
|
93
93
|
await until(() => p.evaluate(() => !!document.querySelector('#insPg [data-ins="1"]')), 5000); await p.click('#insPg [data-ins="1"]');
|
|
94
94
|
const s0 = await until(() => p.evaluate(() => { const m = document.querySelector('#insMv'); const b = document.querySelector('#insAct [data-mv="apply"]'); return m && !m.hidden && b ? { mv: m.textContent, label: b.getAttribute('aria-label'), text: b.textContent.trim(), solid: b.classList.contains('primary'), two: document.querySelector('#insHero').classList.contains('mv') } : null; }), 5000);
|
|
95
|
-
ok('S the drafted move is
|
|
95
|
+
ok('S the drafted move is the expanded Suggestion under the finding (its label, then PMOS will …), with a primary ✓ that is icon-only', !!s0 && s0.mv.startsWith(MOVE.label) && s0.mv.includes('PMOS will' + MOVE.text) && s0.label === MOVE.label && !s0.text && s0.solid && s0.two, JSON.stringify(s0));
|
|
96
96
|
await shot(p, 'gap1-strip-move', '#insHero');
|
|
97
97
|
await p.click('#insAct [data-mv="apply"]');
|
|
98
98
|
await until(() => A.posts.some((x) => x.path === '/api/insight-moves/apply'), 3000);
|
|
@@ -84,7 +84,7 @@ const ROWS = [
|
|
|
84
84
|
await page.route('**/api/metric-drafts?*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify(DRAFTS(rows)) }));
|
|
85
85
|
for (const k of ['keep', 'keep-all', 'drop', 'edit', 'undo', 'start']) await page.route('**/api/metric-drafts/' + k, (r) => { posts.push({ path: '/api/metric-drafts/' + k, body: JSON.parse(r.request().postData() || '{}') }); r.fulfill({ contentType: 'application/json', body: JSON.stringify(k === 'keep' ? { ok: true, rid: 'r1' } : { ok: true, kept: 3 }) }); });
|
|
86
86
|
await page.route('**/api/goals/notify', (r) => { posts.push({ path: '/api/goals/notify', body: JSON.parse(r.request().postData() || '{}') }); r.fulfill({ contentType: 'application/json', body: '{"ok":true}' }); });
|
|
87
|
-
await page.goto(BASE + '/premium-intelligence.html?theme=' + theme);
|
|
87
|
+
await page.goto(BASE + '/premium-intelligence.html?theme=' + theme + '&tab=goals'); // key results live on Goals: ?tab=goals shows them here (intelligence-ds-page)
|
|
88
88
|
await until(() => page.evaluate(() => document.querySelectorAll('#goalTbl .ins-row').length > 0), 20000);
|
|
89
89
|
await until(() => page.evaluate(() => !!document.querySelector('#goalTbl .okr-dr')), 6000);
|
|
90
90
|
return { ctx, page, errors, posts };
|
|
@@ -104,7 +104,7 @@ const ROWS = [
|
|
|
104
104
|
const wt = await p.evaluate(() => { const W = document.querySelector('#waitList'); return { shown: !!W && !W.hidden, churn: !!(W && W.querySelector('[data-goal="krm-churn"]')), head: ((W && W.querySelector('h2')) || {}).textContent || '' }; });
|
|
105
105
|
ok('L4 a goal with no reading is not a table row; it waits in Waiting on a source', !churn.id && wt.shown && wt.churn && wt.head === 'Waiting on a source', JSON.stringify([churn, wt]));
|
|
106
106
|
const ns = await txt(p, '#nsRow .ins-nsc');
|
|
107
|
-
ok('L6 the North Star is its own card with its number, its change and its line', /North Star Partner uptime/.test(ns) && /99\.6%/.test(ns) && !!(await p.$('#nsRow .ins-nsch')), ns);
|
|
107
|
+
ok('L6 the North Star is its own card with its number, its change and its line', /North Star · Partner uptime/.test(ns) && /99\.6%/.test(ns) && !!(await p.$('#nsRow .ins-nsch')), ns);
|
|
108
108
|
await shot(p, 'okr-desktop-light');
|
|
109
109
|
|
|
110
110
|
/* D · drafts */
|
|
@@ -149,7 +149,7 @@ const ROWS = [
|
|
|
149
149
|
|
|
150
150
|
/* M · ⋯ (re-pointed, U3): Reports and dashboards and Export CSV only; the table is the metric list, so ⋯ › Metrics is gone */
|
|
151
151
|
await p.click('#moreB'); await sleep(80);
|
|
152
|
-
ok('M1 ⋯ holds Reports and dashboards and Export only', (await p.evaluate(() => [...document.querySelectorAll('#moreMenu [data-more]')].map((b) => b.dataset.more).join())) === 'library,export');
|
|
152
|
+
ok('M1 ⋯ holds Reports and dashboards, Key results here and Export only', (await p.evaluate(() => [...document.querySelectorAll('#moreMenu [data-more]')].map((b) => b.dataset.more).join())) === 'library,krs,export');
|
|
153
153
|
await p.keyboard.press('Escape');
|
|
154
154
|
ok('M4 no script error on the page', !R.errors.length, R.errors.join(' | '));
|
|
155
155
|
await R.ctx.close();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.662.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.662.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
package/workspace/panels-test.js
CHANGED
|
@@ -428,7 +428,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
428
428
|
ok('0 no page error with the chat at 1920', Dw.errors.length === 0, Dw.errors.join(' | '));
|
|
429
429
|
await Dw.close();
|
|
430
430
|
// Intelligence: a goal row opens a split; ⌘-click opens beside
|
|
431
|
-
const In = await open({ at: '/premium-intelligence.html', ready: () => !!window.czPanels && document.querySelectorAll('#goalTbl .ins-row[data-goal]').length > 1 });
|
|
431
|
+
const In = await open({ at: '/premium-intelligence.html?tab=goals', ready: () => !!window.czPanels && document.querySelectorAll('#goalTbl .ins-row[data-goal]').length > 1 });
|
|
432
432
|
ok('P9 Intelligence draws its goal rows and window.czPanels', !!In.up);
|
|
433
433
|
const G = await In.page.evaluate(() => [...document.querySelectorAll('#goalTbl .ins-row[data-goal]')].map((r) => r.dataset.goal));
|
|
434
434
|
await In.page.click(`#goalTbl .ins-row[data-goal="${G[0]}"]`);
|
|
@@ -441,7 +441,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
441
441
|
ok('0 no page error on Intelligence', In.errors.length === 0, In.errors.join(' | '));
|
|
442
442
|
await In.close();
|
|
443
443
|
// a phone: the page as today
|
|
444
|
-
for (const [at, ready, row] of [['/premium-board.html', boardReady, '.ini2[data-key]:not(.bd-bc)'], ['/premium-intelligence.html', () => !!window.czPanels && document.querySelectorAll('[data-goal]').length > 1, '#goalCards .ins-card[data-goal]']]) {
|
|
444
|
+
for (const [at, ready, row] of [['/premium-board.html', boardReady, '.ini2[data-key]:not(.bd-bc)'], ['/premium-intelligence.html?tab=goals', () => !!window.czPanels && document.querySelectorAll('[data-goal]').length > 1, '#goalCards .ins-card[data-goal]']]) {
|
|
445
445
|
const Q = await open({ w: 390, h: 844, at, ready });
|
|
446
446
|
await Q.page.evaluate((s) => { const b = document.querySelector(s); if (b) b.click(); }, row);
|
|
447
447
|
await until(() => Q.page.evaluate(() => !!document.querySelector('#czViewer:not([hidden])')), 5000);
|