create-pmos 0.442.0 → 0.444.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/package.json +25 -25
  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/briefing-premium-board-test.js +8 -2
  7. package/workspace/briefing-premium-insights-test.js +40 -38
  8. package/workspace/briefing-premium-test.js +2 -1
  9. package/workspace/changelog.json +24 -0
  10. package/workspace/goals-clear-ui-test.js +263 -0
  11. package/workspace/guide/home.md +12 -2
  12. package/workspace/guide/metric-drafts.md +8 -2
  13. package/workspace/home-railcard-test.js +193 -0
  14. package/workspace/intel-report-ui-test.js +1 -1
  15. package/workspace/intelligence-gaps-ui-test.js +16 -14
  16. package/workspace/lib/board-premium.js +1 -1
  17. package/workspace/lib/engine/boards.js +9 -2
  18. package/workspace/lib/engine/records/index.js +9 -2
  19. package/workspace/lib/initiative-layout.js +3 -1
  20. package/workspace/lib/insights-premium.js +22 -1
  21. package/workspace/lib/metric-drafts.js +37 -10
  22. package/workspace/lib/metric-read-runs.js +20 -13
  23. package/workspace/lib/metric-reads.js +208 -23
  24. package/workspace/lib/metrics-cli.js +62 -5
  25. package/workspace/lib/routes-boards.js +40 -1
  26. package/workspace/lib/routes-goal-status.js +89 -6
  27. package/workspace/lib/routes-insights-premium.js +1 -1
  28. package/workspace/lib/routes-metric-drafts.js +26 -3
  29. package/workspace/live-pill-round-test.js +178 -0
  30. package/workspace/metric-drafts-ui-test.js +5 -2
  31. package/workspace/okr-goals-ui-test.js +27 -23
  32. package/workspace/package-lock.json +2 -2
  33. package/workspace/package.json +1 -1
  34. package/workspace/panels-test.js +231 -0
  35. package/workspace/premium-board-actions-test.js +2 -2
  36. package/workspace/premium-rec-tab-test.js +2 -1
  37. package/workspace/premium-vw-item-test.js +10 -2
  38. package/workspace/premium-vw-jira-test.js +3 -0
  39. package/workspace/public/pm/bd-ini-panel.js +3 -2
  40. package/workspace/public/pm/cozy-adler.js +21 -0
  41. package/workspace/public/pm/cozy-divider.css +32 -0
  42. package/workspace/public/pm/cozy-divider.js +45 -0
  43. package/workspace/public/pm/cozy-insights.css +96 -0
  44. package/workspace/public/pm/cozy-live-pill.css +16 -17
  45. package/workspace/public/pm/cozy-live-pill.js +28 -17
  46. package/workspace/public/pm/cozy-panels.css +59 -0
  47. package/workspace/public/pm/cozy-panels.js +524 -0
  48. package/workspace/public/pm/cozy-today.css +15 -0
  49. package/workspace/public/pm/cozy-viewer.js +173 -69
  50. package/workspace/public/pm/cozy-vw-shell.css +4 -0
  51. package/workspace/public/pm/goals-clear.js +265 -0
  52. package/workspace/public/pm/home-app.js +73 -14
  53. package/workspace/public/pm/home-ini.js +9 -3
  54. package/workspace/public/pm/home-today.js +55 -12
  55. package/workspace/public/pm/ini-edit.js +401 -0
  56. package/workspace/public/pm/ini-groups.js +14 -8
  57. package/workspace/public/pm/ini-tasks.js +84 -26
  58. package/workspace/public/pm/ini-versions.js +18 -4
  59. package/workspace/public/pm/ini-view-model.js +45 -18
  60. package/workspace/public/pm/ini-view.css +117 -5
  61. package/workspace/public/pm/ini-view.js +51 -17
  62. package/workspace/public/pm/metric-drafts.js +4 -1
  63. package/workspace/public/pm/mission.js +11 -7
  64. package/workspace/public/pm/premium-board.js +8 -6
  65. package/workspace/public/pm/premium-insights.js +375 -59
  66. package/workspace/public/pm/task-card.css +2 -0
  67. package/workspace/public/pm/task-card.js +4 -1
  68. package/workspace/server.js +6 -2
  69. package/workspace/skills/metric-read.skill +7 -5
  70. package/workspace/stage-card-tasks-test.js +396 -0
  71. package/workspace/stage-card-test.js +12 -4
  72. package/workspace/task-delete-test.js +9 -1
  73. package/workspace/task-milestones-test.js +3 -3
  74. package/workspace/task-press-test.js +12 -4
  75. package/workspace/task-views-test.js +198 -5
  76. package/workspace/test-lists/batch18-live-pill-round.json +10 -0
  77. package/workspace/test-lists/batch18-panels.json +9 -0
  78. package/workspace/test-lists/goals-clear.json +15 -0
  79. package/workspace/test-lists/home-railcard.json +9 -0
  80. package/workspace/test-lists/stage-card-tasks.json +6 -0
  81. package/workspace/tk-tasks-test.js +2 -2
@@ -148,9 +148,9 @@ const ITEMS = [
148
148
  // every stage open, so each task row is drawn
149
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); } };
150
150
  await unfold('.iv-ws[data-iv-fold^="sec:"][aria-expanded="false"]');
151
- const rows = await p.evaluate(() => [...document.querySelectorAll('.iv-tr')].map((r) => ({ t: (r.querySelector('.iv-tt') || {}).textContent, ms: !!r.querySelector('.iv-ms'), ask: (r.querySelector('.iv-dc.ms') || {}).textContent || '' })));
151
+ 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
152
  const by = (t) => rows.find((x) => x.t === t) || {};
153
- ok('F the List shows a small ◇ after a milestone task\'s title, none after a plain task', by('Feature delivered').ms && by('KPI evaluated').ms && !by('Ship the article summaries API').ms, JSON.stringify(rows));
153
+ ok('F the List shows a small ◇ on a milestone task (with its date, batch 18 item 16), none on a plain task', by('Feature delivered').ms && by('KPI evaluated').ms && !by('Ship the article summaries API').ms, JSON.stringify(rows));
154
154
  ok('F a milestone with no due date asks for it in a dashed chip', by('Support FAQ').ask === 'Set the due date', JSON.stringify(by('Support FAQ')));
