create-pmos 0.731.0 → 0.733.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 (53) hide show
  1. package/package.json +57 -27
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/okf/core/concepts/frontmatter-format.md +2 -1
  4. package/payload/planning/evals/eval-calibration.md +1 -1
  5. package/payload/planning/okrs/health-budgets.md +1 -1
  6. package/payload/state/discoveries.md +1 -1
  7. package/workspace/board-columns-test.js +6 -5
  8. package/workspace/board-deliveries-test.js +8 -7
  9. package/workspace/board-programs-test.js +6 -12
  10. package/workspace/briefing-premium-board-test.js +3 -3
  11. package/workspace/calm-timeline-test.js +5 -10
  12. package/workspace/changelog.json +56 -0
  13. package/workspace/guide/agent-capabilities.md +1 -0
  14. package/workspace/guide/cli.md +10 -1
  15. package/workspace/guide/index.md +1 -0
  16. package/workspace/guide/initiatives-and-next-steps.md +17 -1
  17. package/workspace/guide/layout.md +5 -5
  18. package/workspace/guide/positioning.md +33 -0
  19. package/workspace/lib/board-premium.js +10 -0
  20. package/workspace/lib/customer-signals.js +207 -0
  21. package/workspace/lib/pmos-verbs.js +3 -0
  22. package/workspace/lib/positioning-draft.js +225 -0
  23. package/workspace/lib/press-release-cli.js +108 -0
  24. package/workspace/lib/press-release.js +186 -0
  25. package/workspace/lib/routes-boards.js +5 -1
  26. package/workspace/lib/routes-strategy-card.js +33 -2
  27. package/workspace/milestone-pins-test.js +4 -7
  28. package/workspace/package-lock.json +2 -2
  29. package/workspace/package.json +1 -1
  30. package/workspace/product-lane-test.js +5 -11
  31. package/workspace/program-leave-test.js +1 -1
  32. package/workspace/public/pm/bd-deliveries.js +7 -0
  33. package/workspace/public/pm/bd-phone-line.js +29 -0
  34. package/workspace/public/pm/bd-positioning.js +91 -0
  35. package/workspace/public/pm/bd-strategy.js +10 -3
  36. package/workspace/public/pm/bd-views.js +41 -5
  37. package/workspace/public/pm/bd-work-ds.css +16 -0
  38. package/workspace/public/pm/cozy-board.css +14 -0
  39. package/workspace/public/pm/cozy-goals.css +3 -10
  40. package/workspace/public/pm/cozy-pop-work.js +1 -1
  41. package/workspace/public/pm/cozy-popup.js +7 -21
  42. package/workspace/public/pm/cozy-viewer.js +4 -3
  43. package/workspace/public/pm/goals-ds.js +1 -1
  44. package/workspace/public/pm/premium-board.js +4 -3
  45. package/workspace/public/pm/premium-goals.js +14 -34
  46. package/workspace/public/premium-goals.html +0 -1
  47. package/workspace/task-delete-test.js +1 -1
  48. package/workspace/task-milestones-test.js +4 -8
  49. package/workspace/test-lists/phone-initiative-lines.json +6 -0
  50. package/workspace/test-lists/positioning-draft.json +9 -0
  51. package/workspace/test-lists/press-release.json +9 -0
  52. package/workspace/test-lists/roadmap-signal-count.json +9 -0
  53. package/workspace/timeline-holds-test.js +5 -16
@@ -15,11 +15,12 @@ import * as GL from './bd-goal.js'; // By goal in every view (batch 29 item 4)
15
15
  import { nextHtml } from './bd-next.js';
16
16
  import { markFor } from './changed-mark.js'; // bet A456: the ✦ and Undo on a row PMOS changed in the last 24 h
17
17
  import { stageName, stageChip } from './stage-chip.js'; // W1: the one stage
18
- import { provenStatus, NO_SIGNAL } from './status-proof.js'; // T3: a status renders only with its source and read time
18
+ import { provenStatus, NO_SIGNAL } from './status-proof.js';
19
+ import * as PL from './bd-phone-line.js'; // the phone row's own small line, no Gantt on a phone (board PhIniB) // T3: a status renders only with its source and read time
19
20
 
20
21
  let A = null; // the page: { M(), statusOf(r), usual(t), trail(r), sel(), groups(L), folded(key), laneHead(g), subTile(name), memberIcon(id), programOf(r), programs(),
21
22
  // wf() → { list, cur, ended } the workflows on the board, the picked one (null for All) and the rows that ended (pm/bd-wf.js) }
22
- export function init(api) { A = api; }
23
+ export function init(api) { A = api; bindSig(); }
23
24
  const M = () => A.M();
24
25
  const SV = (d) => `<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${d}"/></svg>`;
25
26
  const MORE = 'M5 12h.01M12 12h.01M19 12h.01';
@@ -28,6 +29,38 @@ const cap = (s) => (s ? s.charAt(0).toUpperCase() + s.slice(1) : '');
28
29
  export const initials = (name) => { const s = String(name || '').trim(); if (!s) return ''; const p = s.split(/\s+/); return p.length > 1 ? (p[0][0] + p[1][0]).toUpperCase() : s.length <= 3 ? s : s.slice(0, 2); };
29
30
  export const avatar = (name, cls = '') => (name ? `<span class="bd-av${cls ? ' ' + cls : ''}" title="${esc(name)}" aria-label="${esc(name)}">${esc(initials(name))}</span>` : '<span class="bd-amut">—</span>');
30
31
 
