create-pmos 0.537.0 → 0.538.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 (100) hide show
  1. package/package.json +68 -14
  2. package/payload/KIT-VERSION +2 -2
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/payload/state/log.md +1 -1
  7. package/workspace/board-columns-test.js +11 -10
  8. package/workspace/board-programs-test.js +21 -23
  9. package/workspace/board-publish-ui-test.js +19 -15
  10. package/workspace/board-shared-ui-test.js +15 -12
  11. package/workspace/briefing-premium-board-test.js +46 -31
  12. package/workspace/briefing-premium-insights-test.js +24 -31
  13. package/workspace/briefing-premium-metrics-test.js +2 -2
  14. package/workspace/calm-timeline-test.js +1 -1
  15. package/workspace/changelog.json +67 -0
  16. package/workspace/ev-everywhere-test.js +4 -5
  17. package/workspace/fixtures/board-premium-facts.js +1 -1
  18. package/workspace/fixtures/initiative-premium-facts.js +1 -1
  19. package/workspace/fixtures/insights-premium-facts.js +6 -6
  20. package/workspace/fixtures/program-ascent.js +1 -1
  21. package/workspace/guide/adler.md +2 -2
  22. package/workspace/guide/agent-capabilities.md +38 -6
  23. package/workspace/guide/board.md +13 -6
  24. package/workspace/guide/claude-proposes.md +1 -1
  25. package/workspace/guide/home.md +2 -2
  26. package/workspace/guide/index.md +3 -3
  27. package/workspace/guide/intelligence-okr-goals.md +18 -7
  28. package/workspace/guide/lifecycle.md +2 -2
  29. package/workspace/guide/programs.md +2 -2
  30. package/workspace/guide/reports-needs-you.md +5 -5
  31. package/workspace/guide/settings.md +14 -11
  32. package/workspace/guide/workflows.md +3 -3
  33. package/workspace/guide/your-impact.md +1 -1
  34. package/workspace/lib/agent-team.js +262 -0
  35. package/workspace/lib/ai-cli.js +36 -4
  36. package/workspace/lib/bg-queue.js +9 -4
  37. package/workspace/lib/board-premium.js +6 -3
  38. package/workspace/lib/goal-source.js +77 -0
  39. package/workspace/lib/grill-runs.js +6 -3
  40. package/workspace/lib/headless.js +36 -4
  41. package/workspace/lib/idle-lab-engine.js +7 -6
  42. package/workspace/lib/initiative-premium.js +6 -3
  43. package/workspace/lib/insights-premium.js +1 -1
  44. package/workspace/lib/job-graph.js +191 -0
  45. package/workspace/lib/okr-goals.js +3 -0
  46. package/workspace/lib/orchestrator-keeprate.js +108 -7
  47. package/workspace/lib/pmos-verbs.js +3 -0
  48. package/workspace/lib/proposal-runs.js +8 -5
  49. package/workspace/lib/proposals.js +32 -2
  50. package/workspace/lib/report-slots.js +14 -10
  51. package/workspace/lib/routes-boards.js +2 -2
  52. package/workspace/lib/routes-insights-premium.js +11 -4
  53. package/workspace/lib/routes-premium-dashboards.js +20 -6
  54. package/workspace/lib/routes-proposals.js +10 -5
  55. package/workspace/lib/routes-your-move.js +6 -7
  56. package/workspace/lib/status-proof.js +45 -0
  57. package/workspace/lib/status-signal.js +4 -2
  58. package/workspace/lib/task-links.js +3 -1
  59. package/workspace/lib/team-cli.js +164 -0
  60. package/workspace/lib/team-runs.js +244 -0
  61. package/workspace/lib/verify-runs.js +112 -0
  62. package/workspace/okr-goals-ui-test.js +10 -13
  63. package/workspace/package-lock.json +2 -2
  64. package/workspace/package.json +1 -1
  65. package/workspace/premium-vw-backlog-test.js +2 -2
  66. package/workspace/premium-vw-jira-test.js +1 -1
  67. package/workspace/public/pm/bd-acts.js +14 -34
  68. package/workspace/public/pm/bd-ini-panel.js +38 -27
  69. package/workspace/public/pm/bd-publish.js +1 -1
  70. package/workspace/public/pm/bd-span.js +2 -1
  71. package/workspace/public/pm/bd-views.js +7 -5
  72. package/workspace/public/pm/c3-ini-ui.js +9 -7
  73. package/workspace/public/pm/cozy-board.css +17 -6
  74. package/workspace/public/pm/cozy-insights.css +18 -0
  75. package/workspace/public/pm/cozy-nav.js +2 -2
  76. package/workspace/public/pm/cozy-search.js +29 -7
  77. package/workspace/public/pm/cozy-settings.js +39 -20
  78. package/workspace/public/pm/home-data.js +3 -1
  79. package/workspace/public/pm/home-ini-model.js +15 -1
  80. package/workspace/public/pm/home-ini.js +9 -3
  81. package/workspace/public/pm/ini-tail.js +61 -0
  82. package/workspace/public/pm/ini-view-model.js +10 -7
  83. package/workspace/public/pm/premium-board.js +66 -99
  84. package/workspace/public/pm/premium-insights.js +95 -112
  85. package/workspace/public/pm/premium-report-intel.js +3 -2
  86. package/workspace/public/pm/readonly.js +4 -3
  87. package/workspace/public/pm/stage-chip.js +2 -1
  88. package/workspace/public/pm/status-proof.js +43 -0
  89. package/workspace/public/premium-board.html +10 -28
  90. package/workspace/public/premium-intelligence.html +7 -9
  91. package/workspace/server.js +35 -1
  92. package/workspace/sort-order-test.js +10 -8
  93. package/workspace/test-files.json +4 -2
  94. package/workspace/test-lists/agent-team.json +9 -0
  95. package/workspace/test-lists/job-graph.json +11 -0
  96. package/workspace/test-lists/status-proof.json +5 -0
  97. package/workspace/workflows-setup-test.js +3 -2
  98. package/workspace/public/premium-chat.html +0 -14
  99. package/workspace/public/premium-initiative.html +0 -15
  100. package/workspace/public/premium-work.html +0 -14
