create-pmos 0.609.0 → 0.611.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 (145) hide show
  1. package/package.json +69 -27
  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-columns-test.js +2 -1
  7. package/workspace/board-deliveries-test.js +2 -1
  8. package/workspace/board-programs-test.js +9 -5
  9. package/workspace/board-publish-ui-test.js +2 -1
  10. package/workspace/board-shared-ui-test.js +2 -1
  11. package/workspace/board-workflows-test.js +2 -1
  12. package/workspace/briefing-premium-adddoc-test.js +2 -1
  13. package/workspace/briefing-premium-board-test.js +10 -9
  14. package/workspace/briefing-premium-doc-edit-test.js +2 -1
  15. package/workspace/briefing-premium-initiative-test.js +7 -6
  16. package/workspace/briefing-premium-insights-test.js +12 -11
  17. package/workspace/briefing-premium-products-test.js +4 -2
  18. package/workspace/briefing-premium-sources-test.js +1 -1
  19. package/workspace/briefing-premium-test.js +6 -5
  20. package/workspace/briefing-premium-work-test.js +1 -1
  21. package/workspace/calm-timeline-test.js +2 -1
  22. package/workspace/changelog.json +68 -0
  23. package/workspace/core-docs-workflow-test.js +2 -1
  24. package/workspace/ev-everywhere-test.js +11 -10
  25. package/workspace/guide/home.md +2 -2
  26. package/workspace/guide/index.md +4 -0
  27. package/workspace/guide/layout.md +92 -11
  28. package/workspace/guide/programs.md +16 -2
  29. package/workspace/guide/routine.md +50 -0
  30. package/workspace/guide/scheduled-tasks-and-cli.md +1 -1
  31. package/workspace/guide/settings-and-switches.md +1 -1
  32. package/workspace/home-other-product-test.js +2 -1
  33. package/workspace/home-railcard-test.js +2 -1
  34. package/workspace/impact-screens-test.js +3 -1
  35. package/workspace/ini-workflow-test.js +2 -1
  36. package/workspace/lib/beside-page.js +15 -0
  37. package/workspace/lib/classic-board.js +15 -0
  38. package/workspace/lib/events-place.js +216 -0
  39. package/workspace/lib/library-items.js +78 -0
  40. package/workspace/lib/notes.js +6 -1
  41. package/workspace/lib/route-modules.js +4 -0
  42. package/workspace/lib/routes-events-place.js +166 -0
  43. package/workspace/lib/routes-library.js +89 -0
  44. package/workspace/lib/routes-pop-work.js +39 -0
  45. package/workspace/lib/routes-report-setups.js +20 -0
  46. package/workspace/lib/routes-today-log.js +48 -0
  47. package/workspace/lib/routine-reports.js +52 -0
  48. package/workspace/lib/today-log.js +131 -0
  49. package/workspace/live-pill-round-test.js +11 -9
  50. package/workspace/metric-drafts-ui-test.js +3 -1
  51. package/workspace/milestone-pins-test.js +2 -1
  52. package/workspace/milestone-suggest-test.js +3 -1
  53. package/workspace/package-lock.json +2 -2
  54. package/workspace/package.json +1 -1
  55. package/workspace/panels-test.js +6 -4
  56. package/workspace/premium-board-actions-test.js +3 -1
  57. package/workspace/premium-chat-context-test.js +6 -6
  58. package/workspace/premium-chat-line-test.js +1 -1
  59. package/workspace/premium-chat-notes-test.js +1 -1
  60. package/workspace/premium-core-doc-issue-test.js +2 -1
  61. package/workspace/premium-rec-tab-test.js +2 -1
  62. package/workspace/premium-vw-backlog-test.js +3 -1
  63. package/workspace/premium-vw-cal-test.js +1 -1
  64. package/workspace/premium-vw-doc-test.js +2 -1
  65. package/workspace/premium-vw-item-test.js +3 -1
  66. package/workspace/premium-vw-jira-test.js +3 -1
  67. package/workspace/product-lane-test.js +2 -1
  68. package/workspace/program-charter-test.js +3 -1
  69. package/workspace/program-leave-test.js +3 -1
  70. package/workspace/program-order-test.js +2 -1
  71. package/workspace/program-panel-test.js +5 -3
  72. package/workspace/public/pm/bd-ini-panel.js +75 -8
  73. package/workspace/public/pm/bd-prog-panel.js +55 -8
  74. package/workspace/public/pm/bd-scroll.js +4 -2
  75. package/workspace/public/pm/bd-work.css +130 -0
  76. package/workspace/public/pm/bd-work.js +356 -0
  77. package/workspace/public/pm/cozy-board.css +3 -0
  78. package/workspace/public/pm/cozy-ev.css +52 -0
  79. package/workspace/public/pm/cozy-events-view.js +142 -0
  80. package/workspace/public/pm/cozy-events.css +107 -0
  81. package/workspace/public/pm/cozy-events.js +210 -0
  82. package/workspace/public/pm/cozy-evmodel.js +1 -1
  83. package/workspace/public/pm/cozy-library.css +36 -0
  84. package/workspace/public/pm/cozy-live-pill.js +3 -1
  85. package/workspace/public/pm/cozy-nav.js +70 -7
  86. package/workspace/public/pm/cozy-panels.js +1 -1
  87. package/workspace/public/pm/cozy-pick.css +3 -0
  88. package/workspace/public/pm/cozy-pick.js +6 -2
  89. package/workspace/public/pm/cozy-pop-work.css +165 -0
  90. package/workspace/public/pm/cozy-pop-work.js +427 -0
  91. package/workspace/public/pm/cozy-popup.css +113 -0
  92. package/workspace/public/pm/cozy-popup.js +408 -0
  93. package/workspace/public/pm/cozy-routine-model.js +111 -0
  94. package/workspace/public/pm/cozy-routine-pop.js +196 -0
  95. package/workspace/public/pm/cozy-routine.css +102 -0
  96. package/workspace/public/pm/cozy-routine.js +156 -0
  97. package/workspace/public/pm/cozy-schedwork.js +6 -5
  98. package/workspace/public/pm/cozy-settings.js +10 -1
  99. package/workspace/public/pm/cozy-today-app.js +236 -0
  100. package/workspace/public/pm/cozy-today-model.js +176 -0
  101. package/workspace/public/pm/cozy-today-page.css +100 -0
  102. package/workspace/public/pm/cozy-today-view.js +76 -0
  103. package/workspace/public/pm/cozy-viewer.js +66 -18
  104. package/workspace/public/pm/home-app.js +29 -6
  105. package/workspace/public/pm/home-ini.js +39 -7
  106. package/workspace/public/pm/library-model.js +69 -0
  107. package/workspace/public/pm/library-open.js +34 -0
  108. package/workspace/public/pm/page-chat.js +16 -4
  109. package/workspace/public/pm/pop-sessions.js +65 -0
  110. package/workspace/public/pm/pop-work-model.js +335 -0
  111. package/workspace/public/pm/premium-board.js +137 -11
  112. package/workspace/public/pm/premium-insights.js +14 -2
  113. package/workspace/public/pm/premium-library.js +122 -0
  114. package/workspace/public/pm/premium-shell.js +1 -1
  115. package/workspace/public/premium-board.html +1 -0
  116. package/workspace/public/premium-events.html +42 -0
  117. package/workspace/public/premium-library.html +31 -0
  118. package/workspace/public/premium-routine.html +31 -0
  119. package/workspace/public/today.html +50 -0
  120. package/workspace/ready-dash-ui-test.js +3 -1
  121. package/workspace/rename-test.js +2 -1
  122. package/workspace/run-tests.js +4 -1
  123. package/workspace/server.js +3 -2
  124. package/workspace/sort-order-test.js +2 -1
  125. package/workspace/split-merge-ui-test.js +3 -1
  126. package/workspace/stage-card-tasks-test.js +5 -3
  127. package/workspace/stage-card-test.js +2 -1
  128. package/workspace/task-card-test.js +2 -1
  129. package/workspace/task-delete-test.js +3 -1
  130. package/workspace/task-links-test.js +4 -2
  131. package/workspace/task-milestones-test.js +4 -2
  132. package/workspace/task-plans-test.js +3 -1
  133. package/workspace/task-press-test.js +3 -1
  134. package/workspace/task-views-test.js +10 -8
  135. package/workspace/test-lists/events-place.json +11 -0
  136. package/workspace/test-lists/library-place.json +9 -0
  137. package/workspace/test-lists/one-popup.json +9 -0
  138. package/workspace/test-lists/pop-work.json +9 -0
  139. package/workspace/test-lists/routine-place.json +9 -0
  140. package/workspace/test-lists/today-log.json +9 -0
  141. package/workspace/test-lists/work-view.json +9 -0
  142. package/workspace/timeline-holds-test.js +3 -1
  143. package/workspace/tk-tasks-test.js +3 -1
  144. package/workspace/viewer-trail-test.js +1 -1
  145. package/workspace/workflows-setup-test.js +1 -1
