create-pmos 0.609.0 → 0.610.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.
Files changed (62) hide show
  1. package/package.json +20 -14
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/board-programs-test.js +2 -2
  7. package/workspace/briefing-premium-adddoc-test.js +2 -1
  8. package/workspace/briefing-premium-board-test.js +9 -9
  9. package/workspace/briefing-premium-initiative-test.js +7 -6
  10. package/workspace/briefing-premium-insights-test.js +10 -10
  11. package/workspace/briefing-premium-products-test.js +4 -2
  12. package/workspace/briefing-premium-sources-test.js +1 -1
  13. package/workspace/briefing-premium-test.js +4 -4
  14. package/workspace/briefing-premium-work-test.js +1 -1
  15. package/workspace/changelog.json +19 -0
  16. package/workspace/ev-everywhere-test.js +9 -9
  17. package/workspace/guide/layout.md +32 -11
  18. package/workspace/home-other-product-test.js +2 -1
  19. package/workspace/home-railcard-test.js +2 -1
  20. package/workspace/lib/beside-page.js +15 -0
  21. package/workspace/live-pill-round-test.js +3 -4
  22. package/workspace/package-lock.json +2 -2
  23. package/workspace/package.json +1 -1
  24. package/workspace/panels-test.js +5 -4
  25. package/workspace/premium-chat-context-test.js +6 -6
  26. package/workspace/premium-chat-line-test.js +1 -1
  27. package/workspace/premium-chat-notes-test.js +1 -1
  28. package/workspace/premium-core-doc-issue-test.js +2 -1
  29. package/workspace/premium-vw-cal-test.js +1 -1
  30. package/workspace/premium-vw-doc-test.js +2 -1
  31. package/workspace/program-leave-test.js +2 -1
  32. package/workspace/program-panel-test.js +2 -2
  33. package/workspace/public/pm/bd-ini-panel.js +3 -1
  34. package/workspace/public/pm/bd-scroll.js +4 -2
  35. package/workspace/public/pm/cozy-board.css +3 -0
  36. package/workspace/public/pm/cozy-ev.css +51 -0
  37. package/workspace/public/pm/cozy-evmodel.js +1 -1
  38. package/workspace/public/pm/cozy-live-pill.js +2 -1
  39. package/workspace/public/pm/cozy-nav.js +70 -7
  40. package/workspace/public/pm/cozy-panels.js +1 -1
  41. package/workspace/public/pm/cozy-pick.css +3 -0
  42. package/workspace/public/pm/cozy-pick.js +6 -2
  43. package/workspace/public/pm/cozy-popup.css +113 -0
  44. package/workspace/public/pm/cozy-popup.js +408 -0
  45. package/workspace/public/pm/cozy-settings.js +10 -1
  46. package/workspace/public/pm/cozy-viewer.js +66 -18
  47. package/workspace/public/pm/home-app.js +11 -3
  48. package/workspace/public/pm/home-ini.js +4 -3
  49. package/workspace/public/pm/page-chat.js +16 -4
  50. package/workspace/public/pm/pop-sessions.js +65 -0
  51. package/workspace/public/pm/premium-board.js +7 -3
  52. package/workspace/public/pm/premium-insights.js +14 -2
  53. package/workspace/public/pm/premium-shell.js +1 -1
  54. package/workspace/stage-card-tasks-test.js +2 -2
  55. package/workspace/task-card-test.js +2 -1
  56. package/workspace/task-delete-test.js +2 -1
  57. package/workspace/task-links-test.js +3 -2
  58. package/workspace/task-views-test.js +7 -7
  59. package/workspace/test-lists/one-popup.json +9 -0
  60. package/workspace/tk-tasks-test.js +2 -1
  61. package/workspace/viewer-trail-test.js +1 -1
  62. package/workspace/workflows-setup-test.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.609.0",
3
+ "version": "0.610.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": {
@@ -33,6 +33,25 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.610.0",
38
+ "at": "2026-11-18T19:46:47.442Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1359,
43
+ "t": "The navigation of six places, one thin rail on every page (slice 1)",
44
+ "s": "The navigation of six places, one thin rail on every page (slice 1)",
45
+ "k": "new"
46
+ },
47
+ {
48
+ "n": 1360,
49
+ "t": "One popup with the chat",
50
+ "s": "One popup with the chat",
51
+ "k": "new"
52
+ }
53
+ ]
54
+ },
36
55
  {
37
56
  "v": "0.609.0",
38
57
  "at": "2026-11-18T14:39:08.423Z",
@@ -303,19 +322,6 @@
303
322
  "k": "new"
304
323
  }
305
324
  ]
306
- },
307
- {
308
- "v": "0.590.0",
309
- "at": "2026-11-17T13:19:36.782Z",
310
- "f": 4,
311
- "prs": [
312
- {
313
- "n": 1326,
314
- "t": "Take Your move and Waiting on others back out of Home's list",
315
- "s": "Take Your move and Waiting on others back out of Home's list",
316
- "k": "imp"
317
- }
318
- ]
319
325
  }
320
326
  ]
321
327
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@2f390d4b
1
+ kernel-source: pmos@d2d61bf5
2
2
  assembled: 2026-11-18
3
3
  mode: vendor
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Eval calibration log"
4
4
  description: "Append-only record of every PM override of an evaluator verdict."
5
- generated: {by: process:create-pmos, at: "2026-11-18T14:39:06Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-18T19:46:44Z"}
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-18T14:39:06Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-18T19:46:44Z"}
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-18T14:39:06Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-18T19:46:44Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -415,10 +415,10 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
415
415
  await p.click('#ppMenu [data-pp="microsites"]');
416
416
  await Promise.all([p.waitForNavigation(), p.mouse.click(1400, 880)]);
417
417
  await p.waitForSelector('#ibBody [data-key]'); await p.waitForTimeout(700);
418
- const look = () => p.evaluate(() => ({ url: decodeURIComponent(location.search), tiles: [...document.querySelectorAll('#bdPick .ppk-t')].map((t) => t.textContent).join(','), label: document.querySelector('#bdPick').getAttribute('aria-label'), ws: [...new Set([...document.querySelectorAll('#ibBody [data-key]')].map((x) => x.dataset.key.split('/')[0]))].sort() }));
418
+ const look = () => p.evaluate(() => ({ url: decodeURIComponent(location.search), tiles: [...document.querySelectorAll('#bdPick .ppk-t')].map((t) => t.textContent).join(','), name: ((document.querySelector('#bdPick .ppk-nmc') || {}).textContent || '').replace(/\s+/g, ' ').trim(), label: document.querySelector('#bdPick').getAttribute('aria-label'), ws: [...new Set([...document.querySelectorAll('#ibBody [data-key]')].map((x) => x.dataset.key.split('/')[0]))].sort() }));
419
419
  const a = await look();
420
420
  ok('M a click outside closes the menu, saves the pick and the Board shows the ticked products only, merged', a.url === '' && JSON.stringify(pk.on) === '["idpf","microsites"]' && a.ws.join(',') === 'idpf,microsites', JSON.stringify(a));
421
- ok('M the chip shows the ticked products\' tiles; the words are in its name', a.tiles === 'ID,MI' && a.label === 'Products: IDPF, Microsites', JSON.stringify(a));
421
+ ok('M the chip shows the first ticked product\'s full name and +1 on desktop (six-place navigation); the words are in its name', a.name === 'IDPF +1' && a.label === 'Products: IDPF, Microsites', JSON.stringify(a));
422
422
  await p.reload(); await p.waitForSelector('#ibBody [data-key]'); await p.waitForTimeout(700);