32
+ /* ── the customer signals behind a row (roadmap-signal-count, bet A157) ──────────────────────────────────────────────────────────────
33
+ * The count sits in the Next cell; a press opens the list (a native disclosure, so no page code is needed and Escape-free closing is the
34
+ * browser's own): who, where, the link and the note. Zero is silence: a row with none draws nothing. The phone row says the count in words.
35
+ * The list is read from the record and the ledger (lib/customer-signals.js); chat adds one with `node workspace/lib/customer-signals.js add`. */
36
+ const SIG_WHERE = { ticket: 'Ticket', call: 'Call', email: 'Email', chat: 'Chat', survey: 'Survey', review: 'Review', other: 'Other', record: 'Raised it' };
37
+ const SIG_IC = 'M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8';
38
+ const safeLink = (u) => (/^https?:\/\//i.test(String(u || '')) ? String(u) : '');
39
+ const sigWords = (n) => n + (n === 1 ? ' customer signal' : ' customer signals');
40
+ export function sigHtml(r) {
41
+ const s = r && r.signals;
42
+ if (!s || !s.n) return '';
43
+ const items = (s.items || []).map((x) => {
44
+ const href = safeLink(x.link);
45
+ const what = [SIG_WHERE[x.where] || 'Other', x.at ? String(x.at).slice(0, 10) : ''].filter(Boolean).join(' · ');
46
+ const link = href ? ` <a href="${esc(href)}" target="_blank" rel="noopener noreferrer" class="bd-sigl">Open</a>` : x.link ? ` <span class="bd-amut">${esc(x.link)}</span>` : '';
47
+ return `<li><b>${esc(x.who)}</b> <span class="bd-amut">${esc(what)}</span>${link}${x.note ? `<span class="bd-sign">${esc(x.note)}</span>` : ''}</li>`;
48
+ }).join('');
49
+ const more = s.n > (s.items || []).length ? `<li class="bd-amut">${s.n - s.items.length} more</li>` : '';
50
+ return `<details class="bd-sig"><summary data-signals aria-label="${esc(sigWords(s.n))}" title="${esc(sigWords(s.n))}">${SV(SIG_IC)}<span>${s.n}</span></summary>`
51
+ + `<div class="bd-sigp" role="group" aria-label="${esc(sigWords(s.n))} for ${esc(r.title)}"><ul>${items}${more}</ul></div></details>`;
52
+ }
53
+ /** One open list at a time: opening one closes the others, and a press outside closes it. */
54
+ let sigBound = false;
55
+ function bindSig() {
56
+ if (sigBound || typeof document === 'undefined') return;
57
+ sigBound = true;
58
+ document.addEventListener('click', (e) => {
59
+ const mine = e.target && e.target.closest ? e.target.closest('details.bd-sig') : null;
60
+ document.querySelectorAll('details.bd-sig[open]').forEach((d) => { if (d !== mine) d.open = false; });
61
+ }, true);
62
+ }
63
+
31
64
  /* ── the step a row is in, and what a row needs ─────────────────────────────────────────────────────────────── */
32
65
  const kOf = (r) => WF.posOf(r); // stage order across workflows: category, then how far along its own list (Product feature: the eight steps)
33
66
  const isME = (r) => r.track && r.track.k >= 6; // Monitor and Evaluate: only a Product feature row has a step index
@@ -87,7 +120,7 @@ function listRow(r, pg) {
87
120
  + `<button type="button" class="bd-ltn ini2" data-key="${esc(r.key)}" role="rowheader" aria-haspopup="dialog"><b>${WK.iconHtml(r.kind)}${nameHtml(r)}</b></button>${pcells}`
88
121
  + `<span role="cell" class="bd-wfn">${WF.wfIcon(WF.wfOf(r), 18)}<span class="bd-ell">${esc(WF.wfOf(r).name)}</span></span><span role="cell">${stageChip(r, { ms: (r.track || {}).ms })}${(r.track || {}).days ? ' <span class="bd-ell">' + (r.track || {}).days + 'd</span>' : ''}</span><span role="cell">${catPill(r)}</span>`
89
122
  + `<span role="cell" class="cs s-${s.tone}"><i class="cz-dot ${s.tone} ${s.mo || ''}"></i>${esc(s.text)}</span>`
90
- + `<span role="cell">${avatar(r.owner)}</span><span role="cell" class="bd-nxc">${nextHtml(r, { self: M().board.self, factory: M().board.factory, due: false })}${markFor(r.ws || M().board.ws || '', r.id)}</span>`
123
+ + `<span role="cell">${avatar(r.owner)}</span><span role="cell" class="bd-nxc">${sigHtml(r)}${nextHtml(r, { self: M().board.self, factory: M().board.factory, due: false })}${markFor(r.ws || M().board.ws || '', r.id)}</span>`
91
124
  + `<span role="cell"${r.over ? ' class="bd-late"' : ''}>${esc(finish)}</span>`
92
125
  + `<button type="button" class="bd-ib sm" data-rowmenu="${esc(r.key)}" aria-haspopup="menu" aria-expanded="false" aria-label="More for ${esc(r.title)}" title="Actions">${SV(MORE)}</button></div>`;
93
126
  }
@@ -278,8 +311,11 @@ function phoneRow(r) {
278
311
  const nx = ahead ? esc(ahead.name || 'Next milestone') + ' ' + dmy(ahead.date) : '';
279
312
  const lt = nLate ? `<em class="late">${nLate} late</em>` : '';
280
313
  const stIc = st ? '<svg class="bd-stic" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01"/></svg>' : '';
281
- const sub = [st ? stIc + esc(st) : '', ends, nx, lt, say ? `<em class="${t.you ? 'you' : esc(s.tone)}">${esc(say)}</em>` : '', r.owner ? esc(r.owner) : ''].filter(Boolean).join(' · ');
282
- return `<button type="button" class="bd-lrow ini2${A.sel && A.sel() === r.key ? ' sel' : ''}" data-key="${esc(r.key)}" aria-haspopup="dialog"><i class="cz-dot ${s.tone} ${s.mo || ''}"></i><span class="tx"><span class="t">${nameHtml(r)}</span><span class="s q">${sub}</span></span>${t.you && t.days != null ? `<span class="r">${t.days}d</span>` : ''}${many() ? WF.wfIcon(WF.wfOf(r), 18) : ''}</button>`;
314
+ // PhIniB: the row's own line, start to end, today and the next ◇; it says the end, so the meta line does not
315
+ const line = PL.lineHtml(r, { today, next: ahead, alert: s.tone === 'red' || s.tone === 'late' || s.tone === 'risk' });
316
+ const sg = r.signals && r.signals.n ? esc(sigWords(r.signals.n)) : ''; // A157: the count in words; the panel the row opens is the tap
317
+ const sub = [st ? stIc + esc(st) : '', line ? '' : ends, nx, lt, sg, say ? `<em class="${t.you ? 'you' : esc(s.tone)}">${esc(say)}</em>` : '', r.owner ? esc(r.owner) : ''].filter(Boolean).join(' · ');
318
+ return `<button type="button" class="bd-lrow ini2${A.sel && A.sel() === r.key ? ' sel' : ''}" data-key="${esc(r.key)}" aria-haspopup="dialog"><i class="cz-dot ${s.tone} ${s.mo || ''}"></i><span class="tx"><span class="t">${nameHtml(r)}</span><span class="s q">${sub}</span>${line}</span>${t.you && t.days != null ? `<span class="r">${t.days}d</span>` : ''}${many() ? WF.wfIcon(WF.wfOf(r), 18) : ''}</button>`;
283
319
  }
284
320
  export function phoneListHtml(L) {
285
321
  const you = L.filter((r) => r.track && r.track.you), bad = L.filter((r) => !you.includes(r) && needOf(r) <= 3), left = L.filter((r) => !you.includes(r) && !bad.includes(r));
@@ -183,3 +183,19 @@ body.bd-page.bk-on [id="bkBody"] { display: flex; flex-direction: column; gap: v
183
183
  .bd-plist .bd-lrow .s em.late { font-style: normal; color: var(--alert); }
184
184
  .bd-stic { vertical-align: -1px; margin-right: var(--space-4); }
185
185
  }
186
+
187
+ /* PhIniB (initiative phone-initiative-lines): initiatives on a phone without the Gantt. Next deliveries sits flat over the list and each row
188
+ carries its own small line (start to end, the done part, a today tick, the next ◇). No card containers, as on the phone Today. Tokens only. */
189
+ @media (max-width: 760px) {
190
+ #ibBody .dl-ph { margin: 0; padding: var(--space-8) 0 var(--space-12); background: none; border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
191
+ .bd-plist .bd-lrow.ini2 { border-radius: 0; box-shadow: none; }
192
+ .bd-plist .bd-lrow.ini2.sel { background: var(--cz-bluebg); box-shadow: inset 3px 0 0 var(--cz-blue); }
193
+ .bd-pl2 { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-8); }
194
+ .bd-pl2-t { position: relative; display: block; height: 6px; border-radius: var(--radius-pill); background: var(--well); }
195
+ .bd-pl2-d { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--radius-pill); background: var(--leaf); }
196
+ .bd-pl2.alert .bd-pl2-d { background: var(--alert); }
197
+ .bd-pl2-n { position: absolute; top: -4px; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
198
+ .bd-pl2-m { position: absolute; top: -3px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg); background: var(--card); border: 1.5px solid var(--ink); }
199
+ .bd-pl2-l { display: flex; justify-content: space-between; font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--muted); }
200
+ .bd-pl2.alert .bd-pl2-l span:last-child { color: var(--alert); }
201
+ }
@@ -1594,3 +1594,17 @@ html.ro body.wk-on .bd-hd { display: none; } /* find and tune moved to the top
1594
1594
  body.cz-phmore .bd-lrow.ini2 .s em.risk { color: var(--cz-risk); }
1595
1595
  body.cz-phmore .bd-lrow.ini2 .s em.you { color: var(--cz-blueink); }
1596
1596
  }
1597
+
1598
+ /* the customer signals behind a row (roadmap-signal-count, bet A157; pm/bd-views.js sigHtml): the count in the Next cell, a press lists them */
1599
+ .bd-sig { position: relative; display: inline-block; vertical-align: middle; margin-right: var(--space-8); }
1600
+ .bd-sig > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 var(--space-8); border-radius: var(--radius-pill); background: var(--cz-well); color: var(--cz-ink2); font: var(--fw-strong) var(--fs-label)/var(--lh-label) var(--cz-sans); }
1601
+ .bd-sig > summary::-webkit-details-marker { display: none; }
1602
+ .bd-sig > summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
1603
+ .bd-sig > summary:hover, .bd-sig[open] > summary { background: var(--cz-bluebg); color: var(--cz-blueink); }
1604
+ .bd-sig > summary:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
1605
+ .bd-sigp { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(320px, 80vw); max-height: 320px; overflow: auto; padding: var(--space-8) var(--space-12); background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: 14px; box-shadow: var(--cz-sheet); }
1606
+ .bd-sigp ul { list-style: none; margin: 0; padding: 0; }
1607
+ .bd-sigp li { padding: 6px 0; border-top: 1px solid var(--cz-hair); font-size: var(--fs-label); line-height: var(--lh-label); white-space: normal; }
1608
+ .bd-sigp li:first-child { border-top: 0; }
1609
+ .bd-sigp .bd-sign { display: block; color: var(--cz-ink2); }
1610
+ .bd-sigl { color: var(--cz-blueink); }
@@ -15,8 +15,8 @@
15
15
  .gl-menu button[aria-checked="true"] { font-weight: var(--fw-strong); }
