create-pmos 0.773.0 → 0.775.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 (115) hide show
  1. package/package.json +30 -47
  2. package/payload/AGENTS.md +3 -3
  3. package/payload/KIT-VERSION +1 -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/briefing-premium-board-test.js +2 -2
  8. package/workspace/briefing-premium-insights-test.js +3 -3
  9. package/workspace/changelog.json +41 -14
  10. package/workspace/guide/agent-capabilities.md +7 -7
  11. package/workspace/guide/backlog.md +8 -8
  12. package/workspace/guide/breakdown.md +1 -1
  13. package/workspace/guide/claude-proposes.md +13 -13
  14. package/workspace/guide/cli.md +19 -19
  15. package/workspace/guide/home.md +46 -46
  16. package/workspace/guide/index.md +13 -13
  17. package/workspace/guide/initiatives-and-next-steps.md +11 -11
  18. package/workspace/guide/intelligence-okr-goals.md +5 -5
  19. package/workspace/guide/jira.md +3 -3
  20. package/workspace/guide/layout.md +28 -28
  21. package/workspace/guide/notes.md +10 -10
  22. package/workspace/guide/positioning.md +1 -1
  23. package/workspace/guide/programs.md +46 -46
  24. package/workspace/guide/reports.md +6 -6
  25. package/workspace/guide/settings-and-switches.md +11 -11
  26. package/workspace/guide/statuses.md +7 -7
  27. package/workspace/intelligence-gaps-ui-test.js +2 -2
  28. package/workspace/lib/board-cli.js +2 -2
  29. package/workspace/lib/board-fold.js +1 -1
  30. package/workspace/lib/board-premium.js +1 -1
  31. package/workspace/lib/connector-directory.js +1 -1
  32. package/workspace/lib/cos-chat.js +1 -1
  33. package/workspace/lib/drift-cli.js +2 -2
  34. package/workspace/lib/drift.js +1 -1
  35. package/workspace/lib/event-relay.js +1 -1
  36. package/workspace/lib/goal-chat.js +1 -1
  37. package/workspace/lib/impact-cli.js +1 -1
  38. package/workspace/lib/initiative-chat.js +3 -3
  39. package/workspace/lib/initiative-cli.js +1 -1
  40. package/workspace/lib/initiative-premium.js +2 -2
  41. package/workspace/lib/insights-premium.js +1 -1
  42. package/workspace/lib/job-graph.js +6 -6
  43. package/workspace/lib/line.js +1 -1
  44. package/workspace/lib/loose-proposals.js +1 -1
  45. package/workspace/lib/mention-cli.js +1 -1
  46. package/workspace/lib/mobile-nav.js +1 -1
  47. package/workspace/lib/moments.js +4 -4
  48. package/workspace/lib/my-work-premium.js +1 -1
  49. package/workspace/lib/next-prompt.js +2 -2
  50. package/workspace/lib/pmos-verbs.js +2 -2
  51. package/workspace/lib/positioning-cli.js +1 -1
  52. package/workspace/lib/principles-cli.js +2 -2
  53. package/workspace/lib/program-chat.js +3 -3
  54. package/workspace/lib/program-cli.js +4 -4
  55. package/workspace/lib/propose-cli.js +1 -1
  56. package/workspace/lib/rehearse-read.js +1 -1
  57. package/workspace/lib/rehearse.js +1 -1
  58. package/workspace/lib/report-setups.js +1 -1
  59. package/workspace/lib/routes-board.js +3 -3
  60. package/workspace/lib/routes-c3-reports.js +1 -1
  61. package/workspace/lib/routes-loose.js +2 -2
  62. package/workspace/lib/routes-setup.js +1 -1
  63. package/workspace/lib/signal-cli.js +1 -1
  64. package/workspace/lib/task-cli.js +4 -4
  65. package/workspace/lib/today-cli.js +1 -1
  66. package/workspace/lib/workflow-cli.js +4 -4
  67. package/workspace/metric-drafts-ui-test.js +1 -1
  68. package/workspace/package-lock.json +2 -2
  69. package/workspace/package.json +1 -1
  70. package/workspace/premium-board-actions-test.js +1 -1
  71. package/workspace/program-order-test.js +1 -1
  72. package/workspace/public/pm/bd-acts.js +7 -7
  73. package/workspace/public/pm/bd-asks.js +1 -1
  74. package/workspace/public/pm/bd-backlog.css +28 -0
  75. package/workspace/public/pm/bd-backlog.js +1 -1
  76. package/workspace/public/pm/bd-pop.js +1 -1
  77. package/workspace/public/pm/bd-prog-panel.js +3 -3
  78. package/workspace/public/pm/bd-publish.js +2 -2
  79. package/workspace/public/pm/bd-shared.js +3 -3
  80. package/workspace/public/pm/bd-stages.js +1 -1
  81. package/workspace/public/pm/cozy-evmodel.js +2 -2
  82. package/workspace/public/pm/cozy-relay.js +1 -1
  83. package/workspace/public/pm/cozy-reveal.js +1 -1
  84. package/workspace/public/pm/cozy-settings.js +3 -3
  85. package/workspace/public/pm/cozy-viewer.js +1 -1
  86. package/workspace/public/pm/home-app.js +4 -4
  87. package/workspace/public/pm/home-data.js +1 -1
  88. package/workspace/public/pm/home-need.js +1 -1
  89. package/workspace/public/pm/home-phone-card.js +1 -1
  90. package/workspace/public/pm/home-today.js +2 -2
  91. package/workspace/public/pm/ini-more.js +2 -2
  92. package/workspace/public/pm/ini-tasks.js +1 -1
  93. package/workspace/public/pm/line-view.js +68 -27
  94. package/workspace/public/pm/loose-props.js +2 -2
  95. package/workspace/public/pm/metric-drafts.js +3 -3
  96. package/workspace/public/pm/page-chat.js +1 -1
  97. package/workspace/public/pm/premium-board.js +4 -4
  98. package/workspace/public/pm/premium-insights.js +20 -20
  99. package/workspace/public/pm/premium-meeting.js +1 -1
  100. package/workspace/public/pm/premium-report-read.js +2 -2
  101. package/workspace/public/pm/premium-vw-meet.js +1 -1
  102. package/workspace/public/pm/premium-vw-mtg.js +2 -2
  103. package/workspace/public/pm/prog-order.js +1 -1
  104. package/workspace/public/pm/sort-order.js +1 -1
  105. package/workspace/public/pm/task-card.js +2 -2
  106. package/workspace/public/pm/wf-stage.js +2 -2
  107. package/workspace/public/premium-board.html +2 -2
  108. package/workspace/public/today.html +1 -1
  109. package/workspace/skills/impact-detect.skill +1 -1
  110. package/workspace/skills/loose-propose.skill +4 -4
  111. package/workspace/skills/morning-brief.skill +2 -2
  112. package/workspace/skills/principles-draft.skill +2 -2
  113. package/workspace/skills/sources-read.skill +1 -1
  114. package/workspace/sort-order-test.js +1 -1
  115. package/workspace/task-milestones-test.js +1 -1
@@ -7,64 +7,105 @@
7
7
  * dashHtml(D) → the dashed line, a link to /premium-board.html?work=line
8
8
  *
9
9
  * rows: lib/line.js lineOf rows (GET /api/line), each with its product (ws). you: Set of '<ws>|<initiative>' that have a Your move row (a question
10
- * to the PM, a check due). A row in Your move is marked "your move" here and not repeated on Today. Waiting for capacity is never stuck: it
11
- * reads moving. "Can't tell" never moves an item and never raises a row. The UI says PMOS. Text from records goes through esc(). */
10
+ * to the PM, a check due). A row in Your move is marked "waits on you" here and not repeated on Today. Waiting (capacity, on hold, another initiative) is never
11
+ * stuck and reads "waiting"; a moving row past its stage's expected days reads "over time". "Can't tell" never moves an item and never raises a row. The UI says PMOS. Text from records goes through esc(). */
12
12
  export const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
13
13
  const plural = (n, a, b) => n + ' ' + (n === 1 ? a : b);
14
14
  const cap1 = (s) => String(s || '').replace(/^[a-z]/, (c) => c.toUpperCase());
15
15
 
16
- export const TABS = [['', 'All', 'all'], ['stuck', 'Stuck', 'stuck'], ['cant', 'Can’t tell', 'cant'], ['you', 'Your move', 'you']];
17
- const STATE_WORD = { you: 'your move', stuck: 'stuck', cant: 'can’t tell', moving: 'moving' };
16
+ export const TABS = [['', 'All', 'all'], ['stuck', 'Stuck', 'stuck'], ['late', 'Over time', 'late'], ['you', 'Waits on you', 'you'], ['waiting', 'Waiting', 'waiting'], ['cant', 'Can’t tell', 'cant']];
17
+ // state → [word, badge class]. Only stuck is the alert; over time is a warning in the days cell, its badge stays quiet.
18
+ const STATE = { you: ['waits on you', 'blue'], stuck: ['stuck', 'alert'], late: ['over time', 'ln-late'], waiting: ['waiting', ''], cant: ['can’t tell', ''], moving: ['moving', 'ln-ok'] };
19
+ const numLimit = (r) => (typeof r.limit === 'number' && r.limit > 0 ? r.limit : null);
18
20
 