423
423
  const b = await look();
424
424
  ok('M a reload keeps the pick', b.url === a.url && b.label === a.label && b.ws.join(',') === 'idpf,microsites', JSON.stringify(b));
@@ -6,6 +6,7 @@
6
6
  const path = require('path');
7
7
  const { spawn } = require('child_process');
8
8
  const { findBrowser } = require('./lib/find-browser');
9
+ const { besidePage } = require('./lib/beside-page'); // these checks are about work beside the page, not the popup
9
10
  const { openMission } = require('./lib/open-mission');
10
11
  const T = require('./test-run').configure({ name: 'briefing-premium-adddoc' });
11
12
  const IP = require('./lib/initiative-premium.js');
@@ -43,7 +44,7 @@ const PAGES = {
43
44
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
44
45
  srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PMOS_SELF_ROOT: path.resolve(__dirname, '..') }) });
45
46
  await T.waitForServer(BASE);
46
- browser = await chromium.launch({ executablePath: exe });
47
+ browser = besidePage(await chromium.launch({ executablePath: exe }));
47
48
 
48
49
  const open = async (kind, { w = 1280, h = 900, theme = 'light', custom = [], add = { status: 200, body: { ok: true } } } = {}) => {
49
50
  const P = PAGES[kind];
@@ -16,6 +16,7 @@ const fs = require('fs');
16
16
  const path = require('path');
17
17
  const { spawn } = require('child_process');
18
18
  const { findBrowser } = require('./lib/find-browser');
19
+ const { besidePage } = require('./lib/beside-page'); // these checks are about work beside the page, not the popup
19
20
  const { openMission } = require('./lib/open-mission');
20
21
  const T = require('./test-run').configure({ name: 'briefing-premium-board' });
21
22
  const BP = require('./lib/board-premium.js');
@@ -79,7 +80,7 @@ const IVREAD = () => {
79
80
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
80
81
  srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PMOS_SELF_ROOT: path.resolve(__dirname, '..') }) });
81
82
  await T.waitForServer(BASE);
82
- browser = await chromium.launch({ executablePath: exe });
83
+ browser = besidePage(await chromium.launch({ executablePath: exe }));
83
84
 
84
85
  const open = async ({ w = 1440, h = 900, theme = 'light', model = mk(), answers = null, trail = null, qs = '', slowSheet = 0 } = {}) => {
85
86
  const ctx = await openMission(await browser.newContext({ viewport: { width: w, height: h } }));
@@ -126,12 +127,11 @@ const IVREAD = () => {
126
127
  const vwShut = (pg) => until(() => pg.evaluate(() => { const v = document.querySelector('#czViewer'); return !v || v.hidden; }));
127
128
 
128
129
  /* B1 (premium-agreed-design N1 N2): the floating place menu, no page header, one toolbar */
129
- const place = await p.evaluate(() => { const f = document.querySelector('#czFab'), h1 = document.querySelector('main h1'), r = h1.getBoundingClientRect(), tb = document.querySelector('.bd-hd').getBoundingClientRect(); return { fab: f && f.getAttribute('aria-label'), w: Math.round(f.getBoundingClientRect().width), rail: document.querySelector('nav.rail') ? getComputedStyle(document.querySelector('nav.rail')).display : 'gone', h1: Math.round(r.width) + 'x' + Math.round(r.height), top: Math.round(tb.top), name: (document.querySelector('#bdPick') || { getAttribute: () => '' }).getAttribute('aria-label'), sw: !document.querySelector('#crSw'), title: document.title }; });
130
- ok('N1 the floating menu is the one way between places: 56 px, it says Board, and the old rail is gone from the page', /^Open the menu. You are in Board(\. |$)/.test(place.fab) && place.w === 56 && place.rail === 'gone', JSON.stringify(place));
131
- ok('N2 no page header on desktop: the heading is for screen readers only and the toolbar starts at the top', place.h1 === '1x1' && place.top < 60 && place.name === 'Products: pmos' && place.sw, JSON.stringify(place));
132
- await p.click('#czFab');
133
- const menu = await p.evaluate(() => [...document.querySelectorAll('#czMenu a')].map((a) => a.textContent + (a.getAttribute('aria-current') ? '*' : '') + '>' + a.getAttribute('href')).join('|'));
134
- ok('N1 the menu opens Home, Board and Intelligence, and marks Board', menu === 'Home>/premium.html|Board*>/premium-board.html|Intelligence>/premium-intelligence.html', menu);
130
+ const place = await p.evaluate(() => { const f = document.querySelector('#czMenu.ev-rail'), h1 = document.querySelector('main h1'), r = h1.getBoundingClientRect(), tb = document.querySelector('.bd-hd').getBoundingClientRect(); return { rail: !!f && !f.hidden, w: f ? Math.round(f.getBoundingClientRect().width) : 0, fab: getComputedStyle(document.querySelector('#czFab')).display, old: document.querySelector('nav.rail') ? getComputedStyle(document.querySelector('nav.rail')).display : 'gone', h1: Math.round(r.width) + 'x' + Math.round(r.height), top: Math.round(tb.top), name: (document.querySelector('#bdPick') || { getAttribute: () => '' }).getAttribute('aria-label'), chip: ((document.querySelector('#bdPick .ppk-nmc') || {}).textContent || '').trim(), sw: !document.querySelector('#crSw'), title: document.title }; });
131
+ ok('N1 the rail is the one way between places on a desktop (slice 1): 72 px, no floating button, and the old rail is gone from the page', place.rail && place.w === 72 && place.fab === 'none' && place.old === 'gone', JSON.stringify(place));
132
+ ok('N2 no page header on desktop: the heading is for screen readers only and the toolbar starts at the top', place.h1 === '1x1' && place.top < 60 && place.name === 'Products: pmos' && place.chip === 'pmos' && place.sw, JSON.stringify(place));
133
+ const menu = await p.evaluate(() => [...document.querySelectorAll('#czMenu a')].map((a) => a.querySelector('span').textContent + (a.getAttribute('aria-current') ? '*' : '') + '>' + a.getAttribute('href')).join('|'));
134
+ ok('N1 the rail holds Today, Work and Goals, and marks Work', menu === 'Today>/premium.html|Work*>/premium-board.html|Goals>/premium-intelligence.html', menu);
135
135
  await p.keyboard.press('Escape');
136
136
  // premium-agreed-design (shared foundation): the ⋯ menu leads nowhere in the console; its undesigned items open the Viewer on a placeholder.
137
137
  // re-pointed for the Agreed Board: the Board adds none of its old items to the menu (steps, sprint and release, metrics, cancelled and archived).
@@ -140,7 +140,7 @@ const IVREAD = () => {
140
140
  { await p.click('#moreBtn'); const tc = await p.evaluate(() => { const b = document.querySelector('#moreBtn').getBoundingClientRect(); return { console: document.querySelectorAll('#moreMenu a[href*="console"], #toConsole').length, w: Math.round(b.width), h: Math.round(b.height), items: [...document.querySelectorAll('#moreMenu [role^="menuitem"]')].filter((x) => x.offsetParent !== null).map((x) => x.id), theme: !!document.querySelector('#moreMenu #tbTheme') }; });
141
141
  ok('B1 the ⋯ menu has no console link and holds only Publish a read-only copy and Cancelled and archived (no Sources, Theme or Settings: UI grill U2)', tc.console === 0 && tc.w >= 40 && tc.h >= 40 && tc.items.join() === 'bdPublish,bdGone' && !tc.theme, JSON.stringify(tc));
142
142
  await p.keyboard.press('Escape');
143
- await p.click('#czFab'); await p.click('#czMenu [data-cz-settings]'); const vw = await until(() => p.evaluate(() => { const d = document.querySelector('#evSettings:not([hidden])'); return d ? d.getAttribute('aria-label') : null; }));
143
+ if (await p.isVisible('#czFab')) await p.click('#czFab'); await p.click('#czMenu [data-cz-settings]'); const vw = await until(() => p.evaluate(() => { const d = document.querySelector('#evSettings:not([hidden])'); return d ? d.getAttribute('aria-label') : null; }));
144
144
  ok('B1 Settings opens its dialog from the place menu (premium-uncovered-features, EvSettings)', vw === 'Settings', JSON.stringify(vw)); await p.keyboard.press('Escape'); }
145
145
  ok('B1 the page is served at /premium-board and /premium-board.html', (await fetch(BASE + '/premium-board')).status === 200 && (await fetch(BASE + '/premium-board.html')).status === 200);
146
146
 
@@ -421,7 +421,7 @@ const IVREAD = () => {
421
421
  {
422
422
  const D = await open(); const q = D.page;
423
423
  // batch 12 item 5: the product chip replaces the board name and its switcher; with one product it shows that product's tile, never All
424
- ok('B15 the picker is the product chip (one product: its tile, no All, no switcher), and the Board has no chat button', await q.evaluate(() => { const c = document.querySelector('#bdPick'); return !!c && c.getAttribute('aria-label') === 'Products: pmos' && [...c.querySelectorAll('.ppk-t')].map((t) => t.textContent).join() === 'PM' && !c.querySelector('.ppk-all') && !document.querySelector('#crSw') && !document.querySelector('#crAsk') && !document.querySelector('#askIn'); }));
424
+ ok('B15 the picker is the product chip (one product: its full name on a desktop since slice 1, its tile on a phone; no All, no switcher), and the Board has no chat button', await q.evaluate(() => { const c = document.querySelector('#bdPick'); return !!c && c.getAttribute('aria-label') === 'Products: pmos' && (innerWidth > 760 ? (c.querySelector('.ppk-nmc') || {}).textContent === 'pmos' : [...c.querySelectorAll('.ppk-t')].map((t) => t.textContent).join() === 'PM' && !c.querySelector('.ppk-all')) && !document.querySelector('#crSw') && !document.querySelector('#crAsk') && !document.querySelector('#askIn'); }));
425
425
  await D.ctx.close();
426
426
  }
427
427
 
@@ -13,6 +13,7 @@
13
13
  const path = require('path');
14
14
  const { spawn } = require('child_process');
15
15
  const { findBrowser } = require('./lib/find-browser');
16
+ const { besidePage } = require('./lib/beside-page'); // these checks are about work beside the page, not the popup
16
17
  const { openMission } = require('./lib/open-mission');
17
18
  const T = require('./test-run').configure({ name: 'briefing-premium-initiative' });
18
19
  const IP = require('./lib/initiative-premium.js');
@@ -50,7 +51,7 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
50
51
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
51
52
  srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PMOS_SELF_ROOT: path.resolve(__dirname, '..') }) });