16
16
  .gl-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--blue); }
17
17
 
18
- /* one column of blocks (GoalsDS: single column, 1080 wide at most) */
19
- .gl-col { width: 100%; max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-16); }
18
+ /* one column of blocks, the page's full width like Today, Work and Events (goals-full-width) */
19
+ .gl-col { width: 100%; display: flex; flex-direction: column; gap: var(--space-16); }
20
20
  #glBody, .gl-p { display: flex; flex-direction: column; gap: var(--space-16); }
21
21
  .gl-p + .gl-p { margin-top: var(--space-16); }
22
22
  .gl-m0 { margin: 0; }
@@ -50,12 +50,6 @@
50
50
  .gl-end { text-align: right; }
51
51
  .gl-tn { font-weight: var(--fw-regular); color: var(--muted); }
52
52
 
53
- /* the Conversation: the one chat, in a block of its own height */
54
- .gl-talk[hidden] { display: none; }
55
- .gl-chat { height: 420px; display: flex; flex-direction: column; min-height: 0; }
56
- .gl-chat > .pc-chat { flex: 1 1 auto; min-height: 0; }
57
- .gl-chat > .pc-chat > .hm-reopen { display: none; }
58
- .gl-chat.away::before { content: "The chat is open in the window beside."; color: var(--muted); font-size: var(--fs-meta); }
59
53
  .gl-n { margin: 0 var(--space-4); }
60
54
  .gl-n[hidden] { display: none; }
61
55
  .gl-n a { color: inherit; }
@@ -81,9 +75,8 @@
81
75
  @media (max-width: 900px) {
82
76
  .gl-nums { flex-direction: column; }
83
77
  }
84
- /* phones: the path wraps; the Table scrolls sideways inside its block; the chat is shorter */
78
+ /* phones: the path wraps; the Table scrolls sideways inside its block */
85
79
  @media (max-width: 760px) {
86
80
  .gl-bar { flex-wrap: wrap; }
87
81
  .gl-krs .head { flex-wrap: wrap; }
88
- .gl-chat { height: 360px; }
89
82
  }
@@ -43,7 +43,7 @@ const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&':
43
43
  const SVG = (d, w = 16, sw = 1.8) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
