create-pmos 0.444.0 → 0.445.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 (82) hide show
  1. package/package.json +13 -13
  2. package/payload/KIT-VERSION +2 -2
  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/payload/state/log.md +1 -1
  7. package/workspace/adler-moments-test.js +8 -0
  8. package/workspace/adler-seasons-art-test.js +3 -0
  9. package/workspace/board-columns-test.js +168 -0
  10. package/workspace/board-programs-test.js +1 -1
  11. package/workspace/briefing-premium-board-test.js +83 -6
  12. package/workspace/briefing-premium-insights-test.js +43 -0
  13. package/workspace/calm-timeline-test.js +3 -1
  14. package/workspace/changelog.json +12 -0
  15. package/workspace/guide/jira.md +13 -1
  16. package/workspace/guide/ready-made-dashboards.md +2 -2
  17. package/workspace/lib/board-fold.js +33 -5
  18. package/workspace/lib/console-state.js +5 -1
  19. package/workspace/lib/factory-join.js +46 -14
  20. package/workspace/lib/freshness.js +14 -1
  21. package/workspace/lib/initiative-rows.js +38 -4
  22. package/workspace/lib/issues.js +8 -1
  23. package/workspace/lib/jira-cli.js +18 -2
  24. package/workspace/lib/jira-moves.js +119 -0
  25. package/workspace/lib/jira-tickets.js +23 -4
  26. package/workspace/lib/notes.js +4 -2
  27. package/workspace/lib/offloop.js +75 -29
  28. package/workspace/lib/page-build.js +97 -0
  29. package/workspace/lib/plan-items.js +24 -3
  30. package/workspace/lib/plan-tree.js +62 -9
  31. package/workspace/lib/ready-reports.js +22 -8
  32. package/workspace/lib/refresh.js +14 -2
  33. package/workspace/lib/routes-board-premium.js +9 -1
  34. package/workspace/lib/routes-boards.js +74 -15
  35. package/workspace/lib/routes-brief-page.js +3 -1
  36. package/workspace/lib/routes-calendar-import.js +13 -1
  37. package/workspace/lib/routes-ready-reports.js +28 -5
  38. package/workspace/lib/task-links.js +12 -1
  39. package/workspace/lib/workflows-store.js +14 -3
  40. package/workspace/milestone-pins-test.js +1 -1
  41. package/workspace/package-lock.json +2 -2
  42. package/workspace/package.json +1 -1
  43. package/workspace/panels-test.js +150 -6
  44. package/workspace/program-panel-test.js +6 -6
  45. package/workspace/public/pm/bd-cols.js +149 -0
  46. package/workspace/public/pm/bd-pane.js +41 -0
  47. package/workspace/public/pm/bd-span.js +29 -11
  48. package/workspace/public/pm/cozy-board.css +45 -0
  49. package/workspace/public/pm/cozy-insights.css +8 -0
  50. package/workspace/public/pm/cozy-live-pill.css +1 -0
  51. package/workspace/public/pm/cozy-live-pill.js +10 -1
  52. package/workspace/public/pm/cozy-panels.css +24 -3
  53. package/workspace/public/pm/cozy-panels.js +275 -108
  54. package/workspace/public/pm/cozy-viewer.js +3 -1
  55. package/workspace/public/pm/dash-view.js +5 -2
  56. package/workspace/public/pm/home-app.js +8 -8
  57. package/workspace/public/pm/ini-edit.js +5 -1
  58. package/workspace/public/pm/ini-tasks.js +134 -29
  59. package/workspace/public/pm/ini-view-model.js +4 -3
  60. package/workspace/public/pm/ini-view.css +74 -25
  61. package/workspace/public/pm/ini-view.js +4 -4
  62. package/workspace/public/pm/ini-wf-model.js +9 -0
  63. package/workspace/public/pm/ini-wf.js +14 -9
  64. package/workspace/public/pm/ins-pane.js +55 -0
  65. package/workspace/public/pm/jira-move.js +50 -0
  66. package/workspace/public/pm/live-model.js +3 -2
  67. package/workspace/public/pm/pn-narrow.js +76 -0
  68. package/workspace/public/pm/premium-board.js +77 -26
  69. package/workspace/public/pm/premium-insights.js +7 -1
  70. package/workspace/public/premium-board.html +2 -0
  71. package/workspace/ready-dash-ui-test.js +4 -4
  72. package/workspace/server.js +71 -20
  73. package/workspace/skills/jira-move.skill +35 -0
  74. package/workspace/stage-card-tasks-test.js +1 -0
  75. package/workspace/task-links-test.js +1 -0
  76. package/workspace/task-plans-test.js +1 -1
  77. package/workspace/task-views-test.js +161 -12
  78. package/workspace/test-lists/board-columns.json +5 -0
  79. package/workspace/test-lists/jira-moves.json +11 -0
  80. package/workspace/test-lists/page-speed-fold.json +5 -0
  81. package/workspace/test-lists/page-speed-reads.json +5 -0
  82. package/workspace/timeline-holds-test.js +1 -1