52
53
  await T.waitForServer(BASE);
53
- browser = await chromium.launch({ executablePath: exe });
54
+ browser = besidePage(await chromium.launch({ executablePath: exe }));
54
55
 
55
56
  const open = async ({ w = 1280, h = 900, theme = 'light', model = mk(), answers = null, url = '/premium.html?ini=self-serve-v2&ws=w1&board=w1' } = {}) => {
56
57
  const ctx = await openMission(await browser.newContext({ viewport: { width: w, height: h } }));
@@ -127,8 +128,8 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
127
128
  await p.evaluate(() => { window.__noReload = 1; });
128
129
  await p.click('#hmList [data-hm-prodopen]');
129
130
  ok('I1 a product heading\'s name opens the product\'s one page in the Viewer with its goals and its Reports tab, and its own chat (HbCProduct, batch 21 item 2)', await until(() => p.evaluate(() => { const v = document.querySelector('#czViewer:not([hidden])'); return !!v && /Product/.test((v.querySelector('.cz-vw-kind') || {}).textContent || '') && !!v.querySelector('section.hi-pg[aria-label="Goals"]') && !!v.querySelector('[data-pv="tab"][data-k="reports"]') && /^Message PMOS about /.test(document.querySelector('#hmIn').placeholder) && !!document.querySelector('#hmList .hv-prg.sel [data-hm-prodopen]'); })));
130
- await p.click('#czFab'); await p.click('#czMenu a[aria-current="page"]');
131
- ok('I1 Menu > Home closes the page and clears the selection, without a reload', await until(() => p.evaluate(() => window.__noReload === 1 && !document.querySelector('#czViewer:not([hidden])') && !document.querySelector('#hmList .sel, #hmList [aria-current="true"]') && /^Ask or tell PMOS anything$/.test(document.querySelector('#hmIn').placeholder)))); // chief-of-staff C1: Home's own chat
131
+ if (await p.isVisible('#czFab')) await p.click('#czFab'); await p.click('#czMenu a[aria-current="page"]');
132
+ ok('I1 Menu > Today closes the page and clears the selection, without a reload', await until(() => p.evaluate(() => window.__noReload === 1 && !document.querySelector('#czViewer:not([hidden])') && !document.querySelector('#hmList .sel, #hmList [aria-current="true"]') && /^Ask or tell PMOS anything$/.test(document.querySelector('#hmIn').placeholder)))); // chief-of-staff C1: Home's own chat
132
133
  await p.goto(BASE + '/premium.html?ini=self-serve-v2&ws=w1&board=w1&theme=light'); await ready(p);
133
134
 
134
135
  /* I3 header and the ONE view (batch 6 items 1 and 3: the Board's panel draws the same; stage-card-test.js holds the stage card's behaviour) */
@@ -262,9 +263,9 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
262
263
  const g = await R.page.evaluate(() => {
263
264
  const tok = (v) => { const x = document.createElement('i'); x.style.setProperty('background-color', 'var(' + v + ')'); document.body.appendChild(x); const c = getComputedStyle(x).backgroundColor; x.remove(); return c; };
264
265
  const cs = (s) => { const e = document.querySelector(s); return e ? getComputedStyle(e) : null; };
265
- const fab = document.querySelector('#czFab'), fr = fab && fab.getBoundingClientRect();
266
+ const fab = document.querySelector('#czFab'), fr = fab && fab.getBoundingClientRect(), rl = document.querySelector('#czMenu.ev-rail');
266
267
  const c = document.querySelector('#czViewer .iv-tel').getBoundingClientRect();
267
- return { font: cs('body').fontFamily, cta: (cs('#czViewer .iv-go') || {}).backgroundColor, ctaAlt: !document.querySelector('#czViewer .iv-go'), solid: tok('--cz-solid'), blue: tok('--cz-blue'), well: tok('--cz-well'), card: tok('--cz-card'), box: cs('#czViewer .iv-mc').backgroundColor, rad: parseFloat(cs(innerWidth <= 760 ? '#czViewer .iv-tel' : '#czViewer .iv-mc').borderTopLeftRadius), fab: fr ? [Math.round(fr.width), Math.round(fr.height)] : null, over: document.documentElement.scrollWidth - innerWidth, cardW: Math.round(c.width) };
268
+ return { font: cs('body').fontFamily, cta: (cs('#czViewer .iv-go') || {}).backgroundColor, ctaAlt: !document.querySelector('#czViewer .iv-go'), solid: tok('--cz-solid'), blue: tok('--cz-blue'), well: tok('--cz-well'), card: tok('--cz-card'), box: cs('#czViewer .iv-mc').backgroundColor, rad: parseFloat(cs(innerWidth <= 760 ? '#czViewer .iv-tel' : '#czViewer .iv-mc').borderTopLeftRadius), fab: fr ? [Math.round(fr.width), Math.round(fr.height)] : null, rail: rl ? Math.round(rl.getBoundingClientRect().width) : 0, over: document.documentElement.scrollWidth - innerWidth, cardW: Math.round(c.width) };
268
269
  });
269
270
  const d = [];
270
271
  if (!/^"?Plus Jakarta Sans/.test(g.font)) d.push('font ' + g.font);
@@ -273,7 +274,7 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
273
274
  // a phone has no wrapper card (batch 23 item 5, canvas PmA): the mission is the first card there
274
275
  if (g.rad < 12) d.push('card radius ' + g.rad);
275
276
  // on a phone the initiative's page is the Viewer, full screen over the list: the floating menu waits under it (HbCPhone)
276
- if (w > 760 && (!g.fab || g.fab[0] !== 56 || g.fab[1] !== 56)) d.push('fab ' + JSON.stringify(g.fab));
277
+ if (w > 760 && (!g.rail || g.rail !== 72)) d.push('rail ' + JSON.stringify(g.rail)); // a desktop: the rail of places, 72 px (slice 1)
277
278
  if (g.over > 0) d.push('sideways scroll ' + g.over);
278
279
  ok(`I12 the initiative follows the Agreed design at ${w} px, ${th}: Plus Jakarta Sans, the cozy card, the CTA, the floating menu`, d.length === 0, d.join(' ; '));
279
280
  ok(`I12 no page error at ${w} px, ${th}`, R.errors.length === 0, R.errors.join(' | '));
@@ -95,18 +95,18 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
95
95
  const txt = (s, pg = p) => pg.evaluate((q) => (document.querySelector(q) || {}).textContent || '', s);
96
96
 
97
97
  /* N: the place menu, no page header, nothing old */
98
- const nav = await p.evaluate(() => ({ fabs: document.querySelectorAll('#czFab').length, label: document.querySelector('#czFab').getAttribute('aria-label'), rail: document.querySelector('nav.rail') ? getComputedStyle(document.querySelector('nav.rail')).display : 'gone', name: document.querySelector('#prodPick').getAttribute('aria-label'), boards: document.querySelectorAll('#prodPick .ppk-t').length }));
99
- ok('N1 one floating place menu replaces the rail (gone from the page), it says you are in Intelligence, and the product picker names the board', nav.fabs === 1 && nav.label === 'Open the menu. You are in Intelligence' && nav.rail === 'gone' && nav.name === 'Products: pmos' && nav.boards === 1, JSON.stringify(nav));
100
- { await p.click('#czFab'); const mn = await p.evaluate(() => ({ open: !document.querySelector('#czMenu').hidden, links: [...document.querySelectorAll('#czMenu a')].map((a) => a.textContent + '=' + a.getAttribute('href')), cur: (document.querySelector('#czMenu [aria-current="page"]') || {}).textContent })); await p.keyboard.press('Escape');
101
- ok('N1 the menu opens Home, Board and Intelligence, marks Intelligence, and Escape closes it', mn.open && mn.links.join() === 'Home=/premium.html,Board=/premium-board.html,Intelligence=/premium-intelligence.html' && mn.cur === 'Intelligence' && await p.evaluate(() => document.querySelector('#czMenu').hidden), JSON.stringify(mn)); }
98
+ const nav = await p.evaluate(() => ({ rails: document.querySelectorAll('#czMenu.ev-rail:not([hidden])').length, fab: getComputedStyle(document.querySelector('#czFab')).display, rail: document.querySelector('nav.rail') ? getComputedStyle(document.querySelector('nav.rail')).display : 'gone', name: document.querySelector('#prodPick').getAttribute('aria-label'), chip: document.querySelector('#prodPick .ppk-nmc') ? document.querySelector('#prodPick .ppk-nmc').textContent.trim() : '', left: Math.round(document.querySelector('main.ins').getBoundingClientRect().left) }));
99
+ ok('N1 the rail of places replaces the floating menu on a desktop (slice 1), the page starts after it, and the product chip names the product in full', nav.rails === 1 && nav.fab === 'none' && nav.rail === 'gone' && nav.name === 'Products: pmos' && nav.chip === 'pmos' && nav.left >= 96, JSON.stringify(nav));
100
+ { const mn = await p.evaluate(() => ({ links: [...document.querySelectorAll('#czMenu a')].map((a) => a.querySelector('span').textContent + '=' + a.getAttribute('href')), cur: (document.querySelector('#czMenu [aria-current="page"] span') || {}).textContent })); await p.keyboard.press('Escape');
101
+ ok('N1 the rail holds Today, Work and Goals, marks Goals, and stays after Escape', mn.links.join() === 'Today=/premium.html,Work=/premium-board.html,Goals=/premium-intelligence.html' && mn.cur === 'Goals' && await p.evaluate(() => !document.querySelector('#czMenu').hidden), JSON.stringify(mn)); }
102
102
  { const hd = await p.evaluate(() => { const b = document.querySelector('#insBar').getBoundingClientRect(), m = document.querySelector('main.ins').getBoundingClientRect(); return { bar: Math.round(b.top), main: Math.round(m.top), tabs: [...document.querySelectorAll('.ins-tabs [role="tab"]')].map((t) => t.textContent.replace(/\s+\d+$/, '').trim() + ':' + t.getAttribute('aria-selected')).join(), h1: [...document.querySelectorAll('h1')].filter((h) => h.getBoundingClientRect().height > 2).length }; });
103
103
  ok('N2 no page header: the panel starts at the top with one bar, and Intelligence is one page with no tabs (batch 15 item 1)', hd.main <= 20 && hd.bar - hd.main <= 24 && hd.h1 === 0 && hd.tabs === '' && await p.evaluate(() => document.title === 'PMOS · Intelligence'), JSON.stringify(hd)); }
104
104
  ok('N1 nothing on the page links to the console or the Chat page (premium-agreed-design)', await p.evaluate(() => !document.querySelector('#toConsole, a[href*="console.html"], a[href*="premium-chat"]')));
105
105
  ok('N2 the old parts are gone: no charts card, no About footer, no help button, no bell, no Library composer', await p.evaluate(() => !document.querySelector('#dashBody, #cDash, #foot, #helpB, #helpPop, .tb-bell, [data-tb="bell"], #repAsk, #repAskIn, #repFold, #listNew, #snap')));
106
106
  ok('I1 the page is served at /premium-intelligence and .html, and the old /premium-insights and .html still serve it', (await Promise.all(['/premium-intelligence', '/premium-intelligence.html', '/premium-insights', '/premium-insights.html'].map(async (u) => { const r = await fetch(BASE + u); return r.status === 200 && /PMOS · Intelligence/.test(await r.text()); }))).every(Boolean));
107
- for (const [go, re] of [['Home', /\/premium\.html$/], ['Board', /\/premium-board\.html$/]]) {
108
- const r2 = await open(); await r2.page.click('#czFab'); await r2.page.locator('#czMenu a', { hasText: go }).click();
109
- ok(`N1 the menu's ${go} opens its premium page`, await until(() => re.test(r2.page.url()), 5000), r2.page.url());
107
+ for (const [go, re] of [['Today', /\/premium\.html$/], ['Work', /\/premium-board\.html$/]]) {
108
+ const r2 = await open(); await r2.page.locator('#czMenu a', { hasText: go }).click();
109
+ ok(`N1 the rail's ${go} opens its page`, await until(() => re.test(r2.page.url()), 5000), r2.page.url());
110
110
  await r2.ctx.close();
111
111
  }
112
112
 
@@ -563,7 +563,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
563
563
  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 }) }); });