44
44
  const P = {
45
45
  more: 'M5 12h.01M12 12h.01M19 12h.01', dia: 'M12 4l8 8-8 8-8-8z', box: 'M6 5h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1z',
46
- check: 'M5 12l5 5 9-10', x: 'M6 6l12 12M18 6L6 18', right: 'M10 7l5 5-5 5', down: 'M7 10l5 5 5-5', plus: 'M12 5v14M5 12h14',
46
+ check: 'M5 12.5l4.5 4.5L19 7.5', x: 'M6 6l12 12M18 6L6 18', right: 'M10 7l5 5-5 5', down: 'M7 10l5 5 5-5', plus: 'M12 5v14M5 12h14',
47
47
  tune: 'M4 7h10M18 7h2M4 17h4M12 17h8M14 5v4M8 15v4', full: 'M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5', in: 'M9 4v5H4M15 4v5h5M15 20v-5h5M9 20v-5H4',
48
48
  hide: 'M13 6l6 6-6 6M5 6l6 6-6 6', show: 'M11 6l-6 6 6 6M19 6l-6 6 6 6', open: 'M14 4h6v6M20 4l-9 9M18 14v6H4V6h6', chat: 'M4 5h16v11H9l-5 4z', spark: 'M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z',
49
49
  };
@@ -178,8 +178,7 @@ function show(pop) {
178
178
  S.userSet = false;
179
179
  chatOn(!!(p.session || p.target || p.chat || !S.about || recentOn(S.about)));
180
180
  const want = p.keep ? null : p.target ? p.target : p.session ? null : S.about ? aboutTarget(S.about) : null;
181
- drawWhere();
182
- attach(want, p.session || null);
181
+ attach(want, p.session || null);
183
182
  read();
184
183
  tick();
185
184
  setTimeout(() => { if (S.open && S.card && !S.card.contains(document.activeElement)) S.card.focus({ preventScroll: true }); }, 0);
@@ -192,8 +191,7 @@ function retarget(pop) {
192
191
  S.about = { id: p.id, kind: p.kind || 'initiative', title: p.title || '', ws: p.ws };
193
192
  S.userSet = false;
194
193
  chatOn(!!(p.target || p.chat || recentOn(S.about)));
195
- drawWhere();
196
- attach(p.target || aboutTarget(S.about), null);
194
+ attach(p.target || aboutTarget(S.about), null);
197
195
  read();
198
196
  }
199
197
  function hide() {
@@ -206,19 +204,9 @@ function hide() {
206
204
  if (b && b.isConnected) { try { b.focus({ preventScroll: true }); } catch { /* gone */ } }
207
205
  }
208
206
  /** Close the popup (×, the edge): the Viewer closes first, so an item with unsaved changes asks; its close hides the popup. */
209
- /* ── where work opens: in this popup (the default) or beside the page (the panels). The ⧉ press in the header turns it over. ── */
210
- const beside = () => store.get(VW.POP_WHERE) === 'beside';
211
- function drawWhere() {
212
- const b = S.card && S.card.querySelector('[data-pop="where"]'); if (!b) return;
213
- const t = beside() ? 'Open work in this popup' : 'Open work beside the page';
214
- b.setAttribute('aria-label', t); b.title = t; b.setAttribute('aria-pressed', String(beside()));
215
- }
216
- function where() {
217
- if (beside()) { store.set(VW.POP_WHERE, null); drawWhere(); return; }
218
- store.set(VW.POP_WHERE, 'beside');
219
- const a = S.about; close();
220
- if (a && a.id && a.kind === 'initiative') setTimeout(() => openIni(a.id, a), 0); // the same work, now beside the page
221
- }
207
+ /* ── where work opens: always this popup on a desk (Wawan 2026-11-23, "Always a full popup"). The old ⋯ › "Open work beside the page"
208
+ * choice is gone; a browser that still holds it forgets it here, once. ── */
209
+ try { if (typeof localStorage !== 'undefined' && !(typeof navigator !== 'undefined' && navigator.webdriver)) localStorage.removeItem(VW.POP_WHERE); } catch { /* no storage */ }
222
210
  export function close() { if (VW.popOpen()) VW.closePop(); else if (S.open) hide(); }
223
211
 
224
212
  /* ── the chat on the right ── */
@@ -355,13 +343,12 @@ function openMenu() {
355
343
  const f = m.querySelector('button'); if (f) f.focus();
356
344
  setTimeout(() => document.addEventListener('pointerdown', away, true), 0);
357
345
  }
358
- /* ⋯ in the chat's header (round 3 point 19a: two icons, ⋯ and ✕): where work opens, hide the chat, the sessions, End session */
346
+ /* ⋯ in the chat's header (round 3 point 19a: two icons, ⋯ and ✕): hide the chat, the sessions, End session */
359
347
  function openMore() {
360
348
  closeMenu();
361
349
  const r = curRow(), m = document.createElement('div');
362
350
  m.className = 'cz-pop-m cz-pop-mm'; m.setAttribute('role', 'menu'); m.setAttribute('aria-label', 'More for the chat'); m.dataset.escLayer = '1'; m.dataset.kind = 'more';
363
- m.innerHTML = `<button type="button" class="cz-pop-f" role="menuitem" data-pop="where">${svg(I.side, 16)}${beside() ? 'Open work in this popup' : 'Open work beside the page'}</button>`
364
- + `<button type="button" class="cz-pop-f" role="menuitem" data-pop="hide">${svg(I.hide, 16)}Hide the chat<span>Ctrl J</span></button>`
351
+ m.innerHTML = `<button type="button" class="cz-pop-f" role="menuitem" data-pop="hide">${svg(I.hide, 16)}Hide the chat<span>Ctrl J</span></button>`
365
352
  + `<button type="button" class="cz-pop-f" role="menuitem" data-pop="pick">${svg(I.list, 16)}Sessions</button>`
366
353
  + (r && S.home && S.home.nameHtml ? `<button type="button" class="cz-pop-f" role="menuitem" data-hm-rn="${esc(r.id)}">${svg(I.pen, 16)}Rename session</button>` : '')
367
354
  + (r && r.live ? `<hr><button type="button" class="cz-pop-f" role="menuitem" data-end="${esc(r.id)}">${svg(I.close, 16)}End session</button>` : '');
@@ -460,7 +447,6 @@ function onClick(e) {
460
447
  const a = b.dataset.pop;
461
448
  if (a === 'close') close();
462
449
  else if (a === 'more') { if (S.menu && S.menu.dataset.kind === 'more') closeMenu(); else openMore(); }
463
- else if (a === 'where') { closeMenu(); where(); }
464
450
  else if (a === 'hide') { chatOn(false, 'press'); closeMenu(); const k = S.tools.querySelector('[data-pop="ask"]'); if (k) k.focus(); }
465
451
  else if (a === 'ask') { chatOn(true, 'press'); if (S.chat && S.chat.focus) S.chat.focus(); }
466
452
  else if (a === 'pick') { if (S.menu && S.menu.dataset.kind !== 'more') closeMenu(); else { openMenu(); read(); } }
@@ -622,7 +622,7 @@ export function open(it) {
622
622
  const popArg = o.pop || (pn && pn.pop);
623
623
  // the header's from and kindChip may come with the pending popNext(about) (Library's POP.openWork), so no opener has to pass them
624
624
  if (pn && pn.pop && typeof pn.pop === 'object' && (pn.pop.from || pn.pop.kindChip) && !o.from && !o.kindChip) o = { ...o, from: pn.pop.from || '', kindChip: pn.pop.kindChip || '' };
625
- // a published read-only Board has no chat; 'beside' (the PM's choice, cozy-popup.js) keeps work beside the page, unless the popup shows
625
+ // a published read-only Board has no chat; 'beside' (test suites only, lib/beside-page.js) keeps work beside the page, unless the popup shows
626
626
  // already (it takes what opens next) or the open is the chat icon's own (force)
627
627
  const toPop = !o._inst && !!popArg && !!G.popH && !isPhone() && (window.PMOS_READONLY ? !!popArg.ro : true) && (!!popArg.force || popShown() || !popBeside());
628
628
  let x = o._inst || (toPop && popInst()) || (o.into && byP(o.into)) || pick(o); // into: a panel id ('v1'), the Viewer that shows it (the Board's chat panel)
@@ -870,9 +870,10 @@ export const panels = {
870
870
  export function popHook(h) { G.popH = h && typeof h.host === 'function' && typeof h.show === 'function' ? h : null; }
871
871
  export const popOpen = () => ALL.some((x) => x.pop && shown(x));
872
872
  /** The next open() (within a few seconds) goes into the popup about pop: for an opener that does not pass pop itself (premium-vw-item.js). */
873
- /** Where work opens on a desk: 'beside' keeps it beside the page (the panels), anything else the popup. Kept in localStorage. */
873
+ /** Work always opens in the popup on a desk (Wawan 2026-11-23, "Always a full popup"): the PM has no "beside the page" choice any more.
874
+ * Only a browser a script drives (navigator.webdriver: the suites written for the page beside, lib/beside-page.js) still reads the key. */
874
875
  export const POP_WHERE = 'cz-pop-open';
875
- const popBeside = () => { try { return localStorage.getItem(POP_WHERE) === 'beside'; } catch { return false; } };
876
+ const popBeside = () => { try { return !!navigator.webdriver && localStorage.getItem(POP_WHERE) === 'beside'; } catch { return false; } };
876
877
  const popShown = () => ALL.some((y) => y.pop && shown(y));
877
878
  export function popNext(pop) { G.popNext = pop ? { pop, t: Date.now() } : null; }
878
879
  /** Close the popup's Viewer (an item with unsaved changes asks first). */
@@ -6,7 +6,7 @@
6
6
  * sugOf(model, ns, dismissed) → { kind, key, title, why, will, changes, basis, say } | null the one Suggestion under it
7
7
  * numbersOf(model, ns) → [{ role, name, value, at, spark, line, ns? }] North Star, input, guardrail (Number blocks)
8
8
  * guessKr(title, F) → { key, token, title, words } | null the key result PMOS thinks an unlinked initiative moves, and why
9
- * linkSay(ini, guess) → the words Link puts in the Conversation box
9
+ * linkSay(ini, guess) → the words Link puts in Ask PMOS's box
10
10
  * paceOf(row) → [label, badge tone]
11
11
  * tableHtml(p, o) → the Key results Table (pm-table in a pm-block, group rows, tabs, Choose columns)
12
12
  * COLS the columns: Key result always, then Now, Pace, Moved by, Check (shown) and Left, Levers (Choose columns)
@@ -66,6 +66,7 @@ import { narrowForm } from './pn-narrow.js';
66
66
  import * as BP2 from './bd-pane.js';
67
67
  import * as WV from './bd-work.js'; // Work, one view on a desk (slice 4 of the six-place navigation, initiative work-one-view)
68
68
  import * as BK from './bd-backlog.js';
69
+ import * as PL from './bd-phone-line.js'; // a phone offers List and By stage, no Gantt (board PhIniB)
69
70
  import * as ST from './bd-stands.js'; // Where it stands, its Suggestion and the Next milestones line (initiative work-design-system-blocks, WorkDS) // the Backlog beside Initiatives in Work: every task in one list (initiative work-backlog)
70
71
  import * as LS from './load-shapes.js'; // the skeleton and the slow-case line while the board is read (page-open-speed, SpD) // the Board as the first panel: fit(), the rows that open beside, the open row's mark
71
72
  import * as STRAT from './bd-strategy.js'; // the product's strategy in five lines above the initiatives (bet A458)
@@ -340,7 +341,7 @@ let jiraReading = false; // a press is reading Jira again: the chip's Adler we
340
341
  const CHIP_F = [['late', 'late', 'm-warn', 'Late'], ['risk', 'risk', 'm-warn', 'At risk'], ['blocked', 'red', 'm-crit', 'Blocked'], ['idle', 'q', '', 'Idle 30+ days']];
341
342
  /** The sprint filter (the "Sprint N only" chip and Filter's Sprint group) shows on the Sprint span only among the timeline's spans (TsSprintFilter);
342
343
  * the stage track keeps its chip. */
343
- const curView = () => (PHONE.matches ? pview : narrow() ? nview : workOn() ? 'work' : view);
344
+ const curView = () => (PHONE.matches ? PL.phoneView(pview, !!window.PMOS_READONLY) : narrow() ? nview : workOn() ? 'work' : view);
344
345
  const sprintFilterOn = () => curView() !== 'time' || span === 'sprint';
345
346
  /** What needs a look (batch 24 item 7, canvas BbB): new asks, late, at risk, blocked and idle are ONE pill of dots and numbers. A press opens the
346
347
  * rows; a row opens what its chip opened (the asks, a metric's trend, whose "Show only" filters); a filter that is on turns off at once.
@@ -901,7 +902,7 @@ function drawViewMenu() {
901
902
  const sp = v === 'time' ? `<span class="bd-mlbl">Span</span><span class="bd-fg bd-vsp" role="radiogroup" aria-label="Span">${SPANS.map(([k, n]) => `<button type="button" class="bd-chip${k === span ? ' on' : ''}" role="radio" aria-checked="${k === span}" data-spick="${k}">${esc(n)}</button>`).join('')}</span>` : '';
902
903
  // a published copy (pm/readonly.js): the stage track and the Timeline, the two views a publisher shares, and the span; no Columns, no Shared
903
904
  const RO = !!window.PMOS_READONLY;
904
- $('#bdViewMenu').innerHTML = VIEW_ITEMS.filter(([k]) => !RO || k === 'track' || k === 'time').map(([k, n]) => { const on = tab === 'ini' && k === v; return `<button type="button" class="bd-vmi${on ? ' on' : ''}" data-pv="${k}" aria-pressed="${on}">${SV(I[k])}<span>${n}</span>${on ? `<span class="ck">${SV(I.ok)}</span>` : ''}</button>`; }).join('')
905
+ $('#bdViewMenu').innerHTML = VIEW_ITEMS.filter(([k]) => (PHONE.matches ? PL.phoneViews(RO).includes(k) : !RO || k === 'track' || k === 'time')).map(([k, n]) => { const on = tab === 'ini' && k === v; return `<button type="button" class="bd-vmi${on ? ' on' : ''}" data-pv="${k}" aria-pressed="${on}">${SV(I[k])}<span>${n}</span>${on ? `<span class="ck">${SV(I.ok)}</span>` : ''}</button>`; }).join('')
905
906
  + sp + (RO ? '' : cols + '<span class="bd-vsep" aria-hidden="true"></span>'
906
907
  + `<button type="button" class="bd-vmi${tab === 'shared' ? ' on' : ''}" data-vshared aria-pressed="${tab === 'shared'}">${SV(I.people)}<span>Shared with me</span>${SH_N ? `<span class="k">${SH_N}</span>` : ''}</button>`);
907
908
  }
@@ -921,7 +922,7 @@ function drawInit() {
921
922
  const body = $('#ibBody');
922
923
  body.dataset.view = v; body.dataset.span = v === 'time' ? span : '';
923
924
  document.body.classList.toggle('wk-on', v === 'work');
924
- const html = v === 'work' ? drawWork(L) : v === 'track' ? drawTrack(L) : v === 'time' ? drawTime(L) : v === 'list' ? (phone ? ST.standsHtml(L, { sug: false, max: 2 }) + V.phoneListHtml(L) : V.listHtml(L, filtered())) : V.stagesHtml(L, { phone });
925
+ const html = v === 'work' ? drawWork(L) : v === 'track' ? drawTrack(L) : v === 'time' ? drawTime(L) : v === 'list' ? (phone ? DL.phoneCard({ rows: L, groups: groups(L), progState }) + ST.standsHtml(L, { sug: false, max: 2 }) + V.phoneListHtml(L) : V.listHtml(L, filtered())) : V.stagesHtml(L, { phone });
925
926
  // a phone has no ⋯ menu: Metrics and Cancelled and archived stay one press away in every view, not only the track
926
927
  const phx = phone && v !== 'track' ? `<div class="bd-whead bd-phx"><span class="bd-phb"><button type="button" class="bd-chip" data-open="metrics" aria-haspopup="dialog">Metrics</button><button type="button" class="bd-chip" data-open="gone" aria-haspopup="dialog">Cancelled and archived</button></span></div>` : '';
927
928
  if (v === 'time') TL.hold(); else TL.forget();
@@ -1,16 +1,16 @@
1
1
  /* pm/premium-goals.js — Goals, the place. REBUILT FROM DESIGN SYSTEM BLOCKS (initiative goals-ds-page; board GoalsDS on Exploring 3, page "pages";
2
2
  * brief design-system/pages-rebuild/brief.md). One column of blocks (pm/goals-ds.js writes them):
3
- * · the top line: the path Goals › the product chip, the period chip, then Search, New key result (+: the words go in the Conversation box) and More
3
+ * · the top line: the path Goals › the product chip, the period chip, then Search, New key result (+: the words go in Ask PMOS's box) and More
4
4
  * (Set up, Charts and dashboards, Export CSV). The old Filter button is the Key results tabs now.
5
5
  * · Where it stands (a Summary block): behind key results with the work that moves them and its date, a key result with no reading and since when,
6
6
  * the next check. One Suggestion in the expanded form follows: the North Star draft (Yes keeps it, No drops it, both with Undo), else a source to
7
- * connect, else drafting a North Star. Yes on an ask sends its words to PMOS in the Conversation; No hides it on this device ('pmos.goals.no');
7
+ * connect, else drafting a North Star. Yes on an ask sends its words to Ask PMOS; No hides it on this device ('pmos.goals.no');
8
8
  * the pencil puts the words in the box to change first.
9
9
  * · North Star, input and guardrail as Number blocks; a North Star not set keeps its draft (✓ ✕) or the ask (✦) in its block.
10
10
  * · Key results: one Table grouped by objective, then health budgets, then the work no key result names (PMOS's guess of the key result, Link).
11
11
  * Tabs All, Behind, No reading, On pace ('pmos.goals.filt'); Choose columns adds Left and Levers ('pmos.goals.cols').
12
- * · the Conversation block: the one chat (pm/page-chat.js) about Goals of the product. The popup borrows the same element (cozy-popup.js
13
- * useChat) and gives it back, so the page never holds two chats.
12
+ * · no chat block (goals-full-width, Wawan 2026-11-23): the blocks fill the page's width like Today, Work and Events, and words for PMOS open
13
+ * Ask PMOS in the chat panel on the right, about Goals of the product (a phone: the chat sheet). The rail's chat icon works as on every page.
14
14
  * Everything below this line is as goals-place built it, unless it says otherwise.
15
15
  *
16
16
  * First built as Goals (initiative goals-place, slice 9 of the six-place navigation; boards 8, 13, 31, 32, 33 on Exploring 2,
@@ -110,7 +110,7 @@ function standsHtml(p, sug) {
110
110
  + (say.length ? `<p class="gl-m0">${say.join(' ')}</p>` : '') + (sug ? DS.sugHtml(sug, `data-gl-sk="${esc(sug.key)}" data-gl-sws="${esc(p.ws)}"`, 'data-gl-sug') : '') + '</section>';
111
111
  }
112
112
  function draw() {
113
- if (!S.list.length) { body.innerHTML = `<p class="pm-meta gl-none">${esc(S.error ? 'Goals could not be read: ' + S.error + '.' : 'No product is ticked. Tick one in the product choice.')}</p>`; $('glNote').hidden = true; $('glTalk').hidden = true; return; }
113
+ if (!S.list.length) { body.innerHTML = `<p class="pm-meta gl-none">${esc(S.error ? 'Goals could not be read: ' + S.error + '.' : 'No product is ticked. Tick one in the product choice.')}</p>`; $('glNote').hidden = true; return; }
114
114
  const today = todayIso(), many = S.list.length > 1;
115
115
  let h = '';
116
116
  S.sug = null;
@@ -128,44 +128,24 @@ function draw() {
128
128
  body.innerHTML = h;
129
129
  $('glNote').hidden = false;
130
130
  drawPer();
131
- talk();
132
131
  }
133
132
 
134
- /* ── the Conversation block: the one chat, about Goals of the product ── */
135
- const T = { box: null, target: null, phone: matchMedia('(max-width: 760px)') };
133
+ /* ── Ask PMOS about Goals: the chat panel on the right, beside the page (a phone: the chat sheet), as on Work. Goals holds no chat of its own. ── */
136
134
  function goalsTarget(PC) {
137
135
  const p = S.list.find((x) => x.model) || null, ws = p ? p.ws : '', name = p && S.list.length === 1 ? nm(p) : '';
138
136
  const base = PC.popTarget({ kind: 'goal', id: 'goals-' + (ws || 'all'), title: name ? 'Goals of ' + name : 'Goals' }, ws || undefined);
139
137
  return { ...base, placeholder: 'Ask about a key result, or say a new one', empty: 'Ask why a key result is behind, or say a new one. PMOS reads your goals and says where each answer came from.' };
140
138
  }
141
- async function talk() {
142
- const host = $('glChat'), sec = $('glTalk');
143
- if (!S.list.some((x) => x.model) || (window.PMOS_READONLY)) { sec.hidden = true; return; } // a read-only copy has no chat
144
- sec.hidden = false;
139
+ /** Words for PMOS: sent at once (Yes), or put in the box to change first (the pencil, Link, +). Opens Ask PMOS about Goals first. */
140
+ async function say(text, send) {
141
+ if (window.PMOS_READONLY) return; // a read-only copy has no chat
145
142
  const PC = await import('./page-chat.js');
146
- if (!T.box) {
147
- T.box = await PC.box();
148
- host.appendChild(T.box.el);
149
- // the popup borrows this chat and gives it back (cozy-popup.js useChat): never a second chat on the page
150
- POP.useChat({ el: T.box.el, open: (t) => T.box.chat.open(t), current: () => (T.box.chat.current ? T.box.chat.current() : null), focus: () => T.box.chat.focus(), stop: () => T.box.chat.stop && T.box.chat.stop() });
151
- new MutationObserver(() => {
152
- const home = T.box.el.parentNode === host;
153
- host.classList.toggle('away', !home);
154
- if (home && T.target) T.box.chat.open(T.target); // back from the popup: the chat about Goals again
155
- }).observe(host, { childList: true });
156
- }
157
143
  const t = goalsTarget(PC);
158
- if (!T.target || T.target.key !== t.key) { T.target = t; if (T.box.el.parentNode === host) T.box.chat.open(t); }
159
- }
160
- /** Words for PMOS: sent at once (Yes), or put in the box to change first (the pencil, Link, +). */
161
- async function say(text, send) {
162
- await talk();
163
- if (!T.box) return;
164
- const host = $('glChat');
165
- if (T.box.el.parentNode !== host) { POP.close(); }
166
- $('glTalk').scrollIntoView({ block: 'nearest', behavior: 'smooth' });
167
- if (send) { await T.box.chat.send(text); return; }
168
- const ta = T.box.el.querySelector('textarea');
144
+ await PC.openTarget(t, { title: t.title }); // the chat panel on the right, beside the page (a phone: the sheet); in the popup when one shows
145
+ const B = await PC.box(); // the one chat element the popup and the sheet both show
146
+ let n = 0;
147
+ const ta = await new Promise((res) => { const go = () => { const x = B.el.isConnected && B.el.querySelector('textarea'); if (x || ++n > 40) res(x || null); else setTimeout(go, 50); }; go(); });
148
+ if (send) { await B.chat.send(text); return; }
169
149
  if (ta) { ta.value = text; ta.dispatchEvent(new Event('input', { bubbles: true })); ta.focus(); ta.setSelectionRange(text.length, text.length); }
170
150
  }
171
151
 
@@ -39,7 +39,6 @@
39
39
  </div>
40
40
  <div class="gl-col">
41
41
  <div id="glBody" aria-live="polite"><div class="gl-sk" aria-hidden="true"><i class="pm-block flat"></i><i class="pm-block flat"></i><i class="pm-block flat"></i></div></div>
42
- <section class="pm-block gl-talk" id="glTalk" aria-label="Ask about your goals" hidden><div class="head"><svg class="pm-ic" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16v11H9l-5 4z"/></svg><h2 class="pm-h-sm">Ask about your goals</h2></div><div class="gl-chat" id="glChat"></div></section>
43
42
  <p class="pm-meta gl-n" id="glNote" hidden>Reports are routine jobs, so they live in <a href="/premium-routine.html">Routine</a>: who each one tells, when it runs, what PMOS did.</p>
44
43
  </div>
45
44
  </main>
@@ -74,7 +74,7 @@ const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', {
74
74
  await page.route('**/api/boards/tasks/restore', (r) => { const b = JSON.parse(r.request().postData() || '{}'); posts.push(['restore', b]); gone = new Set([...gone].filter((x) => x !== b.task)); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, task: b.task }) }); });
75
75
  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': 'year', 'pmos.tasks.view': 'list' }]);
76
76
  await page.goto(BASE + '/premium-board.html?ws=w1&board=w1');
77
- await page.waitForSelector('#ibBody [data-row]', { timeout: 15000 });
77
+ await page.waitForSelector('#ibBody [data-row], #ibBody .bd-lrow[data-key]', { timeout: 15000 });
78
78
  await page.waitForTimeout(400);
79
79
  return { ctx, page, errors, posts };
80
80
  };
@@ -80,7 +80,7 @@ const ITEMS = [
80
80
  await page.route('**/api/boards/tasks/edit', (r) => { posts.push(JSON.parse(r.request().postData() || '{}')); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, from: { milestone: false } }) }); });