@@ -75,6 +75,7 @@ function model() {
75
75
 
76
76
  const open = async (o = {}) => {
77
77
  const ctx = await browser.newContext({ viewport: { width: o.w || 1440, height: o.h || 900 } });
78
+ 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
79
  const page = await ctx.newPage();
79
80
  const errors = [], posts = [];
80
81
  page.on('pageerror', (e) => errors.push(String((e && e.stack) || e)));
@@ -85,7 +85,7 @@ function model() {
85
85
  await page.route('**/api/task-plans/preview*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, summary: { added: 0, moved: 1, changed: 1, dropped: 0, conflicts: [], milestones: [], planName: 'Change 1 · faster pilot · Oct 17', notChosen: [] } }) }));
86
86
  await page.route('**/api/task-plans/live', (r) => { posts.push({ url: r.request().url(), body: r.request().postDataJSON() }); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, plan: 'plan-2', name: 'Change 1 · faster pilot', summary: {}, versions: null }) }); });
87
87
  await page.addInitScript(([s]) => { try { if (!sessionStorage.getItem('set')) { sessionStorage.setItem('set', '1'); for (const [k, v] of Object.entries(s)) localStorage.setItem(k, v); } } catch { /* none */ } },
88
- [{ 'pmos.board.view': 'time', 'pmos.board.span': o.span || 'half', 'pmos.tasks.view': 'timeline', 'pmos.tasks.zoom': 'month', ...(o.store || {}) }]);
88
+ [{ 'pmos.board.tlcols': '[]', 'pmos.board.view': 'time', 'pmos.board.span': o.span || 'half', 'pmos.tasks.view': 'timeline', 'pmos.tasks.zoom': 'month', ...(o.store || {}) }]);
89
89
  await page.goto(BASE + '/premium-board.html?ws=w1&board=w1');
90
90
  await page.waitForSelector('#ibBody [data-key]', { timeout: 15000 });
91
91
  await page.waitForTimeout(500);
@@ -5,7 +5,7 @@
5
5
  * XtvA5PhoneKanban, XtvA6PhoneTimeline, XtvA7BoardPanel). Serves the real Board page from the real server, answers GET /api/board-premium
6
6
  * with the model lib/board-premium.js builds from fixtures/board-premium-facts.js plus one initiative's tasks, and captures the writes.
7
7
  * V1 the view switch, remembered · V2 the box's one press and its caret · V3 the date press · V4 Timeline · V5 a bar's drag · V6 Kanban
8
- * V7 a card's drag · V8 Won't do and Archived in the List · V9 the phone. SHOTS_5B=<dir> writes the screens.
8
+ * V7 a card's drag · V8 Won't do and Archived in the List · V9 the phone · V13 a card's date on one line. SHOTS_5B=<dir> writes the screens.
9
9
  * Batch 18 item 1 (1-B; XvpA4Sheet, XvpA3Timeline, XvpA3bMonths): the header holds one view button, its sheet picks View, Group by and Zoom
10
10
  * (Weeks, Months, All); the List shows only the stages with something open and folds a stage after 3 tasks; All fits the whole initiative.
11
11
  * V10 the sheet · V11 the List's folds · V12 Timeline at All. The pure half is viewer-tasks.test.js.
@@ -13,7 +13,8 @@
13
13
  * Viewer makes every button 44 px) · H2 the Today line unbroken · H3 no half-cut axis label · H4 one ◇ a milestone · H5 Full width in the
14
14
  * Tasks header · H6 the grouping kept over a task edit. Home's Viewer (premium.html) and the Board's panel, 390 and 1440, light and dark.
15
15
  * H7 (Wawan 13:02, 13:03): a task whose title names a Jira ticket PMOS read is that ticket (Jira mark, the key once, Jira's status, no box
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. */
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
+ * 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. */
17
18
  const path = require('path');
18
19
  const { spawn } = require('child_process');
19
20
  const { findBrowser } = require('./lib/find-browser');
@@ -73,6 +74,7 @@ const IF = require('./fixtures/initiative-premium-facts.js');
73
74
 
74
75
  const open = async ({ w = 1440, h = 900, theme = 'light', touch = false, store = null } = {}) => {
75
76
  const ctx = await browser.newContext({ viewport: { width: w, height: h }, hasTouch: touch, isMobile: touch });
77
+ 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
76
78
  if (store) await ctx.addInitScript((s) => { for (const [k, v] of Object.entries(s)) localStorage.setItem(k, v); }, store);
77
79
  const page = await ctx.newPage();
78
80
  const errors = [], posts = [];
@@ -193,11 +195,11 @@ const IF = require('./fixtures/initiative-premium-facts.js');
193
195
  const today = T.querySelector('.ivt-today').getBoundingClientRect(), sc = T.querySelector('.ivt-sc'), nw = T.querySelector('.ivt-n').getBoundingClientRect();
194
196
  return { groups: [...T.querySelectorAll('.ivt-gh b')].map((b) => b.textContent), rows: rows.map((r) => (r.querySelector('.iv-tt') || {}).textContent || r.textContent.trim()), a: bar('task-a'), b: bar('task-b'), c: bar('task-c'),
195
197
  ghost: !!T.querySelector('.ivt-nd .ivt-set[data-iv-date="task-d"]') && /1 without dates/.test(T.querySelector('.ivt-nd').textContent) && !T.querySelector('.ivt-g'), zoom: T.dataset.ivt.split('|').pop(), seen: today.left > nw.right && today.left < sc.getBoundingClientRect().right,
196
- lg: document.querySelector('#czViewer .ivt-lg').textContent, arch: /Old spike notes/.test(T.textContent) };
198
+ lg: document.querySelector('#czViewer .ivt-lg').textContent, late: !!T.querySelector('[data-ivt-bar="task-c"] + .ivt-late'), arch: /Old spike notes/.test(T.textContent) };
197
199
  });