@@ -0,0 +1,50 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="pmos-nonce" content="" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7
+ <title>PMOS · Today</title>
8
+ <!-- Today (slice 5 of the six-place navigation, initiative today-log-page; board 1 on Exploring 2): the place the app lands on. On a desk it is
9
+ one page, Today's log on the left and today's agenda on the right (pm/cozy-today-view.js, drawn by home-app.js into #tdPage); a row opens its work
10
+ in the one popup with the chat. It is Home's own page with data-today, so every press Home has (the popup, the chat, a meeting, a task)
11
+ works the same here. A phone keeps Home as it is. The markup below is premium.html's. -->
12
+ <!-- Home in the Agreed design (initiative premium-agreed-design, Home; mockup Main.dc.html place="work"). One desk: the list on the left, the chat
13
+ in the middle and the Viewer on the right. An initiative is a layout of this page (?ini=<id>): its card sits at the top of the list. On a phone
14
+ the list is the page, and a row opens its conversation with a back bar (premium-uncovered-features, HmPhone). It replaces the Briefing, My work, Chat and the initiative
15
+ page; their addresses open it. The default page; the old console stays at /console.html and nothing here links to it. -->
16
+ <link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials" />
17
+ <meta name="theme-color" content="#090b0c" />
18
+ <meta name="mobile-web-app-capable" content="yes" />
19
+ <meta name="apple-mobile-web-app-capable" content="yes" />
20
+ <meta name="apple-mobile-web-app-title" content="PMOS" />
21
+ <meta name="apple-mobile-web-app-status-bar-style" content="black" />
22
+ <link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
23
+ <link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
24
+ <link rel="stylesheet" href="/pm/cozy.css" />
25
+ <link rel="stylesheet" href="/pm/cozy-pick.css" />
26
+ <link rel="stylesheet" href="/pm/cozy-home.css" />
27
+ <link rel="stylesheet" href="/pm/cozy-today.css" />
28
+ <link rel="stylesheet" href="/pm/home-impact.css" />
29
+ <link rel="stylesheet" href="/pm/cozy-panel.css" />
30
+ <link rel="stylesheet" href="/pm/cozy-onboard.css" />
31
+ <link rel="stylesheet" href="/pm/load-shapes.css" />
32
+ <link rel="stylesheet" href="/pm/cozy-today-page.css" />
33
+ </head>
34
+ <body class="cz cz-home" data-today>
35
+ <header class="hm-top" id="hmTop">
36
+ <button type="button" class="hm-ib hm-back" id="hmBack" aria-label="Back to Today" title="Back to Today"><svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M19 12H5M11 6l-6 6 6 6"/></svg></button>
37
+ <div class="hm-top-t"><b id="hmTopTitle">Home</b><span id="hmTopSub"></span></div>
38
+ <button type="button" class="hm-needs" id="hmNeeds" aria-controls="hmList" aria-expanded="false"><i aria-hidden="true"></i><span id="hmNeedsN">Reading</span></button>
39
+ </header>
40
+ <main class="hm-desk" id="hmDesk">
41
+ <aside class="hm-list" id="hmList" aria-label="Sessions"></aside>
42
+ <section class="hm-chat" id="hmChat" aria-label="Conversation"></section>
43
+ <div class="hm-vw" data-cz-viewer-host data-cz-vw-overlay></div>
44
+ <section class="td-page" id="tdPage" aria-label="Today" hidden></section>
45
+ </main>
46
+ <div class="hm-menu" id="hmMenu" role="menu" aria-label="More" hidden></div>
47
+ <div class="hm-toast" id="toast" role="status" aria-live="polite"></div>
48
+ <script type="module" src="/pm/home-app.js"></script>
49
+ </body>
50
+ </html>
@@ -14,6 +14,8 @@
14
14
  * P the product page on Home (390 and 1440) is the same one page; the metrics review is a row in its Reports tab.
15
15
  * PMOS_SHOTS=<dir> also saves the screenshots. */
16
16
  const path = require('path');
17
+ const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
18
+ const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
17
19
  const fs = require('fs');
18
20
  const { spawn } = require('child_process');
19
21
  const { findBrowser } = require('./lib/find-browser');
@@ -50,7 +52,7 @@ const SPONSORS = '# Inline login slips to early December unless passkeys move to
50
52
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
51
53
  srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
52
54
  await T.waitForServer(BASE);
53
- browser = await chromium.launch({ executablePath: exe });
55
+ browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
54
56
  if (SHOTS) fs.mkdirSync(SHOTS, { recursive: true });
55
57
  const shot = async (p, name) => { if (SHOTS) { await sleep(450); await p.screenshot({ path: path.join(SHOTS, name + '.png') }); } };
56
58
 
@@ -12,6 +12,7 @@
12
12
  * E a refusal keeps the field open with the reason
13
13
  * S on a phone the field fills the header */
14
14
  const path = require('path');
15
+ const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
15
16
  const { spawn } = require('child_process');
16
17
  const { findBrowser } = require('./lib/find-browser');
17
18
  const T = require('./test-run').configure({ name: 'rename' });
@@ -41,7 +42,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
41
42
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
42
43
  srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
43
44
  await T.waitForServer(BASE);
44
- browser = await chromium.launch({ executablePath: exe });
45
+ browser = classicBoard(await chromium.launch({ executablePath: exe }));
45
46
 
46
47
  const model = () => { const m = BP.build(F.programFacts('idpf')); const r = m.rows.find((x) => x.id === 'descope-parity'); if (r) r.epics = ['IDPF-12']; return m; };
47
48
  const open = async ({ w = 1440, h = 900, qs = '?ws=idpf&focus=descope-parity', refuse = false } = {}) => {
@@ -408,7 +408,10 @@ function traceChanges(changes, ctx) {
408
408
  // the page map (`const PAGES = { '/path': 'page.html', … }`, one line): a change to it reaches only the suites that name an entry
409
409
  // it adds, drops or points elsewhere, by its path or its page file (live round W3: adding /pm/present reached all 511 suites)
410
410
  const pm = pagesChanged(raw);
411
- if (pm) { for (const x of pm) for (const sfile of list) if ((get(sfile) || '').includes(x)) picked.add(sfile); continue; }
411
+ // the bare root '/' is in every path, so it counts only as a string of its own ('/' or "/"): a suite that fetches the root
412
+ // (six-place navigation slice 5: '/' moved from premium.html to today.html reached all 526 suites)
413
+ const names = (src, x) => (x === '/' ? /(['"`])\/\1/.test(src) : src.includes(x));
414
+ if (pm) { for (const x of pm) for (const sfile of list) if (names(get(sfile) || '', x)) picked.add(sfile); continue; }
412
415
  const own = fnAt(n);
413
416
  if (own && own.name !== 'handleRequest' && optionOnly(own, lines)) continue;
414
417
  if (own && own.name !== 'handleRequest') { const w = useOf(own.name); if (w) return `${own.name} (server.js:${n}) is used by ${w}`; continue; }
@@ -7312,7 +7312,8 @@ async function handleRequest(req, res) {
7312
7312
  const built = BUILD_RE.exec(url.pathname);
7313
7313
  const p = built ? built[2] : url.pathname;
7314
7314
 
7315
- // Home (public/premium.html) is the default page: '/' and '/index.html' serve it. The console (/console.html, /c3.html) and the
7315
+ // Today (public/today.html, slice 5 of the six-place navigation) is the page the app lands on: '/' and '/index.html' serve it. It is Home
7316
+ // with data-today: a desk draws Today's log and agenda, a phone keeps Home. Home (public/premium.html) stays at its address. The console (/console.html, /c3.html) and the
7316
7317
  // classic shell (/classic.html) were removed (workspace-legacy-cleanup); their old links open Home with the same query. The
7317
7318
  // old first-run page (/welcome) opens the Agreed first run (/premium-welcome.html) with the same query.
7318
7319
  // premium-agreed-design H3: Home replaced the Briefing, My work and Chat. My work and Chat open Home with their own query, so an
@@ -7351,7 +7352,7 @@ async function handleRequest(req, res) {
7351
7352
  res.writeHead(302, { Location: '/premium.html?onboard=1', 'Cache-Control': 'no-store' });
7352
7353
  return res.end();
7353
7354
  }
7354
- const PAGES = { '/': 'premium.html', '/index.html': 'premium.html', '/premium': 'premium.html', '/premium.html': 'premium.html', '/premium-board': 'premium-board.html', '/premium-board.html': 'premium-board.html', '/premium-intelligence': 'premium-intelligence.html', '/premium-intelligence.html': 'premium-intelligence.html', '/premium-insights': 'premium-intelligence.html', '/premium-insights.html': 'premium-intelligence.html', '/premium-welcome': 'premium-welcome.html', '/premium-welcome.html': 'premium-welcome.html', '/premium-viewer': 'premium-viewer.html', '/premium-viewer.html': 'premium-viewer.html', '/premium-rec': 'premium-rec.html', '/premium-rec.html': 'premium-rec.html', '/premium-workflows': 'premium-workflows.html', '/premium-workflows.html': 'premium-workflows.html', '/pm/present': 'premium-present.html' };
7355
+ const PAGES = { '/premium-routine': 'premium-routine.html', '/premium-routine.html': 'premium-routine.html', '/': 'today.html', '/index.html': 'today.html', '/today': 'today.html', '/today.html': 'today.html', '/premium': 'premium.html', '/premium.html': 'premium.html', '/premium-board': 'premium-board.html', '/premium-board.html': 'premium-board.html', '/premium-intelligence': 'premium-intelligence.html', '/premium-intelligence.html': 'premium-intelligence.html', '/premium-events': 'premium-events.html', '/premium-events.html': 'premium-events.html', '/premium-library': 'premium-library.html', '/premium-library.html': 'premium-library.html', '/premium-insights': 'premium-intelligence.html', '/premium-insights.html': 'premium-intelligence.html', '/premium-welcome': 'premium-welcome.html', '/premium-welcome.html': 'premium-welcome.html', '/premium-viewer': 'premium-viewer.html', '/premium-viewer.html': 'premium-viewer.html', '/premium-rec': 'premium-rec.html', '/premium-rec.html': 'premium-rec.html', '/premium-workflows': 'premium-workflows.html', '/premium-workflows.html': 'premium-workflows.html', '/pm/present': 'premium-present.html' };
7355
7356
  const page = capture ? 'capture.html' : Object.prototype.hasOwnProperty.call(PAGES, p) ? PAGES[p] : null;
7356
7357
  if (page) {
7357
7358
  // pm-os-absorb Run 2 (R25, X11): the per-launch nonce goes into the base meta line, nowhere else. no-store, so a
@@ -8,6 +8,7 @@
8
8
  * H Home: the same order as the Board; the sort button in its header; a product's initiatives are one list the grip arranges
9
9
  * P phone: the button fits the header, no sideways scroll, no grip shows, and a held product header drags */
10
10
  const path = require('path');
11
+ const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
11
12
  const { spawn } = require('child_process');
12
13
  const { findBrowser } = require('./lib/find-browser');
13
14
  const T = require('./test-run').configure({ name: 'sort-order' });
@@ -56,7 +57,7 @@ const route = async (page) => {
56
57
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
57
58
  srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
58
59
  await T.waitForServer(BASE);
59
- browser = await chromium.launch({ executablePath: exe });
60
+ browser = classicBoard(await chromium.launch({ executablePath: exe }));
60
61
 
61
62
  const board = async (o = {}) => {
62
63
  const ctx = await browser.newContext({ viewport: { width: o.w || 1440, height: o.h || 900 }, hasTouch: !!o.touch, isMobile: !!o.touch });
@@ -11,6 +11,8 @@
11
11
  * P phone: the card in the full-screen Viewer
12
12
  * SHOTS=<dir> saves the screenshots. */
13
13
  const fs = require('fs');
14
+ const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
15
+ const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
14
16
  const path = require('path');
15
17
  const { spawn } = require('child_process');
16
18
  const { findBrowser } = require('./lib/find-browser');
@@ -67,7 +69,7 @@ const shot = (p, name) => (SHOTS ? p.screenshot({ path: path.join(SHOTS, name) }
67
69
  }
68
70
  await until(async () => { const r = await (await fetch(`${BASE}/api/board-premium?ws=${ws}&board=${ws}`)).json(); return r.state === 'ready' && (r.model.initiatives.list.rows.find((x) => x.id === 'fx-full') || {}).suggest; }, 90000, 500);
69
71
 
70
- browser = await chromium.launch({ executablePath: exe });
72
+ browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
71
73
  const open = async (o = {}) => {
72
74
  const ctx = await openMission(await browser.newContext({ viewport: { width: o.w || 1440, height: o.h || 900 } }));
73
75
  const page = await ctx.newPage();
@@ -13,6 +13,8 @@
13
13
  * S11 a long press on a phone's title lifts the row · S12 a milestone on the Timeline is its ◇ only; Kanban says "◇ Nov 14"
14
14
  * S13 light and dark, phone and desktop: no page error. PMOS_SHOTS=<dir> writes the screens. */
15
15
  const path = require('path');
16
+ const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
17
+ const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
16
18
  const { spawn } = require('child_process');
17
19
  const { findBrowser } = require('./lib/find-browser');
18
20
  const T = require('./test-run').configure({ name: 'stage-card-tasks' });
@@ -58,7 +60,7 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
58
60
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
59
61
  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, '..') }) });
60
62
  await T.waitForServer(BASE);
61
- browser = await chromium.launch({ executablePath: exe });
63
+ browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
62
64
 
63
65
  // where: 'home' (premium.html's Viewer) or 'board' (the Board's panel)
64
66
  const open = async ({ where = 'home', w = 390, h = 844, theme = 'light', view = 'list' } = {}) => {
@@ -312,7 +314,7 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
312
314
  await A.ctx.close();
313
315
 
314
316
  /* ── the Board's panel, desktop ── */
315
- const B = await open({ where: 'board', w: 1440, h: 1600 }), q = B.page;
317
+ const B = await open({ where: 'board', w: 1520, h: 1600 }), q = B.page;
316
318
  await q.hover('#czViewer .iv-tr[data-iv-r="task-b1"]');
317
319
  const R10 = await q.evaluate(() => { const r = document.querySelector('#czViewer .iv-tr[data-iv-r="task-b1"]'), g = r.querySelector('.iv-grip'); return { grip: !!g && getComputedStyle(g).opacity === '1', dates: r.querySelector('.iv-dc').textContent.replace(/\s+/g, ' ').trim(), av: !!r.querySelector('.iv-rav') }; });
318
320
  ok('S10 desktop: a row shows start – due at the right and the owner\'s face; on hover the grip shows', R10.grip && R10.dates === 'Oct 30 – Nov 6' && R10.av, JSON.stringify(R10));
@@ -362,7 +364,7 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
362
364
  await B.ctx.close();
363
365
 
364
366
  /* S12 the Timeline and Kanban */
365
- const C = await open({ where: 'board', w: 1440, h: 1600, view: 'timeline' }), c = C.page;
367
+ const C = await open({ where: 'board', w: 1520, h: 1600, view: 'timeline' }), c = C.page;
366
368
  await c.evaluate(() => { const b = [...document.querySelectorAll('#czViewer .ivt-gh')].find((x) => /Deliver/.test(x.textContent) && x.getAttribute('aria-expanded') === 'false'); if (b) b.click(); });
367
369
  const T12 = await until(() => c.evaluate(() => { const d = document.querySelector('#czViewer .ivt [data-ivt-bar="task-d1"]'); return d ? { cls: d.className, one: d.dataset.one, label: (document.querySelector('#czViewer .ivt-ms.lb b') || {}).textContent } : null; }));
368
370
  ok('S12 Timeline: a milestone is its ◇ on its date with no bar, the date beside it', T12 && /\bivt-d\b/.test(T12.cls) && /\bms\b/.test(T12.cls) && !/ivt-b/.test(T12.cls) && T12.label === 'Nov 14', JSON.stringify(T12));
@@ -9,6 +9,7 @@
9
9
  * switch, Move now (open steps ask for a note) and Back; every step done before a milestone: Move now moves it to ◆ Deliver.
10
10
  * PMOS_SHOTS=<dir> also saves a screenshot of each state there. */
11
11
  const path = require('path');
12
+ const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
12
13
  const fs = require('fs');
13
14
  const { spawn } = require('child_process');
14
15
  const { pathToFileURL } = require('url');
@@ -94,7 +95,7 @@ async function pure() {
94
95
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
95
96
  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, '..') }) });
96
97
  await T.waitForServer(BASE);
97
- browser = await chromium.launch({ executablePath: exe });
98
+ browser = besidePage(await chromium.launch({ executablePath: exe }));
98
99
  const BOARD = BP.build(BF.facts()), BRIEF = BRP.build(BRF.facts());
99
100
  if (SHOTS) fs.mkdirSync(SHOTS, { recursive: true });
100
101
 
@@ -13,6 +13,7 @@ const fs = require('fs');
13
13
  const { spawn } = require('child_process');
14
14
  const { pathToFileURL } = require('url');
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 T = require('./test-run').configure({ name: 'task-card' });
17
18
  const IP = require('./lib/initiative-premium.js');
18
19
  const F = require('./fixtures/initiative-premium-facts.js');
@@ -132,7 +133,7 @@ async function pure() {
132
133
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
133
134
  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, '..') }) });