81
81
  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', 'pmos.tasks.view': o.tasksView || 'list', 'pmos.tasks.zoom': 'month', 'pmos.board.msMode': o.mode || 'all' }]);
82
82
  await page.goto(BASE + '/premium-board.html?ws=w1&board=w1');
83
- await page.waitForSelector('#ibBody [data-row]', { timeout: 15000 });
83
+ await page.waitForSelector('#ibBody [data-row], #ibBody .bd-lrow[data-key]', { timeout: 15000 });
84
84
  await page.waitForTimeout(500);
85
85
  return { ctx, page, errors, posts };
86
86
  };
@@ -176,15 +176,11 @@ const ITEMS = [
176
176
  await ctx.close();
177
177
  }
178
178
 
179
- /* P — the phone */
179
+ /* P — the phone has no Gantt (board PhIniB, initiative phone-initiative-lines): a stored Timeline opens the List, each row with its own line */
180
180
  {
181
181
  const { ctx, page: p, errors } = await open({ w: 390, h: 844, phone: true });
182
- const sc = await rowOf(p, 'board:scarlet');
183
- ok('P the phone draws the ◇s with no dates', sc && sc.tm.length === 2 && !sc.tml.length, JSON.stringify(sc));
184
- await p.click('#ibBody .tgq-r[data-row="board:scarlet"] > .tg-p', { position: { x: 300, y: 10 } });
185
- const sh = await p.evaluate(() => { const m = document.querySelector('.tg-msp.sh'); return m ? { h: (m.querySelector('.h') || {}).textContent, rows: [...m.querySelectorAll('[data-ms-open]')].map((b) => b.textContent) } : null; });
186
- ok('P a tap on the row opens a sheet with its milestones, the end one too', sh && sh.h === 'Scarlet — ST What’s The News' && sh.rows.join('|') === 'Pilot with 2 newsroomsDec 11|Feature deliveredJan 29|KPI evaluatedMar 31', JSON.stringify(sh));
187
- await shot(p, 'milestones-phone-390');
182
+ const ph = await p.evaluate(() => ({ tg: document.querySelectorAll('#ibBody .tg, #ibBody .tgq-r').length, rows: document.querySelectorAll('#ibBody .bd-lrow.ini2').length, scroll: document.documentElement.scrollWidth <= innerWidth + 1 }));
183
+ ok('P the phone draws no timeline: the List, with no sideways page scroll', ph.tg === 0 && ph.rows >= 1 && ph.scroll, JSON.stringify(ph));
188
184
  ok('the phone threw nothing', !errors.length, errors.join('\n'));
189
185
  await ctx.close();
190
186
  }