198
200
  ok('V4 Timeline keeps the List\'s stage groups, one per stage (batch 11 item 5)', tl.groups.join('|') === 'Triage|Discover|Plan|Prioritize|Build|Deliver|Monitor|Evaluate', JSON.stringify(tl.groups));
199
- ok('V4 bars by start and due: in progress light blue, late amber; a due day only is a circle; no dates: one "1 without dates · Set" row', /ivt-b/.test(tl.a) && / pr/.test(tl.a) && /ivt-d/.test(tl.b) && /ivt-b lt/.test(tl.c) && tl.ghost, JSON.stringify(tl));
200
- ok('V4 Weeks is the first zoom; it opens on today, the Today line in view; the legend sits under it', tl.zoom === 'week' && tl.seen && /To do.*In progress.*Late.*Due only.*Jira/.test(tl.lg), JSON.stringify(tl));
201
+ ok('V4 bars by start and due wear their task box (StsA1Desk): in progress blue; late keeps its status and draws the line to Today; a due day only is a circle; no dates: one "1 without dates · Set" row', /ivt-b/.test(tl.a) && / pr/.test(tl.a) && /ivt-d/.test(tl.b) && /ivt-b (pr|to)/.test(tl.c) && tl.late && tl.ghost, JSON.stringify(tl));
202
+ ok('V4 Weeks is the first zoom; it opens on today, the Today line in view; the legend names only what is not a box (no To do, Late or Jira item)', tl.zoom === 'week' && tl.seen && /Due only/.test(tl.lg) && !/To do|In progress|Late|Jira/.test(tl.lg), JSON.stringify(tl));
201
203
  ok('V4 an archived task shows nowhere in Timeline', !tl.arch);
202
204
  await shot(p, 'timeline-1440');
203
205
  await sheetPick(p, 'zoom', 'month');
@@ -268,6 +270,11 @@ const IF = require('./fixtures/initiative-premium-facts.js');
268
270
  const kb = await p.evaluate(() => { const K = document.querySelector('#czViewer .ivk'); return { stage: document.querySelector('#czViewer [data-iv-kstage]').textContent, cols: [...K.querySelectorAll('.ivk-c h4')].map((h) => h.textContent).join('|'), wont: K.querySelector('.ivk-w').textContent, cards: [...K.querySelectorAll('.ivk-d .iv-tt')].map((e) => e.textContent), arch: /Old spike notes/.test(K.textContent) }; });
269
271
  ok('V6 Kanban opens on the current stage, with columns To do, In progress, Done', kb.stage === 'Discover' && kb.cols === 'To do2|In progress2|Done1', JSON.stringify(kb));
270
272
  ok('V6 Won\'t do is a folded strip with its count; archived shows nowhere', kb.wont === "Won't do · 1" && !kb.arch, JSON.stringify(kb));
273
+ // V13 (Wawan 2026-10-29 "broken UI"): a late date chip has the class w, which the card body's own .w (a column) took too: its days
274
+ // stacked in the middle of the card and spilled past its foot. Every date sits on one line, left under the title, inside its card
275
+ const kdg = await p.evaluate(() => [...document.querySelectorAll('#czViewer .ivk-d')].map((c) => { const d = c.querySelector('.iv-dc'), t = c.querySelector('.iv-tt'); if (!d || !d.textContent.trim()) return null;
276
+ const R = d.getBoundingClientRect(), C = c.getBoundingClientRect(), s = getComputedStyle(d); return { t: t.textContent.slice(0, 16), late: d.classList.contains('w'), h: Math.round(R.height), grow: s.flexGrow, dir: s.flexDirection, left: Math.round(R.left - t.getBoundingClientRect().left), inside: R.bottom <= C.bottom + 0.5 }; }).filter(Boolean));
277
+ ok('V13 Kanban: every date is one line, left under its title, inside its card (a late one too)', kdg.some((x) => x.late) && kdg.every((x) => x.h <= 24 && x.grow === '0' && x.dir === 'row' && Math.abs(x.left) <= 8 && x.inside), JSON.stringify(kdg));
271
278
  await shot(p, 'kanban-1440');
272
279
  await p.click('#czViewer [data-iv-kstage]');
273
280
  const st = await until(() => p.evaluate(() => { const q = document.querySelector('.tkc.ivq .ivq-m'); return q ? [...q.querySelectorAll('[data-ivq-i]')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()) : null; }));