@@ -90,7 +90,7 @@ let PKP = null, picked = false; // the saved pick (GET /api/briefing-premium/p
90
90
  let byProduct = store.get(GROUPING_KEY) === 'product'; // the grouping: programs first (default) or By product (PgBoardProduct)
91
91
  let DM = {}; // the documents' history (GET /api/board-docs): { [path]: { changed, by, log } }
92
92
  let peek = null; // what the Viewer shows for the Board: { kind: 'ini', key } an initiative or its ticket, { kind: 'acts' } an acts panel
93
- mountNav('board');
93
+ mountNav('board', document, { scope: () => Acts.findScope() }); // ⌘K and Find open Search scoped to this Board first (UI grill U2)
94
94
  quietPlace('board', document.getElementById('stage'));
95
95
  mountLivePill();
96
96
  /* The page is the first panel (panels on Board and Intelligence, canvas BiB1Split): a Viewer opens beside it, behind the divider. A row's
@@ -250,7 +250,8 @@ function drawHead() {
250
250
  // PMOS-self: new work starts at the pmos-router skill. All products: New asks which product the initiative is for
251
251
  $('#newIni').hidden = ALL ? (M.board.products || []).every((p) => p.self) : !!M.board.self;
252
252
  if (!window.PMOS_READONLY && !SH_LOADED) { SH_LOADED = true; import('./bd-shared.js').then((S) => S.loadCount(setSharedCount)); }
253
- { const pb = $('#bdPublish'); const was = pb.hidden; pb.hidden = ALL || !M.board.ws || !!window.PMOS_READONLY; if (was && !pb.hidden) import('./bd-publish.js').then((P) => P.refreshCount(pb)); }
253
+ // Publish a read-only copy is a row of ⋯ (UI grill U2); one board at a time, so not on the All products page
254
+ { const pb = $('#bdPublish'); if (pb) { const was = pb.hidden; pb.hidden = ALL || !M.board.ws || !!window.PMOS_READONLY; if (was && !pb.hidden) import('./bd-publish.js').then((P) => P.refreshCount(pb)); } }
254
255
  setPageGaps(((M.header && M.header.missing) || []).length);
255
256
  }
256
257
  let jiraReading = false; // a press is reading Jira again: the chip's Adler wears his glasses until the next read of the Board lands
@@ -262,9 +263,12 @@ const sprintFilterOn = () => curView() !== 'time' || span === 'sprint';
262
263
  /** 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
263
264
  * 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.
264
265
  * A row that is zero is not listed, and the pill is not drawn when every row is zero (zero is silence). */