@@ -0,0 +1,6 @@
1
+ {
2
+ "_comment": "Initiative phone-initiative-lines (board PhIniB): the phone's initiatives without the Gantt, each row with its own small line (pm/bd-phone-line.js). Pure checks.",
3
+ "modules": [
4
+ "phone-initiative-lines.test.js"
5
+ ]
6
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Positioning and key messages drafted from the five-line strategy (idea A328, done test planning/done-tests/positioning-draft.md C1-C9). Pure checks, the routes in process and the CLI, with a stubbed session answer. No connector, model or network.",
3
+ "modules": [
4
+ "positioning-draft.test.js"
5
+ ],
6
+ "seconds": {
7
+ "positioning-draft.test.js": 2
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "initiative press-release-faq (bet A362): pmos press-release, a one-page press release and FAQ drafted from a bet's record (pure, node, scratch folders, model stand-in).",
3
+ "modules": [
4
+ "test/press-release.test.js"
5
+ ],
6
+ "seconds": {
7
+ "test/press-release.test.js": 1
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Customer signal count on each roadmap item (initiative roadmap-signal-count, bet A157, done test S1-S7): the ledger, the CLI, the Board row's signals and the List row markup. Scratch repositories only. No server, connector, model or network.",
3
+ "modules": [
4
+ "customer-signals.test.js"
5
+ ],
6
+ "seconds": {
7
+ "customer-signals.test.js": 6
8
+ }
9
+ }
@@ -73,7 +73,7 @@ const ROWS = [
73
73
  await page.route('**/api/lifecycle', (r) => { posts.push(JSON.parse(r.request().postData() || '{}')); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true }) }); });