@@ -342,6 +349,7 @@ const IF = require('./fixtures/initiative-premium-facts.js');
342
349
  const openH = async ({ where = 'home', w = 390, h = 844, theme = 'light', view = 'timeline', zoom = 'week', tasks = HTASKS, tickets = null, drafts = null } = {}) => {
343
350
  const touch = w < 700, id = where === 'home' ? 'self-serve-v2' : 'usage-billing', sec = where === 'home' ? 'build' : 'discover';
344
351
  const ctx = await browser.newContext({ viewport: { width: w, height: h }, hasTouch: touch, isMobile: touch, colorScheme: theme });
352
+ 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
345
353
  await ctx.addInitScript(([v, z]) => { localStorage.setItem('pmos.tasks.view', v); localStorage.setItem('pmos.tasks.zoom', z); }, [view, zoom]);
346
354
  const page = await ctx.newPage(), errors = [], posts = [];
347
355
  let layout = { ok: true, by: 'stage', picked: false, names: [], of: {}, sets: [] };
@@ -477,11 +485,15 @@ const IF = require('./fixtures/initiative-premium-facts.js');
477
485
  await sheetPick(j, 'view', 'timeline');
478
486
  await until(() => j.evaluate(() => !!document.querySelector('#czViewer .ivt')));
479
487
  await sleep(300);
480
- const T7 = await j.evaluate(() => { const r = document.querySelector('#czViewer [data-ivt-bar="j2"]').closest('.ivt-r'); return { sq: !!r.querySelector('.iv-jq.ig-sq'), box: !!r.querySelector('[data-iv-check]'), drag: document.querySelector('#czViewer [data-ivt-bar="j2"]').hasAttribute('data-ivt-drag'), plain: !!document.querySelector('#czViewer [data-iv-check="j3"]') }; });
481
- ok('H7 Timeline: the linked task shows the Jira square, no box, and its bar drags; the plain one keeps its box', T7.sq && !T7.box && T7.drag && T7.plain, JSON.stringify(T7));
482
- // batch 18 item 11 gap: the linked key is blue and in the text font on the Timeline, as the List draws it (not the grey mono of a ticket's key)
483
- const kc = await j.evaluate(() => { const st = (e) => e ? (({ color, fontFamily }) => ({ color, fontFamily }))(getComputedStyle(e)) : null; return { tl: st(document.querySelector('#czViewer [data-ivt-bar="j2"]').closest('.ivt-r').querySelector('.iv-tt em')), tt: st(document.querySelector('#czViewer [data-ivt-bar="j2"]').closest('.ivt-r').querySelector('.iv-tt')) }; });
484
- ok('H7 Timeline: the linked key is blue like the List, in the title\'s font', !!kc.tl && kc.tl.color === lkc && kc.tl.fontFamily === kc.tt.fontFamily, JSON.stringify({ kc, lkc }));
488
+ // batch 19 item 5 (StsA5Columns): one row shape for every source: the linked task wears the same box (Jira owns its status, so it marks
489
+ // nothing), its key is said once, in the Key column as a link, its status in the Status column; its bar drags
490
+ const T7 = await j.evaluate(() => { const r = document.querySelector('#czViewer [data-ivt-bar="j2"]').closest('.ivt-r'), k = r.querySelector('.ivt-col.c-key .ivt-key'), st = r.querySelector('.ivt-col.c-status .ivt-st');
491
+ return { glyph: !!r.querySelector('.iv-bxw.jr .iv-cb'), sq: !!r.querySelector('.iv-jq'), box: !!r.querySelector('[data-iv-check]'), key: k ? k.textContent : null, ticket: k ? k.dataset.ivTicket : null, em: !!r.querySelector('.iv-tt em'),
492
+ st: st ? st.textContent : null, jst: st ? st.dataset.ivJst : null, drag: document.querySelector('#czViewer [data-ivt-bar="j2"]').hasAttribute('data-ivt-drag'), plain: !!document.querySelector('#czViewer [data-iv-check="j3"]') }; });
493
+ ok('H7 Timeline: the linked task wears the same box (no Jira square, no Done press), its key in the Key column, its status in Status; its bar drags; the plain one keeps its box',
494
+ T7.glyph && !T7.sq && !T7.box && T7.key && T7.key === T7.ticket && !T7.em && /In progress|To do|Done/.test(T7.st || '') && T7.jst === T7.key && T7.drag && T7.plain, JSON.stringify(T7));
495
+ const kc = await j.evaluate(() => { const e = document.querySelector('#czViewer [data-ivt-bar="j2"]').closest('.ivt-r').querySelector('.ivt-key'); return e ? { color: getComputedStyle(e).color, line: getComputedStyle(e).textDecorationLine } : null; });
496
+ ok('H7 Timeline: the Key column\'s key is a blue link, like the List\'s linked key', !!kc && kc.color === lkc && /underline/.test(kc.line), JSON.stringify({ kc, lkc }));
485
497
  const bb = await j.evaluate(() => { const r = document.querySelector('#czViewer [data-ivt-bar="j2"]').getBoundingClientRect(); return { x: r.left + r.width / 2, y: r.top + r.height / 2 }; });
486
498
  const n0 = J.posts.length;
487
499
  await j.mouse.move(bb.x, bb.y); await j.mouse.down(); await j.mouse.move(bb.x + 20, bb.y, { steps: 3 }); await j.mouse.move(bb.x + 42, bb.y, { steps: 3 }); await j.mouse.up();
@@ -495,8 +507,9 @@ const IF = require('./fixtures/initiative-premium-facts.js');
495
507
  await j.evaluate(() => { const b = [...document.querySelectorAll('.tkc.ivq [data-ivq-i]')].find((x) => /All stages/.test(x.textContent)); if (b) b.click(); });
496
508
  await sleep(300);
497
509
  const K = await j.evaluate(() => { const card = (re) => [...document.querySelectorAll('#czViewer .ivk-d')].find((c) => re.test(c.textContent)); const col = (c) => c && c.closest('[data-ivk-col]') && c.closest('[data-ivk-col]').dataset.ivkCol;
498
- const a = card(/Microsite/), b = card(/Plan block/), c = card(/Navigation tabs/); return { a: col(a), b: col(b), bDrag: b && b.getAttribute('draggable'), cDrag: c && c.getAttribute('draggable') }; });
499
- ok('H7 Kanban: linked tasks sit in Jira\'s column and do not drag (Jira owns the status); the plain task drags', K.a === 'Done' && K.b === 'In progress' && K.bDrag == null && K.cDrag === 'true', JSON.stringify(K));
510
+ const a = card(/Microsite/), b = card(/Plan block/), c = card(/Navigation tabs/); return { a: col(a), b: col(b), bJira: b && b.dataset.ivkJira, bCard: b && b.dataset.ivkCard, cDrag: c && c.getAttribute('draggable'), cJira: c && c.dataset.ivkJira }; });
511
+ // Wawan 2026-10-29: a Jira card drags too, and its drop moves the ticket in Jira (H8); a plain task drags as before
512
+ ok('H7 Kanban: linked tasks sit in Jira\'s column and drag as their ticket; the plain task drags as a task', K.a === 'Done' && K.b === 'In progress' && K.bJira === 'MSD-4377' && !K.bCard && K.cDrag === 'true' && !K.cJira, JSON.stringify(K));
500
513
  ok('H7 no page error', J.errors.length === 0, J.errors.join(' | '));