19
- /** One row's state: your move first, then the line's flag. */
21
+ /** One row's real state: waits on you first, then stuck, can't tell, waiting (capacity, on hold, another initiative), over time (moving,
22
+ * but past its station's expected days), moving. */
20
23
  export function stateOf(r, you) {
21
24
  if (you && you.has((r.ws || '') + '|' + r.id)) return 'you';
22
25
  if (r.flag === 'stuck') return 'stuck';
23
26
  if (r.flag === 'cant-tell') return 'cant';
27
+ if (r.flag === 'waiting') return 'waiting';
28
+ const lim = numLimit(r);
29
+ if (lim != null && r.daysThere != null && r.daysThere > lim) return 'late';
24
30
  return 'moving';
25
31
  }
26
- /** Days here: "day 6" with no number limit, "4 of 15" against one; '' when no record says. */
27
- export function daysWord(r) {
28
- if (r.daysThere == null) return r.quietDays != null ? 'quiet ' + plural(r.quietDays, 'day', 'days') : '';
29
- return typeof r.limit === 'number' && r.limit > 0 ? r.daysThere + ' of ' + r.limit : 'day ' + r.daysThere;
32
+ /** Days in the stage against the stage's expected days. → { text, sub, over } ('' text when no record says). */
33
+ export function daysOf(r) {
34
+ if (r.daysThere == null) return { text: r.quietDays != null ? 'quiet ' + plural(r.quietDays, 'day', 'days') : '', sub: '', over: 0 };
35
+ const text = plural(r.daysThere, 'day', 'days');
36
+ const lim = numLimit(r);
37
+ if (lim != null) {
38
+ const over = Math.max(0, r.daysThere - lim);
39
+ return { text, sub: over ? `expected ${lim} · ${over} over` : `expected ${lim}`, over };
40
+ }
41
+ return { text, sub: typeof r.limit === 'string' && r.limit ? 'moves with its tickets' : '', over: 0 };
42
+ }
43
+ /** The short form, for a line of text: "28 days, expected 15 · 13 over". */
44
+ export function daysWord(r) { const d = daysOf(r); return d.text + (d.text && d.sub ? ', ' + d.sub : ''); }
45
+ /** What finishes it: the missing exit items, or the next move when it is not "finish: <the first missing item>" (said once). */
46
+ export function toFinish(r) {
47
+ const miss = (r.missing || []).filter(Boolean);
48
+ const next = String(r.next || '');
49
+ if (next && !/^finish:/i.test(next)) return cap1(next);
50
+ return miss.length ? miss.join(' · ') : cap1(next.replace(/^finish:\s*/i, ''));
30
51
  }
31
52
  export function lineModel(rows, o = {}) {
32
53
  const you = o.you instanceof Set ? o.you : new Set(o.you || []);
33
54
  const live = (rows || []).filter((r) => r && r.id && r.live);
34
55
  const all = live.map((r) => ({ ...r, state: stateOf(r, you) }));
35
- const counts = { all: all.length, stuck: all.filter((r) => r.state === 'stuck').length, cant: all.filter((r) => r.state === 'cant').length, you: all.filter((r) => r.state === 'you').length };
56
+ const counts = { all: all.length };
57
+ for (const k of ['stuck', 'late', 'you', 'waiting', 'cant']) counts[k] = all.filter((r) => r.state === k).length;
36
58
  const tab = TABS.some(([k]) => k === o.tab) && (o.tab === '' || counts[o.tab]) ? o.tab : '';
37
59
  const shown = tab ? all.filter((r) => r.state === tab) : all;
38
- const by = new Map();
60
+ // grouped by workflow, then by its stations in order: Discover (one workflow) and Discovery (another) never share a group
61
+ const wfs = new Map();
39
62
  for (const r of shown) {
63
+ const wn = r.workflow || 'No workflow';
64
+ if (!wfs.has(wn)) wfs.set(wn, new Map());
40
65
  const st = r.station || { key: '', name: 'No station', n: 999 };
41
- const k = (st.n == null ? 999 : st.n) + '|' + String(st.name || '').toLowerCase();
42
- if (!by.has(k)) by.set(k, { key: k, name: st.name || 'No station', n: st.n == null ? 999 : st.n, rows: [] });
66
+ const n = st.n == null ? 999 : st.n;
67
+ const k = n + '|' + String(st.name || '').toLowerCase();
68
+ const by = wfs.get(wn);
69
+ if (!by.has(k)) by.set(k, { key: wn + '|' + k, name: st.name || 'No station', n, rows: [] });
43
70
  by.get(k).rows.push(r);
44
71
  }
45
- const groups = [...by.values()].sort((a, b) => a.n - b.n || a.name.localeCompare(b.name));
46
- for (const g of groups) g.rows.sort((a, b) => String(a.title).localeCompare(String(b.title)));
47
- return { groups, counts, tab, live: all.length };
72
+ const workflows = [...wfs.entries()].map(([name, by]) => {
73
+ const groups = [...by.values()].sort((a, b) => a.n - b.n || a.name.localeCompare(b.name));
74
+ for (const g of groups) g.rows.sort((a, b) => String(a.title).localeCompare(String(b.title)));
75
+ return { name, n: groups.reduce((s, g) => s + g.rows.length, 0), groups };
76
+ }).sort((a, b) => (a.name === 'No workflow') - (b.name === 'No workflow') || b.n - a.n || a.name.localeCompare(b.name));
77
+ const groups = workflows.flatMap((w) => w.groups);
78
+ return { workflows, groups, counts, tab, live: all.length };
48
79
  }
49
- /** The Line block. M: lineModel(). o: { name: the product's name, say: a line above the table (Where it stands) } */
80
+ /** The Line block: one Komorebi table (pm-table). M: lineModel(). o: { name: the product's name, say: a line above the table } */
50
81
  export function lineHtml(M, o = {}) {
51
82
  if (!M || !M.live) return `<section class="pm-block ln" aria-label="The line"><p class="pm-meta">No initiative is on a workflow yet, so the line is empty.</p></section>`;
52
83
  const tabs = TABS.filter(([k, , c]) => k === '' || M.counts[c]).map(([k, n, c]) => `<button type="button" class="pm-tab${M.tab === k ? ' on' : ''}" role="tab" aria-selected="${M.tab === k}" data-line-tab="${k}">${esc(n)} <span class="pm-meta">${M.counts[c]}</span></button>`).join('');
53
- const head = `<div class="ln-row ln-head" role="row"><span role="columnheader">Initiative</span><span role="columnheader">Days here</span><span role="columnheader">Still missing to finish</span><span role="columnheader">Next move</span><span role="columnheader">State</span></div>`;
54
- const body = M.groups.map((g) => `<div class="ln-row pm-group" role="row"><span role="cell">${esc(g.name)} <span class="pm-meta">${g.rows.length}</span></span></div>`
55
- + g.rows.map((r) => `<div class="ln-row pm-li ln-${r.state}" role="row"><span role="cell"><button type="button" class="t" data-line-ini="${esc(r.id)}" data-line-ws="${esc(r.ws || '')}">${esc(r.title || r.id)}</button></span>`
56
- + `<span role="cell" class="pm-meta">${esc(daysWord(r))}</span><span role="cell">${esc((r.missing || []).join('; '))}</span><span role="cell">${esc(cap1(r.next || ''))}</span>`
57
- + `<span role="cell"><span class="pm-badge${r.state === 'stuck' ? ' alert' : ''}" title="${esc(r.why || '')}">${esc(STATE_WORD[r.state])}</span></span></div>`).join('')).join('');
58
- return `<section class="pm-block list ln" aria-label="The line">${o.say ? `<p class="ln-say">${esc(o.say)}</p>` : ''}<div class="pm-tabs" role="tablist" aria-label="Show">${tabs}</div>`
59
- + `<div class="ln-t" role="table" aria-label="${esc((o.name ? o.name + ': ' : '') + 'initiatives by station')}">${head}${body}</div></section>`;
84
+ const head = `<thead><tr><th scope="col" class="ln-c-ini">Initiative</th><th scope="col" class="ln-c-days">Days in stage</th><th scope="col">To finish the stage</th><th scope="col" class="ln-c-st">State</th></tr></thead>`;
85
+ const many = (M.workflows || []).length > 1;
86
+ const row = (r) => {
87
+ const d = daysOf(r), [word, cls] = STATE[r.state];
88
+ return `<tr class="ln-r ln-${r.state}"><th scope="row" class="ln-c-ini"><button type="button" class="ln-name" data-line-ini="${esc(r.id)}" data-line-ws="${esc(r.ws || '')}">${esc(r.title || r.id)}</button></th>`
89
+ + `<td class="ln-c-days${d.over && (r.state === 'late' || r.state === 'stuck') ? ' ln-over' : ''}">${d.text ? `<span class="ln-d">${esc(d.text)}</span>` : ''}${d.sub ? `<span class="ln-sub">${esc(d.sub)}</span>` : ''}</td>`
90
+ + `<td class="ln-c-fin">${esc(toFinish(r))}</td>`
91
+ + `<td class="ln-c-st"><span class="pm-badge${cls ? ' ' + cls : ''}" title="${esc(r.why || '')}">${esc(word)}</span></td></tr>`;
92
+ };
93
+ const body = (M.workflows || [{ name: '', groups: M.groups }]).map((w) => `<tbody>`
94
+ + (many ? `<tr class="ln-wf"><th scope="colgroup" colspan="4">${esc(w.name)} <span class="pm-meta">${w.n}</span></th></tr>` : '')
95
+ + w.groups.map((g) => `<tr class="ln-g"><th scope="colgroup" colspan="4">${esc(g.name)} <span class="ln-n">${g.rows.length}</span></th></tr>` + g.rows.map(row).join('')).join('')
96
+ + `</tbody>`).join('');
97
+ return `<section class="pm-block list ln" aria-label="The line">${o.say ? `<p class="ln-say">${esc(o.say)}</p>` : ''}<div class="pm-tabs ln-tabs" role="tablist" aria-label="Show">${tabs}</div>`
98
+ + `<div class="ln-wrap"><table class="pm-table ln-t" aria-label="${esc((o.name ? o.name + ': ' : '') + 'initiatives by workflow stage')}">${head}${body}</table></div></section>`;
60
99
  }
61
100
  /** Where it stands, one sentence over the table. */
62
101
  export function sayOf(M) {
63
102
  if (!M || !M.live) return '';
64
- const moving = M.live - M.counts.you - M.counts.stuck - M.counts.cant;
103
+ const c = M.counts, moving = M.live - c.you - c.stuck - c.cant - (c.late || 0) - (c.waiting || 0);
65
104
  return [plural(M.live, 'initiative', 'initiatives') + ' on the line.', moving ? moving + (moving === 1 ? ' moves by itself.' : ' move by themselves.') : '',
66
- M.counts.you ? M.counts.you + ' wait' + (M.counts.you === 1 ? 's' : '') + ' on you, already in Your move.' : '',
67
- M.counts.stuck ? M.counts.stuck + ' stuck.' : '', M.counts.cant ? M.counts.cant + ' can’t be placed, so PMOS leaves ' + (M.counts.cant === 1 ? 'it' : 'them') + ' alone.' : ''].filter(Boolean).join(' ');
105
+ c.late ? c.late + ' still moving but over ' + (c.late === 1 ? 'its' : 'their') + ' stage’s expected days.' : '',
106
+ c.you ? c.you + ' wait' + (c.you === 1 ? 's' : '') + ' on you, already in Your move.' : '',
107
+ c.stuck ? c.stuck + ' stuck.' : '', c.waiting ? c.waiting + ' waiting on capacity or another initiative.' : '',
108
+ c.cant ? c.cant + ' can’t be placed, so PMOS leaves ' + (c.cant === 1 ? 'it' : 'them') + ' alone.' : ''].filter(Boolean).join(' ');
68
109
  }