265
- function needHtml(C, open, phone) {
266
+ function needHtml(C0, open, phone) {
267
+ const C = { ...C0, you: youRows().length };
266
268
  const rows = [];
267
269
  if (C.asks) rows.push({ k: 'asks', dot: 'you m-info', n: C.asks, name: plural(C.asks, 'New ask', 'New asks'), say: C.asks + ' new ' + plural(C.asks, 'ask', 'asks') });
270
+ // what waited behind the Board's bell (UI grill U2 took the bell off): the initiatives whose next step is yours; a press shows only them
271
+ if (C.you) rows.push({ k: 'you', dot: 'you', n: C.you, name: 'Waits on you', say: C.you + ' ' + plural(C.you, 'waits', 'wait') + ' on you' });
268
272
  for (const [k, tone, mo, name] of CHIP_F) if (C[k]) rows.push({ k, dot: tone + (mo ? ' ' + mo : ''), n: C[k], name, say: C[k] + ' ' + name.toLowerCase() });
269
273
  // workspace grill W2: the open initiatives nothing read says anything about. One ✦ reads Jira for them; they are never counted as on track
270
274
  const nosig = C.none ? `<button type="button" class="bd-nr" id="chNoSig"><i class="cz-dot q"></i>✦ Read Jira now for the ${C.none} with no signal</button>` : '';
@@ -279,43 +283,45 @@ function needHtml(C, open, phone) {
279
283
  + parts.join(phone ? '' : '<span class="bd-nsep" aria-hidden="true">·</span>') + SV(I.chev) + '</button>'
280
284
  + `<span class="bd-grpm bd-needm" id="bdNeedMenu" role="group" aria-label="Needs a look"${open ? '' : ' hidden'}><span class="bd-mlbl">Needs a look</span>${rows.map(item).join('')}${nosig}</span></span>`;
281
285
  }
286
+ /** The initiatives whose next step is yours (the trail's "waits on you"): what the Board's bell listed before UI grill U2. */
287
+ const youRows = () => ((M && M.initiatives && M.initiatives.list.rows) || []).filter((r) => !r.ended && r.track && r.track.you);
282
288
  const menuOpen = (id) => !!$('#' + id) && !$('#' + id).hidden;
283
289
  function drawChips() {
284
290
  const J = M.jira || {}, C = M.chips || {}, sp = J.sprint, rel = J.release, phone = small();
285
291
  const jira = J.readAt ? 'Jira · read ' + ago(J.readAt) : 'Jira · not read';
286
292
  const sprint = [sp ? sp.name : null, rel ? rel.name + ' ships ' + rel.at.replace(/^(\d+) (\w+)$/, '$2 $1') : null].filter(Boolean).join(' · ') || ''; // no sprint and no release on record: no chip (workspace grill W4, zero is silence)
287
- // All products (PgBoard): one Jira control with the oldest read of any product, and every product's new asks; the sprint stays per product
288
293
  // AdM2: Adler's S face carries the read's mood: calm when Jira was read within a day and a half, honest when it was not, glasses on while
289
- // a press reads it again. Settings > Adler > Off keeps the refresh icon. Batch 24 item 7 (BbB): the face alone, an amber pip when the read is
290
- // old, the words on hover (and for a screen reader).
294
+ // a press reads it again. UI grill U2: the face left the toolbar; the read and its ↻ are a row of the pill's (i) on a desktop and of the
295
+ // tune sheet on a phone, and stay in Settings › Connectors. All products: the oldest read of any product.
291
296
  const jMood = jiraReading ? 'thinking' : J.readAt && Date.now() - Date.parse(J.readAt) < 36 * 3600000 ? 'handled' : 'honest';
292
- const jSay = jira + '. ' + (ALL ? 'Press to read Jira again for every product' : 'Press to read Jira again');
293
- const jiraChip = `<button type="button" class="bd-chip bd-jf" id="chJira" title="${esc(jSay)}" aria-label="${esc(jSay)}">${faceOr(jMood, 's', SV(I.refresh), { label: false })}${jMood === 'honest' ? '<i class="bd-pip" aria-hidden="true"></i>' : ''}<span class="vh">${esc(jira)}</span></button>`;
294
297
  const need = needHtml(C, menuOpen('bdNeedMenu'), phone);
295
- // the tune button's dot (BhA): the Jira read is old, or a filter is on
296
- { const fb = $('#bdFilter'), pip = fb.querySelector('.bd-pip'), say = phone ? 'Group, sort and filter' : 'Filter by owner, category or sprint';
298
+ // the tune button's dot on a phone (BhA): the Jira read is old, or a filter is on (a desktop says the filters in the Showing bar)
299
+ { const fb = $('#bdFilter'), pip = fb.querySelector('.bd-pip'), say = 'Group, sort and filter';
297
300
  if (pip) pip.hidden = !(phone && (jMood === 'honest' || filtered())); fb.setAttribute('aria-label', say); fb.title = say; }
298
- // one row (batch 28 item 3, canvas BhA): what needs a look sits after the view; a phone reads Jira again from the tune sheet
299
301
  TUNE = { jira, jMood };
300
- $('#bdJiraw').innerHTML = phone ? '' : jiraChip;
301
302
  if (phone) { $('#bdChipset').innerHTML = need; return; }
302
- // the timeline's legend (PgTimeline) goes behind an info icon after the pill (BbB), with a program milestone only where a program is drawn
303
- // and "On hold" only where a hold is drawn (feedback batch 9 item 8: zero is silence)
303
+ // the pill's (i) (UI grill U2): the timeline's legend (PgTimeline; a program milestone only where a program is drawn and "On hold" only where a
304
+ // hold is drawn, feedback batch 9 item 8), the sprints and releases the calendar icon opened (BdSprint), and the Jira read with its ↻
304
305
  const lo = menuOpen('bdLgdMenu');
305
- const lgd = view === 'time' && span !== 'sprint' ? `<span class="bd-grpw2 bd-lgdw"><button type="button" class="bd-ib bd-lgdb" id="bdLgdBtn" aria-haspopup="true" aria-expanded="${lo}" aria-controls="bdLgdMenu" aria-label="What the bars mean" title="What the bars mean">${SV(I.info)}</button>`
306
- + `<span class="bd-grpm bd-lgdm" id="bdLgdMenu"${lo ? '' : ' hidden'}><span class="bd-mlbl">What the bars mean</span>${legendHtml(!byProduct && !!groups(visible()), hasHold(visible()), { ...planKeys(visible()), ...gapKeys(visible()), range: visible().some((r) => fcRange(r)) })}</span></span>` : '';
307
- // the sprints and releases (BdSprint): one icon, its words on hover; no sprint and no release on record draws nothing
308
- const spr = ALL || !sprint ? '' : `<button type="button" class="bd-ib" id="chSprint" aria-haspopup="dialog" aria-label="${esc(sprint)}. Sprints and releases" title="${esc(sprint)}">${SV(I.cal)}</button>`;
309
- $('#bdChipset').innerHTML = need + lgd + spr;
310
- }
311
- /** What the tune sheet (a phone's #bdFilter, BhA) adds to Filter: Sort first, the Jira read last. Null on a desktop, which has their own buttons. */
306
+ const lgd = view === 'time' && span !== 'sprint' ? `<span class="bd-mlbl">What the bars mean</span>${legendHtml(!byProduct && !!groups(visible()), hasHold(visible()), { ...planKeys(visible()), ...gapKeys(visible()), range: visible().some((r) => fcRange(r)) })}` : '';
307
+ const RO = !!window.PMOS_READONLY; // a published copy: the legend only (pm/readonly.js); the sprints dialog and the Jira read are the publisher's
308
+ const spr = RO || ALL || !sprint ? '' : `<button type="button" class="bd-lgdrow" id="chSprint" aria-haspopup="dialog" aria-label="${esc(sprint)}. Sprints and releases">${SV(I.cal)}<span>${esc(sprint)}</span>${SV(I.chev)}</button>`;
309
+ const jSay = jira + '. ' + (ALL ? 'Read Jira again for every product' : 'Read Jira again');
310
+ const jr = RO ? '' : `<div class="bd-lgdrow bd-tjr">${faceOr(jMood, 's', '', { label: false })}<span>${esc(jira.replace(/^Jira · /, 'Jira '))}.${jMood === 'honest' ? ' Read it again?' : ''}</span>`
311
+ + `<button type="button" class="bd-ib" id="chJira" aria-label="${esc(jSay)}" title="${esc(jSay)}"${jiraReading ? ' disabled' : ''}>${SV(I.refresh)}</button></div>`;
312
+ const say2 = view === 'time' && span !== 'sprint' ? 'What the bars mean, sprints and the Jira read' : 'Sprints and the Jira read';
313
+ const info = !lgd && !spr && !jr ? '' : `<span class="bd-grpw2 bd-lgdw"><button type="button" class="bd-ib bd-lgdb" id="bdLgdBtn" aria-haspopup="true" aria-expanded="${lo}" aria-controls="bdLgdMenu" aria-label="${say2}" title="${say2}">${SV(I.info)}${jMood === 'honest' ? '<i class="bd-pip" aria-hidden="true"></i>' : ''}</button>`
314
+ + `<span class="bd-grpm bd-lgdm" id="bdLgdMenu"${lo ? '' : ' hidden'}>${lgd}${spr || jr ? '<span class="bd-mlbl">This board</span>' : ''}${spr}${jr}</span></span>`;
315
+ $('#bdChipset').innerHTML = need + info;
316
+ }
317
+ /** What the tune sheet (#bdFilter: BhA on a phone, UI grill U2 on a desktop too) adds to Filter: Group and Sort first; a phone has the Jira read
318
+ * last (a desktop has it in the pill's (i)). */
312
319
  let TUNE = { jira: '', jMood: 'honest' };
313
320
  function tuneParts() {
314
- if (!small()) return null;
315
321
  const say = TUNE.jira.replace(/^Jira · /, 'Jira ');
316
322
  const now = SO.layout().sort;
317
323
  return { top: `<p class="bd-mlbl">Sort</p><div class="bd-fg" role="radiogroup" aria-label="Sort">${SORT_MODES.map(([k, n]) => `<button type="button" class="bd-chip${k === now ? ' on' : ''}" role="radio" aria-checked="${k === now}" data-so-pick="${esc(k)}">${esc(n)}</button>`).join('')}</div>`,
318
- bottom: `<div class="bd-tjr">${faceOr(jiraReading ? 'thinking' : TUNE.jMood, 's', '', { label: false })}<span>${esc(say)}.${TUNE.jMood === 'honest' ? ' Read it again?' : ''}</span>`
324
+ bottom: !small() ? '' : `<div class="bd-tjr">${faceOr(jiraReading ? 'thinking' : TUNE.jMood, 's', '', { label: false })}<span>${esc(say)}.${TUNE.jMood === 'honest' ? ' Read it again?' : ''}</span>`
319
325
  + `<button type="button" class="bd-chip bd-jread" data-jread aria-label="Read Jira again" title="Read Jira again"${jiraReading ? ' disabled' : ''}>${SV(I.refresh)}</button></div>` };
320
326
  }
321
327
  /** A sort picked in the tune sheet: saved as the sort menu saves it (look.order, shared with Home), then read back (pm/sort-order.js). */
@@ -340,11 +346,12 @@ $('#bdChipset').addEventListener('click', (e) => {
340
346
  const k = f.dataset.f, inNeed = !!f.closest('#bdNeedMenu');
341
347
  if (inNeed) closeMenu('bdNeedMenu', 'chNeed');
342
348
  // a metric row opens its trend (BdPanel), whose "Show only" filters; a row that is on turns off at once
343
- if (k !== 'sprint' && !F.chips.has(k)) { Acts.open.trend(k, inNeed ? $('#chNeed') : f); return; }
349
+ if (k !== 'sprint' && k !== 'you' && !F.chips.has(k)) { Acts.open.trend(k, inNeed ? $('#chNeed') : f); return; }
344
350
  if (F.chips.has(k)) F.chips.delete(k); else F.chips.add(k); drawChips(); drawInit(); if (inNeed) { const b = $('#chNeed') || $('#bdFilter'); b.focus(); } return;
345
351
  }
346
352
  const b = e.target.closest('button'); if (!b) return;
347
- if (b.id === 'chSprint') Acts.open.sprint(b);
353
+ if (b.id === 'chSprint') { closeMenu('bdLgdMenu', 'bdLgdBtn'); Acts.open.sprint($('#bdLgdBtn') || b); }
354
+ else if (b.id === 'chJira') refreshJira(b);
348
355
  else if (b.id === 'chNoSig') { closeMenu('bdNeedMenu', 'chNeed'); refreshJira($('#chJira') || b); }
349
356
  else if (b.id === 'chAsks') { closeMenu('bdNeedMenu', 'chNeed'); Acts.open.asks($('#chNeed')); }
350
357
  });
@@ -352,7 +359,6 @@ $('#bdChipset').addEventListener('keydown', (e) => {
352
359
  if (e.key !== 'Escape') return;
353
360
  if (closeMenu('bdNeedMenu', 'chNeed')) { e.stopPropagation(); $('#chNeed').focus(); } else if (closeMenu('bdLgdMenu', 'bdLgdBtn')) { e.stopPropagation(); $('#bdLgdBtn').focus(); }
354
361
  });
355
- $('#bdJiraw').addEventListener('click', (e) => { const b = e.target.closest('#chJira'); if (b) refreshJira(b); });
356
362
  document.addEventListener('click', (e) => { if (!e.target.closest('#bdNeedw')) closeMenu('bdNeedMenu', 'chNeed'); if (!e.target.closest('.bd-lgdw')) closeMenu('bdLgdMenu', 'bdLgdBtn'); });
357
363
  /** Read Jira again: the Jira source's own refresh (POST /api/sources/refresh), the one the Sources list runs. It starts a read and changes no record. */
358
364
  async function refreshJira(btn) {
@@ -404,6 +410,7 @@ function visible() {
404
410
  if (F.chips.has('risk') && r.status !== 'at risk') return false;
405
411
  if (F.chips.has('blocked') && !t.blocked) return false;
406
412
  if (F.chips.has('idle') && t.idle == null) return false;
413
+ if (F.chips.has('you') && !t.you) return false;
407
414
  if (F.chips.has('sprint') && sp && (view === 'track' || view === 'time' || small()) && sprintFilterOn() && !inSprint(r, sp)) return false;
408
415
  if (F.q && !String(r.title || '').toLowerCase().includes(F.q.toLowerCase())) return false;
409
416
  if (F.owners.size && !F.owners.has(r.owner || 'No owner')) return false;
@@ -491,7 +498,7 @@ function trackRow(r, cls = '', po = false) {
491
498
  }).join('');
492
499
  const many = TK.mode === 'cats'; // All: each row names its workflow with its icon (WfATrack)
493
500
  return `<div class="bt-r bt-l${cls}${peek && peek.key === r.key && peek.kind !== 'acts' ? ' sel' : ''}${r.acts && r.acts.life === 'hold' ? ' held' : ''}" role="row" data-row="${esc(r.key)}"${po ? ` data-po-id="${esc(r.id)}"` : ''}>${po ? PO.gripHtml(r.title) : ''}`
494
- + `<button type="button" class="ini2 bt-nm" data-key="${esc(r.key)}" role="rowheader" aria-haspopup="dialog"><b>${r.inProgram ? PG.memberIcon(PGS, r.inProgram) : ''}${many ? WF.wfIcon(WF.wfOf(r), 18) : ''}${SM.nameHtml(r)}</b><span class="cs s-${s.tone}"><i class="cz-dot ${s.tone}"></i>${esc(s.text)}</span><span class="bt-pst">${t.ms ? '<i class="cz-ms" aria-hidden="true"></i>' : ''}${esc(t.label)} · ${DAYS(t)}</span></button>`
501
+ + `<button type="button" class="ini2 bt-nm" data-key="${esc(r.key)}" role="rowheader" aria-haspopup="dialog"><b>${r.inProgram ? PG.memberIcon(PGS, r.inProgram) : ''}${many ? WF.wfIcon(WF.wfOf(r), 18) : ''}${SM.nameHtml(r)}</b><span class="cs s-${s.tone}"${s.from ? ` title="${esc(s.from)}"` : ''}><i class="cz-dot ${s.tone}"></i>${esc(s.text)}</span><span class="bt-pst">${t.ms ? '<i class="cz-ms" aria-hidden="true"></i>' : ''}${esc(t.label)} · ${DAYS(t)}</span></button>`
495
502
  + `<div class="${cellsCls()}" role="presentation"${cellsStyle()}>${cells}</div>`
496
503
  + `<div class="bt-dl" role="cell">${nextHtml(r, { self: M.board.self, icon: !small() })}</div></div>`; // the Next cell (XocA): what finishes the step next
497
504
  }
@@ -510,7 +517,7 @@ function drawTrack(L) {
510
517
  const n = M.initiatives.open || M.initiatives.list.rows.length;
511
518
  // the header: the eight steps (their help opens from them), the picked workflow's stages, or with All the three categories (WfATrack)
512
519
  const hcell = (s) => (TK.mode === 'pf' ? `<div role="columnheader" class="${s.ms ? 'msh' : ''}" data-steps title="What finishes each step" aria-haspopup="dialog" tabindex="0">` : `<div role="columnheader" class="${s.ms ? 'msh' : ''}">`)
513
- + `<span class="bt-hl">${s.ms ? '<i class="cz-ms" aria-hidden="true"></i>' : ''}${esc(s.label)}</span><span>${s.count}</span></div>`;
520
+ + `<span class="bt-hl">${s.ms ? '<i class="cz-ms" aria-hidden="true"></i>' : ''}${esc(s.label)}</span>${s.count ? `<span>${s.count}</span>` : ''}</div>`; // zero is silence (UI grill U2): an empty step names no count
514
521
  const hcells = TK.mode === 'cats' ? WF.CATS.map(([k, label]) => hcell({ label, count: V.catCount(L, k) })) : S.map(hcell);
515
522
  const head = `<div class="bt-r bt-h" role="row"><div class="bt-nmh" role="columnheader">Initiative <span>${n}</span></div><div class="${cellsCls()}" role="presentation"${cellsStyle()}>${hcells.join('')}</div><div class="bt-oh" role="columnheader">Next</div></div>`;
516
523
  const tf = more > 0 && !foldOpen ? `<button type="button" class="dlink" id="fold" aria-expanded="false">${SV(I.chev)}${more} more in Monitor and Evaluate</button>`
@@ -556,7 +563,8 @@ function drawTime(L) {
556
563
  lane: (c) => DL.laneHtml(c, { span, progState }) });
557
564
  return T.html;
558
565
  }