564
564
  await q.reload(); // the route above answers the second product from the first read on
565
565
  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);
566
- 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' && pf.all === '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));
566
+ 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
567
  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());
568
568
  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);
569
569
  await q.keyboard.press('Escape');
@@ -600,9 +600,9 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
600
600
  for (const [w, h] of [[1440, 900], [390, 844]]) {
601
601
  const R = await open({ w, h }); await sleep(300);
602
602
  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();
603
- 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) }; });
603
+ 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) }; });
604
604
  const phone = w < 720;
605
- ok(`I11 the page wears the Agreed design at ${w} px: Plus Jakarta Sans, the white panel, the pill View chip, the well strip, 56 px floating button`, /^"?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(244, 243, 240)' && f.rowH >= 60)) && !f.over && f.fab === 56 && (phone ? f.fabX > 300 : f.fabX === 36), JSON.stringify(f));
605
+ ok(`I11 the page wears the Agreed design at ${w} px: Plus Jakarta Sans, the white panel, the pill View chip, the well strip, 56 px floating button on a phone, 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(244, 243, 240)' && f.rowH >= 60)) && !f.over && (phone ? f.fab === 56 && f.fabX > 300 : f.rail === 72), JSON.stringify(f));
606
606
  if (!phone) {
607
607
  await toTrends(R.page);
608
608
  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 }; });
@@ -87,7 +87,9 @@ const product = (name, cond) => {
87
87
  return { ctx, page, errors };
88
88
  };
89
89
  // the picker: the chip by Good morning opens the list; ticks reads its tick boxes, close presses Escape (the pick applies then)
90
- const pick = async (page) => { if (!(await page.$('#ppMenu'))) { await page.waitForSelector('#hmPick', { timeout: 20000 }); await page.click('#hmPick'); await page.waitForSelector('#ppMenu', { timeout: 10000 }); } };
90
+ // six-place navigation: on a desktop the product choice shows on Work and Goals only, so Today's chip is hidden there. Today still reads the
91
+ // one shared pick, and this suite checks that through the same picker: it shows the hidden chip for the test only.
92
+ const pick = async (page) => { await page.addStyleTag({ content: 'body.cz-railon.cz-home #hmPick { display: inline-flex !important; }' }); if (!(await page.$('#ppMenu'))) { await page.waitForSelector('#hmPick', { timeout: 20000 }); await page.click('#hmPick'); await page.waitForSelector('#ppMenu', { timeout: 10000 }); } };
91
93
  const ticks = (page) => page.$$eval('#ppMenu [data-pp]', (els) => els.map((e) => e.dataset.pp + ':' + e.getAttribute('aria-checked')));
92
94
  const tick = (page, ws) => page.click(`#ppMenu [data-pp="${ws}"]`);
93
95
  const setting = async () => (await json('GET', '/api/settings')).body.settings.find((x) => x.key === 'ws.briefing.include');
@@ -199,7 +201,7 @@ const product = (name, cond) => {
199
201
  // the narrowed view (P12): the one-workspace page, with a way back
200
202
  const before = JSON.stringify(((await setting()) || {}).value);
201
203
  const { ctx, page } = await open({ q: '?ws=' + encodeURIComponent(wB.id) });
202
- await page.waitForSelector('#hmPick', { timeout: 20000 });
204
+ await page.waitForSelector('#hmPick', { state: 'attached', timeout: 20000 });
203
205
  ok('P12 ?ws= shows that one workspace on the chip and leaves the saved pick alone', /microsites$/.test(await page.getAttribute('#hmPick', 'aria-label')) && JSON.stringify(((await setting()) || {}).value) === before, await page.getAttribute('#hmPick', 'aria-label'));
204
206
  await ctx.close();
205
207
  }
@@ -25,7 +25,7 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
25
25
  const moreItem = async (pg, label, sel) => {
26
26
  if (await pg.isVisible('#czViewer')) { await pg.keyboard.press('Escape'); }
27
27
  if (label === 'Sources') {
28
- await pg.click('#czFab'); await pg.click('#czMenu [data-cz-settings]'); await pg.waitForSelector('#evSettings:not([hidden])');
28
+ if (await pg.isVisible('#czFab')) await pg.click('#czFab'); await pg.click('#czMenu [data-cz-settings]'); await pg.waitForSelector('#evSettings:not([hidden])');
29
29
  if (!(await pg.$('#evSettings [data-ev-sec="connectors"][aria-current="page"]'))) await pg.click('#evSettings [data-ev-sec="connectors"]');
30
30
  await pg.waitForSelector('#evSettings ' + sel, { timeout: 15000 });
31
31
  return;
@@ -84,11 +84,11 @@ const vw = () => { const v = document.querySelector('#czViewer:not([hidden])');
84
84
  const gone = await Promise.all(['/console.html', '/classic.html'].map((u) => fetch(BASE + u, { redirect: 'manual' })));
85
85
  ok('R1 /console.html and /classic.html go to Home: the console and the classic page are deleted', gone.every((r) => r.status === 302 && /\/premium\.html$/.test(r.headers.get('location') || '')), gone.map((r) => r.status).join());
86
86
  const old = await fetch(BASE + '/c3.html', { redirect: 'manual' }); ok('R1 /c3.html with no query goes to Home', old.status === 302 && /\/premium\.html$/.test(old.headers.get('location') || ''));
87
- const rail = await p.evaluate(() => ({ gone: !document.querySelector('nav.rail, .rail [data-go], #dlg'), places: [...document.querySelectorAll('#czMenu a')].map((a) => a.textContent.trim() + '>' + a.getAttribute('href')), cur: (document.querySelector('#czMenu [aria-current="page"]') || {}).textContent || '' }));
88
- ok('R1 no old rail and no old dialog; the place menu names Home, Board and Intelligence and Home is current', rail.gone && rail.places.join() === 'Home>/premium.html,Board>/premium-board.html,Intelligence>/premium-intelligence.html' && /Home/.test(rail.cur), JSON.stringify(rail));
87
+ const rail = await p.evaluate(() => ({ gone: !document.querySelector('nav.rail, .rail [data-go], #dlg'), places: [...document.querySelectorAll('#czMenu a')].map((a) => (a.querySelector('span, b') || a).textContent.trim() + '>' + a.getAttribute('href')), cur: (document.querySelector('#czMenu [aria-current="page"]') || {}).textContent || '' }));
88
+ ok('R1 no old rail and no old dialog; the places are Today, Work and Goals (slice 1) and Today is current', rail.gone && rail.places.join() === 'Today>/premium.html,Work>/premium-board.html,Goals>/premium-intelligence.html' && /Today/.test(rail.cur), JSON.stringify(rail));
89
89
  ok('R1 nothing on Home links to the console', await p.evaluate(() => !document.querySelector('a[href*="console"], a[href*="c3.html"], [data-href*="console"]')));
90
90
  // premium-uncovered-features (EvSettings): Settings is its own dialog, opened from the place menu
91
- await p.click('#czFab'); await p.click('[data-cz-settings]');
91
+ if (await p.isVisible('#czFab')) await p.click('#czFab'); await p.click('[data-cz-settings]');
92
92
  const st = await until(() => p.evaluate(() => { const d = document.querySelector('#evSettings:not([hidden])'); return d ? d.getAttribute('aria-label') + ' ' + ((d.querySelector('h2') || {}).textContent || '') : null; }));
93
93
  ok('R1 Settings opens its dialog', !!st && /Settings/.test(st), String(st));
94
94
  await p.keyboard.press('Escape');
@@ -271,7 +271,7 @@ const vw = () => { const v = document.querySelector('#czViewer:not([hidden])');
271
271
  const desk = document.querySelector('#hmDesk'), list = document.querySelector('#hmList'), cs = getComputedStyle(document.querySelector('#hmChat')), r = list.getBoundingClientRect();
272
272
  return { inset: Math.round(r.left), radius: cs.borderTopLeftRadius, list: Math.round(list.getBoundingClientRect().width), font: getComputedStyle(document.body).fontFamily, theme: document.documentElement.dataset.theme || '', bg: getComputedStyle(document.body).backgroundColor, rail: !!document.querySelector('nav.rail'), menu: !!document.querySelector('#czMenu, .cz-nav') };
273
273
  });
274
- ok(`R12 Home follows the Home A + C design at 1440 px (HvACDesk), ${theme}: the list at 16 px and 360 px wide, the chat a card with a 24 px radius, Plus Jakarta Sans, the floating place menu, no rail`, f.inset === 16 && f.radius === '24px' && f.list === 360 && /Plus Jakarta Sans/.test(f.font) && f.menu && !f.rail, JSON.stringify(f));
274
+ ok(`R12 Home follows the Home A + C design at 1440 px (HvACDesk), ${theme}: the list after the rail of places (slice 1: the desk at 12 + 72 + 12 px, the list 16 px inside it) and 360 px wide, the chat a card with a 24 px radius, Plus Jakarta Sans, the place menu, no old rail`, f.inset === 112 && f.radius === '24px' && f.list === 360 && /Plus Jakarta Sans/.test(f.font) && f.menu && !f.rail, JSON.stringify(f));
275
275
  await D.ctx.close();
276
276
  }
277
277
  return finish();
@@ -70,7 +70,7 @@ const view = () => { const v = document.querySelector('#czViewer:not([hidden])')
70
70
  ok('0 My work opens in the Viewer', !!A.up);
71
71
  if (!A.up) return finish(1);
72
72
  /* M1 */
73
- ok('M1 /premium-work.html opens Home, the place menu marks Home and nothing on the page is the old My work page', await p.evaluate(() => /\/premium\.html$/.test(location.pathname) && /Home/.test((document.querySelector('#czMenu [aria-current="page"]') || {}).textContent || '') && !document.querySelector('#qBody, #capIn, nav.rail')));
73
+ ok('M1 /premium-work.html opens Today (Home), the place menu marks Today and nothing on the page is the old My work page', await p.evaluate(() => /\/premium\.html$/.test(location.pathname) && /Today/.test((document.querySelector('#czMenu [aria-current="page"]') || {}).textContent || '') && !document.querySelector('#qBody, #capIn, nav.rail')));
74
74
  ok('M1 the page is still served at /premium-work and /premium-work.html', (await fetch(BASE + '/premium-work', { redirect: 'manual' })).status === 302 && (await fetch(BASE + '/premium-work.html')).status === 200);
75
75
  /* M4 */
76
76
  const v0 = await p.evaluate(view);
@@ -1,4 +1,23 @@
1
1
  [
2
+ {
3
+ "v": "0.610.0",
4
+ "at": "2026-11-18T19:46:47.442Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1359,
9
+ "t": "The navigation of six places, one thin rail on every page (slice 1)",
10
+ "s": "The navigation of six places, one thin rail on every page (slice 1)",
11
+ "k": "new"
12
+ },
13
+ {
14
+ "n": 1360,
15
+ "t": "One popup with the chat",
16
+ "s": "One popup with the chat",
17
+ "k": "new"
18
+ }
19
+ ]
20
+ },
2
21
  {
3
22
  "v": "0.609.0",
4
23
  "at": "2026-11-18T14:39:08.423Z",
@@ -75,20 +75,20 @@ const put = (root, rel, text) => { fs.mkdirSync(path.dirname(path.join(root, rel
75
75
  pg.on('pageerror', (e) => errors.push(String(e)));
76
76
  pg.on('request', (r) => { if (r.method() === 'POST') posts.push(new URL(r.url()).pathname); });
77
77
  await pg.goto(`${BASE}/${page}?ws=${encodeURIComponent(ws)}${theme ? '&theme=' + theme : ''}`);
78
- await pg.waitForSelector('#czFab', { timeout: 30000 });
78
+ await pg.waitForSelector('#czFab', { state: 'attached', timeout: 30000 }); // a desktop hides the button: the rail is the menu (slice 1)
79
79
  return { ctx, pg, errors, posts };
80
80
  };
81
- const menu = async (pg) => { if (await pg.isHidden('#czMenu')) await pg.click('#czFab'); await pg.waitForSelector('#czMenu:not([hidden])'); };
81
+ const menu = async (pg) => { if (await pg.isHidden('#czMenu')) if (await pg.isVisible('#czFab')) await pg.click('#czFab'); await pg.waitForSelector('#czMenu:not([hidden])'); };
82
82
 
83
83
  { /* U: the place menu on Home */
84
84
  const { ctx, pg, errors, posts } = await open();
85
85
  await menu(pg);
86
- const m = await pg.evaluate(() => ({ links: [...document.querySelectorAll('#czMenu a')].map((a) => a.textContent.trim()), tray: [...document.querySelectorAll('#czMenu .ev-tray button')].map((b) => b.getAttribute('aria-label').replace(/\..*$/, '')), rows: document.querySelectorAll('#czMenu .ev-mi, #czMenu [data-cz-more], #czMenu [data-cz-news], #czMenu [data-cz-sources], #czMenu [data-ev-theme]').length }));
86
+ const m = await pg.evaluate(() => ({ links: [...document.querySelectorAll('#czMenu a')].map((a) => (a.querySelector('span, b') || a).textContent.trim()), tray: [...document.querySelectorAll('#czMenu .ev-tray button, #czMenu .ev-rtray button')].map((b) => b.getAttribute('aria-label').replace(/\..*$/, '')), rows: document.querySelectorAll('#czMenu .ev-mi, #czMenu [data-cz-more], #czMenu [data-cz-news], #czMenu [data-cz-sources], #czMenu [data-ev-theme]').length }));
87
87
  // feedback batch 16 item 5 (canvas FmA1Menu): the three places, then Search and Settings as icons, and nothing else; guide-in-app adds Guide between them
88
- ok('U1 the menu holds Home, Board, Intelligence, then Ask PMOS, Search, Guide and Settings as four icons, and no New for you, Sources, More or Theme', m.links.join() === 'Home,Board,Intelligence' && m.tray.join() === 'Ask PMOS,Search (⌘K),Guide,Settings' && m.rows === 0, JSON.stringify(m));
88
+ ok('U1 the rail holds Today, Work, Goals, then Ask PMOS, Search, Guide and Settings as four icons, and no New for you, Sources, More or Theme', m.links.join() === 'Today,Work,Goals' && m.tray.join() === 'Ask PMOS,Search (⌘K),Guide,Settings' && m.rows === 0, JSON.stringify(m));
89
89
  await snap(pg, 'menu-1440-light');
90
90
  await pg.keyboard.press('Escape');
91
- ok('U2 Escape closes the menu', await until(() => pg.isHidden('#czMenu')));
91
+ ok('U2 Escape leaves the rail: on a desktop it is always shown (slice 1)', !(await pg.isHidden('#czMenu')) && await pg.evaluate(() => document.querySelector('#czMenu').classList.contains('ev-rail')));
92
92
 
93
93
  /* S: Search */
94
94
  await pg.keyboard.press('Control+k');
@@ -128,7 +128,7 @@ const put = (root, rel, text) => { fs.mkdirSync(path.dirname(path.join(root, rel
128
128
  await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
129
129
  // Sources is Settings › Connectors now (feedback batch 16 item 5, canvas FmA3Settings): each source's last read, ↻ in the header reads all
130
130
  await menu(pg); await pg.click('#czMenu [data-cz-settings]');
131
- const stale = await pg.evaluate(() => !!document.querySelector('#czFdRisk:not([hidden]), #czMenu .ev-md.risk'));
131
+ const stale = await pg.evaluate(() => !!document.querySelector('#czFdRisk:not([hidden]), #czMenu .ev-md.risk, #czMenu .ev-rd.risk'));
132
132
  await pg.waitForSelector('#evSettings:not([hidden])');
133
133
  if (!stale) await pg.click('#evSettings [data-ev-sec="connectors"]');
134
134
  const src = await until(() => pg.evaluate(() => { const d = document.querySelector('#evSettings:not([hidden])'); const r = d ? [...d.querySelectorAll('.ev-fr[data-src]')] : []; return r.length ? { n: r.length, h: (d.querySelector('#evStTitle') || {}).textContent, all: !!d.querySelector('.ev-top [data-ev-readall]'), info: !!d.querySelector('.ev-top [data-ev-info]'), t: d.textContent } : null; }), 20000);
@@ -173,10 +173,10 @@ const put = (root, rel, text) => { fs.mkdirSync(path.dirname(path.join(root, rel
173
173
  await pg.click('#evSettings [data-ev-sec="general"]'); await pg.click('#evSettings [data-ev-seg="theme"][data-v="dark"]');
174
174
  await pg.keyboard.press('Escape');
175
175
  ok('D1 Theme Dark in Settings › General draws the page dark', !!(await until(() => pg.evaluate(() => document.documentElement.dataset.theme === 'dark' && getComputedStyle(document.body).backgroundColor !== 'rgb(255, 255, 255)'))));
176
- await pg.goto(`${BASE}/premium-insights.html?ws=${encodeURIComponent(ws)}`); await pg.waitForSelector('#czFab');
176
+ await pg.goto(`${BASE}/premium-insights.html?ws=${encodeURIComponent(ws)}`); await pg.waitForSelector('#czFab', { state: 'attached' });
177
177
  ok('D1 the choice is kept for the next page', await pg.evaluate(() => document.documentElement.dataset.theme === 'dark'));
178
178
  await menu(pg);
179
- ok('U1 no page has More in its menu', await pg.evaluate(() => !document.querySelector('#czMenu [data-cz-more]') && document.querySelectorAll('#czMenu .ev-tray button').length === 4));
179
+ ok('U1 no page has More in its menu', await pg.evaluate(() => !document.querySelector('#czMenu [data-cz-more]') && document.querySelectorAll('#czMenu .ev-tray button, #czMenu .ev-rtray button').length === 4));
180
180
  await snap(pg, 'menu-1440-dark');
181
181
  await pg.keyboard.press('Escape');
182
182
  await pg.keyboard.press('Control+k'); await pg.waitForSelector('#evSearch:not([hidden])'); await pg.keyboard.type('billing');
@@ -193,7 +193,7 @@ const put = (root, rel, text) => { fs.mkdirSync(path.dirname(path.join(root, rel
193
193
  // UI grill U2: Settings and Sources left the Board's ⋯; the place menu's Settings opens the designed Settings, and the sources are its Connectors
194
194
  if (await pg.$('#moreBtn')) {
195
195
  ok('B1 the Board\'s ⋯ holds no Settings, Sources or Theme', await pg.evaluate(() => !document.querySelector('#moreMenu #srcItem') && !document.querySelector('#moreMenu #tbTheme') && document.querySelector('#settingsBtn').hidden));
196
- await pg.click('#czFab'); await pg.click('#czMenu [data-cz-settings]');
196
+ if (await pg.isVisible('#czFab')) await pg.click('#czFab'); await pg.click('#czMenu [data-cz-settings]');
197
197
  ok('B1 the Board\'s Settings (the place menu) opens the designed Settings', !!(await until(() => pg.evaluate(() => !!document.querySelector('#evSettings:not([hidden])')))));
198
198
  await pg.keyboard.press('Escape');
199
199
  await until(() => pg.evaluate(() => !document.querySelector('#evSettings:not([hidden])')));
@@ -1,25 +1,32 @@
1
1
  ---
2
2
  type: Guide
3
- title: "Layout and first run: the places, the menu, the Viewer, the launcher and Adler"
4
- description: "The three places, the menu button, the Viewer, the keys and the phone; the first run; when features appear; the PMOS app; and Adler."
5
- timestamp: 2026-11-18
3
+ title: "Layout and first run: the places, the navigation, the Viewer, the launcher and Adler"
4
+ description: "The places, the navigation at the left, the Viewer, the keys and the phone; the first run; when features appear; the PMOS app; and Adler."
5
+ timestamp: 2026-11-19
6
6
  ---
7
7
 
8
8
  # Layout and first run
9
9
 
10
- PMOS has three places: **Home**, **Board** and **Intelligence**. Each fills the window. There is no top bar and no left sidebar of places. The console and its three columns were removed; their old addresses open Home.
10
+ PMOS has three places: **Today**, **Work** and **Goals**. PMOS opens on Today. Until each place gets its new page, Today is the page that was called Home, Work is the Board and Goals is Intelligence. **Events**, **Library** and **Routine** join the navigation when their pages ship. The console and its three columns were removed; their old addresses open Today.
11
11
 
12
- ## The menu button
12
+ ## The navigation
13
13
 
14
- The round button at the bottom of every page moves between the places: bottom left on a computer, bottom right on a phone. Press it to open the menu: **Home**, **Board** and **Intelligence**, then three icons: **Search**, **Guide** and **Settings**. The menu holds nothing else. In a chat on a phone, **⋯** in the top bar opens the same menu (see [On a phone](#on-a-phone)).
14
+ On a computer, one thin panel at the left edge of every page holds the places. It is the same on every page. Press a place to go there.
15
15
 
16
- - The button has a blue dot when something is new for you and an amber dot when a source is stale.
17
- - Press the place you are on to go back to its start.
18
- - [Home](home.md) explains the menu in full.
16
+ - At its foot: the chat icon, **Search**, **Guide** and **Settings**.
17
+ - A number on Today says how many calls are yours. A number on the chat icon says how many sessions wait for you.
18
+ - A blue dot on a place means that it has something new to show. An amber dot on Settings means that a source is stale.
19
+ - Settings opens over the page you are on. The navigation stays.
20
+ - The navigation does not count as a panel.
21
+ - The product choice is at the top left of Work and Goals. It is one choice for both. It shows the product's full name, "All products", or the first name and "+2".
19
22
 
20
- ## Home
23
+ On a phone, the round button at the bottom right opens the same places as a menu, then the four icons. In a chat on a phone, **⋯** in the top bar opens the same menu (see [On a phone](#on-a-phone)).
21
24
 
22
- The list of your work is on the left, the chat is in the middle, and the Viewer is on the right. A row opens its item in the Viewer. The panel icon shows or hides the list, and PMOS keeps that choice on this computer.
25
+ - [Home](home.md) explains Today in full.
26
+
27
+ ## Today
28
+
29
+ Today is the page that was called Home. The list of your work is on the left, the chat is in the middle, and the Viewer is on the right. A row opens its item in the Viewer. The panel icon shows or hides the list, and PMOS keeps that choice on this computer.
23
30
 
24
31
  ## The Viewer
25
32
 
@@ -30,6 +37,20 @@ The Viewer shows one item: an initiative, a program, a task, a document, a meeti
30
37
  - It keeps one trail: a press inside it keeps the item behind, ← goes back, → goes forward, and the browser's Back and Forward move along the same trail. × or Escape closes it.
31
38
  - One item shows in one Viewer only. If an item is already open, opening it again (a row, a ⌘-click, Open beside) shows it in the Viewer it is in. It never opens a second copy.
32
39
 
40
+ ## Work and its chat, in one popup
41
+
42
+ On a computer, an initiative you open from Home, Board or Intelligence opens in one popup over the page. The work is on the left and the chat about the same work is on the right. A thin dimmed edge of the page shows around it. Escape, × or a press on the edge closes it.
43
+
44
+ - Drag the grip between the two sides to change their widths. Each side keeps a smallest width, and PMOS keeps the chat's width on this computer.
45
+ - The hide icon in the chat's top bar hides the chat, and the work takes the full width. **Ask PMOS** brings the chat back.
46
+ - When you open one thing from another inside the popup, the path and ← show at the top of the work.
47
+ - The chat's title chooses the session. It shows your sessions, newest first, each with the work it is about and its state: **Waits for you**, **PMOS is working**, or when you last used it. **New session** starts another session about the same work. **All sessions** shows the full list with a search box, and the popup stays open.
48
+ - The stop icon on a live session ends it at once. **Session ended** shows with **Undo** for a few seconds, and the session moves to **Earlier**.
49
+ - The chat icon opens the popup on the session that waits for you, or else the newest. The left side shows that session's work, or the list of sessions when it is about no work.
50
+ - The split icon in the chat's top bar, **Open work beside the page**, keeps work beside the page instead, as before. Press it again in the popup to go back. PMOS keeps this choice on this computer.
51
+
52
+ A phone keeps its own layout. A shared read-only Board has no popup.
53
+
33
54
  ## Board and Intelligence
34
55
 
35
56
  The Board shows initiatives by stage, with programs, a timeline and a list. Intelligence shows the goals from each product's OKR file. A panel on either page (an initiative, a program, a goal, the chat) can dock on the left or the right: drag its header to that half of the window, or press **Arrange** in its header. Each kind of panel stays on its side after a reload. [Programs on the Board](programs.md) and [Intelligence reads your OKR file](intelligence-okr-goals.md) explain them.
@@ -15,6 +15,7 @@
15
15
  const path = require('path');
16
16
  const { spawn } = require('child_process');
17
17
  const { findBrowser } = require('./lib/find-browser');
18
+ const { besidePage } = require('./lib/beside-page'); // these checks are about work beside the page, not the popup
18
19
  const T = require('./test-run').configure({ name: 'home-other-product' });
19
20
  const IP = require('./lib/initiative-premium.js');
20
21
  const F = require('./fixtures/initiative-premium-facts.js');
@@ -50,7 +51,7 @@ const model = () => { const m = IP.build(F.facts()); return { ...m, id: ID, key:
50
51
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
51
52
  srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
52
53
  await T.waitForServer(BASE);
53
- browser = await chromium.launch({ executablePath: exe });
54
+ browser = besidePage(await chromium.launch({ executablePath: exe }));
54
55
 
55
56
  const ctx = await browser.newContext({ viewport: { width: 1440, height: 900 } });
56
57
  const page = await ctx.newPage();
@@ -17,6 +17,7 @@ const fs = require('fs');
17
17
  const path = require('path');
18
18
  const { spawn } = require('child_process');
19
19
  const { findBrowser } = require('./lib/find-browser');
20
+ const { besidePage } = require('./lib/beside-page'); // these checks are about work beside the page, not the popup
20
21
  const T = require('./test-run').configure({ name: 'home-railcard' });
21
22
  const B = require('./lib/briefing-premium.js');
22
23
  const F = require('./fixtures/briefing-premium-facts.js');
@@ -47,7 +48,7 @@ const BF = require('./fixtures/board-premium-facts.js');
47
48
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed — the home-railcard suite cannot run'); return finish(1); }
48
49
  srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
49
50
  await T.waitForServer(BASE);
50
- browser = await chromium.launch({ executablePath: exe });
51
+ browser = besidePage(await chromium.launch({ executablePath: exe }));
51
52
 
52
53
  const open = async ({ w = 1440, h = 900, dark = false } = {}) => {
53
54
  const ctx = await browser.newContext({ viewport: { width: w, height: h }, colorScheme: dark ? 'dark' : 'light' });
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+ /* beside-page: a browser-test helper. On a desk an initiative opens in the popup with the chat (public/pm/cozy-popup.js, initiative
3
+ * one-popup-with-chat), which covers the page. A suite written for work beside the page (the panels, a page that stays pressable) wraps its
4
+ * browser with this: every context it makes starts with the PM's choice "Open work beside the page" (localStorage cz-pop-open = beside),
5
+ * unless the suite set the key itself. */
6
+ function besidePage(browser) {
7
+ const make = browser.newContext.bind(browser);
8
+ browser.newContext = async (...a) => {
9
+ const ctx = await make(...a);
10
+ await ctx.addInitScript(() => { try { if (localStorage.getItem('cz-pop-open') == null) localStorage.setItem('cz-pop-open', 'beside'); } catch { /* no storage */ } });
11
+ return ctx;
12
+ };
13
+ return browser;
14
+ }
15
+ module.exports = { besidePage };