134
135
  await T.waitForServer(BASE);
135
- browser = await chromium.launch({ executablePath: exe });
136
+ browser = besidePage(await chromium.launch({ executablePath: exe }));
136
137
  const BOARD = BP.build(BF.facts()), BRIEF = BRP.build(BRF.facts());
137
138
  if (SHOTS) fs.mkdirSync(SHOTS, { recursive: true });
138
139
  const shot = async (p, name, sel) => { if (!SHOTS) return; await sleep(300); await (sel ? p.locator(sel).first() : p).screenshot({ path: path.join(SHOTS, name + '.png') }); };
@@ -11,8 +11,10 @@
11
11
  * ⋯ opens and ends in Delete, and a press deletes at once with the Undo toast and closes the Viewer
12
12
  * SHOTS_16=<dir>: the picker with the trash, the toast, and the phone, into <dir>. */
13
13
  const path = require('path');
14
+ const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
14
15
  const { spawn } = require('child_process');
15
16
  const { findBrowser } = require('./lib/find-browser');
17
+ const { besidePage } = require('./lib/beside-page'); // these checks are about work beside the page, not the popup
16
18
  const T = require('./test-run').configure({ name: 'task-delete' });
17
19
  const BP = require('./lib/board-premium.js');
18
20
  const F = require('./fixtures/board-premium-facts.js');