501
514
  await J.ctx.close();
502
515
  // 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
@@ -512,5 +525,141 @@ const IF = require('./fixtures/initiative-premium-facts.js');
512
525
  ok('H7 By epic: no page error', E.errors.length === 0, E.errors.join(' | '));
513
526
  await E.ctx.close();
514
527
  }
528
+
529
+ /* H8 (Wawan 2026-10-29 "why can't move Jira task here on PMOS?"; canvas "Exploring · Move Jira tasks", JmA1Kanban, JmA3States): a Jira
530
+ * card's drop and a Jira row's status press ask Jira through the jira-move agent (POST /api/jira/move); the toast says what Jira did:
531
+ * moved (with Undo, the move back) or refused (Jira's reason); while the agent works the row says "Moving in Jira" */
532
+ {
533
+ const JT = [
534
+ { uid: 'j1', title: 'MSD-4376 Microsite page in the single layout', status: 'To do', owner: 'Wawan', start: '2026-10-10', end: '2026-10-16' },
535
+ { uid: 'j2', title: 'Plan block at the top [MSD-4377]', status: 'To do', owner: 'Wawan', start: '2026-10-14', end: '2026-10-22' },
536
+ ];
537
+ const JK = [{ key: 'MSD-4376', title: 'Microsite page', status: 'Done', raw: 'Closed' }, { key: 'MSD-4377', title: 'Plan block', status: 'In progress', raw: 'In Review' }];
538
+ const J = await openH({ where: 'board', w: 1440, h: 900, view: 'kanban', tasks: JT, tickets: JK }), j = J.page;
539
+ const asks = [], answers = { 'mv-0000000001': [{ state: 'moving' }, { state: 'moved', status: 'In Review' }], 'mv-0000000003': [{ state: 'refused', why: 'it needs a fix version.' }] };
540
+ await j.route('**/api/jira/move*', (r) => { const rq = r.request();
541
+ 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' } }) }); }
542
+ const id = new URL(rq.url()).searchParams.get('id'), ans = (answers[id] || []).shift() || { state: 'moving' };
543
+ return r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, move: { key: 'x', to: 'x', ...ans } }) }); });
544
+ await j.evaluate(() => { const b = document.querySelector('#czViewer [data-iv-kstage]'); if (b) b.click(); });
545
+ await until(() => j.evaluate(() => !!document.querySelector('.tkc.ivq [data-ivq-i]')));
546
+ await j.evaluate(() => { const b = [...document.querySelectorAll('.tkc.ivq [data-ivq-i]')].find((x) => /All stages/.test(x.textContent)); if (b) b.click(); });
547
+ await sleep(300);
548
+ const hint = await j.evaluate(() => (document.querySelector('#czViewer .ivk-h') || {}).textContent || '');
549
+ ok('H8 the Kanban hint says a Jira card moves its ticket in Jira', /A Jira card moves its ticket in Jira/.test(hint), hint);
550
+ await j.dragAndDrop('#czViewer [data-ivk-jira="MSD-4376"]', '#czViewer [data-ivk-col="In progress"]');
551
+ const a1 = await until(() => asks[0]);
552
+ ok('H8 a Jira card dropped on In progress asks Jira: key, to, from and Jira\'s own status', !!a1 && a1.key === 'MSD-4376' && a1.to === 'In progress' && a1.from === 'Done' && a1.fromRaw === 'Closed' && a1.initiative === 'usage-billing', JSON.stringify(a1));
553
+ const t1 = await until(() => j.evaluate(() => { const t = document.querySelector('#bdToast'); return t && !t.hidden && /in Jira/.test(t.textContent) ? t.textContent : null; }), 20000);
554
+ ok('H8 once Jira moved it, the toast says Jira\'s status, with Undo', /^MSD-4376 is In Review in Jira\./.test(t1 || '') && /Undo/.test(t1 || ''), t1);
555
+ await j.click('#bdToast .bd-undo');
556
+ const a2 = await until(() => asks[1]);
557
+ ok('H8 Undo moves it back the same way', !!a2 && a2.key === 'MSD-4376' && a2.to === 'Done' && a2.from === 'In progress' && a2.fromRaw === 'In Review', JSON.stringify(a2));
558
+ const n0 = J.posts.filter((x) => x.path === '/api/boards/tasks/state').length;
559
+ await j.dragAndDrop('#czViewer [data-ivk-jira="MSD-4377"]', '#czViewer .ivk-w');
560
+ await sleep(300);
561
+ const w1 = await j.evaluate(() => (document.querySelector('#bdToast') || {}).textContent || '');
562
+ ok('H8 a Jira card dropped on Won\'t do asks nothing and says so', asks.length === 2 && /moves to To do, In progress or Done/.test(w1) && J.posts.filter((x) => x.path === '/api/boards/tasks/state').length === n0, JSON.stringify({ n: asks.length, w1 }));
563
+ // the List: the status press beside the Jira square offers three states and says the pick moves the ticket in Jira
564
+ await sheetPick(j, 'view', 'list');
565
+ await until(() => j.evaluate(() => !!document.querySelector('#czViewer [data-iv-jstat="MSD-4377"]')));
566
+ await j.click('#czViewer [data-iv-jstat="MSD-4377"]');
567
+ const pop = await until(() => j.evaluate(() => { const q = document.querySelector('.tkc.ivq .ivq-st.jq'); return q ? { st: [...q.querySelectorAll('[data-ivq-state]')].map((b) => b.dataset.ivqState).join('|'), on: (q.querySelector('[aria-checked="true"]') || {}).textContent, line: (q.querySelector('.ivq-jn') || {}).textContent } : null; }));
568
+ ok('H8 List: a Jira row\'s status press: To do, In progress, Done; "Moves MSD-4377 in Jira"', !!pop && pop.st === 'To do|In progress|Done' && pop.on === 'In progress' && pop.line === 'Moves MSD-4377 in Jira', JSON.stringify(pop));
569
+ await j.click('.tkc.ivq .ivq-st.jq [data-ivq-state="Done"]');
570
+ const a3 = await until(() => asks[2]);
571
+ ok('H8 List: the pick asks Jira', !!a3 && a3.key === 'MSD-4377' && a3.to === 'Done' && a3.from === 'In progress' && a3.fromRaw === 'In Review', JSON.stringify(a3));
572
+ const t3 = await until(() => j.evaluate(() => { const t = document.querySelector('#bdToast'); return t && !t.hidden && /^Jira kept/.test(t.textContent) ? t.textContent : null; }), 20000);
573
+ ok('H8 a refusal says Jira\'s reason in plain words, and has no Undo', t3 === 'Jira kept MSD-4377 in In Review: it needs a fix version.', t3);
574
+ // the Timeline: the same press beside the Jira square
575
+ await sheetPick(j, 'view', 'timeline');
576
+ const tl = await until(() => j.evaluate(() => !!document.querySelector('#czViewer :is(.ivt, .iva) [data-iv-jstat="MSD-4377"]')));
577
+ ok('H8 Timeline: the same status press on a Jira row', !!tl);
578
+ // the Status column cell of a Jira row (StsA5Columns) is that press: it opens the same three states, "Moves KEY in Jira"
579
+ // (a narrow panel hides the Status column and shows the box before the title: either one is that press, whichever is on screen)
580
+ const tsc = await until(() => j.evaluate(() => !!document.querySelector('#czViewer button.ivt-st.jr[data-iv-jstat="MSD-4377"]')));
581
+ await j.evaluate(() => { const b = [...document.querySelectorAll('#czViewer :is(.ivt, .iva) button[data-iv-jstat="MSD-4377"]')].find((x) => x.offsetParent); if (b) b.click(); });
582
+ const tpop = await until(() => j.evaluate(() => { const p = document.querySelector('.ivq-jn'); return p ? p.textContent : null; }));
583
+ ok('H8 Timeline: the Status cell, or the box when Status is hidden, opens the Jira picker', tsc && tpop === 'Moves MSD-4377 in Jira', JSON.stringify({ tsc, tpop }));
584
+ await j.keyboard.press('Escape');
585
+ ok('H8 no page error', J.errors.length === 0, J.errors.join(' | '));
586
+ await J.ctx.close();
587
+ // while the agent works: the row is drawn where the PM moved it, its square a dashed outline, "Moving in Jira"
588
+ const JKm = [JK[0], { ...JK[1], status: 'Done', move: { id: 'mv-0000000009', state: 'moving', to: 'Done', from: 'In progress' } }];
589
+ const W = await openH({ where: 'board', w: 1440, h: 900, view: 'list', tasks: JT, tickets: JKm }), q = W.page;
590
+ 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; }));
591
+ 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));
592
+ await shot(q, 'jira-moving-1440');
593
+ ok('H8 moving: no page error', W.errors.length === 0, W.errors.join(' | '));
594
+ await W.ctx.close();
595
+ }
596
+ // ── batch 19 item 5, task status on the timelines (canvas In development: StsA1Desk, StsA3Phone, StsA5Columns, StsA7Picker) ──
597
+ {
598
+ const STASKS = [
599
+ { uid: 's1', title: 'Payment form layout', status: 'In progress', owner: 'Una', start: '2026-10-06', end: '2026-10-14' },
600
+ { uid: 's2', title: 'Card validation rules', status: 'To do', owner: 'Zoe Smith', start: '2026-10-06', end: '2026-10-09' },
601
+ { uid: 's3', title: 'Error and empty states', status: 'In progress', owner: 'Ana', start: '2026-10-13', end: '2026-10-24' },
602
+ { uid: 's4', title: 'Saved cards', status: 'To do', owner: 'Zoe Smith', start: '2026-10-20', end: '2026-10-31' },
603
+ { uid: 's5', title: 'Beta to 10% of buyers', milestone: true, status: 'To do', end: '2026-11-04' },
604
+ { uid: 's6', title: 'API contract', status: 'Done', owner: 'Una', start: '2026-09-29', end: '2026-10-03' },
605
+ ];
606
+ for (const theme of ['light', 'dark']) {
607
+ const B = await openH({ where: 'board', w: 1440, h: 900, theme, tasks: STASKS });
608
+ await B.page.evaluate(() => { const b = document.querySelector('#czViewer [data-iv-full]'); if (b) b.click(); });
609
+ await sleep(400);
610
+ const S1 = await B.page.evaluate(() => {
611
+ const T = document.querySelector('#czViewer .ivt'), vis = (e) => !!e && e.getBoundingClientRect().width > 0 && getComputedStyle(e).display !== 'none';
612
+ const heads = [...T.querySelectorAll('.ivt-r.ax .ivt-col')].filter(vis).map((e) => e.textContent);
613
+ const row = (u) => T.querySelector(`[data-ivt-bar="${u}"]`).closest('.ivt-r');
614
+ const bg = (u) => getComputedStyle(T.querySelector(`[data-ivt-bar="${u}"]`)).backgroundColor;
615
+ return { heads, box: vis(row('s1').querySelector('.ivt-bx')), st: row('s1').querySelector('.ivt-col.c-status').textContent, due: row('s2').querySelector('.ivt-col.c-due').textContent,
616
+ late: [...T.querySelectorAll('.ivt-late')].map((e) => e.getAttribute('aria-label')), bgs: [bg('s1'), bg('s2'), bg('s4')], lg: T.parentElement.querySelector('.ivt-lg') ? T.parentElement.querySelector('.ivt-lg').textContent : '' };
617
+ });
618
+ ok(`S1 Board full width ${theme}: Task, Key, Status, Start, Due; the box once, in Status; a late due day says +Nd`, S1.heads.join() === 'Key,Status,Start,Due' && !S1.box && S1.st === 'In progress' && /Oct 9 \+8d/.test(S1.due), JSON.stringify(S1));
619
+ ok(`S1 Board ${theme}: late keeps its status, with the line to Today; To do bars are hollow and differ from In progress`, S1.late.length === 2 && S1.bgs[0] !== S1.bgs[1] && S1.bgs[1] === S1.bgs[2], JSON.stringify(S1));
620
+ await shotH(B.page, 'sts-board-1440-' + theme);
621
+ if (theme === 'light') {
622
+ // the Status cell opens the status picker; a pick saves the status
623
+ await B.page.click('#czViewer [data-ivt-bar="s2"] >> xpath=ancestor::div[contains(@class,"ivt-r")]//button[contains(@class,"ivt-st")]');
624
+ const pop = await until(() => B.page.evaluate(() => !!document.querySelector('.tkc.ivq .ivq-st')));
625
+ ok('S2 the Status cell opens the status picker', pop);
626
+ await B.page.evaluate(() => document.querySelector('.tkc.ivq .ivq-st [data-ivq-state="In progress"]').click());
627
+ const sv = await until(() => B.posts.find((x) => /tasks/.test(x.path) && x.body && (x.body.task === 's2' || x.body.uid === 's2')));
628
+ ok('S2 a pick there saves the status', !!sv && JSON.stringify(sv.body).includes('In progress'), JSON.stringify(B.posts.slice(-3)));
629
+ // Columns: the view sheet's check boxes; Owner on, Key off; kept over a reload
630
+ await sheetPick(B.page, 'col', 'owner');
631
+ await sheetPick(B.page, 'col', 'key');
632
+ const kept = await B.page.evaluate(() => localStorage.getItem('pmos.tasks.cols.timeline'));
633
+ await B.page.reload();
634
+ await until(() => B.page.evaluate(() => document.querySelectorAll('#ibBody .ini2, #ibBody .bt-l').length > 0), 20000);
635
+ await B.page.evaluate(() => { const b = [...document.querySelectorAll('[data-row="board:usage-billing"] .bt-nm, [data-key="board:usage-billing"]')].find((x) => x.offsetParent); if (b) b.click(); });
636
+ await until(() => B.page.evaluate(() => !!document.querySelector('#czViewer .ivt')), 15000);
637
+ await B.page.evaluate(() => { const b = document.querySelector('#czViewer [data-iv-full]'); if (b && b.getAttribute('aria-pressed') !== 'true') b.click(); });
638
+ await sleep(300);
639
+ const heads = await B.page.evaluate(() => [...document.querySelectorAll('#czViewer .ivt-r.ax .ivt-col')].filter((e) => e.getBoundingClientRect().width > 0).map((e) => e.textContent));
640
+ ok('S3 Columns: Owner on and Key off, remembered over a reload', kept === '["status","start","due","owner"]' && heads.join() === 'Status,Start,Due,Owner', JSON.stringify({ kept, heads }));
641
+ // a narrow panel hides the columns from the right; the box comes back before the title once Status goes
642
+ for (const [w, want] of [[1100, 'Status,Start,Due,Owner'], [760, 'Status,Start,Due'], [600, 'Status'], [540, '']]) {
643
+ const nw = await B.page.evaluate(([w]) => { const t = document.querySelector('#czViewer .iv-tk'); t.style.width = w + 'px'; return new Promise((r) => requestAnimationFrame(() => r([...document.querySelectorAll('#czViewer .ivt-r.ax .ivt-col')].filter((e) => getComputedStyle(e).display !== 'none').map((e) => e.textContent).join()))); }, [w]);
644
+ const bx = await B.page.evaluate(() => getComputedStyle(document.querySelector('#czViewer [data-ivt-bar="s1"]').closest('.ivt-r').querySelector('.ivt-bx')).display !== 'none');
645
+ ok(`S4 a ${w} px panel shows ${want || 'no columns'}; the box before the title only once Status is hidden`, nw === want && bx === !/Status/.test(want), JSON.stringify({ nw, bx }));
646
+ }
647
+ }
648
+ ok(`S0 Board ${theme}: no page error`, !B.errors.length, B.errors.join(' | '));
649
+ await B.ctx.close();
650
+ // a phone (Home's Viewer, premium.html?ini=…): no columns; the title above its bar with its box; the late line still runs
651
+ const H = await openH({ where: 'home', w: 390, h: 844, theme, tasks: STASKS });
652
+ const P5 = await H.page.evaluate(() => {
653
+ const T = document.querySelector('#czViewer .ivt'), r = T.querySelector('[data-ivt-bar="s1"]').closest('.ivt-r');
654
+ const n = r.querySelector('.iv-tt').getBoundingClientRect(), b = r.querySelector('[data-ivt-bar="s1"]').getBoundingClientRect();
655
+ return { cols: [...T.querySelectorAll('.ivt-col')].filter((e) => getComputedStyle(e).display !== 'none').length, box: getComputedStyle(r.querySelector('.ivt-bx')).display !== 'none', above: n.bottom <= b.top + 1, late: T.querySelectorAll('.ivt-late').length };
656
+ });
657
+ ok(`S5 Home phone ${theme}: no columns; each title sits above its bar with its box; the late line runs to Today`, P5.cols === 0 && P5.box && P5.above && P5.late === 2, JSON.stringify(P5));
658
+ await shotH(H.page, 'sts-home-phone-' + theme);
659
+ ok(`S0 Home phone ${theme}: no page error`, !H.errors.length, H.errors.join(' | '));
660
+ await H.ctx.close();
661
+ }
662
+ }
663
+
515
664
  return finish();