559
- /** A phone's view button (batch 28 item 3, canvas BhA): the four views, the span where it applies (the timeline), then Shared with me. */
566
+ /** The View chip (batch 28 item 3, canvas BhA; on a desktop too since UI grill U2): the four views, the span and (a desktop) the Columns where they
567
+ * apply (the timeline), then Shared with me. */
560
568
  const VIEW_ITEMS = [['list', 'List'], ['stages', 'By stage'], ['track', 'Track'], ['time', 'Timeline']];
561
569
  function drawViewMenu() {
562
570
  const v = curView(), open = menuOpen('bdViewMenu'), name = (VIEW_ITEMS.find(([k]) => k === v) || VIEW_ITEMS[0])[1];
@@ -564,10 +572,13 @@ function drawViewMenu() {
564
572
  b.innerHTML = SV(I[v] || I.list) + `<svg class="bd-chv" viewBox="0 0 24 24" aria-hidden="true"><path d="${I.chev}"/></svg>`;
565
573
  b.setAttribute('aria-label', 'View: ' + (tab === 'shared' ? 'Shared with me' : name) + '. Change view');
566
574
  b.setAttribute('aria-expanded', String(open));
575
+ const cols = v === 'time' && !small() ? `<span class="bd-vcols" id="bdColsMenu" role="group" aria-labelledby="bdColsH">${CO.menuHtml()}</span>` : '';
567
576
  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>` : '';
568
- $('#bdViewMenu').innerHTML = VIEW_ITEMS.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('')
569
- + sp + '<span class="bd-vsep" aria-hidden="true"></span>'
570
- + `<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>`;
577
+ // 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
578
+ const RO = !!window.PMOS_READONLY;
579
+ $('#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('')
580
+ + sp + (RO ? '' : cols + '<span class="bd-vsep" aria-hidden="true"></span>'
581
+ + `<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>`);
571
582
  }
572
583
  $('#bdVieww').addEventListener('click', (e) => {
573
584
  const pv = e.target.closest('[data-pv]'); if (pv && M) { closeMenu('bdViewMenu', 'bdView'); setTab('ini'); setView(pv.dataset.pv); $('#bdView').focus(); return; }
@@ -575,6 +586,8 @@ $('#bdVieww').addEventListener('click', (e) => {
575
586
  if (e.target.closest('[data-vshared]')) { closeMenu('bdViewMenu', 'bdView'); setTab(tab === 'shared' ? 'ini' : 'shared'); drawViewMenu(); $('#bdView').focus(); return; }
576
587
  if (e.target.closest('#bdView')) { const m = $('#bdViewMenu'), o = m.hidden; if (o) { closeMenu('bdNeedMenu', 'chNeed'); drawViewMenu(); } m.hidden = !o; $('#bdView').setAttribute('aria-expanded', String(o)); if (o) (m.querySelector('[aria-pressed="true"]') || m.querySelector('button')).focus(); }
577
588
  });
589
+ // a Columns check box in the View menu (StsA8Board): Initiative always on; the choice is remembered (pm/bd-cols.js); the menu stays open
590
+ $('#bdVieww').addEventListener('change', (e) => { const c = e.target.closest('[data-tcol]'); if (!c) return; CO.setOn(c.dataset.tcol, c.checked); if (M) { drawInit(); const n = $(`#bdViewMenu [data-tcol="${c.dataset.tcol}"]`); if (n) n.focus(); } });
578
591
  $('#bdVieww').addEventListener('keydown', (e) => { if (e.key === 'Escape' && closeMenu('bdViewMenu', 'bdView')) { e.stopPropagation(); $('#bdView').focus(); } });
579
592
  document.addEventListener('click', (e) => { if (!e.target.closest('#bdVieww')) closeMenu('bdViewMenu', 'bdView'); });
580
593
  function drawInit() {
@@ -591,46 +604,16 @@ function drawInit() {
591
604
  if (fk) { const n = $$('#ibBody [data-key]').find((x) => x.dataset.key === fk); if (n) n.focus({ preventScroll: true }); }
592
605
  if (v === 'time') TL.mount(body);
593
606
  $('#bdShowing').innerHTML = showingHtml(L.length); $('#bdShowing').hidden = !$('#bdShowing').innerHTML;
594
- $$('#ibTabs [data-v]').forEach((b) => b.setAttribute('aria-pressed', String(b.dataset.v === v)));
595
- { const sb = $('#bdSort'), Ls = SO.labels(); if (sb) { sb.setAttribute('aria-label', Ls.aria); sb.title = Ls.title; sb.classList.toggle('on', Ls.on); } }
596
607
  drawViewMenu();
597
- drawSpanPicker('desk', v === 'time' && !phone);
598
- $('#bdColsw').hidden = v !== 'time' || phone; if ($('#bdColsw').hidden) closeCols();
599
608
  document.body.dataset.bdView = v;
600
609
  $('#stage').dataset.bdDesk = view; // what fit() measures: the desktop's view, so the narrow form never flips it back and forth
601
- drawGrouping();
602
610
  markOpen();
603
611
  }
604
612
  PHONE.addEventListener('change', () => { if (M) { drawChips(); drawInit(); } });
605
- /** The grouping (PgBoard, PgBoardProduct): programs first (the default) or By product. A desktop has its own Group button after the Jira read
606
- * (BhA), blue while By product is on; a phone has it in the tune sheet. Only when a program holds a row here (zero is silence). */
613
+ /** The grouping (PgBoard, PgBoardProduct): programs first (the default) or By product, in the tune sheet (#bdFilter) since UI grill U2.
614
+ * Only when a program holds a row here (zero is silence). */
607
615
  const groupingOn = () => !!(M && PGS.length && PG.groupsOf(PGS, M.initiatives.list.rows, M, false));
608
- function setGrouping(bp) { byProduct = !!bp; store.set(GROUPING_KEY, byProduct ? 'product' : 'program'); const m = $('#bdGrpMenu'); if (m) m.hidden = true; drawChips(); drawInit(); }
609
- function drawGrouping() {
610
- const w = $('#bdGrpw'), on = groupingOn();
611
- w.hidden = !on; if (!on) { w.innerHTML = ''; return; }
612
- const open = !!$('#bdGrpMenu') && !$('#bdGrpMenu').hidden, now = byProduct ? 'By product' : 'Programs first';
613
- const btn = `<button type="button" class="bd-ib bd-grp${byProduct ? ' on' : ''}" id="bdGroup" aria-haspopup="menu" aria-expanded="${open}" aria-label="Group: ${now}. Change grouping" title="Group · ${now}">${SV(I.group)}</button>`;
614
- w.innerHTML = btn + `<span class="bd-grpm" id="bdGrpMenu" role="menu"${open ? '' : ' hidden'}>${[['program', 'Programs first'], ['product', 'By product']].map(([k, n]) => `<button type="button" role="menuitemradio" aria-checked="${(k === 'product') === byProduct}" data-grping="${k}">${n}</button>`).join('')}</span>`;
615
- }
616
- $('#bdGrpw').addEventListener('click', (e) => {
617
- const g = e.target.closest('[data-grping]');
618
- if (g) { setGrouping(g.dataset.grping === 'product'); const b = $('#bdGroup') || $('#bdFilter'); b.focus(); return; }
619
- if (e.target.closest('#bdGroup')) { const m = $('#bdGrpMenu'), o = m.hidden; m.hidden = !o; $('#bdGroup').setAttribute('aria-expanded', String(o)); if (o) m.querySelector('[aria-checked="true"]').focus(); }
620
- });
621
- document.addEventListener('click', (e) => { if (!e.target.closest('#bdGrpw')) { const m = $('#bdGrpMenu'); if (m && !m.hidden) { m.hidden = true; $('#bdGroup').setAttribute('aria-expanded', 'false'); } } });
622
- $('#bdGrpw').addEventListener('keydown', (e) => { if (e.key === 'Escape') { const m = $('#bdGrpMenu'); if (m && !m.hidden) { e.stopPropagation(); m.hidden = true; $('#bdGroup').setAttribute('aria-expanded', 'false'); $('#bdGroup').focus(); } } });
623
- /* the Columns menu (StsA8Board): a check box per column, Initiative always on; the choice is remembered (pm/bd-cols.js) */
624
- function closeCols(back) { const m = $('#bdColsMenu'); if (!m || m.hidden) return false; m.hidden = true; $('#bdCols').setAttribute('aria-expanded', 'false'); if (back) $('#bdCols').focus(); return true; }
625
- $('#bdCols').addEventListener('click', () => {
626
- const m = $('#bdColsMenu'), o = m.hidden;
627
- if (!o) { closeCols(); return; }
628
- m.innerHTML = CO.menuHtml(); m.hidden = false; $('#bdCols').setAttribute('aria-expanded', 'true');
629
- const f = m.querySelector('input:not([disabled])'); if (f) f.focus();
630
- });
631
- $('#bdColsMenu').addEventListener('change', (e) => { const c = e.target.closest('[data-tcol]'); if (!c) return; CO.setOn(c.dataset.tcol, c.checked); if (M) drawInit(); });
632
- $('#bdColsw').addEventListener('keydown', (e) => { if (e.key === 'Escape' && closeCols(true)) e.stopPropagation(); });
633
- document.addEventListener('click', (e) => { if (!e.target.closest('#bdColsw')) closeCols(); });
616
+ function setGrouping(bp) { byProduct = !!bp; store.set(GROUPING_KEY, byProduct ? 'product' : 'program'); drawChips(); drawInit(); }
634
617
  /* a narrower or wider Board fits another number of columns: redraw the timeline then, and only then */
635
618
  new ResizeObserver(() => {
636
619
  if (!M || curView() !== 'time' || small()) return;
@@ -638,32 +621,12 @@ new ResizeObserver(() => {
638
621
  if ((c ? c.keys.length : 1) !== colsFit) drawInit();
639
622
  }).observe($('#ibBody'));
640
623
  function setView(v) { if (PHONE.matches) { pview = v; store.set(PVIEW_KEY, v); } else if (narrow()) nview = v; else { view = v; store.set(VIEW_KEY, view); } if (!narrow()) closePanel(); drawChips(); drawInit(); }
641
- $('#ibTabs').addEventListener('click', (e) => { const b = e.target.closest('[data-v]'); if (!b || !M) return; setTab('ini'); setView(b.dataset.v); });
642
624
  $('#bdShowing').addEventListener('click', (e) => {
643
625
  if (e.target.closest('#fClear')) { clearFilters(); drawChips(); drawInit(); return; }
644
626
  const u = e.target.closest('[data-unf]'); if (!u) return;
645
627
  if (u.dataset.unf === 'q') F.q = ''; else F[u.dataset.unf].clear(); drawChips(); drawInit();
646
628
  });
647
629
  function setSpan(s) { span = s; store.set(SPAN_KEY, span); drawChips(); drawInit(); }
648
- /** The span picker: one chip that opens the six spans (batch 24 item 7, canvas BbB). A desktop timeline draws it after the views (#bdSpans,
649
- * items data-sp); a phone has the spans in its view button (BhA, items data-spick). */
650
- const SPK = { desk: ['bdSpans', 'bdSpansBtn', 'bdSpansMenu', 'sp'] };
651
- function drawSpanPicker(which, on) {
652
- const [wid, bid, mid, attr] = SPK[which], w = $('#' + wid);
653
- w.hidden = !on; if (!on) { w.innerHTML = ''; return; }
654
- const open = menuOpen(mid), name = (SPANS.find(([k]) => k === span) || SPANS[1])[1];
655
- w.innerHTML = `<button type="button" class="bd-chip bd-spk" id="${bid}" aria-haspopup="menu" aria-expanded="${open}" aria-label="Span: ${esc(name)}. Change the span">${esc(name)}${SV(I.chev)}</button>`
656
- + `<span class="bd-grpm" id="${mid}" role="menu"${open ? '' : ' hidden'}>${SPANS.map(([k, n]) => `<button type="button" role="menuitemradio" aria-checked="${k === span}" data-${attr}="${k}">${esc(n)}</button>`).join('')}</span>`;
657
- }
658
- for (const which of Object.keys(SPK)) {
659
- const [wid, bid, mid, attr] = SPK[which], w = $('#' + wid);
660
- w.addEventListener('click', (e) => {
661
- const k = e.target.closest(`[data-${attr}]`); if (k && M) { closeMenu(mid, bid); setSpan(k.dataset[attr]); const b = $('#' + bid); if (b) b.focus(); return; }
662
- if (e.target.closest('#' + bid)) { const m = $('#' + mid), o = m.hidden; m.hidden = !o; $('#' + bid).setAttribute('aria-expanded', String(o)); if (o) m.querySelector('[aria-checked="true"]').focus(); }
663
- });
664
- w.addEventListener('keydown', (e) => { if (e.key === 'Escape' && closeMenu(mid, bid)) { e.stopPropagation(); $('#' + bid).focus(); } });
665
- document.addEventListener('click', (e) => { if (!e.target.closest('#' + wid)) closeMenu(mid, bid); });
666
- }
667
630
  $('#ibBody').addEventListener('click', (e) => {
668
631
  if (e.target.closest('#fold, [data-mefold]')) { foldOpen = !foldOpen; drawInit(); const f = $('#fold') || $('#ibBody [data-mefold]'); if (f) f.focus(); return; }
669
632
  const gf = e.target.closest('[data-fold]'); if (gf) { const k = gf.dataset.fold; PG.fold(k); drawInit(); const b = $$('#ibBody [data-fold]').find((x) => x.dataset.fold === k); if (b) b.focus(); return; }
@@ -934,24 +897,17 @@ $('#bdFilter').addEventListener('click', (e) => Acts.open.filter(e.currentTarget
934
897
  // New (PgBoard: "New program or initiative"): a menu of the two. The program panel's own "New initiative" presses this button from code,
935
898
  // and that press opens New initiative at once.
936
899
  $('#newIni').addEventListener('click', (e) => { if (e.isTrusted) Asks.openNewMenu(e.currentTarget); else Acts.open.new(e.currentTarget); });
937
- $('#bdBell').addEventListener('click', (e) => { if (M) Acts.open.bell(e.currentTarget); });
938
- // Publish a read-only copy (initiative board-publish, slice 2): one board at a time, so it is not drawn on the All products page
939
- $('#bdPublish').addEventListener('click', (e) => { const btn = e.currentTarget; if (M && !ALL && M.board.ws) import('./bd-publish.js').then((P) => P.open(btn, { ws: M.board.ws, board: M.board.id || M.board.ws, view })); });
940
900
 
941
901
  /* ── tabs: Initiatives and Documents (Documents has no frame yet: a plain list) ──────────────────────────────────────────────────────── */
942
902
  let SH_PASTE = ''; // ?shared=<link>: Open in my PMOS on a shared board (batch 27 item 3) lands on Shared with the link in the paste field
943
903
  function setTab(t) {
944
904
  tab = t;
945
- $('#tabShared').setAttribute('aria-pressed', String(t === 'shared'));
946
- $$('#ibTabs [data-v]').forEach((b) => b.setAttribute('aria-pressed', String(t === 'ini' && b.dataset.v === curView())));
947
905
  $('#cIni').hidden = t !== 'ini'; $('#cShared').hidden = t !== 'shared';
948
906
  // Shared (initiative board-publish, slice 4): reads each joined team's host now, on opening it and on Refresh, and never in between
949
907
  if (t === 'shared') { closePanel(); import('./bd-shared.js').then((S) => { SH_FULL = true; const paste = SH_PASTE; SH_PASTE = ''; S.show($('#cShared'), { onCount: setSharedCount, paste }); }); }
950
908
  }
951
- // Shared is one button in the row (BhA): pressed again, the initiatives come back
952
- $('#tabShared').onclick = () => setTab(tab === 'shared' ? 'ini' : 'shared');
953
- /** The number on the Shared button and in the phone's view menu: nothing when there is nothing (zero is silence). Your own open links at load, every open copy after a read. */
954
- function setSharedCount(n) { SH_N = n; $('#nShared').textContent = n ? String(n) : ''; if (menuOpen('bdViewMenu')) drawViewMenu(); }
909
+ /** The number on Shared with me in the View menu: nothing when there is nothing (zero is silence). Your own open links at load, every open copy after a read. */
910
+ function setSharedCount(n) { SH_N = n; if (menuOpen('bdViewMenu')) drawViewMenu(); }
955
911
  document.addEventListener('bd:links', (e) => { if (!SH_FULL && e.detail) setSharedCount(e.detail.n); });
956
912
 
957
913
  /** The history of the documents (GET /api/board-docs) for the document panel of pm/bd-acts.js. Batch 24 item 7 took the Documents tab off the Board,
@@ -973,15 +929,26 @@ async function loadDocMeta(list) {
973
929
  const docMeta = (p, ws) => { const d = DM[(ws || (M && M.board.ws) || '') + ':' + p]; return d && !d.none ? d : null; };
974
930
 
975
931
  /* ── the shell's bell sits before New initiative, as the design orders the tools; Escape closes a popover, then the panel ──────── */
976
- /* the ⋯ menu ("More: sources, archived, export" in AgBoard and BdHead): the Board adds Cancelled and archived (Metrics moved to Intelligence › Delivery trends, batch 22 item 4) */
932
+ /* the ⋯ menu (UI grill U2): Publish a read-only copy and Cancelled and archived, nothing else. The shell's Sources, Theme and Settings rows
933
+ * leave the Board's ⋯: Settings › Connectors holds the sources, Settings › General the theme, and Settings is one press away in the place menu.
934
+ * Settings stays in the menu as a hidden row: the shell still finds it there to say an update is ready. */
977
935
  {
978
936
  const st = $('#settingsBtn'), mb = $('#moreBtn');
979
- if (mb) { mb.setAttribute('aria-label', 'More: sources, archived, export'); mb.title = 'More: sources, archived, export'; }
980
- if (st) st.insertAdjacentHTML('beforebegin', '<button role="menuitem" id="bdGone" aria-haspopup="dialog" data-open="gone">Cancelled and archived</button>');
937
+ if (mb) { mb.setAttribute('aria-label', 'More: publish, cancelled and archived'); mb.title = 'More: publish, cancelled and archived'; }
938
+ for (const x of $$('#moreMenu #srcItem, #moreMenu #tbTheme')) (x.closest('.tbrow') || x).remove();
939
+ if (st) {
940
+ st.hidden = true;
941
+ st.insertAdjacentHTML('beforebegin', '<button role="menuitem" id="bdPublish" aria-haspopup="dialog" aria-expanded="false" aria-label="Publish a read-only copy of the board" hidden>Publish a read-only copy<span class="bpn" hidden></span></button>'
942
+ + '<button role="menuitem" id="bdGone" aria-haspopup="dialog" data-open="gone">Cancelled and archived</button>');
943
+ }
981
944
  $$('#moreMenu [data-open]').forEach((b) => { b.onclick = () => { if (M) Acts.open[b.dataset.open]($('#moreBtn')); }; });
945
+ // Publish a read-only copy (initiative board-publish, slice 2): one board at a time, so it is not drawn on the All products page; its
946
+ // popover opens under ⋯, and its row carries the count of open links
947
+ const pb = $('#bdPublish');
948
+ if (pb) pb.onclick = () => { if (M && !ALL && M.board.ws) import('./bd-publish.js').then((P) => P.open($('#moreBtn'), { ws: M.board.ws, board: M.board.id || M.board.ws, view })); };
982
949
  }
983
950
  window.addEventListener('keydown', (e) => {
984
- if (e.key !== 'Escape' || document.querySelector('.pv-ov:not([hidden]), #moreMenu:not([hidden]), #crMenu:not([hidden]), #czMenu:not([hidden]), #bdPop:not([hidden]), #bdGrpMenu:not([hidden]), #bdColsMenu:not([hidden])')) return;
951
+ if (e.key !== 'Escape' || document.querySelector('.pv-ov:not([hidden]), #moreMenu:not([hidden]), #crMenu:not([hidden]), #czMenu:not([hidden]), #bdPop:not([hidden])')) return;
985
952
  if ($$('.bd-pop').some((p) => !p.hidden)) closePops(true); // the shell closes itself on Escape (cozy-viewer.js)
986
953
  }, true);
987
954
 
@@ -1223,7 +1190,7 @@ function openFindings(r, from) {
1223
1190
  setTimeout(go, 0);
1224
1191
  }
1225
1192
  FCC.init({ rowOf: (k) => rowOf(k), openFindings });
1226
- const openIniAny = (r) => { if (r && curView() === 'time') TL.reveal(r.key); openIni(r, $('#bdBell'), 'track'); };
1193
+ const openIniAny = (r) => { if (r && curView() === 'time') TL.reveal(r.key); openIni(r, $('#chNeed') || $('#bdFind'), 'track'); };
1227
1194
  V.init({ M: () => M, wf: wfState, statusOf, usual: usualOf, trail: TI, docMeta, sel: () => (peek && peek.kind !== 'acts' ? peek.key : null), docSel: () => Acts.docSel(),
1228
1195
  groups: (L) => groups(L), folded: PG.folded, laneHead: (g) => PG.laneHtml(g, g.kind === 'program' ? progState(g.program) : null), subTile: (n) => PG.tileHtml(n, 'bd-ti s'),
1229
1196
  memberIcon: (id) => PG.memberIcon(PGS, id), product: () => (M.board.product || M.board.name || ''), programOf: (r) => programOf(PGS, r.ws || M.board.ws || '', r.id), tileHtml: PG.tileHtml, progTile: PG.progTile });