@@ -53,7 +55,7 @@ const openCard = async (pg, uid, V = '#czViewer') => {
53
55
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
54
56
  srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
55
57
  await T.waitForServer(BASE);
56
- browser = await chromium.launch({ executablePath: exe });
58
+ browser = classicBoard(besidePage(await chromium.launch({ executablePath: exe })));
57
59
 
58
60
  /** The Board on the timeline, with the initiative panel open on Scarlet's Tasks. o: { w, h, phone, dark } */
59
61
  const open = async (o = {}) => {
@@ -15,9 +15,11 @@
15
15
  * P a phone (the List only): a press on the link icon opens Waits on / Then as a bottom sheet
16
16
  * SHOTS=<dir> writes the screenshots there. */
17
17
  const path = require('path');
18
+ const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
18
19
  const fs = require('fs');
19
20
  const { spawn } = require('child_process');
20
21
  const { findBrowser } = require('./lib/find-browser');
22
+ const { besidePage } = require('./lib/beside-page'); // these checks are about work beside the page, not the popup
21
23
  const T = require('./test-run').configure({ name: 'task-links-ui' });
22
24
  const BP = require('./lib/board-premium.js');
23
25
  const F = require('./fixtures/board-premium-facts.js');
@@ -70,11 +72,11 @@ function model() {
70
72
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
71
73
  srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
72
74
  await T.waitForServer(BASE);
73
- browser = await chromium.launch({ executablePath: exe });
75
+ browser = classicBoard(besidePage(await chromium.launch({ executablePath: exe })));
74
76
  const shot = async (page, name, sel) => { if (!SHOTS) return; fs.mkdirSync(SHOTS, { recursive: true }); const p = path.join(SHOTS, name + '.png'); if (sel) await page.locator(sel).first().screenshot({ path: p }); else await page.screenshot({ path: p }); };
75
77
 
76
78
  const open = async (o = {}) => {
77
- const ctx = await browser.newContext({ viewport: { width: o.w || 1440, height: o.h || 900 } });
79
+ const ctx = await browser.newContext({ viewport: { width: o.w || 1520, height: o.h || 900 } }); // 1520: the rail of places takes 80 px (the Viewer keeps its wide Tasks layout)
78
80
  await ctx.addInitScript(() => { try { if (localStorage.getItem('cz-pn:board') == null) localStorage.setItem('cz-pn:board', JSON.stringify({ v: 2, share: 0.405 })); } catch { /* none */ } }); // the Board's Viewer at 560 px beside the page (cozy-panels.js keeps only this share), so its Tasks Timeline is wide enough to drag
79
81
  const page = await ctx.newPage();
80
82
  const errors = [], posts = [];
@@ -14,6 +14,8 @@
14
14
  * P the phone: no dates; a tap on the row's lane opens a sheet with its milestones
15
15
  * SHOTS_3=<dir>: the Board, the counted ◇'s list, the picker, the Tasks Timeline and the phone sheet, into <dir>. */
16
16
  const path = require('path');
17
+ const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
18
+ const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
17
19
  const { spawn } = require('child_process');
18
20
  const { findBrowser } = require('./lib/find-browser');
19
21
  const T = require('./test-run').configure({ name: 'task-milestones' });
@@ -62,7 +64,7 @@ const ITEMS = [
62
64
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
63
65
  srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
64
66
  await T.waitForServer(BASE);
65
- browser = await chromium.launch({ executablePath: exe });
67
+ browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
66
68
 
67
69
  /** The Board on the timeline. o: { w, h, span, dark, tasksView } */
68
70
  const open = async (o = {}) => {
@@ -146,7 +148,7 @@ const ITEMS = [
146
148
  await p.click('#ibBody [data-key="board:scarlet"]');
147
149
  await p.waitForSelector('.iv-tr', { timeout: 8000 });
148
150
  // every stage open, so each task row is drawn
149
- const unfold = async (sel) => { for (let i = 0; i < 12; i++) { const b = await p.$(sel); if (!b) break; await b.click(); await p.waitForTimeout(80); } };
151
+ const unfold = async (sel) => { for (let i = 0; i < 12; i++) { if (!(await p.$(sel))) break; await p.locator(sel).first().click(); await p.waitForTimeout(80); } }; // a locator finds the button again if the panel redraws
150
152
  await unfold('.iv-ws[data-iv-fold^="sec:"][aria-expanded="false"]');
151
153
  const rows = await p.evaluate(() => [...document.querySelectorAll('.iv-tr')].map((r) => ({ t: (r.querySelector('.iv-tt') || {}).textContent, ms: !!r.querySelector('.iv-ms, .iv-dms'), ask: (r.querySelector('.iv-dc.ms') || {}).textContent || '' })));
152
154
  const by = (t) => rows.find((x) => x.t === t) || {};
@@ -13,6 +13,8 @@
13
13
  * P a phone: the menu opens as a bottom sheet
14
14
  * SHOTS=<dir> writes the screenshots there. */
15
15
  const path = require('path');
16
+ const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
17
+ const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
16
18
  const fs = require('fs');
17
19
  const { spawn } = require('child_process');
18
20
  const { findBrowser } = require('./lib/find-browser');
@@ -71,7 +73,7 @@ function model() {
71
73
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
72
74
  srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
73
75
  await T.waitForServer(BASE);
74
- browser = await chromium.launch({ executablePath: exe });
76
+ browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
75
77
  const shot = async (page, name, sel) => { if (!SHOTS) return; fs.mkdirSync(SHOTS, { recursive: true }); const p = path.join(SHOTS, name + '.png'); if (sel) await page.locator(sel).first().screenshot({ path: p }); else await page.screenshot({ path: p }); };
76
78
 
77
79
  const open = async (o = {}) => {
@@ -8,6 +8,8 @@
8
8
  * T4 the Board's panel: a task's title is a press and opens the same editor as a drill-in, ← back to the initiative
9
9
  * Serves the real pages from the real server; the reads are fixtures. A 1440 shot of each editor goes to PMOS_SHOTS when it is set. */
10
10
  const path = require('path');
11
+ const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
12
+ const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
11
13
  const { spawn } = require('child_process');
12
14
  const { findBrowser } = require('./lib/find-browser');
13
15
  const { openMission } = require('./lib/open-mission');
@@ -87,7 +89,7 @@ const back = (p) => p.evaluate(() => { const b = document.querySelector('#czView
87
89
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
88
90
  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, '..') }) });
89
91
  await T.waitForServer(BASE);
90
- browser = await chromium.launch({ executablePath: exe });
92
+ browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
91
93
 
92
94
  /* Home: the initiative's page in the Viewer */
93
95
  const H = await page('/premium.html?ini=' + ID + '&ws=w1&board=w1&theme=light');
@@ -16,6 +16,8 @@
16
16
  * and no Kanban drag) and its dates stay the PM's to set (date press and bar drag save to the task); a key PMOS has not read is plain text.
17
17
  * H8 (Wawan 2026-10-29): a Jira card's drop and a Jira row's status press move the ticket in Jira (POST /api/jira/move), Undo, a refusal, moving. */
18
18
  const path = require('path');
19
+ const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
20
+ const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
19
21
  const { spawn } = require('child_process');
20
22
  const { findBrowser } = require('./lib/find-browser');
21
23
  const T = require('./test-run').configure({ name: 'task-views' });
@@ -70,9 +72,9 @@ const IF = require('./fixtures/initiative-premium-facts.js');
70
72
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
71
73
  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, '..') }) });
72
74
  await T.waitForServer(BASE);
73
- browser = await chromium.launch({ executablePath: exe });
75
+ browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
74
76
 
75
- const open = async ({ w = 1440, h = 900, theme = 'light', touch = false, store = null } = {}) => {
77
+ const open = async ({ w = 1520, h = 900, theme = 'light', touch = false, store = null } = {}) => { // 1520: the rail of places takes 80 px, and the Viewer beside the Board stays as wide as it was at 1440 (its wide Tasks layout)
76
78
  const ctx = await browser.newContext({ viewport: { width: w, height: h }, hasTouch: touch, isMobile: touch });
77
79
  await ctx.addInitScript(() => { try { if (localStorage.getItem('cz-pn:board') == null) localStorage.setItem('cz-pn:board', JSON.stringify({ v: 2, share: 0.405 })); } catch { /* none */ } }); // the Board's Viewer at 560 px beside the page (cozy-panels.js keeps only this share), so its Tasks Timeline is wide enough to drag
78
80
  if (store) await ctx.addInitScript((s) => { for (const [k, v] of Object.entries(s)) localStorage.setItem(k, v); }, store);
@@ -365,7 +367,7 @@ const IF = require('./fixtures/initiative-premium-facts.js');
365
367
 
366
368
  for (const theme of ['light', 'dark']) {
367
369
  /* desktop: the Board's panel (a phone shows the List only, so it has no Timeline to check) */
368
- const D = await openH({ where: 'board', w: 1440, h: 900, theme }), d = D.page;
370
+ const D = await openH({ where: 'board', w: 1520, h: 900, theme }), d = D.page;
369
371
  const fl = await d.evaluate(() => ({ head: !!document.querySelector('#czViewer [data-iv-full]'), view: !!document.querySelector('#czViewer .iv-th [data-iv-vbtn]') }));
370
372
  ok(`H5 Board 1440 ${theme}: the Tasks header holds the view button and no Full width icon`, !fl.head && fl.view, JSON.stringify(fl));
371
373
  const ax = await axisGeo(d);
@@ -414,7 +416,7 @@ const IF = require('./fixtures/initiative-premium-facts.js');
414
416
  { uid: 'j3', title: 'MSD-9999 Navigation tabs', status: 'In progress', owner: 'Wawan', start: '2026-10-15', end: '2026-10-24' },
415
417
  ];
416
418
  const JK = [{ key: 'MSD-4376', title: 'Microsite page', status: 'Done', raw: 'Closed' }, { key: 'MSD-4377', title: 'Plan block', status: 'In progress', raw: 'In Review', due: '2026-11-30' }];
417
- const J = await openH({ where: 'board', w: 1440, h: 900, view: 'list', tasks: JT, tickets: JK }), j = J.page;
419
+ const J = await openH({ where: 'board', w: 1520, h: 900, view: 'list', tasks: JT, tickets: JK }), j = J.page;
418
420
  await j.evaluate(() => { const b = [...document.querySelectorAll('#czViewer .iv-grp')].find((x) => /^Done/.test(x.textContent)); if (b) b.click(); });
419
421
  await sleep(200);
420
422
  const L = await j.evaluate(() => { const row = (re) => [...document.querySelectorAll('#czViewer .iv-tr')].find((r) => re.test(r.textContent));
@@ -464,7 +466,7 @@ const IF = require('./fixtures/initiative-premium-facts.js');
464
466
  await J.ctx.close();
465
467
  // By epic: a task linked to a ticket its draft put in Jira shows once, as the ticket, with the task's bar on the Timeline
466
468
  const DR = { ok: true, drafted: 2, groups: [], epic: {}, tickets: [{ id: 'S1', summary: 'Plan block at the top', inJira: true, key: 'MSD-4377', jira: { status: 'In Review', category: 'doing' } }, { id: 'S2', summary: 'FAQ section', inJira: false, selectable: true }] };
467
- const E = await openH({ where: 'board', w: 1440, h: 900, view: 'timeline', tasks: JT, tickets: JK.slice(0, 1), drafts: DR }), e = E.page;
469
+ const E = await openH({ where: 'board', w: 1520, h: 900, view: 'timeline', tasks: JT, tickets: JK.slice(0, 1), drafts: DR }), e = E.page;
468
470
  await e.click('#czViewer [data-iv-vbtn]'); await until(() => e.evaluate(() => !!document.querySelector('.tkc.ivq .ivs [data-ivs-more]')));
469
471
  await e.click('.tkc.ivq .ivs [data-ivs-more]');
470
472
  await until(() => e.evaluate(() => !!document.querySelector('.ig-pop [role="menuitemradio"]')));
@@ -485,7 +487,7 @@ const IF = require('./fixtures/initiative-premium-facts.js');
485
487
  { uid: 'j2', title: 'Plan block at the top [MSD-4377]', status: 'To do', owner: 'Wawan', start: '2026-10-14', end: '2026-10-22' },
486
488
  ];
487
489
  const JK = [{ key: 'MSD-4376', title: 'Microsite page', status: 'Done', raw: 'Closed' }, { key: 'MSD-4377', title: 'Plan block', status: 'In progress', raw: 'In Review' }];
488
- const J = await openH({ where: 'board', w: 1440, h: 900, view: 'kanban', tasks: JT, tickets: JK }), j = J.page;
490
+ const J = await openH({ where: 'board', w: 1520, h: 900, view: 'kanban', tasks: JT, tickets: JK }), j = J.page;
489
491
  const asks = [], answers = { 'mv-0000000001': [{ state: 'moving' }, { state: 'moved', status: 'In Review' }], 'mv-0000000003': [{ state: 'refused', why: 'it needs a fix version.' }] };
490
492
  await j.route('**/api/jira/move*', (r) => { const rq = r.request();
491
493
  if (rq.method() === 'POST') { const b = JSON.parse(rq.postData() || '{}'); asks.push(b); return r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, id: 'mv-' + String(asks.length).padStart(10, '0'), move: { key: b.key, to: b.to, state: 'moving' } }) }); }
@@ -536,7 +538,7 @@ const IF = require('./fixtures/initiative-premium-facts.js');
536
538
  await J.ctx.close();
537
539
  // while the agent works: the row is drawn where the PM moved it, its square a dashed outline, "Moving in Jira"
538
540
  const JKm = [JK[0], { ...JK[1], status: 'Done', move: { id: 'mv-0000000009', state: 'moving', to: 'Done', from: 'In progress' } }];
539
- const W = await openH({ where: 'board', w: 1440, h: 900, view: 'list', tasks: JT, tickets: JKm }), q = W.page;
541
+ const W = await openH({ where: 'board', w: 1520, h: 900, view: 'list', tasks: JT, tickets: JKm }), q = W.page;
540
542
  const mvr = await until(() => q.evaluate(() => { const r = [...document.querySelectorAll('#czViewer .iv-tr')].find((x) => /Plan block/.test(x.textContent)); return r ? { mv: !!r.querySelector('.iv-jq.mv'), txt: (r.querySelector('.iv-jmv') || {}).textContent || '', sq: getComputedStyle(r.querySelector('.iv-jq')).borderStyle } : null; }));
541
543
  ok('H8 moving: a dashed square and "Moving in Jira" on the row', !!mvr && mvr.mv && mvr.txt === 'Moving in Jira' && mvr.sq === 'dashed', JSON.stringify(mvr));
542
544
  await shot(q, 'jira-moving-1440');
@@ -554,7 +556,7 @@ const IF = require('./fixtures/initiative-premium-facts.js');
554
556
  { uid: 's6', title: 'API contract', status: 'Done', owner: 'Una', start: '2026-09-29', end: '2026-10-03' },
555
557
  ];
556
558
  for (const theme of ['light', 'dark']) {
557
- const B = await openH({ where: 'board', w: 1440, h: 900, theme, tasks: STASKS });
559
+ const B = await openH({ where: 'board', w: 1520, h: 900, theme, tasks: STASKS });
558
560
  await B.page.evaluate(() => { if (window.czViewer && window.czViewer.wide) window.czViewer.wide(true); }); // the Viewer as wide as the split panel makes it
559
561
  await sleep(400);
560
562
  const S1 = await B.page.evaluate(() => {
@@ -0,0 +1,11 @@
1
+ {
2
+ "_comment": "Events, the place for everything with a date (events-place, done test T1-T6): the pure model lib/events-place.js, the route lib/routes-events-place.js with fake readers, and the pure markup public/pm/cozy-events-view.js. No browser.",
3
+ "modules": [
4
+ "events-place.test.js",
5
+ "events-view.test.mjs"
6
+ ],
7
+ "seconds": {
8
+ "events-place.test.js": 1,
9
+ "events-view.test.mjs": 1
10
+ }
11
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Library, slice 7 of the six-place navigation (initiative library-place, done test T1-T7): lib/library-items.js, GET /api/library-items, pm/library-model.js, the rail's Library. Pure, node.",
3
+ "modules": [
4
+ "library-place.test.js"
5
+ ],
6
+ "seconds": {
7
+ "library-place.test.js": 2
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "One popup with the chat (one-popup-with-chat, done test T1-T3, T5, T7): the pure session rows (public/pm/pop-sessions.js), the Viewer's header in the popup, and a read of cozy-popup.js. No browser.",
3
+ "modules": [
4
+ "one-popup.test.js"
5
+ ],
6
+ "seconds": {
7
+ "one-popup.test.js": 1
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Nav slice 3 (popup-work-contents, done test T1-T9): what the popup shows for work. The pure model (public/pm/pop-work-model.js), the describe route (lib/routes-pop-work.js) and a read of the page code. No browser.",
3
+ "modules": [
4
+ "pop-work.test.js"
5
+ ],
6
+ "seconds": {
7
+ "pop-work.test.js": 2
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Routine, and a report in the popup (routine-place, done test T1-T6): the report rows (lib/routine-reports.js) and their GET, the table (public/pm/cozy-routine-model.js), the report popup's html (public/pm/cozy-routine-pop.js), the rail and the Settings entry. No browser.",
3
+ "modules": [
4
+ "routine-place.test.js"
5
+ ],
6
+ "seconds": {
7
+ "routine-place.test.js": 1
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Today (today-log-page, slice 5 of the six-place navigation; done test T1-T8): the log store and its route, the pure log and agenda models, their markup. No browser.",
3
+ "modules": [
4
+ "today-log.test.js"
5
+ ],
6
+ "seconds": {
7
+ "today-log.test.js": 1
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Work, one view (work-one-view, done test T1-T5, T7): the pure parts of public/pm/bd-work.js and a read of its files. No browser.",
3
+ "modules": [
4
+ "work-view.test.js"
5
+ ],
6
+ "seconds": {
7
+ "work-view.test.js": 1
8
+ }
9
+ }
@@ -16,6 +16,8 @@
16
16
  * title; a future gap's press offers + New task with its dates; the legend keys only while drawn; the phone sheet lists the gap and the skip
17
17
  * SHOTS_8=<dir>: the timeline at 1440 and 390, light and dark, and the ⏸ menu, into <dir>. */
18
18
  const path = require('path');
19
+ const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
20
+ const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
19
21
  const { spawn } = require('child_process');
20
22
  const { findBrowser } = require('./lib/find-browser');
21
23
  const T = require('./test-run').configure({ name: 'timeline-holds' });
@@ -55,7 +57,7 @@ const ROWS = [
55
57
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
56
58
  srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
57
59
  await T.waitForServer(BASE);
58
- browser = await chromium.launch({ executablePath: exe });
60
+ browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
59
61
 
60
62
  /** The Board on the timeline. o: { w, h, rows, span, dark } */
61
63
  const open = async (o = {}) => {
@@ -9,9 +9,11 @@
9
9
  * labeled Send · G2 Your groups: drag between, ⋯, New group · G3 Timeline and Kanban draw the groups · G4 the phone · G5 the Board's panel
10
10
  * · G6 the old panel is gone, New → A task opens the Tasks field */
11
11
  const fs = require('fs');
12
+ const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
12
13
  const path = require('path');
13
14
  const { spawn } = require('child_process');
14
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
15
17
  const { openMission } = require('./lib/open-mission');
16
18
  const T = require('./test-run').configure({ name: 'tk-tasks' });
17
19
  const IP = require('./lib/initiative-premium.js');
@@ -76,7 +78,7 @@ const LAYOUT = { ok: true, auto: true, held: [], by: 'stage', names: [], of: {},
76
78
  try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
77
79
  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, '..') }) });
78
80
  await T.waitForServer(BASE);
79
- browser = await chromium.launch({ executablePath: exe });
81
+ browser = classicBoard(besidePage(await chromium.launch({ executablePath: exe })));
80
82
 
81
83
  // the layout answers like lib/initiative-layout.js folds it: a press changes it, and the next read sees the change
82
84
  const open = async ({ w = 1440, h = 900, theme = 'light', view = VIEW, layout = {}, page: pg = 'home', touch = false } = {}) => {
@@ -53,7 +53,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
53
53
  html: `<p>${x}</p>${['A', 'B', 'C', 'D', 'E'].filter((y) => y !== x).map((y) => `<button type="button" data-tgo="${y}">${y}</button>`).join('')}` });
54
54
  window.__item = item;
55
55
  document.addEventListener('click', (e) => { const b = e.target.closest('[data-tgo]'); if (b) setTimeout(() => window.czViewer.open(item(b.dataset.tgo)), 30); }); // a module that reads first
56
- const o = document.createElement('div'); o.id = 'tOut'; o.style.cssText = 'position:fixed;left:8px;bottom:8px;z-index:1;display:flex;gap:4px';
56
+ const o = document.createElement('div'); o.id = 'tOut'; o.style.cssText = 'position:fixed;left:8px;bottom:8px;z-index:100;display:flex;gap:4px';
57
57
  o.innerHTML = '<button type="button" data-tgo="A">A</button><button type="button" data-tgo="E">E</button>';
58
58
  document.body.append(o);
59
59
  });
@@ -90,7 +90,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
90
90
  };
91
91
  // Settings › Workspaces › Workflows the PM's way: the menu, Settings, Workspaces, the Workflows row
92
92
  const openWf = async (pg) => {
93
- await pg.click('#czFab'); await pg.click('[data-cz-settings]');
93
+ if (await pg.isVisible('#czFab')) await pg.click('#czFab'); await pg.click('[data-cz-settings]');
94
94
  await pg.click('#evSettings [data-ev-sec="workspaces"]'); await pg.click('#evSettings [data-ev-sub="workflows"]');
95
95
  await pg.waitForSelector('#evSettings #wfMain', { timeout: 8000 }).catch(() => {});
96
96
  };