516
665
  })();
@@ -0,0 +1,5 @@
1
+ {
2
+ "_comment": "Batch 19 item 5, Board Track (canvas StsA8Board, StsA9BoardDark): the Board timeline's columns (Initiative, Stage, Status, Start, Next milestone by default), the Columns menu and its memory, the sort, the narrow drop, 20 px bars with now blue and a late row's line to Today.",
3
+ "panels": ["board-columns-test.js"],
4
+ "seconds": { "board-columns-test.js": 30 }
5
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "_comment": "jira-moves: a Jira ticket's status moved from PMOS (Wawan 2026-10-29; canvas Exploring · Move Jira tasks). lib/jira-moves.js is the one writer and fold of <state>/tracker/jira/moves.jsonl; `pmos jira moves` and `pmos jira moved` are the jira-move agent's read and answer. The page's Kanban drag, status press and toasts run in task-views-test.js H8. jira-moves-server.test.js runs POST and GET /api/jira/move on a real server with a stub agent.",
3
+ "modules": [
4
+ "jira-moves.test.js",
5
+ "jira-moves-server.test.js"
6
+ ],
7
+ "seconds": {
8
+ "jira-moves.test.js": 1,
9
+ "jira-moves-server.test.js": 8
10
+ }
11
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "_comment": "Page speed (2026-10-28): the Board fold's memos and the worker's joined calls stay as fresh as a fold with none.",
3
+ "modules": ["board-fold-memo.test.js"],
4
+ "seconds": { "board-fold-memo.test.js": 3 }
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "_comment": "Page speed (2026-10-29): notes, the refresh log, the calendar ledger and the initiative rows kept between requests stay as fresh as reading again.",
3
+ "modules": ["page-speed-reads.test.js"],
4
+ "seconds": { "page-speed-reads.test.js": 2 }
5
+ }
@@ -69,7 +69,7 @@ const ROWS = [
69
69
  await page.route('**/api/programs', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, programs: [] }) }));