155
155
  await p.click('.iv-tr:has(.iv-tt:text-is("Ship the article summaries API")) .iv-car');
156
156
  const pick = await p.evaluate(() => { const b = document.querySelector('.ivq-st .ivq-ms'); return b ? { lbl: b.getAttribute('aria-label'), tip: b.getAttribute('title'), pressed: b.getAttribute('aria-pressed'), vr: document.querySelectorAll('.ivq-st .vr').length, text: b.textContent } : null; });
@@ -167,7 +167,7 @@ const ITEMS = [
167
167
  await p.waitForSelector('.ivt', { timeout: 5000 });
168
168
  await unfold('.ivt-gh[data-iv-fold^="sec:"][aria-expanded="false"]');
169
169
  const tv = await p.evaluate(() => ({ ms: [...document.querySelectorAll('.ivt-ms')].map((x) => x.className + '|' + x.textContent), guides: document.querySelectorAll('.ivt-grid i.ms').length, lg: (document.querySelector('.ivt-lg') || {}).textContent || '' }));
170
- ok('V a milestone\'s bar ends in its ◇ with the date beside it; a done one filled', tv.ms.some((x) => /^ivt-ms dn\|Dec 11$/.test(x)) && tv.ms.some((x) => /^ivt-ms\|Jan 29$/.test(x)) && tv.ms.some((x) => /^ivt-ms\|Mar 31$/.test(x)), JSON.stringify(tv));
170
+ ok('V a milestone is its ◇ only, no bar (batch 18 item 16), the date beside it; a done one filled', tv.ms.some((x) => /^ivt-ms lb dn\|Dec 11$/.test(x)) && tv.ms.some((x) => /^ivt-ms lb\|Jan 29$/.test(x)) && tv.ms.some((x) => /^ivt-ms lb\|Mar 31$/.test(x)), JSON.stringify(tv));
171
171
  ok('V a faint dashed guide drops at each milestone date, and the legend names Milestone', tv.guides === 3 && /Milestone/.test(tv.lg), JSON.stringify(tv));
172
172
  await shot(p, 'milestones-viewer-timeline-1440');
173
173
  ok('the panel threw nothing', !errors.length, errors.join('\n'));
@@ -62,9 +62,17 @@ async function page(url) {
62
62
  await p.goto(BASE + url);
63
63
  return { ctx, p, errors, posts };
64
64
  }
65
+ // batch 18 item 16: with quick changes on, a title press opens the row in place; the task card is under its ⋯ (Open the task card)
66
+ const openCard = async (pg, uid, V = '#czViewer') => {
67
+ if (await pg.$(`${V} [data-iv-task="${uid}"]`)) return pg.click(`${V} [data-iv-task="${uid}"]`);
68
+ await pg.click(`${V} [data-iv-edit="${uid}"]`);
69
+ await pg.click(`${V} .iv-ed[data-iv-open="${uid}"] [data-iv-more]`);
70
+ await pg.waitForSelector('.tkc.ivq [data-ive-card]', { timeout: 8000 });
71
+ return pg.click('.tkc.ivq [data-ive-card]');
72
+ };
65
73
  // the view's task rows: every stage section opened, so each task the board holds is drawn
66
74
  const openSections = (p) => p.evaluate((v) => { let n = 0; for (const b of document.querySelectorAll(v + ' .iv-ws[aria-expanded="false"], ' + v + ' .iv-grp[aria-expanded="false"]')) { b.click(); n++; } return n; }, V);
67
- const titleBtn = (p, uid) => until(async () => { await openSections(p); return p.evaluate((a) => !!document.querySelector(a[0] + ` [data-iv-task="${a[1]}"]`), [V, uid]); }, 10000);
75
+ const titleBtn = (p, uid) => until(async () => { await openSections(p); return p.evaluate((a) => !!document.querySelector(a[0] + ` :is([data-iv-task="${a[1]}"], [data-iv-edit="${a[1]}"])`), [V, uid]); }, 10000);
68
76
  // the one task editor: the initiative's view gave way, the Viewer's title is the task's, and the card (task-card.js) is drawn with its Status row
69
77
  const editorOf = (p, title) => until(() => p.evaluate((a) => { const v = document.querySelector(a[0]), c = window.czViewer && window.czViewer.current(); if (!v || !c) return null;
70
78
  const t = (v.querySelector('.cz-vw-title') || {}).textContent || '';
@@ -86,11 +94,11 @@ const back = (p) => p.evaluate(() => { const b = document.querySelector('#czView
86
94
  const up = await until(() => hp.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"] .iv-sc'), V), 30000);
87
95
  ok('T0 Home opens the initiative\'s page', up);
88
96
  ok('T1 each task\'s title is a press', await titleBtn(hp, 't1') && await titleBtn(hp, 't2'));
89
- await hp.click(`${V} [data-iv-task="t1"]`);
97
+ await openCard(hp, 't1', V);
90
98
  ok('T1 a task the initiative\'s read holds opens the one task editor', await editorOf(hp, TASKS[0].title), await hp.evaluate((v) => { const c = window.czViewer.current(); return c.kind + ' / ' + document.querySelector(v).textContent.slice(0, 300); }, V));
91
99
  ok('T1 ← goes back to the initiative\'s page', await back(hp) && await until(() => hp.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"]'), V), 5000));
92
100
  await titleBtn(hp, 't2');
93
- await hp.click(`${V} [data-iv-task="t2"]`);
101
+ await openCard(hp, 't2', V);
94
102
  ok('T2 a task only the board\'s row holds opens the same editor, not a dead end', await editorOf(hp, TASKS[1].title), await hp.evaluate((v) => (document.querySelector(v) || {}).textContent, V));
95
103
  await shot(hp, 'home-task-press-1440.png');
96
104
  ok('T2 ← goes back to the page', await back(hp) && await until(() => hp.evaluate((v) => !!document.querySelector(v + ' [data-hi-v="page"]'), V), 5000));
@@ -110,7 +118,7 @@ const back = (p) => p.evaluate(() => { const b = document.querySelector('#czView
110
118
  await bp.click(row);
111
119
  ok('T4 its panel opens', await until(() => bp.evaluate(() => { const c = window.czViewer && window.czViewer.current(); return !!c && c.kind === 'Initiative'; }), 8000));
112
120
  ok('T4 a task\'s title on the panel is a press', await titleBtn(bp, 't2'));
113
- await bp.click(`${V} [data-iv-task="t2"]`);
121
+ await openCard(bp, 't2', V);
114
122
  ok('T4 it opens the one task editor', await editorOf(bp, TASKS[1].title), await bp.evaluate((v) => (document.querySelector(v) || {}).textContent, V));
115
123
  await shot(bp, 'board-task-press-1440.png');
116
124
  ok('T4 ← goes back to the initiative', await back(bp) && await until(() => bp.evaluate(() => { const c = window.czViewer && window.czViewer.current(); return !!c && c.kind === 'Initiative'; }), 5000));
@@ -8,7 +8,12 @@
8
8
  * V7 a card's drag · V8 Won't do and Archived in the List · V9 the phone. 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
- * V10 the sheet · V11 the List's folds · V12 Timeline at All. The pure half is viewer-tasks.test.js. */
11
+ * V10 the sheet · V11 the List's folds · V12 Timeline at All. The pure half is viewer-tasks.test.js.
12
+ * 0.442.0 hotfix (Wawan 2026-10-28 "So much broken UI"; shots next18/hotfix-442/): H1 a phone's titles whole, bars their own size (Home's
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
+ * 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
+ * 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. */
12
17
  const path = require('path');
13
18
  const { spawn } = require('child_process');
14
19
  const { findBrowser } = require('./lib/find-browser');
@@ -44,6 +49,18 @@ const TASKS = [
44
49
  { uid: 'task-h', title: 'Plan the rollout', status: 'To do', owner: 'Wawan', start: '2026-11-02', end: '2026-11-06', section: 'plan' },
45
50
  ];
46
51
  const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) => x.id === 'usage-billing'); r.tasks = TASKS.map((t) => ({ ...t })); return M; };
52
+ /* the hotfix's tasks (H*): long titles that start past the first screen, a milestone with a due day only, owners with initials */
53
+ const HTASKS = [
54
+ { uid: 'h1', title: '11.0 Contract Negotiation with selected vendor and their legal team', status: 'In progress', owner: 'Rina Chen', start: '2026-10-08', end: '2026-10-21' },
55
+ { uid: 'h2', title: '11.2 Conclude nego, update TC meeting minutes', status: 'To do', owner: 'Claude', start: '2026-10-18', end: '2026-10-31' },
56
+ { uid: 'h3', title: '11.3 TC endorse meeting minutes and confirm the candidate', status: 'To do', owner: 'Claude', start: '2026-10-29', end: '2026-11-11' },
57
+ { uid: 'h4', title: 'Award contract', milestone: true, status: 'To do', owner: 'Wawan', end: '2026-10-22' },
58
+ { uid: 'h5', title: 'Kick-off notes', status: 'Done', owner: 'Wawan', end: '2026-10-12' },
59
+ ];
60
+ const BRP = require('./lib/briefing-premium.js');
61
+ const BRF = require('./fixtures/briefing-premium-facts.js');
62
+ const IP = require('./lib/initiative-premium.js');
63
+ const IF = require('./fixtures/initiative-premium-facts.js');
47
64
 
48
65
  (async () => {
49
66
  const exe = findBrowser();
@@ -89,10 +106,10 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
89
106
  const sw = await p.evaluate(() => { const b = document.querySelector('#czViewer .iv-th [data-iv-vbtn]'); return b ? b.getAttribute('aria-label') + (b.textContent.trim() ? '+text' : '') : null; });
90
107
  ok('V1 the Tasks header has one icon-only view button; the first time it is List', sw === 'Tasks view: List. Change the view, grouping or zoom', sw);
91
108
  const order = await p.evaluate(() => [...document.querySelector('#czViewer .iv-th').children].map((e) => e.className || e.tagName).join());
92
- ok('V1 the header holds the view button and + only, in that order', /,ivx-vb,iv-ib$/.test(order) && !/ivx-seg|ig-by|ivx-pick/.test(order), order);
109
+ ok('V1 the header holds the view button only: + sits on each open stage (batch 18 item 16)', /,ivx-vb$/.test(order) && !/ivx-seg|ig-by|ivx-pick/.test(order), order);
93
110
 
94
111
  /* V11 the List: only the stages with something open; the rest wait in one fold at the foot; a stage folds after 3 tasks */
95
- const L0 = await p.evaluate(() => ({ secs: [...document.querySelectorAll('#czViewer .iv-wbs > .iv-ws .w b')].map((b) => b.textContent), rest: (document.querySelector('#czViewer .iv-rest') || {}).textContent || null,
112
+ const L0 = await p.evaluate(() => ({ secs: [...document.querySelectorAll('#czViewer .iv-wbs > .iv-ws .w b, #czViewer .iv-wbs > .iv-wsw > .iv-ws .w b')].map((b) => b.textContent), rest: (document.querySelector('#czViewer .iv-rest') || {}).textContent || null,
96
113
  rows: [...document.querySelectorAll('#czViewer .iv-wbs .iv-wl > .iv-tr .iv-tt')].map((e) => e.textContent), more: (document.querySelector('#czViewer .iv-wl > .iv-more') || {}).textContent || null }));
97
114
  ok('V11 the List shows only Discover and Plan (each has something open); the six others wait in one fold', L0.secs.join('|') === 'Discover|Plan' && /^6 stages\s*nothing open/.test(L0.rest || ''), JSON.stringify(L0));
98
115
  ok('V11 Discover shows 3 tasks, then "1 more"', L0.rows.length === 3 && /^1 more/.test(L0.more || ''), JSON.stringify(L0));
@@ -100,7 +117,7 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
100
117
  const L1 = await until(() => p.evaluate(() => { const n = document.querySelectorAll('#czViewer .iv-wbs .iv-wl > .iv-tr .iv-tt').length; return n > 3 ? n : null; }));
101
118
  ok('V11 "1 more" shows the rest of the stage', L1 === 4, String(L1));
102
119
  await p.click('#czViewer .iv-rest');
103
- const L2 = await until(() => p.evaluate(() => { const s = [...document.querySelectorAll('#czViewer .iv-wbs > .iv-ws .w b')].map((b) => b.textContent); return s.length > 2 ? s : null; }));
120
+ const L2 = await until(() => p.evaluate(() => { const s = [...document.querySelectorAll('#czViewer .iv-wbs > .iv-ws .w b, #czViewer .iv-wbs > .iv-wsw > .iv-ws .w b')].map((b) => b.textContent); return s.length > 2 ? s : null; }));
104
121
  ok('V11 the fold opens the stages with nothing open, in order', L2 && L2.join('|') === 'Discover|Plan|Triage|Prioritize|Build|Deliver|Monitor|Evaluate', JSON.stringify(L2));
105
122
  await p.click('#czViewer .iv-rest');
106
123
 
@@ -142,7 +159,7 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
142
159
 
143
160
  /* V3 the date press opens the task card's start and due picker right under it; an undated row shows a calendar icon on hover only */
144
161
  const dbtn = await p.evaluate(() => { const b = document.querySelector('#czViewer .iv-tr [data-iv-date="task-c"]'); const n = document.querySelector('#czViewer .iv-tr [data-iv-date="task-d"]'); return { t: b && b.textContent, w: b && b.classList.contains('w'), none: n && getComputedStyle(n).opacity, nl: n && n.getAttribute('aria-label') }; });
145
- ok('V3 the dates in a row are a press, amber when late; an undated row\'s calendar icon is hidden until hover', dbtn.t === 'Oct 8 – Oct 10' && dbtn.w && dbtn.none === '0' && /^Add dates: Stakeholder review/.test(dbtn.nl), JSON.stringify(dbtn));
162
+ ok('V3 the dates in a row are a press, amber when late; an undated row shows none (batch 18 item 16: zero is silence, its open row sets them)', dbtn.t === 'Oct 8 – Oct 10' && dbtn.w && dbtn.none == null, JSON.stringify(dbtn));
146
163
  await p.click('#czViewer .iv-tr [data-iv-date="task-c"]');
147
164
  const dp = await until(() => p.evaluate(() => { const q = document.querySelector('.tkc.ivq .tkc-dp'); if (!q) return null; return { two: [...q.querySelectorAll('[data-tkc-field]')].map((b) => b.textContent).join('|'), on: (q.querySelector('[data-tkc-field].on') || {}).textContent }; }));
148
165
  ok('V3 the start and due picker opens with the due field picked', dp && dp.two === 'StartOct 8|DueOct 10' && dp.on === 'DueOct 10', JSON.stringify(dp));
@@ -319,5 +336,181 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
319
336
  const D = await open({ theme: 'dark', store: { 'pmos.tasks.view': 'timeline' } }); await sleep(200); await shot(D.page, 'timeline-1440-dark');
320
337
  await sheetPick(D.page, 'view', 'kanban'); await sleep(200); await shot(D.page, 'kanban-1440-dark'); await D.ctx.close();
321
338
  }
339
+
340
+ /* ── 0.442.0 hotfix: H1–H6 ── */
341
+ // where: 'home' (premium.html's Viewer; self-serve-v2 is in Build) or 'board' (usage-billing's panel; in Discover)
342
+ const openH = async ({ where = 'home', w = 390, h = 844, theme = 'light', view = 'timeline', zoom = 'week', tasks = HTASKS, tickets = null, drafts = null } = {}) => {
343
+ const touch = w < 700, id = where === 'home' ? 'self-serve-v2' : 'usage-billing', sec = where === 'home' ? 'build' : 'discover';
344
+ const ctx = await browser.newContext({ viewport: { width: w, height: h }, hasTouch: touch, isMobile: touch, colorScheme: theme });
345
+ await ctx.addInitScript(([v, z]) => { localStorage.setItem('pmos.tasks.view', v); localStorage.setItem('pmos.tasks.zoom', z); }, [view, zoom]);
346
+ const page = await ctx.newPage(), errors = [], posts = [];
347
+ let layout = { ok: true, by: 'stage', picked: false, names: [], of: {}, sets: [] };
348
+ const M = () => { const m = BP.build(F.facts()); const r = m.rows.find((x) => x.id === id); r.tasks = tasks.map((t) => ({ ...t, section: sec })); if (tickets) r.track = { ...(r.track || {}), tickets }; return m; };
349
+ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'application/json', body: JSON.stringify(b) });
350
+ page.on('pageerror', (e) => errors.push(String((e && e.stack) || e)));
351
+ await page.route('**/api/board-premium*', (r) => json(r, { ok: true, state: 'ready', model: M(), as_of: Date.now() }));
352
+ await page.route('**/api/board-trail*', (r) => json(r, { ok: false }, 500));
353
+ await page.route('**/api/initiative-premium*', (r) => json(r, { ok: true, state: 'ready', model: IP.build(IF.facts()), as_of: Date.now() }));
354
+ await page.route(/\/api\/briefing-premium(\?.*)?$/, (r) => json(r, { ok: true, state: 'ready', model: BRP.build(BRF.facts()), as_of: Date.now() }));
355
+ await page.route('**/api/briefing-premium/**', (r) => json(r, { ok: true, turns: [], working: false }));
356
+ await page.route('**/api/jira/tickets*', (r) => json(r, drafts || { ok: false, error: 'not in this check' }));
357
+ // the layout answers as the server does once a pick saves (the write's own wording is initiative-layout.test.js's)
358
+ await page.route('**/api/initiative-layout*', (r) => { const rq = r.request(); if (rq.method() === 'POST') { const b = JSON.parse(rq.postData() || '{}'); posts.push({ path: '/api/initiative-layout', body: b }); layout = { ...layout, by: b.grouping || b.by, picked: true }; } json(r, layout); });
359
+ await page.route(/\/api\/(boards\/|lifecycle)/, (r) => { const rq = r.request(); if (rq.method() !== 'GET') posts.push({ path: new URL(rq.url()).pathname, body: JSON.parse(rq.postData() || '{}') }); json(r, { ok: true }); });
360
+ if (where === 'home') await page.goto(BASE + '/premium.html?ini=self-serve-v2&ws=w1&board=w1&theme=' + theme);
361
+ else {
362
+ await page.goto(BASE + '/premium-board.html?theme=' + theme);
363
+ await until(() => page.evaluate(() => document.querySelectorAll('#ibBody .ini2, #ibBody .bt-l').length > 0), 20000);
364
+ await 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(); });
365
+ }
366
+ await until(() => page.evaluate((v) => !!document.querySelector(v === 'timeline' ? '#czViewer :is(.ivt, .iva)' : '#czViewer .iv-th'), view), 20000);
367
+ await sleep(300);
368
+ return { ctx, page, errors, posts };
369
+ };
370
+ const shotH = async (pg, name) => { if (!process.env.SHOTS_5B) return; await pg.evaluate(() => { const t = document.querySelector('#czViewer :is(.ivt, .iva)'); if (t) t.scrollIntoView({ block: 'start' }); }); await sleep(150); await pg.screenshot({ path: path.join(process.env.SHOTS_5B, name + '.png') }); };
371
+ // the geometry of a phone's rows: each title's width, its label inside the screen, its bar's height and place inside its row
372
+ const rowsGeo = (pg) => pg.evaluate(() => { const sc = document.querySelector('#czViewer .ivt-sc').getBoundingClientRect();
373
+ return [...document.querySelectorAll('#czViewer .ivt-r.k')].filter((r) => r.querySelector('.ivt-n[data-tln]')).map((r) => { const n = r.querySelector('.ivt-n').getBoundingClientRect(), t = r.querySelector('.iv-tt').getBoundingClientRect(), b = r.querySelector('.ivt-b, .ivt-d'), q = b && b.getBoundingClientRect(), R = r.getBoundingClientRect();
374
+ return { t: r.querySelector('.iv-tt').textContent.slice(0, 12), tw: Math.round(t.width), inside: n.left >= sc.left - 1 && n.right <= sc.right + 1, bh: q ? Math.round(q.height) : null, bin: q ? q.top >= R.top - 1 && q.bottom <= R.bottom + 1 : true, rh: Math.round(R.height) }; }); });
375
+ const axisGeo = (pg) => pg.evaluate(() => { const T = document.querySelector('#czViewer .ivt'), sc = T.querySelector('.ivt-sc').getBoundingClientRect(), nw = T.querySelector('.ivt-n').offsetWidth, ch = T.querySelector('.ivt-today i').getBoundingClientRect();
376
+ return [...T.querySelectorAll('.ivt-r.ax .ivt-c span')].filter((e) => getComputedStyle(e).visibility !== 'hidden').map((e) => { const r = e.getBoundingClientRect(); return { t: e.textContent, cut: r.left + 4 < sc.left + nw - 1 && r.right > sc.left + nw, chip: r.right > ch.left - 4 && r.left + 4 < ch.right + 4 && r.left < sc.right }; }).filter((x) => x.cut || x.chip); });
377
+
378
+ for (const theme of ['light', 'dark']) {
379
+ for (const zoom of ['week', 'month']) {
380
+ const P = await openH({ theme, zoom }), q = P.page;
381
+ const g = await rowsGeo(q);
382
+ ok(`H1 Home phone ${zoom} ${theme}: every task names itself (at least 60 px of title) and its label is whole on the screen`, g.length === 4 && g.every((x) => x.tw >= 60 && x.inside), JSON.stringify(g));
383
+ ok(`H1 Home phone ${zoom} ${theme}: a bar keeps its own size inside its row (Home's 44 px button rule does not reach it); rows stay under 66 px`, g.every((x) => (x.bh == null || x.bh <= 20) && x.bin && x.rh <= 66), JSON.stringify(g));
384
+ // H2: where a group's name crosses the Today line, the name does not hide it
385
+ const tl = await q.evaluate(() => { const x = document.querySelector('#czViewer .ivt-today').getBoundingClientRect().left;
386
+ return [...document.querySelectorAll('#czViewer .ivt-r.g .ivt-n')].filter((n) => { const r = n.getBoundingClientRect(); return r.left < x && r.right > x; }).map((n) => getComputedStyle(n).backgroundColor); });
387
+ ok(`H2 Home phone ${zoom} ${theme}: the Today line runs unbroken through the group names`, tl.every((c) => c === 'rgba(0, 0, 0, 0)'), JSON.stringify(tl));
388
+ const ax = await axisGeo(q);
389
+ ok(`H3 Home phone ${zoom} ${theme}: no axis label is half cut at the left or drawn under the Today chip`, ax.length === 0, JSON.stringify(ax));
390
+ if (zoom === 'week') {
391
+ await q.evaluate(() => { const s = document.querySelector('#czViewer .ivt-sc'); s.scrollLeft += 160; });
392
+ await sleep(200);
393
+ const g2 = await rowsGeo(q), ax2 = await axisGeo(q);
394
+ ok(`H1 Home phone ${theme}: scrolled sideways, the titles stay whole on the screen and no axis label is cut`, g2.every((x) => x.tw >= 60 && x.inside) && ax2.length === 0, JSON.stringify({ g2, ax2 }));
395
+ await q.evaluate(() => { const s = document.querySelector('#czViewer .ivt-sc'); s.scrollLeft -= 160; });
396
+ await sleep(150);
397
+ ok(`H5 Home phone ${theme}: no Full width on a phone`, !(await q.$('#czViewer [data-iv-full]')));
398
+ }
399
+ await shotH(q, `hotfix-home-390-${zoom}-${theme}`);
400
+ ok(`H0 Home phone ${zoom} ${theme}: no page error`, P.errors.length === 0, P.errors.join(' | '));
401
+ await P.ctx.close();
402
+ }
403
+ const Pa = await openH({ theme, zoom: 'all' }), qa = Pa.page;
404
+ const ga = await qa.evaluate(() => [...document.querySelectorAll('#czViewer .iva-r.k')].map((r) => { const b = r.querySelector('.iva-tb, .iva-md'); return { t: r.querySelector('.iv-tt').textContent.slice(0, 12), bh: b ? Math.round(b.getBoundingClientRect().height) : null, tw: Math.round(r.querySelector('.iv-tt').getBoundingClientRect().width) }; }));
405
+ ok(`H1 Home phone All ${theme}: bars and ◇ keep their own size; every task names itself`, ga.length >= 4 && ga.every((x) => (x.bh == null || x.bh <= 17) && x.tw >= 60), JSON.stringify(ga));
406
+ await shotH(qa, `hotfix-home-390-all-${theme}`);
407
+ await Pa.ctx.close();
408
+
409
+ /* desktop: the Board's panel */
410
+ const D = await openH({ where: 'board', w: 1440, h: 900, theme }), d = D.page;
411
+ const fl = await d.evaluate(() => { const b = document.querySelector('#czViewer .iv-th [data-iv-full]'), vb = document.querySelector('#czViewer .iv-th [data-iv-vbtn]'); return { head: !!b, after: !!b && vb.nextElementSibling === b, legend: !!document.querySelector('#czViewer .ivt-lg [data-iv-full]') }; });
412
+ ok(`H5 Board 1440 ${theme}: Full width sits in the Tasks header beside the view button, not at the Timeline's foot`, fl.head && fl.after && !fl.legend, JSON.stringify(fl));
413
+ const ax = await axisGeo(d);
414
+ ok(`H3 Board 1440 ${theme}: no axis label half cut at the name column or under the Today chip`, ax.length === 0, JSON.stringify(ax));
415
+ const ms = await d.evaluate(() => { const b = document.querySelector('#czViewer [data-ivt-bar="h4"]'); return b ? { cls: b.className, tf: getComputedStyle(b).transform } : null; });
416
+ ok(`H4 Board 1440 ${theme}: a milestone with a due day only is its ◇ on the Timeline, not the due-only circle`, !!ms && /\bms\b/.test(ms.cls) && ms.tf !== 'none', JSON.stringify(ms));
417
+ await shotH(d, `hotfix-board-1440-week-${theme}`);
418
+ await sheetPick(d, 'zoom', 'all');
419
+ await until(() => d.evaluate(() => !!document.querySelector('#czViewer .iva')));
420
+ const one = await d.evaluate(() => { const r = [...document.querySelectorAll('#czViewer .iva-r.k')].find((x) => /Award contract/.test(x.textContent)); return r ? r.querySelectorAll('.iva-mg, .iva-l .iv-ms').length : -1; });
421
+ ok(`H4 Board 1440 All ${theme}: a milestone row shows its ◇ once (it led and trailed the title)`, one === 1, String(one));
422
+ const fa = await d.evaluate(() => !document.querySelector('#czViewer .iv-th [data-iv-full]'));
423
+ ok(`H5 Board 1440 ${theme}: at All (it fits the panel) there is no Full width`, fa);
424
+ await shotH(d, `hotfix-board-1440-all-${theme}`);
425
+ await sheetPick(d, 'view', 'list');
426
+ ok(`H5 Board 1440 ${theme}: the List has no Full width`, await d.evaluate(() => !document.querySelector('#czViewer .iv-th [data-iv-full]')));
427
+ ok(`H0 Board 1440 ${theme}: no page error`, D.errors.length === 0, D.errors.join(' | '));
428
+ await D.ctx.close();
429
+ }
430
+
431
+ /* H6 the grouping survives a task edit: pick Owner in the sheet, mark a task done, the redraw keeps Owner */
432
+ {
433
+ const G = await openH({ where: 'home', w: 1440, h: 900, view: 'list' }), g = G.page;
434
+ await g.click('#czViewer [data-iv-vbtn]');
435
+ await until(() => g.evaluate(() => !!document.querySelector('.tkc.ivq .ivs [data-ivs-by="owner"]')));
436
+ await g.click('.tkc.ivq .ivs [data-ivs-by="owner"]');
437
+ const saved = await until(() => G.posts.find((x) => x.path === '/api/initiative-layout'));
438
+ await g.keyboard.press('Escape');
439
+ const heads0 = await until(() => g.evaluate(() => { const h = [...document.querySelectorAll('#czViewer .iv-wbs .iv-ws b')].map((b) => b.textContent); return h.some((x) => /Wawan|Claude|Rina/.test(x)) ? h : null; }));
440
+ ok('H6 Owner is picked and saved', !!saved && !!heads0, JSON.stringify({ saved: saved && saved.body, heads0 }));
441
+ await g.click('#czViewer [data-iv-check="h2"]');
442
+ await until(() => G.posts.find((x) => x.path === '/api/boards/tasks/state'));
443
+ await sleep(1500);
444
+ const st = await g.evaluate(() => { const vb = document.querySelector('#czViewer [data-iv-vbtn]'); vb.click(); return null; });
445
+ const by = await until(() => g.evaluate(() => { const b = document.querySelector('.tkc.ivq .ivs [data-ivs-by][aria-pressed="true"], .tkc.ivq .ivs [data-ivs-more][aria-pressed="true"]'); return b ? (b.dataset.ivsBy || b.textContent.trim()) : null; }));
446
+ const heads1 = await g.evaluate(() => [...document.querySelectorAll('#czViewer .iv-wbs .iv-ws b')].map((b) => b.textContent));
447
+ ok('H6 after a task edit the redraw keeps Owner: no fall back to Epic or Stage', by === 'owner' && heads1.some((x) => /Wawan|Claude|Rina/.test(x)), JSON.stringify({ st, by, heads1 }));
448
+ await G.ctx.close();
449
+ }
450
+
451
+ /* H7 a task named for a Jira ticket */
452
+ {
453
+ const JT = [
454
+ { uid: 'j1', title: 'MSD-4376 Microsite page in the single layout', status: 'To do', owner: 'Wawan', start: '2026-10-10', end: '2026-10-16' },
455
+ { uid: 'j2', title: 'Plan block at the top [MSD-4377]', status: 'To do', owner: 'Wawan', start: '2026-10-14', end: '2026-10-22' },
456
+ { uid: 'j3', title: 'MSD-9999 Navigation tabs', status: 'In progress', owner: 'Wawan', start: '2026-10-15', end: '2026-10-24' },
457
+ ];
458
+ 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' }];
459
+ const J = await openH({ where: 'board', w: 1440, h: 900, view: 'list', tasks: JT, tickets: JK }), j = J.page;
460
+ await j.evaluate(() => { const b = [...document.querySelectorAll('#czViewer .iv-grp')].find((x) => /^Done/.test(x.textContent)); if (b) b.click(); });
461
+ await sleep(200);
462
+ const L = await j.evaluate(() => { const row = (re) => [...document.querySelectorAll('#czViewer .iv-tr')].find((r) => re.test(r.textContent));
463
+ const one = (r) => r ? { sq: (r.querySelector('.iv-jq') || { className: '' }).className, box: !!r.querySelector('[data-iv-check]'), em: [...r.querySelectorAll('.iv-tt em')].map((e) => e.textContent).join(), tt: r.querySelector('.iv-tt').textContent, label: (r.querySelector('.iv-jq') || { getAttribute: () => '' }).getAttribute('aria-label') } : null;
464
+ return { j1: one(row(/Microsite page/)), j2: one(row(/Plan block/)), j3: one(row(/Navigation tabs/)) }; });
465
+ ok('H7 List: a task named for a ticket PMOS read shows the Jira status square for Jira\'s status, no box, the key once', L.j1 && /ig-sq done/.test(L.j1.sq) && !L.j1.box && L.j1.em === 'MSD-4376' && L.j1.tt === 'MSD-4376 Microsite page in the single layout' && /Closed/.test(L.j1.label), JSON.stringify(L.j1));
466
+ ok('H7 List: a key anywhere in the title links too, In progress from Jira\'s "In Review"', L.j2 && /ig-sq doing/.test(L.j2.sq) && L.j2.em === 'MSD-4377' && L.j2.tt === 'MSD-4377 Plan block at the top', JSON.stringify(L.j2));
467
+ ok('H7 List: a key PMOS has not read is plain text in a plain task, with its box', L.j3 && L.j3.box && !L.j3.sq && L.j3.em === '' && L.j3.tt === 'MSD-9999 Navigation tabs', JSON.stringify(L.j3));
468
+ // the dates stay the PM's: the date press opens the picker, a day picked saves on the task
469
+ await j.click('#czViewer .iv-tr [data-iv-date="j2"]');
470
+ await until(() => j.evaluate(() => !!document.querySelector('.tkc.ivq .tkc-dp')));
471
+ const tip = await j.evaluate(() => document.querySelector('#czViewer .iv-tr [data-iv-date="j2"]').getAttribute('title'));
472
+ await j.click('.tkc.ivq .tkc-dp [data-tkc-day="2026-10-24"]');
473
+ const dd = await until(() => J.posts.find((x) => x.path === '/api/boards/tasks/edit' && x.body.task === 'j2'));
474
+ ok('H7 a linked task\'s dates are the PM\'s: the date press saves the day on the task, kept in PMOS', !!dd && dd.body.due === '2026-10-24' && /kept in PMOS/.test(tip || ''), JSON.stringify({ dd: dd && dd.body, tip }));
475
+ const lkc = await j.evaluate(() => { const e = document.querySelector('#czViewer .iv-tr .iv-tt em.lk'); return e ? getComputedStyle(e).color : ''; });
476
+ await sleep(600);
477
+ await sheetPick(j, 'view', 'timeline');
478
+ await until(() => j.evaluate(() => !!document.querySelector('#czViewer .ivt')));
479
+ 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 }));
485
+ 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
+ const n0 = J.posts.length;
487
+ 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();
488
+ const mv = await until(() => J.posts.slice(n0).find((x) => x.path === '/api/boards/tasks/edit' && x.body.task === 'j2'));
489
+ ok('H7 Timeline: dragging the linked task\'s bar moves its dates, saved on the task', !!mv && !!mv.body.start && !!mv.body.due, JSON.stringify(mv && mv.body));
490
+ await sleep(500);
491
+ await sheetPick(j, 'view', 'kanban');
492
+ await until(() => j.evaluate(() => !!document.querySelector('#czViewer .ivk')));
493
+ await j.evaluate(() => { const b = document.querySelector('#czViewer [data-iv-kstage]'); if (b) b.click(); });
494
+ await until(() => j.evaluate(() => !!document.querySelector('.tkc.ivq [data-ivq-i]')));
495
+ await j.evaluate(() => { const b = [...document.querySelectorAll('.tkc.ivq [data-ivq-i]')].find((x) => /All stages/.test(x.textContent)); if (b) b.click(); });
496
+ await sleep(300);
497
+ 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));
500
+ ok('H7 no page error', J.errors.length === 0, J.errors.join(' | '));
501
+ await J.ctx.close();
502
+ // 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
503
+ 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 }] };
504
+ const E = await openH({ where: 'board', w: 1440, h: 900, view: 'timeline', tasks: JT, tickets: JK.slice(0, 1), drafts: DR }), e = E.page;
505
+ await e.click('#czViewer [data-iv-vbtn]'); await until(() => e.evaluate(() => !!document.querySelector('.tkc.ivq .ivs [data-ivs-more]')));
506
+ await e.click('.tkc.ivq .ivs [data-ivs-more]');
507
+ await until(() => e.evaluate(() => !!document.querySelector('.ig-pop [role="menuitemradio"]')));
508
+ await e.click('.ig-pop [role="menuitemradio"]:has-text("Epic")');
509
+ const EP = await until(() => e.evaluate(() => { const r = document.querySelector('#czViewer .ivt-r.k [data-ig-tk="S1"]'); if (!r) return null; const row = r.closest('.ivt-r');
510
+ return { bar: !!row.querySelector('[data-ivt-bar="j2"]'), twice: [...document.querySelectorAll('#czViewer .ivt-r.k')].filter((x) => /Plan block/.test(x.textContent)).length, j1: (document.querySelector('#czViewer [data-ivt-bar="j1"]') || { closest: () => null }).closest('.ivt-r') ? 1 : 0 }; }), 15000);
511
+ ok('H7 By epic: the linked task shows once, as its ticket in Jira, carrying the task\'s bar', !!EP && EP.bar && EP.twice === 1, JSON.stringify(EP));
512
+ ok('H7 By epic: no page error', E.errors.length === 0, E.errors.join(' | '));
513
+ await E.ctx.close();
514
+ }
322
515
  return finish();
323
516
  })();