69
110
  /** Today's dashed line. lines: [{ ws, rows, you: [initiative id] }]. null when nothing is on the line (zero is silence). */
70
111
  export function dashModel(lines) {
@@ -178,7 +178,7 @@ async function keep(ids, all) {
178
178
  say(res.said + (res.warn ? '. ' + res.warn : ''), async () => {
179
179
  const u = await pmPost('/api/loose-props/undo', { batch, today }).catch(() => null);
180
180
  if (!u || u.ok === false) return { ok: false, error: (u && u.error) || 'The undo did not land.' };
181
- if (u.kept) say(plural(u.kept, 'change was', 'changes were') + ' kept: a started initiative stays on the Board.');
181
+ if (u.kept) say(plural(u.kept, 'change was', 'changes were') + ' kept: a started initiative stays on Work.');
182
182
  await after(u);
183
183
  return { ok: true };
184
184
  });
@@ -237,7 +237,7 @@ async function onPress(e) {
237
237
  b.disabled = true;
238
238
  const r = await pmPost('/api/loose-props/undo', { batch: d.lpUndo, today: S.H && S.H.today ? S.H.today() : undefined }).catch(() => null);
239
239
  if (!r || r.ok === false) { b.disabled = false; say((r && r.error) || 'The undo did not land.'); return; }
240
- say(r.kept ? 'Undone. ' + plural(r.kept, 'change was', 'changes were') + ' kept: a started initiative stays on the Board.' : 'Undone.');
240
+ say(r.kept ? 'Undone. ' + plural(r.kept, 'change was', 'changes were') + ' kept: a started initiative stays on Work.' : 'Undone.');
241
241
  await after(r);
242
242
  }
243
243
  }
@@ -98,8 +98,8 @@ function editRows(rows, label) {
98
98
  + `<span class="md-ef">${r.type === 'Done or not' ? `<b class="md-to">${esc(r.targetTxt || 'Done')}</b>` : field(r, 'target', r.target == null ? '' : String(r.target), 'Target of ' + r.name, { num: true, cls: 'n', max: 20, ph: 'Target' })}`
99
99
  + field(r, 'source', r.source || '', 'Where ' + r.name + ' is measured', { ph: 'Measured by', max: 40 }) + '</span></div>').join('')}</div>`;
100
100
  }
101
- const editFoot = (scope, id, ask, busy) => `<div class="md-ft"><p class="md-why">Name, target and where it is measured. Anything else, ask me in Home.</p>`
102
- + ib({ href: ask, icon: I.ask, label: 'Ask PMOS in Home to change something else', title: 'Ask in Home' })
101
+ const editFoot = (scope, id, ask, busy) => `<div class="md-ft"><p class="md-why">Name, target and where it is measured. Anything else, ask me on Today.</p>`
102
+ + ib({ href: ask, icon: I.ask, label: 'Ask PMOS on Today to change something else', title: 'Ask on Today' })
103
103
  + ib({ act: 'cancel', scope, id, icon: I.x, label: 'Cancel the edit', title: 'Cancel', busy })
104
104
  + ib({ act: 'save', scope, id, icon: I.check, label: 'Save the edit', title: 'Save', solid: true, busy }) + '</div>';
105
105
 
@@ -129,7 +129,7 @@ export function progHtml(p, ws) {
129
129
  return `<section class="md-card md-top${fade('program', p.id)}" aria-label="Proposed goal">${head('Proposed goal', P.d.src)}<p class="md-gl">${esc(line)}</p>`
130
130
  + (chips ? `<div class="md-cps">${chips}</div>` : '') + built
131
131
  + `<div class="md-ft"><p class="md-why">${esc(whyOf(P.d, goal))}</p>`
132
- + ib({ href: q('About the proposed goal for '), icon: I.ask, label: 'Discuss the proposed goal in Home', title: 'Discuss in Home' })
132
+ + ib({ href: q('About the proposed goal for '), icon: I.ask, label: 'Discuss the proposed goal on Today', title: 'Discuss on Today' })
133
133
  + ib({ act: 'edit', scope: 'program', id: p.id, icon: I.pen, label: 'Edit the proposed goal', title: 'Edit', busy: P.busy })
134
134
  + ib({ act: 'keep', scope: 'program', id: p.id, icon: I.check, label: 'Keep this goal', solid: true, busy: P.busy }) + '</div></section>';
135
135
  }
@@ -93,7 +93,7 @@ function host() {
93
93
  if (c && ((c.cos && c.here) || c.popAbout)) { Q.t = cosTarget('', c.ws); Q.chat.open(Q.t); }
94
94
  },
95
95
  onTo: () => {}, onLink: () => {},
96
- workItem: () => toast('Make it a task from Home, in the initiative’s own chat.'),
96
+ workItem: () => toast('Make it a task from Today, in the initiative’s own chat.'),
97
97
  viewerClosed: () => false, reopenViewer: () => {}, desk: () => true, head: () => '',
98
98
  // a finished turn: the page reads its records again, so what Claude changed shows with no refresh (as Home, batch 25 item 3)
99
99
  turnEnded: () => document.dispatchEvent(new CustomEvent('cz:chat-turn')),
@@ -200,7 +200,7 @@ function actsPanel(html, from, cls, o = {}) {
200
200
  const more = tools.map((a) => ({ label: a.getAttribute('aria-label') || a.textContent.trim(), on: () => location.assign(a.getAttribute('href')) }));
201
201
  const back = !!(from && from.closest && from.closest('.cz-vw')) && VW.isOpen();
202
202
  const me = { id, onClose: o.onClose || null };
203
- VW.open({ kind: eye || 'Board', title: title || eye, icon: 'flag', id, back, more: more.length ? more : undefined,
203
+ VW.open({ kind: eye || 'Work', title: title || eye, icon: 'flag', id, back, more: more.length ? more : undefined,
204
204
  render: (body) => {
205
205
  acts = me; peek = { kind: 'acts', key: null };
206
206
  body.classList.add('bd-actsvw'); if (cls) body.classList.add(cls);
@@ -243,7 +243,7 @@ const dotsPick = (P) => (P ? { ...P, products: P.products.map((p) => ({ ...p, ne
243
243
  function drawPick() {
244
244
  const P = shownPick(), host = $('#crumbHost'); if (!host) return;
245
245
  const desk = !matchMedia('(max-width: 760px)').matches;
246
- host.innerHTML = (P ? PK.chipHtml(P, { id: 'bdPick', label: 'Products', names: desk }) + (desk ? SW.switcherHtml(dotsPick(P)) : '') : `<span class="crpg">${esc(M.board.name || 'Board')}</span>`) + '<span id="pvwHost" class="pvw-host"></span>';
246
+ host.innerHTML = (P ? PK.chipHtml(P, { id: 'bdPick', label: 'Products', names: desk }) + (desk ? SW.switcherHtml(dotsPick(P)) : '') : `<span class="crpg">${esc(M.board.name || 'Work')}</span>`) + '<span id="pvwHost" class="pvw-host"></span>';
247
247
  drawPins();
248
248
  host.onclick = (e) => { if (pinPress(e)) return; const b = e.target.closest('[data-psw]'); if (!b) return; e.stopPropagation(); SW.press(dotsPick(shownPick()), b.dataset.psw).then((r) => { if (!r.ok) say(r.error); }); };
249
249
  if (P && desk && !DOTS) { DOTS = {}; SW.readDots().then((r) => { if (r) { DOTS = Object.fromEntries(r.products.map((p) => [p.ws, p.needs])); drawPick(); } }).catch(() => null); }
@@ -481,7 +481,7 @@ async function refreshJira(btn) {
481
481
  const bad = R.filter((r) => !r || !r.ok), ok = R.length - bad.length;
482
482
  if (!ok) { jiraReading = false; drawChips(); }
483
483
  else if ((btn = $('#chJira'))) btn.disabled = false;
484
- say(!bad.length ? 'Reading Jira again. The Board shows it when the read lands.' : ok ? 'Reading Jira again for ' + ok + ' of ' + R.length + ' products. The others did not start: ' + ((bad[0] && bad[0].error) || 'the server did not answer') + '.' : 'Jira was not read again: ' + ((bad[0] && bad[0].error) || 'the server did not answer') + '.');
484
+ say(!bad.length ? 'Reading Jira again. Work shows it when the read lands.' : ok ? 'Reading Jira again for ' + ok + ' of ' + R.length + ' products. The others did not start: ' + ((bad[0] && bad[0].error) || 'the server did not answer') + '.' : 'Jira was not read again: ' + ((bad[0] && bad[0].error) || 'the server did not answer') + '.');
485
485
  if (ok) setTimeout(load, 4000);
486
486
  }
487
487
 
@@ -1420,7 +1420,7 @@ function taskOnce() {
1420
1420
  taskDone = true;
1421
1421
  for (const r of rows) { const k = (r.tasks || []).find((x) => x.uid === id); if (k) { openTask(r, k); return; } }
1422
1422
  for (const r of rows) { const k = ((r.track && r.track.tickets) || []).find((x) => x.key === id); if (k) { BI.openTicket(r, k, null); return; } }
1423
- say('That task is not on this Board. It may have moved to another product or been deleted.');
1423
+ say('That task is not on Work. It may have moved to another product or been deleted.');
1424
1424
  }
1425
1425
  /* The address follows the initiative or program open in the Viewer (?focus=, ?program=), so Back from another page comes back to it
1426
1426
  * (batch 14 item 7). The Viewer writes it once the history has settled on the entry the Board shows. */
@@ -658,7 +658,7 @@ function drEditHtml(r) {
658
658
  + (r.kind === 'chase' ? `<textarea class="ins-dri" data-drf="body" rows="3" maxlength="2000" aria-label="The message">${esc(raw.body || '')}</textarea>` : '')
659
659
  + (metric && raw.type !== 'Done or not' ? `<input class="ins-dri" data-drf="target" inputmode="decimal" value="${esc(raw.target == null ? '' : String(raw.target))}" aria-label="Target" placeholder="Target">` : '')
660
660
  + (metric ? `<input class="ins-dri" data-drf="source" value="${esc(r.source || '')}" maxlength="40" aria-label="Measured by" placeholder="Measured by">` : '') + '</div>'
661
- + `<div class="acts"><a class="pm-btn" href="${esc(homeAsk('insights', 'Change the draft ' + r.name + ': '))}" aria-label="Ask PMOS in Home to change something else" title="Ask PMOS in Home">${SV('M4 5h16v11H9l-5 4z')}</a>`
661
+ + `<div class="acts"><a class="pm-btn" href="${esc(homeAsk('insights', 'Change the draft ' + r.name + ': '))}" aria-label="Ask PMOS on Today to change something else" title="Ask PMOS on Today">${SV('M4 5h16v11H9l-5 4z')}</a>`
662
662
  + `<button type="button" class="pm-btn" data-okd="cancel" data-row="${esc(r.id)}" aria-label="Cancel the edit" title="Cancel">${SV(I.x)}</button><button type="button" class="pm-btn primary" data-okd="save" data-row="${esc(r.id)}" aria-label="Save ${esc(r.name)}" title="Save">${SV(I.chk)}</button></div></div>`;
663
663
  }
664
664
  const drHtml = (r) => (drEdit === r.id && r.state === 'open' ? drEditHtml(r) : OK.draftHtml(r));
@@ -785,7 +785,7 @@ function openCheck(id) {
785
785
  let el = null;
786
786
  const editHtml = (r) => `<form class="gc-ed" data-gc-ed><label class="ins-fl">Name<input class="ins-inp" name="name" maxlength="120" value="${esc(r.name)}"></label>`
787
787
  + (r.raw && r.raw.type !== 'Done or not' ? `<label class="ins-fl">Target<input class="ins-inp" name="target" inputmode="decimal" maxlength="20" value="${esc(r.raw && r.raw.target != null ? String(r.raw.target) : '')}"></label>` : '')
788
- + `<label class="ins-fl">Measured by<input class="ins-inp" name="source" maxlength="40" value="${esc(r.source || '')}"></label><div class="gc-foot"><a class="pm-btn" href="${esc(homeAsk('insights', 'Change how ' + r.name + ' is counted: '))}" aria-label="Ask PMOS in Home to change how it is counted" title="Ask in Home">${SV('M4 5h16v11H9l-5 4z')}</a><span class="gc-sp"></span>`
788
+ + `<label class="ins-fl">Measured by<input class="ins-inp" name="source" maxlength="40" value="${esc(r.source || '')}"></label><div class="gc-foot"><a class="pm-btn" href="${esc(homeAsk('insights', 'Change how ' + r.name + ' is counted: '))}" aria-label="Ask PMOS on Today to change how it is counted" title="Ask on Today">${SV('M4 5h16v11H9l-5 4z')}</a><span class="gc-sp"></span>`
789
789
  + `<button type="button" class="pm-btn" data-gc="edit-x" aria-label="Cancel the edit" title="Cancel">${SV(I.x)}</button><button type="submit" class="pm-btn primary" aria-label="Save" title="Save">${SV(I.chk)}</button></div></form>`;
790
790
  const draw = () => { if (!el || !document.contains(el)) return; const r = rowOf(), top = el.scrollTop; el.innerHTML = st.edit ? editHtml(r) : GC.checkHtml(r, st); el.scrollTop = top; };
791
791
  CHK = { id, st, draw };
@@ -1376,7 +1376,7 @@ function goalBodyHtml(g, o) {
1376
1376
  { id: 'hist', title: 'History', count: (g.history || []).length || '', render: () => historyHtml(g) },
1377
1377
  o.own && savedDash().length ? { id: 'dash', title: 'On dashboards', count: onDash, render: () => dashSwitches(g) } : null,
1378
1378
  ];
1379
- const ask = `<form class="ins-askf" data-askf><input name="q" maxlength="300" autocomplete="off" placeholder="Ask about this goal" aria-label="Ask about this goal"><button type="submit" class="pm-btn primary" aria-label="Ask in Home" title="Ask in Home">${SV(I.up)}</button></form>`;
1379
+ const ask = `<form class="ins-askf" data-askf><input name="q" maxlength="300" autocomplete="off" placeholder="Ask about this goal" aria-label="Ask about this goal"><button type="submit" class="pm-btn primary" aria-label="Ask on Today" title="Ask on Today">${SV(I.up)}</button></form>`;
1380
1380
  // GcR3Goal: the panel leads with the number and how it is counted, never with its chart; the chart follows the words
1381
1381
  const fo = fcOpts(g), fcLine = FCV.stateHtml(g, fo), fcBase = FCV.baselineHtml(g, fo), legend = c && !steps ? FCV.legendHtml(g) : '';
1382
1382
  return head + form + kr + fcLine + `<div class="ins-gbig">${chart}${legend}</div>` + fcBase + whyCard + window.czViewer.czSections(rows.filter(Boolean), { key: 'goal' }) + '<p class="note ins-gmsg" data-gmsg role="status"></p>' + ask;
@@ -1525,7 +1525,7 @@ function openBudget(id) {
1525
1525
  const b = (M.budgets || []).find((x) => x.id === id); if (!b) return;
1526
1526
  const R = b.reading, has = R && R.share !== null;
1527
1527
  const sum = { line: [has ? pct(R.share) + ' now' : 'No reading yet', b.cap !== null ? 'cap ' + pct(b.cap) + ' of a quarter’s initiatives' : 'no cap declared'].join(' · '), tone: has && R.over ? 'warn' : '',
1528
- text: has ? (R.over ? 'Over its cap.' : 'Within its cap.') + ' ' + R.n + ' of ' + R.total + ' open on the Board.' : b.declared ? 'It has no reading: no open initiative to share.' : 'Initiatives use it, but no limit is set for it yet. Discuss it in Home and I set one up.',
1528
+ text: has ? (R.over ? 'Over its cap.' : 'Within its cap.') + ' ' + R.n + ' of ' + R.total + ' open on Work.' : b.declared ? 'It has no reading: no open initiative to share.' : 'Initiatives use it, but no limit is set for it yet. Discuss it on Today and I set one up.',
1529
1529
  meta: [b.anchor, 'always on', 'judged every week'].join(' · ') };
1530
1530
  const text = [b.title, sum.line, sum.text].join('\n');
1531
1531
  vwOpen({ kind: 'Health budget', title: b.title, icon: 'goal', id: 'budget:' + id, more: [{ label: 'Copy as text', on: () => copyText(text, 'Copied as text.') }],
@@ -1535,8 +1535,8 @@ function openBudget(id) {
1535
1535
  const V = window.czViewer;
1536
1536
  const meter = has && b.cap !== null ? bandSvg([{ at: M.today || iso(today()), v: R.share * 100 }], b.cap * 100, true, R.over ? 'late' : 'ok', b.title + ': ' + pct(R.share) + ' of open initiatives, the green band is inside its ' + pct(b.cap) + ' cap', isPhone() ? 358 : 490, 60) : '';
1537
1537
  const rows = [
1538
- { id: 'bread', title: 'Readings', count: has ? 1 : 0, render: () => (has ? `<div class="ins-th2"><span>Reading</span><span>Value</span><span>Source</span></div><div class="ins-trow ins-rd3"><span>${esc(md(today()) + ' ' + iso(today()).slice(0, 4))}</span><b>${esc(pct(R.share))}</b><span class="note">${esc(R.n + ' of ' + R.total + ' open on the Board')}</span></div>` : '')
1539
- + `<p class="note">${esc(b.covers ? 'Covers ' + b.covers + '. ' : 'What it covers is not declared. ')}It is read each time the Board is read. The PM edits the budgets in planning/okrs/health-budgets.md.</p>` },
1538
+ { id: 'bread', title: 'Readings', count: has ? 1 : 0, render: () => (has ? `<div class="ins-th2"><span>Reading</span><span>Value</span><span>Source</span></div><div class="ins-trow ins-rd3"><span>${esc(md(today()) + ' ' + iso(today()).slice(0, 4))}</span><b>${esc(pct(R.share))}</b><span class="note">${esc(R.n + ' of ' + R.total + ' open on Work')}</span></div>` : '')
1539
+ + `<p class="note">${esc(b.covers ? 'Covers ' + b.covers + '. ' : 'What it covers is not declared. ')}It is read each time Work is read. The PM edits the budgets in planning/okrs/health-budgets.md.</p>` },
1540
1540
  { id: 'bmoved', title: 'Moved by', count: b.moves.length, render: () => (b.moves.length ? `<div class="ins-mvl">${b.moves.map((r) => initRow(r)).join('')}</div>` : '<p class="note">No initiative anchors to it.</p>') },
1541
1541
  ];
1542
1542
  el.innerHTML = V.czSummary(sum) + meter + V.czSections(rows, { key: 'budget' });
@@ -1550,7 +1550,7 @@ const TILES = [['blocked', 'Blocked tickets'], ['late', 'Late initiatives'], ['i
1550
1550
  /* Intelligence redesign A (IgA4Trends): merges and corrections measure PMOS's own agents, so they show only on the PMOS workspace's Intelligence. */
1551
1551
  const tilesOn = () => TILES.filter(([k]) => (M && M.self) || (k !== 'merges' && k !== 'corrections'));
1552
1552
  const TILE_DIR = { merges: 'at least' }; // more merges is better; every other measure is better lower
1553
- const TILE_DEF = { late: 'Open initiatives the workflow engine reports as late today. Earlier weeks count the initiatives late today whose end date had already passed; the Board keeps no history of a status.', scope: 'Initiatives whose planned start falls in the week.' };
1553
+ const TILE_DEF = { late: 'Open initiatives the workflow engine reports as late today. Earlier weeks count the initiatives late today whose end date had already passed; Work keeps no history of a status.', scope: 'Initiatives whose planned start falls in the week.' };
1554
1554
  const numsOf = (ser) => (ser || []).filter((v) => typeof v === 'number' && Number.isFinite(v));
1555
1555
  /** How a tile's target is read: its direction and its start (POST /api/insights-records/tile), whether the latest reading meets it, and the tile's
1556
1556
  * colour: amber only after the last two readings both miss it (IsTarget), or the one value when there is no series. */
@@ -1623,8 +1623,8 @@ function movedGoals() {
1623
1623
  }
1624
1624
  function bmHtml(big) {
1625
1625
  if (!M.board || !M.board.ws) return big ? '<div class="ins-empty">Delivery trends are read from a board, and this workspace has none.</div>' : '';
1626
- const head = big ? '<div class="ins-trh" role="row"><h2 id="hBm" role="cell">Delivery trends</h2> <span class="note">Last 8 weeks · from the Board and its initiatives · press a tile for its weeks</span></div>'
1627
- : '<div class="ins-grp" role="row"><h2 id="hBm" role="cell">Delivery trends</h2> <span class="q">the Board shows today’s counts as chips · press a tile to set its target</span></div>';
1626
+ const head = big ? '<div class="ins-trh" role="row"><h2 id="hBm" role="cell">Delivery trends</h2> <span class="note">Last 8 weeks · from Work and its initiatives · press a tile for its weeks</span></div>'
1627
+ : '<div class="ins-grp" role="row"><h2 id="hBm" role="cell">Delivery trends</h2> <span class="q">Work shows today’s counts as chips · press a tile to set its target</span></div>';
1628
1628
  const mv = (t) => (big && !t.abs && t.change && t.change.d !== 0 ? `<span class="mv">${esc(t.change.txt)}</span>` : '');
1629
1629
  return `<section class="ins-trends${big ? ' big' : ''}" id="cBm" aria-labelledby="hBm">${head}${big ? monthStrip() : ''}`
1630
1630
  + `<div class="ins-tiles" id="bmBody">${tilesOn().map(([k, l]) => { const t = tileOf(k), on = tgOpen === k; return `<div class="ins-tile${t.warn ? ' warn' : ''}${t.abs ? ' abs' : ''}${on ? ' sel' : ''}" data-tile="${k}" role="button" tabindex="0" aria-expanded="${on}" aria-label="${esc(l + ', ' + t.v + (t.s ? ', ' + t.s : '') + (t.change && t.change.d !== 0 ? ', ' + t.change.txt : '') + (t.T.line ? ', ' + t.T.line : ''))}"${t.s ? ` title="${esc(t.s)}"` : ''}><span class="l">${esc(l)}</span><span class="v">${esc(t.v)}</span>${big ? miniSpark(t.ser, 300, 34) : miniSpark(t.ser)}${mv(t)}<span class="tg">${on ? 'Setting target…' : esc(t.T.line)}</span></div>`; }).join('')}</div>`
@@ -1682,7 +1682,7 @@ function openTarget(key) {
1682
1682
  pop.innerHTML = `<p class="ins-h3">Target for ${esc(L.toLowerCase())}</p>${segBtns('Direction', [['at least', 'At least'], ['at most', 'At most'], ['none', 'No target']], dir0)}`
1683
1683
  + `<div class="ins-2"><label class="ins-fl">Value<input class="ins-inp" id="tgV" inputmode="decimal" maxlength="12" value="${T.tg != null ? esc(String(T.tg)) : ''}"${dir0 === 'none' ? ' disabled' : ''}></label><label class="ins-fl">From<input class="ins-inp" id="tgFrom" type="date" value="${esc((T.set && T.set.from) || '')}"></label></div>`
1684
1684
  + `<p class="note">${esc(t.abs ? 'It is not read yet, so it has no range to show.' : rangeSay(t.ser))} A tile goes amber only after 2 weeks past its target.</p>`
1685
- + `<label class="ins-chkl"><button type="button" class="ins-chk${!T.set || T.set.chip ? ' on' : ''}" role="checkbox" aria-checked="${!T.set || T.set.chip}" id="tgChip">${SV(I.chk, 3)}</button>Show the target on the Board chip</label>`
1685
+ + `<label class="ins-chkl"><button type="button" class="ins-chk${!T.set || T.set.chip ? ' on' : ''}" role="checkbox" aria-checked="${!T.set || T.set.chip}" id="tgChip" aria-label="Show the target on the Work chip">${SV(I.chk, 3)}</button>Show the target on the Work chip</label>`
1686
1686
  + '<div class="ins-acts"><button type="button" class="ins-btn sm dark" id="tgSet">Set target</button><button type="button" class="ins-btn sm ghost" id="tgCancel">Cancel</button><span class="note" id="tgMsg" role="status"></span></div>';
1687
1687
  main.appendChild(pop);
1688
1688
  if (isPhone()) pop.classList.add('ph');
@@ -2109,12 +2109,12 @@ function openVerdict(r) {
2109
2109
  const due = dueOf(r);
2110
2110
  openSide({ kind: 'verdict', eye: 'Evaluate · your verdict' + (due !== null ? ', due ' + md(due) : ''), title: r.title, go: 'Record verdict', onGo: () => saveVerdict(r),
2111
2111
  note: 'Records the evaluation. Nothing is sent.',
2112
- pre: `<a class="pm-btn" href="${esc(homeAsk('verdict', 'Help me judge ' + r.title + ' (' + r.id + ').'))}" aria-label="Ask about this verdict in Home" title="Ask about this verdict in Home">${SV(I.home)}</a>`,
2113
- tools: `<a class="pm-btn" href="${iniHref(r.id)}" aria-label="Open the PRD" title="Open the PRD">${SV(I.doc)}</a><a class="pm-btn" href="/premium-board.html?${wsQ()}focus=${encodeURIComponent(r.id)}" aria-label="Open on the Board" title="Open on the Board">${SV(I.next)}</a>`,
2112
+ pre: `<a class="pm-btn" href="${esc(homeAsk('verdict', 'Help me judge ' + r.title + ' (' + r.id + ').'))}" aria-label="Ask about this verdict on Today" title="Ask about this verdict on Today">${SV(I.home)}</a>`,
2113
+ tools: `<a class="pm-btn" href="${iniHref(r.id)}" aria-label="Open the PRD" title="Open the PRD">${SV(I.doc)}</a><a class="pm-btn" href="/premium-board.html?${wsQ()}focus=${encodeURIComponent(r.id)}" aria-label="Open on Work" title="Open on Work">${SV(I.next)}</a>`,
2114
2114
  body: chart
2115
2115
  + `<div><p class="ins-fl">Evidence <span class="q">${(r.evidence || []).length}</span></p>${(r.evidence || []).length ? `<ul class="ins-ev">${r.evidence.map((x) => `<li>${esc(x)}</li>`).join('')}</ul>` : `<p class="note">${g ? 'No reading of ' + esc(g.title) + ' is recorded.' : 'No goal with readings is anchored to it.'}</p>`}</div>`
2116
2116
  + '<div><p class="ins-fl">Your verdict</p><div class="ins-opts" role="radiogroup" aria-label="Your verdict">'
2117
- + [['Keep', 'It stays as built. Move it to Done on the Board.'], ['Iterate', 'Keep it, and start a linked initiative in Triage for the next step.'], ['Stop', 'Archive it and say why. The code stays until a chore removes it.']]
2117
+ + [['Keep', 'It stays as built. Move it to Done on Work.'], ['Iterate', 'Keep it, and start a linked initiative in Triage for the next step.'], ['Stop', 'Archive it and say why. The code stays until a chore removes it.']]
2118
2118
  .map(([k, t], i) => `<button type="button" class="ins-opt${i === 1 ? ' on' : ''}" role="radio" aria-checked="${i === 1}" data-vd="${k}"><i class="rd"></i><span><b>${k}</b><small>${esc(t)}</small></span></button>`).join('') + '</div></div>'
2119
2119
  + '<label class="ins-fl">What we learned<textarea class="ins-ta" id="vdLearn" maxlength="600" placeholder="What the numbers and the work say"></textarea></label>' });
2120
2120
  $('#sideMsg').textContent = '';
@@ -2162,7 +2162,7 @@ function repRowHtml(G) {
2162
2162
  const st = repState(G), key = G.kind + ':' + G.x.id;
2163
2163
  return rlRow(G.kind === 'setup' ? `data-setup="${esc(G.x.id)}"` : `data-rpt="${esc(G.x.id)}"`, key, G.x.name, st.sub || ' ', st.next, st.pill);
2164
2164
  }
2165
- const askRowHtml = (a) => rlRow(`data-ask="${esc(a.id)}"`, 'ask:' + a.id, a.proposal && a.proposal.name ? a.proposal.name : a.text, 'You asked in Home: ' + a.text, '—', [ASKST[a.state][1] === 'you' ? 'y' : ASKST[a.state][1], ASKST[a.state][2]]);
2165
+ const askRowHtml = (a) => rlRow(`data-ask="${esc(a.id)}"`, 'ask:' + a.id, a.proposal && a.proposal.name ? a.proposal.name : a.text, 'You asked on Today: ' + a.text, '—', [ASKST[a.state][1] === 'you' ? 'y' : ASKST[a.state][1], ASKST[a.state][2]]);
2166
2166
  function miniHtml(c) {
2167
2167
  const d = c.pts.map((p, i) => (i ? 'L' : 'M') + (5 + p.fx * 120).toFixed(1) + ',' + (4 + (1 - p.fy) * 18).toFixed(1)).join(''), l = c.pts[c.pts.length - 1];
2168
2168
  return `<span class="ins-mini"><small>${esc(c.title)}</small><b>${esc(c.v)}</b><svg viewBox="0 0 130 26" aria-hidden="true"><path d="${d}L125,26L5,26Z" class="ar"/><path d="${d}" class="ln"/><circle cx="${(5 + l.fx * 120).toFixed(1)}" cy="${(4 + (1 - l.fy) * 18).toFixed(1)}" r="3" style="fill:${c.off ? 'var(--cz-dot-late)' : 'var(--cz-dot-ok)'}"/></svg></span>`;
@@ -2195,7 +2195,7 @@ function drawList() {
2195
2195
  // U3: no "Needs you N" heading; the rows and their ✓ are the signal, and the count belongs to Your move on Home (zero is silence)
2196
2196
  const needs = nNeed ? `<div class="ins-nlist" id="repNeeds" role="list" aria-label="Waiting for you">${waits.map(needRowHtml).join('')}${waitAsks.map(askNeedHtml).join('')}</div>` : '';
2197
2197
  const table = rest.length + restAsks.length ? `<div class="ins-sec"><h3>Yours</h3><span class="q">${rest.length + restAsks.length}</span></div><div class="ins-rtbl" id="repAsks">${head3}<div role="list">${rest.map(repRowHtml).join('')}${restAsks.map(askRowHtml).join('')}</div></div>`
2198
- : !empty && !needs ? (quietLine('reports') ? `<div class="ins-empty"><b>${esc(quietLine('reports'))}</b>${quietNext('reports')}</div>` : '<div class="ins-empty"><b>No report is set up and no report file is on record.</b> Reports are made in Home.</div>') : '';
2198
+ : !empty && !needs ? (quietLine('reports') ? `<div class="ins-empty"><b>${esc(quietLine('reports'))}</b>${quietNext('reports')}</div>` : '<div class="ins-empty"><b>No report is set up and no report file is on record.</b> Reports are made on Today.</div>') : '';
2199
2199
  const dd = savedDash().length ? null : draftedDash();
2200
2200
  const dashBlock = `<div class="ins-sec"><h3>Dashboards</h3><span class="q">${dashes.length && !dd ? dashes.length + ' · a dashboard is a saved view of Goals' : dd ? '1 drafted · ' + esc(dd.name) : 'none saved · select rows, then Save'}</span></div><div class="ins-dgrid" role="list">${dd ? draftedCard(dd) : ''}${dashes.map(dashCard).join('')}</div>`;
2201
2201
  $('#repBody').innerHTML = `${needs}${oneNote()}${libFolds(LIB.L) || '<div id="readyLib"></div>'}<div id="listRows" aria-label="Dashboards and reports">${fbox}${empty}${table}${dashBlock}</div>`;
@@ -2230,7 +2230,7 @@ function needRowHtml(G) {
2230
2230
  + `<span class="ac"><span class="note">${esc(a.label.charAt(0).toLowerCase() + a.label.slice(1))}</span><button type="button" class="pm-btn primary" data-nact="${esc(G.x.id)}" aria-label="${esc(a.label + ': ' + G.x.name)}" title="${esc(a.label)}">${SV(I.chk, 2.4)}</button></span></div>`;
2231
2231
  }
2232
2232
  /** A proposal from Home that is ready: what was asked, and its ✓, which opens the proposal (Set it up is one press there). */
2233
- const askNeedHtml = (a) => `<div class="ins-nrow" role="listitem"><button type="button" class="nm" data-ask="${esc(a.id)}"><b>${esc(a.proposal && a.proposal.name ? a.proposal.name : a.text)}</b><small>${esc('You asked in Home: ' + a.text)}</small></button>`
2233
+ const askNeedHtml = (a) => `<div class="ins-nrow" role="listitem"><button type="button" class="nm" data-ask="${esc(a.id)}"><b>${esc(a.proposal && a.proposal.name ? a.proposal.name : a.text)}</b><small>${esc('You asked on Today: ' + a.text)}</small></button>`
2234
2234
  + `<span class="ac"><span class="note">set it up</span><button type="button" class="pm-btn primary" data-ask="${esc(a.id)}" aria-label="${esc('Open the proposal: ' + a.text)}" title="Open the proposal">${SV(I.chk, 2.4)}</button></span></div>`;
2235
2235
  /** The one ✓ of a waiting report: Issue, Confirm the definition, Move to <product> or Resume. One press, then the panel reads again. */
2236
2236
  async function needPress(b) {
@@ -2336,13 +2336,13 @@ function openSetup(G, tab0) {
2336
2336
  const sub = [s.audience ? 'For ' + s.audience : '', s.label].filter(Boolean).join(' · ');
2337
2337
  let body;
2338
2338
  if (tab === 'issues') body = st.live.length ? st.live.map((f, i) => `<button type="button" class="ins-trow ins-iss" data-file="${i}"><span>${esc(md(day(f.slot)) + ' ' + String(f.slot).slice(0, 4))}</span><span class="pm-badge ${f.state === 'issued' ? 'ok' : 'you'}">${f.state === 'issued' ? 'Issued' : 'Draft'}</span><span class="note">${esc(f.lead ? '“' + f.lead + '”' : '')}</span></button>`).join('') : '<p class="note">No report is written yet. Draft it now writes the first one.</p>';
2339
- else if (tab === 'brief') body = kvHtml([['What it is for', s.purpose || '—'], s.audience ? ['For', s.audience] : null, s.output ? ['Made as', s.output] : null, ['Schedule', s.label || 'No schedule'], s.lastIssued ? ['Last issued', s.lastIssued] : null, ['Cycles', String(s.cycles || 0)]]) + `<a class="ins-btn sm ghost" href="${esc(changeHref(s))}">Change the brief in Home</a>`;
2339
+ else if (tab === 'brief') body = kvHtml([['What it is for', s.purpose || '—'], s.audience ? ['For', s.audience] : null, s.output ? ['Made as', s.output] : null, ['Schedule', s.label || 'No schedule'], s.lastIssued ? ['Last issued', s.lastIssued] : null, ['Cycles', String(s.cycles || 0)]]) + `<a class="ins-btn sm ghost" href="${esc(changeHref(s))}">Change the brief on Today</a>`;
2340
2340
  else {
2341
2341
  const F = fromList(s);
2342
2342
  body = `<div class="ins-box ins-nb"><span class="small"><b>${esc(nextSay(s))}</b><br><span class="note">PMOS drafts it, you issue it</span></span>${st.draft ? '<button type="button" class="ins-btn sm dark" data-sx="open">Open the draft</button>' : ''}<button type="button" class="ins-btn sm" data-sx="draft">Draft it now</button><button type="button" class="pm-btn" data-sx="${s.paused ? 'resume' : 'pause'}" aria-label="${s.paused ? 'Resume' : 'Pause'}" title="${s.paused ? 'Resume' : 'Pause'}">${SV(s.paused ? I.play : I.pause)}</button></div>`
2343
2343
  + `<p class="ins-lbl">Built from</p><div class="ins-chips2">${F.length ? F.map((x) => `<span class="cz-chip">${esc(x)}</span>`).join('') : '<span class="note">Not recorded</span>'}</div>`
2344
2344
  + (s.sections && s.sections.length ? '<p class="ins-lbl">Sections</p>' + s.sections.map((x, i) => `<div class="ins-trow"><span>${i + 1} · ${esc(x)}</span></div>`).join('') : '')
2345
- + `<a class="ins-btn sm ghost" href="${esc(changeHref(s))}">Change the setup in Home</a>`;
2345
+ + `<a class="ins-btn sm ghost" href="${esc(changeHref(s))}">Change the setup on Today</a>`;
2346
2346
  }
2347
2347
  el.innerHTML = `<div class="ins-gd">${bar}<div class="ins-gh"><p class="ins-gsub">${esc(sub || s.purpose || '')}</p></div><div class="ins-gb" role="tabpanel">${body}</div><p class="note" data-msg role="status"></p></div>`;
2348
2348
  };
@@ -2369,7 +2369,7 @@ function openSheet(G) {
2369
2369
  sh.innerHTML = `<div class="ins-grab"></div><p class="ins-h3">${esc(s.name)}</p><p class="note">${esc([s.label, F.length ? 'built from ' + F.join(', ') : ''].filter(Boolean).join(' · '))}</p>`
2370
2370
  + (st.live.length ? `<button type="button" class="ins-btn dark wide" data-sx="open">${st.draft ? 'Open the draft' : 'Open the latest'}</button>` : '')
2371
2371
  + `<div class="ins-acts"><button type="button" class="ins-btn wide" data-sx="draft">Draft it now</button><button type="button" class="ins-btn wide" data-sx="${s.paused ? 'resume' : 'pause'}">${s.paused ? 'Resume' : 'Pause'}</button></div>`
2372
- + `<a class="ins-btn ghost wide" href="${esc(changeHref(s))}">Change the setup in Home</a><p class="note" data-msg role="status"></p>`;
2372
+ + `<a class="ins-btn ghost wide" href="${esc(changeHref(s))}">Change the setup on Today</a><p class="note" data-msg role="status"></p>`;
2373
2373
  document.body.append(sc, sh);
2374
2374
  sh.addEventListener('click', async (e) => {
2375
2375
  const b = e.target.closest('[data-sx]'); if (!b) return; const k = b.dataset.sx;
@@ -2403,7 +2403,7 @@ function openRequest(id) {
2403
2403
  const draw = () => {
2404
2404
  const running = a.state === 'running', said = running ? 'A background run is working on a proposal.' : a.state === 'failed' ? 'The run failed' + (a.error ? ': ' + a.error : '.') : 'PMOS proposes the report below. Nothing is set up until you say so.';
2405
2405
  const acts = running ? [['cancel', 'Cancel', 'ghost']] : (a.state === 'ready' ? [['setup', 'Set it up', 'dark']] : []).concat([['chg', 'Change it', ''], ['cancel', 'Cancel', 'ghost']]);
2406
- el.innerHTML = `<div class="ins-gd"><p class="ins-lbl">A request from Home</p><div class="ins-need"><span class="small"><b>${esc(a.proposal && a.proposal.name ? a.proposal.name : a.text)}</b> · You asked: “${esc(a.text)}”. ${esc(said)}</span>`
2406
+ el.innerHTML = `<div class="ins-gd"><p class="ins-lbl">A request from Today</p><div class="ins-need"><span class="small"><b>${esc(a.proposal && a.proposal.name ? a.proposal.name : a.text)}</b> · You asked: “${esc(a.text)}”. ${esc(said)}</span>`
2407
2407
  + (a.proposal ? kvHtml(a.proposal.rows || []) : '')
2408
2408
  + (changing ? '<label class="ins-fl">Change it<input class="ins-inp" data-chg maxlength="300" placeholder="What to change"></label>' : '')
2409
2409
  + `<div class="ins-acts">${changing ? '<button type="button" class="ins-btn sm dark" data-act="change">Send the change</button><button type="button" class="ins-btn sm ghost" data-act="back">Cancel the change</button>' : acts.map(([k, t, c]) => `<button type="button" class="ins-btn sm ${c}" data-act="${k}">${esc(t)}</button>`).join('')}</div></div><p class="note" data-msg role="status"></p></div>`;
@@ -21,7 +21,7 @@ const lengthText = (m) => (m == null || m <= 0 ? '' : m < 60 ? m + ' min' : m %
21
21
  export function aboutOf(level) {
22
22
  if (!level || !level.kind) return '';
23
23
  if (['portfolio'].includes(level.kind)) return 'Portfolio';
24
- return (level.kind === 'board' ? 'Board: ' : 'Initiative: ') + clip(level.name || level.id || '', 60);
24
+ return (level.kind === 'board' ? 'Work: ' : 'Initiative: ') + clip(level.name || level.id || '', 60);
25
25
  }
26
26
 
27
27
  /** The week as the card draws it. `r` is the answer of GET /api/calendar-views?view=week, or { ok:false, error }. `today` is 'YYYY-MM-DD'. */
@@ -271,7 +271,7 @@ function schedPop() {
271
271
  return `<div class="vz-pop vz-pop-sched" data-esc-layer="1" role="dialog" aria-label="Schedule">`
272
272
  + `<b class="vz-pophd">Draft this report on a schedule</b><p class="vz-note">${R.setup ? 'Each cycle is drafted by a background run. Nothing is sent until you issue it.' : 'Picking one saves its sections and look as a template. A background run drafts each cycle. Nothing is sent until you issue it.'}</p>`
273
273
  + `<div class="vz-stack2" role="radiogroup" aria-label="How often">${opts.map(([c, l]) => `<button type="button" class="vz-mi vz-hv" role="radio" aria-checked="${k.cad === c}" data-r="scad|${c}"><span class="vz-ring"></span>${esc(l)}</button>`).join('')}</div>`
274
- + (k.cad === 'else' ? '<p class="vz-note">Say how often it should be drafted in the chat on Home, for example “Draft this every other Thursday at 8”.</p>' : '')
274
+ + (k.cad === 'else' ? '<p class="vz-note">Say how often it should be drafted in the chat on Today, for example “Draft this every other Thursday at 8”.</p>' : '')
275
275
  + `<div class="vz-r1 vz-mt6">${weekly ? DAYS.map((d) => `<button type="button" class="vz-dbtn vz-hv" data-r="sday|${d}" aria-pressed="${k.day === d}">${d}</button>`).join('') : ''}<span class="vz-sp"></span><select class="vz-c vz-tchip" data-r="stime" aria-label="Time" title="The time it is drafted">${times(k.time).map((t) => `<option${t === k.time ? ' selected' : ''}>${t}</option>`).join('')}</select></div>`
276
276
  + (R.setup && R.setup.status !== 'paused' ? `<button type="button" class="vz-mi vz-hv vz-mi32" data-r="soff" data-k="bad">Stop drafting it on a schedule</button>` : '')
277
277
  + (R.schErr ? `<p class="vz-msg" data-tone="bad" role="alert">${esc(R.schErr)}</p>` : '')
@@ -872,7 +872,7 @@ async function briefAct(a, v) {
872
872
  const text = (it.where === 'Brief' ? 'Answer' : 'Correct') + ' "' + R.name + '", ' + it.where.toLowerCase() + ': ' + it.text + ' → ';
873
873
  const ta = document.getElementById('hmIn'); // Home's chat box, when the Viewer sits beside it
874
874
  if (ta) { ta.value = text; ta.dispatchEvent(new Event('input', { bubbles: true })); ta.focus(); R.bfMsg = 'Say the correction in the chat. The report changes on its next draft.'; }
875
- else R.bfMsg = 'Say the correction in the chat on Home: ' + it.where + ': ' + it.text;
875
+ else R.bfMsg = 'Say the correction in the chat on Today: ' + it.where + ': ' + it.text;
876
876
  return draw();
877
877
  }
878
878
  if (a === 'ok' || a === 'use') {
@@ -260,7 +260,7 @@ export function aboutChoices(boards) {
260
260
  for (const b of boards || []) {
261
261
  if (!b || !b.id) continue;
262
262
  const board = { id: b.id, ws: b.ws || null, title: b.name || b.title || b.id };
263
- out.push({ v: 'b:' + (board.ws || '') + '/' + board.id, label: 'Board: ' + board.title, body: { board, initiative: null } });
263
+ out.push({ v: 'b:' + (board.ws || '') + '/' + board.id, label: 'Work: ' + board.title, body: { board, initiative: null } });
264
264
  for (const i of b.inis || []) if (i && i.id) out.push({ v: 'i:' + (board.ws || '') + '/' + i.id, label: 'Initiative: ' + clip(i.title || i.id, 70), body: { board, initiative: { id: i.id, ws: board.ws, title: i.title || i.id } } });
265
265
  }
266
266
  return out;
@@ -398,7 +398,7 @@ function transcriptHtml(m, ui, lines, seek) {
398
398
  function stepHtml(a, ui, W) {
399
399
  const made = ui.made && ui.made[a.i];
400
400
  const act = a.made ? `<span class="vzm-pill" data-k="${a.ticket ? 'you' : ''}">${esc(a.ticket ? a.made : 'Task')}</span>`
401
- : `<button type="button" class="vzm-btn vzm-soft" data-a="maketask" data-i="${a.i}">Make task</button><button type="button" class="vzm-ib vz-hv" data-a="makewi" data-i="${a.i}" aria-label="Make it a work-item" title="A ticket Drafted in PMOS, shown on the Board. It goes to Jira only through the Commit gate.">${svg('ticket', 15)}</button>`;
401
+ : `<button type="button" class="vzm-btn vzm-soft" data-a="maketask" data-i="${a.i}">Make task</button><button type="button" class="vzm-ib vz-hv" data-a="makewi" data-i="${a.i}" aria-label="Make it a work-item" title="A ticket Drafted in PMOS, shown on Work. It goes to Jira only through the Commit gate.">${svg('ticket', 15)}</button>`;
402
402
  return `<div class="vzm-step"><span class="vzm-grow vz-said">${W ? wx(W, a.text) : esc(a.text)}</span><span class="vzm-mut vzm-sm">${esc(a.meta.replace('No owner · No date', 'No owner, no date'))}</span>${act}</div>`
403
403
  + (made ? `<div class="vzm-made" role="status">${svg('check', 14)}<span>${made.html}</span>${made.undo ? `<button type="button" class="vzm-btn vzm-ghost" data-a="madeundo" data-i="${a.i}">Undo</button>` : ''}</div>` : '');
404
404
  }
@@ -1221,7 +1221,7 @@ async function makeWorkItem(me, i) {
1221
1221
  const r = await workItem(me.n.id, step);
1222
1222
  if (!r.ok) return say(me, 'The work-item was not made: ' + r.error, 'bad');
1223
1223
  await load(me, true);
1224
- say(me, r.created ? r.ticket + ' is drafted in PMOS. It shows on the Board under Drafted in PMOS and goes to Jira only through the Commit gate.' : 'This step is already ' + r.ticket + '.');
1224
+ say(me, r.created ? r.ticket + ' is drafted in PMOS. It shows on Work under Drafted in PMOS and goes to Jira only through the Commit gate.' : 'This step is already ' + r.ticket + '.');
1225
1225
  }
1226
1226
  export async function workItem(noteId, step) {
1227
1227
  const r = await pmPost('/api/viewer-meeting/work-item', { note: noteId, step: { text: step.text, owner: step.owner || '', due: step.due || '' } });
@@ -135,7 +135,7 @@ function openPop(btn) {
135
135
  const next = S.ids.concat(all.filter((id) => !S.ids.includes(id)));
136
136
  closePop();
137
137
  const r = await save(p, next);
138
- if (r && r.ok) O.say('Ordered by dates · Board, program page and Home', async () => { const u = await save(progOf(p.id) || p, r.was || []); return u; });
138
+ if (r && r.ok) O.say('Ordered by dates · Work, program page and Today', async () => { const u = await save(progOf(p.id) || p, r.was || []); return u; });
139
139
  }
140
140
  });
141
141
  }
@@ -56,7 +56,7 @@ function seen() {
56
56
  export async function moveIn(list, ids) {
57
57
  const was = L, k = list.dataset.poList.slice(1);
58
58
  const ok = await save(arranged(L, k, ids, seen()));
59
- if (ok && O) O.say(was.sort === 'mine' ? 'Moved · Home and the Board use this order' : 'Moved · now My order on Home and the Board', () => save(was));
59
+ if (ok && O) O.say(was.sort === 'mine' ? 'Moved · Today and Work use this order' : 'Moved · now My order on Today and Work', () => save(was));
60
60
  return ok;
61
61
  }
62
62
 
@@ -83,7 +83,7 @@ export function chatAbout(t, raw = {}) {
83
83
  const r = raw || {};
84
84
  return { id: t.uid || String(t.key || '').replace(/^task:/, ''), kind: t.milestone ? 'milestone' : 'task', title: t.title, parent: t.iniTitle || '',
85
85
  subject: (t.milestone ? 'Milestone' : 'Task') + (t.iniTitle ? ' in the initiative ' + t.iniTitle : '') + (t.ini ? ' (' + t.ini + ')' : '') + '. Read it with pmos before you answer.',
86
- facts: [['Status', t.status], ['Start', t.start], ['Due', t.due], ['Owner', t.owner || r.owner || ''], ['Initiative', t.ini], ['Board', t.board], ['Task id', t.uid],
86
+ facts: [['Status', t.status], ['Start', t.start], ['Due', t.due], ['Owner', t.owner || r.owner || ''], ['Initiative', t.ini], ['Work', t.board], ['Task id', t.uid],
87
87
  ['Notes', String(t.notes || '').slice(0, 240)]] };
88
88
  }
89
89
  /** Where a task sits: { section, wbs }. The initiative view's model (ini-view-model.js, batch 6 item 1) owns the rules: sectionOf(task, stages)
@@ -275,7 +275,7 @@ export function cardHtml(t, o = {}) {
275
275
  ? `<button type="button" class="own-b${oOpen ? ' open' : ''}" data-tkc="owner" aria-label="Owner: ${esc(t.owner)}. Change" title="Owner" aria-expanded="${oOpen}"><span class="av">${esc(initials(t.owner))}</span>${esc(t.owner)}</button>`
276
276
  : `<button type="button" class="own-b ghost${oOpen ? ' open' : ''}" data-tkc="owner" aria-label="Add an owner" title="Owner" aria-expanded="${oOpen}"><span class="av no"></span></button>`;
277
277
  // after a divider, the ◇ toggle (feedback batch 11 item 3, canvas XmlA2Flag): its due date shows as ◇ on the Board and the timeline
278
- const msOn = !!t.milestone, msTip = msOn ? 'A milestone. Press to make it a plain task' : 'Make it a milestone: its due date shows as ◇ on the Board and the timeline';
278
+ const msOn = !!t.milestone, msTip = msOn ? 'A milestone. Press to make it a plain task' : 'Make it a milestone: its due date shows as ◇ on Work and the timeline';
279
279
  const msBtn = `<span class="vr" aria-hidden="true"></span><button type="button" class="ivq-ms${msOn ? ' on' : ''}" data-tkc-ms aria-pressed="${msOn}" aria-label="${msOn ? 'Milestone' : 'Make it a milestone'}" title="${msTip}">${ico(I.dia, 15)}${msOn ? 'Milestone' : ''}</button>`;
280
280
  // last, after its own divider, the trash (batch 17 item 2): the same Delete as the Tasks list's status picker, with Undo in the toast
281
281
  const delBtn = o.del ? `<span class="vr" aria-hidden="true"></span><button type="button" class="ivq-del" data-tkc-del aria-label="Delete task" title="Delete task">${ico(I.bin, 15)}</button>` : '';
@@ -20,7 +20,7 @@ let H = null;
20
20
  const PENDING = new Map(); // an Unless row with no words yet: the model refuses it, so it waits here until it has them
21
21
  export function setStageHost(ctx) { H = ctx; }
22
22
  const X = 'M6 6l12 12M18 6L6 18', PLUS = 'M12 5v14M5 12h14', DRAG = 'M9 6h.01M15 6h.01M9 12h.01M15 12h.01M9 18h.01M15 18h.01', STAGE_ICON = 'M4 6h16M4 12h10M4 18h6';
23
- const KIND_HELP = 'The kind says how progress counts: sections written, tickets done, people signed, or items ticked. The Board shows it in the Output column.';
23
+ const KIND_HELP = 'The kind says how progress counts: sections written, tickets done, people signed, or items ticked. Work shows it in the Output column.';
24
24
 
25
25
  const seg = (label, key, cur, opts, dis) => `<div class="wf-seg" role="radiogroup" aria-label="${esc(label)}">${opts.map(([k, w]) => `<button type="button" class="sb" role="radio" data-st-${key}="${esc(k)}" aria-checked="${cur === k}" aria-pressed="${cur === k}"${dis ? ' disabled' : ''}>${esc(w)}</button>`).join('')}</div>`;
26
26
  const sw = (on, key, title, sub, dis) => `<div class="wf-swl"><button type="button" class="wf-sw" role="switch" aria-checked="${!!on}" data-st-sw="${key}" aria-label="${esc(title)}"${dis ? ' disabled' : ''}><i></i></button><span><b>${esc(title)}</b> <span class="wf-mut">· ${esc(sub)}</span></span></div>`;
@@ -148,7 +148,7 @@ export function readingLines(rows, wf, key) {
148
148
  }
149
149
  function condHtml(wf, s, lines, err) {
150
150
  const text = s.when && s.when.mode === 'only' ? s.when.text || '' : '';
151
- const how = lines === 'reading' ? '<div class="wf-box wf-small"><b>How it reads today</b><span class="wf-mut">Reading the Board.</span></div>'
151
+ const how = lines === 'reading' ? '<div class="wf-box wf-small"><b>How it reads today</b><span class="wf-mut">Reading Work.</span></div>'
152
152
  : lines && lines.length ? `<div class="wf-box wf-small wf-reads"><b>How it reads today</b>${lines.map((l) => `<span class="wf-rd">${wfIcon(wf, 18)}<span><b>${esc(l.title)}</b> · ${esc(l.word)}.${l.why ? ' ' + esc(l.why) : ''}</span></span>`).join('')}</div>` : '';
153
153
  return `<div class="wf-stage wf-condp"><p class="wf-lbl">${esc(wf.name)} · stage ${E.numOf(wf, s.key)} of ${wf.stages.length}</p>`
154
154
  + `<label class="wf-vh" for="wfCondT">${esc(s.name)} runs only when</label><textarea id="wfCondT" class="wf-inp ta" rows="3" maxlength="400" placeholder="For example: the contract is over $50k, or the supplier will handle personal data">${esc(text)}</textarea>`