70
70
  await page.route('**/api/board-trail*', (r) => r.fulfill({ status: 500, contentType: 'application/json', body: JSON.stringify({ ok: false, error: 'not in this check' }) }));
71
71
  await page.route('**/api/lifecycle', (r) => { posts.push(JSON.parse(r.request().postData() || '{}')); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true }) }); });
72
- await page.addInitScript(([s]) => { try { if (!sessionStorage.getItem('set')) { sessionStorage.setItem('set', '1'); for (const [k, v] of Object.entries(s)) localStorage.setItem(k, v); } } catch { /* none */ } }, [{ 'pmos.board.view': 'time', 'pmos.board.pview': 'time', 'pmos.board.span': o.span || 'year' }]);
72
+ await page.addInitScript(([s]) => { try { if (!sessionStorage.getItem('set')) { sessionStorage.setItem('set', '1'); for (const [k, v] of Object.entries(s)) localStorage.setItem(k, v); } } catch { /* none */ } }, [{ 'pmos.board.tlcols': '[]', 'pmos.board.view': 'time', 'pmos.board.pview': 'time', 'pmos.board.span': o.span || 'year' }]);
73
73
  await page.goto(BASE + '/premium-board.html?ws=w1&board=w1');
74
74
  await page.waitForSelector('#ibBody [data-row]', { timeout: 15000 });
75
75
  await page.waitForTimeout(500);