@@ -0,0 +1,10 @@
1
+ {
2
+ "_comment": "batch 18 item 15-B: the Live pill as a 44 px round number above the menu button (pm/cozy-live-pill.js), the panel divider's look with Adler's sprout or the day's charm (pm/cozy-divider.js, cozy-adler.js charmIcon), and Home's list head fold. live-pill-round-test.js drives the real Board and Home with GET /api/live answered by the suite.",
3
+ "modules": [],
4
+ "panels": [
5
+ "live-pill-round-test.js"
6
+ ],
7
+ "seconds": {
8
+ "live-pill-round-test.js": 25
9
+ }
10
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Panels side by side on Home, like a tablet: the divider snaps and closes at an edge, open beside by drag, the placement menu, slide over, memory per initiative, Present slides the chat away (feedback batch 18 item 15, build 15-A; cozy-panels.js, cozy-viewer.js several Viewers). A browser suite.",
3
+ "panels": [
4
+ "panels-test.js"
5
+ ],
6
+ "seconds": {
7
+ "panels-test.js": 45
8
+ }
9
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "_comment": "Feedback batch 18 item 11, goals made clear. Backend 11-A: how a goal is counted (num and den beside each reading), the hourly rhythm and a time of day, Read now that never moves the next read, Claude's checks that hold a strange reading, file it, compare with your number and the pick, a guardrail without a date, and the fields the UI reads (lib/metric-reads.js, lib/metric-drafts.js recipeOf, lib/metrics-cli.js reading, lib/routes-goal-status.js, lib/insights-premium.js readFields, lib/routes-metric-drafts.js liveRows, scripts/records); pure folds, fake run parts and the routes in process on a scratch workspace. UI 11-B (frames Gc*): the drafts table, the check panel, the first readings, a key result's counts said once, a failed read and a held reading; goals-clear.test.mjs is pure (pm/goals-clear.js), goals-clear-ui-test.js drives the real page at 1440 px and 390 px with the 11-A routes stubbed.",
3
+ "modules": [
4
+ "goals-clear.test.js",
5
+ "goals-clear.test.mjs"
6
+ ],
7
+ "panels": [
8
+ "goals-clear-ui-test.js"
9
+ ],
10
+ "seconds": {
11
+ "goals-clear.test.js": 3,
12
+ "goals-clear.test.mjs": 1,
13
+ "goals-clear-ui-test.js": 30
14
+ }
15
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Home's folded rail: a tile's press opens a card of that group's rows beside it (feedback batch 18 item 14; home-app.js drawRailCard, home-today.js railCardHtml, cozy-viewer.js railCard). A browser suite.",
3
+ "panels": [
4
+ "home-railcard-test.js"
5
+ ],
6
+ "seconds": {
7
+ "home-railcard-test.js": 30
8
+ }
9
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "_comment": "Batch 18 item 16 (Wawan 2026-10-28 13:48, agreed A, frames StA1Rows to StA10bDragPhone): a task changed where it sits in the initiative's Tasks List. A title press opens the row in place (name, status, dates, ⋯); + on each open stage; a milestone has one date; drag between stages and inside one (a task-order record). Serves Home's Viewer and the Board's panel (pm/ini-edit.js, ini-view.js, ini-tasks.js).",
3
+ "modules": [],
4
+ "panels": ["stage-card-tasks-test.js"],
5
+ "seconds": { "stage-card-tasks-test.js": 90 }
6
+ }
@@ -87,7 +87,7 @@ const LAYOUT = { ok: true, auto: true, held: [], by: 'stage', names: [], of: {},
87
87
  page.on('request', (rq) => { if (rq.method() === 'POST') posts.push({ path: new URL(rq.url()).pathname, body: JSON.parse(rq.postData() || '{}') }); });
88
88
  const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'application/json', body: JSON.stringify(b) });