74
74
  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' }]);
75
75
  await page.goto(BASE + '/premium-board.html?ws=w1&board=w1');
76
- await page.waitForSelector('#ibBody [data-row]', { timeout: 15000 });
76
+ await page.waitForSelector('#ibBody [data-row], #ibBody .bd-lrow[data-key]', { timeout: 15000 });
77
77
  await page.waitForTimeout(500);
78
78
  return { ctx, page, errors, posts };
79
79
  };
@@ -234,23 +234,12 @@ const ROWS = [
234
234
  await ctx.close();
235
235
  }
236
236
 
237
- /* M the phone: the hold's hairline and its press, no dates beside it */
237
+ /* M — the phone has no Gantt (board PhIniB, initiative phone-initiative-lines): a stored Timeline opens the List, each row with its own line */
238
238
  {
239
239
  const { ctx, page: p, errors } = await open({ w: 390, h: 844 });
240
- const m = await p.evaluate(() => ({ pz: document.querySelectorAll('#ibBody button.tg-ng.ho').length, hl: document.querySelectorAll('#ibBody .tg-hl, #ibBody .tg-pz').length, scroll: document.documentElement.scrollWidth <= innerWidth + 1 }));
241
- ok('M the phone keeps each hold\'s hairline as a press, no ⏸ and no date beside it, with no sideways page scroll', m.pz >= 4 && m.hl === 0 && m.scroll, JSON.stringify(m));
242
- await shot(p, 'timeline-holds-390');
243
- await p.click('#ibBody [data-row="board:email-otp"] .tg-ng.ho');
244
- const sh = await p.evaluate(() => { const h = document.querySelector('#bdPop'); return { sheet: h.classList.contains('sheet'), h4: (h.querySelector('h4') || {}).textContent }; });
245
- ok('M on a phone the hold\'s press opens the same menu as a sheet', sh.sheet && sh.h4 === 'On hold · 4½ months', JSON.stringify(sh));
246
- await shot(p, 'timeline-holds-menu-390');
247
- const ng = await p.evaluate(() => [...document.querySelectorAll('#ibBody .tg-ng:not(.ho)')].map((x) => x.tagName));
248
- ok('X the phone draws the hairline with no words and no press', ng.length >= 1 && ng.every((t) => t === 'SPAN'), JSON.stringify(ng));
249
- await p.keyboard.press('Escape'); await p.waitForTimeout(200);
250
- await p.click('#ibBody .tgq-r[data-row="board:recovery-codes"] > .tg-p', { position: { x: 200, y: 10 } });
251
- const sh2 = await p.evaluate(() => { const s = document.querySelector('.tg-msp.sh'); return s ? [...s.querySelectorAll('.o')].map((x) => x.textContent.trim()) : null; });
252
- ok('X tapping the row on a phone opens its sheet, which lists the gap', sh2 && sh2.some((t) => /^Nothing planned · 12 wk/.test(t)), JSON.stringify(sh2));
253
- ok('the phone timeline threw nothing', !errors.length, errors.join('\n'));
240
+ const ph = await p.evaluate(() => ({ tg: document.querySelectorAll('#ibBody .tg, #ibBody .tgq-r').length, rows: document.querySelectorAll('#ibBody .bd-lrow.ini2').length, scroll: document.documentElement.scrollWidth <= innerWidth + 1 }));
241
+ ok('M the phone draws no timeline: the List, with no sideways page scroll', ph.tg === 0 && ph.rows >= 1 && ph.scroll, JSON.stringify(ph));
242
+ ok('the phone threw nothing', !errors.length, errors.join('\n'));
254
243
  await ctx.close();
255
244
  }
256
245
  if (shots) {