89
89
  const press = (b) => {
90
- if (b.kind === 'by') L = { ...L, by: b.by, picked: true };
90
+ if (b.kind === 'by') L = { ...L, by: b.grouping, picked: true }; // the page sends `grouping` (pm-guard refuses `by`)
91
91
  else if (b.kind === 'groups') { const of = {}; for (const [k, v] of Object.entries(L.of)) if (b.names.includes(v)) of[k] = v; L = { ...L, names: b.names, of }; }
92
92
  else if (b.kind === 'rename') { const of = {}; for (const [k, v] of Object.entries(L.of)) of[k] = v === b.from ? b.to : v; L = { ...L, names: L.names.map((n) => (n === b.from ? b.to : n)), of }; }
93
93
  else if (b.kind === 'place') { const of = { ...L.of }; if (b.group) of[b.task] = b.group; else delete of[b.task]; L = { ...L, of }; }
@@ -150,7 +150,7 @@ const LAYOUT = { ok: true, auto: true, held: [], by: 'stage', names: [], of: {},
150
150
  await shot(p, 'group-menu-1440.png');
151
151
  await p.click('.ig-pop [role="menuitemradio"]:has-text("Stage")');
152
152
  const by = await until(() => lastPost(A, '/api/initiative-layout'));
153
- ok('G1 a pick is kept for the workspace: by stage', !!by && by.body.kind === 'by' && by.body.by === 'stage' && by.body.initiative === I && by.body.ws === 'w1', JSON.stringify(by && by.body));
153
+ ok('G1 a pick is kept for the workspace: by stage', !!by && by.body.kind === 'by' && by.body.grouping === 'stage' && by.body.initiative === I && by.body.ws === 'w1', JSON.stringify(by && by.body));
154
154
  ok('G1 Stage draws the stages again, with no ticket rows', await until(() => p.evaluate((v) => !document.querySelector(v + ' .ig-tk') && !document.querySelector(v + ' .ig-sum') && [...document.querySelectorAll(v + ' .iv-wbs .iv-ws b')].some((b) => /Discover/.test(b.textContent)), V)));
155
155
  await openMore(p);
156
156
  await p.click('.ig-pop [role="menuitemradio"]:has-text("Epic")');