create-pmos 0.401.0 → 0.403.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 (127) hide show
  1. package/package.json +25 -30
  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-programs-test.js +227 -0
  8. package/workspace/board-shot.js +54 -0
  9. package/workspace/briefing-premium-adddoc-test.js +28 -22
  10. package/workspace/briefing-premium-board-test.js +107 -82
  11. package/workspace/briefing-premium-calendar-2-test.js +23 -10
  12. package/workspace/briefing-premium-calendar-3-test.js +23 -19
  13. package/workspace/briefing-premium-calendar-test.js +20 -15
  14. package/workspace/briefing-premium-initiative-test.js +25 -12
  15. package/workspace/briefing-premium-insights-test.js +31 -18
  16. package/workspace/briefing-premium-metrics-test.js +8 -8
  17. package/workspace/briefing-premium-sources-test.js +15 -10
  18. package/workspace/briefing-premium-test.js +39 -16
  19. package/workspace/changelog.json +24 -0
  20. package/workspace/fixtures/board-premium-facts.js +20 -3
  21. package/workspace/fixtures/briefing-premium-facts.js +18 -2
  22. package/workspace/fixtures/premium-viewer-fixtures.js +24 -2
  23. package/workspace/fixtures/program-ascent.js +101 -0
  24. package/workspace/guide/home.md +11 -7
  25. package/workspace/guide/index.md +1 -0
  26. package/workspace/guide/jira.md +38 -6
  27. package/workspace/guide/programs.md +37 -0
  28. package/workspace/home-rows-test.js +184 -0
  29. package/workspace/lib/briefing-premium-products.js +4 -4
  30. package/workspace/lib/briefing-premium.js +2 -2
  31. package/workspace/lib/calendar-layers.js +8 -4
  32. package/workspace/lib/initiative-layout.js +4 -3
  33. package/workspace/lib/jira-cli.js +17 -12
  34. package/workspace/lib/jira-status.js +1 -1
  35. package/workspace/lib/jira-tickets.js +126 -24
  36. package/workspace/lib/meeting-files.js +58 -0
  37. package/workspace/lib/meeting-learn.js +139 -0
  38. package/workspace/lib/meeting-material.js +12 -5
  39. package/workspace/lib/notes.js +3 -0
  40. package/workspace/lib/programs.js +129 -0
  41. package/workspace/lib/route-modules.js +1 -0
  42. package/workspace/lib/routes-brief-page.js +8 -1
  43. package/workspace/lib/routes-briefing-premium.js +1 -1
  44. package/workspace/lib/routes-calendar-views.js +24 -3
  45. package/workspace/lib/routes-meeting-material.js +38 -0
  46. package/workspace/lib/routes-meeting-points.js +23 -3
  47. package/workspace/lib/routes-programs.js +122 -0
  48. package/workspace/package-lock.json +2 -2
  49. package/workspace/package.json +1 -1
  50. package/workspace/premium-board-actions-test.js +31 -25
  51. package/workspace/premium-chat-context-test.js +1 -1
  52. package/workspace/premium-chat-goal-view-test.js +1 -1
  53. package/workspace/premium-chat-viewer-test.js +1 -1
  54. package/workspace/premium-core-doc-issue-test.js +13 -7
  55. package/workspace/premium-discuss-landing-test.js +83 -0
  56. package/workspace/premium-link-suggest-test.js +103 -0
  57. package/workspace/premium-report-read-test.js +86 -82
  58. package/workspace/premium-vw-backlog-test.js +6 -5
  59. package/workspace/premium-vw-cal-test.js +45 -19
  60. package/workspace/premium-vw-item-test.js +8 -6
  61. package/workspace/premium-vw-jira-test.js +3 -2
  62. package/workspace/premium-vw-meet-test.js +122 -66
  63. package/workspace/premium-vw-notes-test.js +7 -6
  64. package/workspace/premium-vw-rec-test.js +14 -13
  65. package/workspace/premium-vw-slides-test.js +11 -5
  66. package/workspace/program-panel-test.js +152 -0
  67. package/workspace/public/pm/bd-acts.js +24 -15
  68. package/workspace/public/pm/bd-asks.js +111 -30
  69. package/workspace/public/pm/bd-ini-panel.js +229 -0
  70. package/workspace/public/pm/bd-pop.js +2 -2
  71. package/workspace/public/pm/bd-prog-panel.js +436 -0
  72. package/workspace/public/pm/bd-prog.js +191 -0
  73. package/workspace/public/pm/bd-span.js +98 -15
  74. package/workspace/public/pm/bd-views.js +93 -29
  75. package/workspace/public/pm/cozy-board.css +214 -20
  76. package/workspace/public/pm/cozy-evui.js +4 -2
  77. package/workspace/public/pm/cozy-home-rows.css +54 -0
  78. package/workspace/public/pm/cozy-home.css +35 -0
  79. package/workspace/public/pm/cozy-insights.css +1 -2
  80. package/workspace/public/pm/cozy-mtg-present.css +160 -0
  81. package/workspace/public/pm/cozy-panel.css +155 -0
  82. package/workspace/public/pm/cozy-rec-pill.css +12 -0
  83. package/workspace/public/pm/cozy-rec-pill.js +46 -0
  84. package/workspace/public/pm/cozy-today.css +189 -0
  85. package/workspace/public/pm/cozy-viewer.js +307 -43
  86. package/workspace/public/pm/cozy-vw-mtg.css +96 -94
  87. package/workspace/public/pm/cozy-vw-rp.css +40 -25
  88. package/workspace/public/pm/cozy-vw-shell.css +127 -0
  89. package/workspace/public/pm/cozy-xv.css +51 -0
  90. package/workspace/public/pm/cozy-xv.js +34 -0
  91. package/workspace/public/pm/home-app.js +192 -72
  92. package/workspace/public/pm/home-chat.js +17 -4
  93. package/workspace/public/pm/home-data.js +1 -1
  94. package/workspace/public/pm/home-day.js +64 -0
  95. package/workspace/public/pm/home-ini-model.js +1 -1
  96. package/workspace/public/pm/home-ini.js +197 -54
  97. package/workspace/public/pm/home-list.js +100 -27
  98. package/workspace/public/pm/home-mentions.js +187 -0
  99. package/workspace/public/pm/home-rec-row.js +67 -0
  100. package/workspace/public/pm/home-review.js +20 -10
  101. package/workspace/public/pm/home-task.js +19 -18
  102. package/workspace/public/pm/home-today.js +137 -59
  103. package/workspace/public/pm/premium-board.js +294 -288
  104. package/workspace/public/pm/premium-insights.js +118 -82
  105. package/workspace/public/pm/premium-mtg-present.js +408 -100
  106. package/workspace/public/pm/premium-mtg-replay.js +70 -10
  107. package/workspace/public/pm/premium-report-read.js +118 -63
  108. package/workspace/public/pm/premium-vw-cal.js +62 -34
  109. package/workspace/public/pm/premium-vw-mtg.js +348 -192
  110. package/workspace/public/pm/program-model.js +192 -0
  111. package/workspace/public/pm/rec-state.js +63 -0
  112. package/workspace/public/pm/rp-parts.js +33 -8
  113. package/workspace/public/pm/tk-draft.js +107 -0
  114. package/workspace/public/pm/tk-model.js +134 -0
  115. package/workspace/public/pm/tk-send.js +124 -0
  116. package/workspace/public/pm/tk-tasks.css +120 -0
  117. package/workspace/public/premium-board.html +4 -2
  118. package/workspace/server.js +4 -2
  119. package/workspace/skills/jira-push.skill +3 -3
  120. package/workspace/test-lists/board-programs.json +9 -0
  121. package/workspace/test-lists/prd-to-jira.json +6 -0
  122. package/workspace/test-lists/program-hierarchy.json +11 -0
  123. package/workspace/test-lists/program-panel.json +9 -0
  124. package/workspace/test-lists/viewer-home-rows.json +9 -0
  125. package/workspace/test-lists/viewer-meetings.json +9 -0
  126. package/workspace/test-lists/viewer-shell-a.json +15 -0
  127. package/workspace/tk-tasks-test.js +199 -0
@@ -0,0 +1,124 @@
1
+ /* pm/tk-send.js — the Send to Jira sheet (canvas PgTkSend; kit 2, T3). The one path to Jira: a group's send icon, a drafted ticket's send
2
+ * icon (tk-draft.js) and the Board's "Your Commit · push N tickets" row all open this sheet, and nothing reaches Jira before its Send.
3
+ *
4
+ * openSend({ ws, initiative, group?, ticket?, projects?, board?, toast?, onDone? })
5
+ * group an epic group's id ('' for the tickets in no group); ticket: one ticket's id; neither: every ticket that can go now
6
+ * projects the board's Jira projects, for when no epic key names the project; with none, board: the board to read them from
7
+ *
8
+ * The sheet names the project and the epic of each group (New: <group name>, or the existing epic chosen with Change), lists the tickets
9
+ * with a tick each and ends with the one labeled press, "Send N". Send is a PM-only press (pm-guard act `push`): POST /api/jira/push
10
+ * records the selection and starts the Push to Jira session, which creates the epics and tickets with the PM's own Atlassian connection
11
+ * and records their keys (D53, D88). Change writes the epic choice (POST /api/jira/epic, a page press). The model is tk-model.js. */
12
+ import { pmGet, pmPost } from './http.js';
13
+ import { sendModel, sendLabel } from './tk-model.js';
14
+
15
+ const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
16
+ const SVG = (d, w = 14, sw = 2) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
17
+ const TICK = 'M5 12l4 4 10-10', RIGHT = 'M10 7l5 5-5 5';
18
+ const isPhone = () => typeof innerWidth === 'number' && innerWidth <= 760;
19
+ export function ensureCss() {
20
+ if (typeof document === 'undefined' || document.querySelector('link[data-tk-css]')) return;
21
+ const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = '/pm/tk-tasks.css'; l.dataset.tkCss = ''; document.head.appendChild(l);
22
+ }
23
+ const viewUrl = (ws, id) => '/api/jira/tickets?initiative=' + encodeURIComponent(id) + (ws ? '&ws=' + encodeURIComponent(ws) : '');
24
+
25
+ let OPEN = null;
26
+ export function closeSend() {
27
+ if (!OPEN) return;
28
+ const { el, scrim, back } = OPEN; OPEN = null;
29
+ el.remove(); scrim.remove();
30
+ if (back && back.isConnected) { try { back.focus(); } catch { /* gone */ } }
31
+ }
32
+
33
+ function sheetHtml(M, st) {
34
+ const where = `<div class="tk-wr"><span class="tk-wl">Project</span>${st.projects.length > 1 && M.projectFrom !== 'epic'
35
+ ? `<select class="tk-sel" data-tk-project aria-label="Jira project">${st.projects.map((p) => `<option${p === st.project ? ' selected' : ''}>${esc(p)}</option>`).join('')}</select>`
36
+ : M.project ? `<span class="tk-wv">${esc(M.project)}</span>` : '<span class="tk-wv mut">Claude asks you before it creates anything</span>'}</div>`;
37
+ const sec = M.sections.map((s) => {
38
+ const ch = st.change === s.id;
39
+ const epic = `<div class="tk-wr"><span class="tk-wl">Epic</span><span class="tk-wv">${esc(s.epic.label)}</span>`
40
+ + (s.epic.locked ? '' : `<button type="button" class="tk-chg" data-tk-change="${esc(s.id)}" aria-expanded="${ch}" aria-label="Change the epic${s.name ? ' of ' + esc(s.name) : ''}">Change${SVG(RIGHT)}</button>`) + '</div>'
41
+ + (ch ? `<div class="tk-chgbox"><button type="button" class="tk-opt${s.epic.mode === 'new' ? ' on' : ''}" data-tk-new="${esc(s.id)}">Create a new epic<em>${esc(s.epic.mode === 'new' ? s.epic.label.replace(/^New: /, '') : s.name || 'named after the initiative')}</em></button>`
42
+ + `<label class="tk-fld"><span>Or use an existing epic</span><span class="tk-row2"><input data-tk-key="${esc(s.id)}" maxlength="200" autocomplete="off" placeholder="Paste its Jira link or key" value="${esc(s.epic.key || '')}"><button type="button" class="tk-use" data-tk-use="${esc(s.id)}">Use</button></span></label></div>` : '');
43
+ const items = s.items.map((i) => {
44
+ const on = st.on.has(i.id);
45
+ return `<button type="button" class="tk-it" role="checkbox" aria-checked="${on}" data-tk-tick="${esc(i.id)}"${i.can ? '' : ' aria-disabled="true"'}>`
46
+ + `<span class="tk-cb${on ? '' : ' off'}" aria-hidden="true">${on ? SVG(TICK, 12, 3) : ''}</span><span class="tk-itx"><b>${esc(i.title)}</b>${i.why ? `<span class="tk-why">${esc(i.why)}</span>` : i.update ? '<span class="tk-why">Updates its Jira ticket</span>' : ''}</span></button>`;
47
+ }).join('');
48
+ // one epic: the project and the epic share one card (PgTkSend); several: the project once, then each epic with its tickets
49
+ const one = M.sections.length === 1;
50
+ return `<section class="tk-sec" aria-label="${esc(s.name || 'Tickets')}">${!one && s.name ? `<p class="tk-sn">${esc(s.name)}</p>` : ''}<div class="tk-where">${one ? where : ''}${epic}</div><div class="tk-items">${items}</div></section>`;
51
+ }).join('');
52
+ const n = st.on.size;
53
+ return '<div class="tk-grab" aria-hidden="true"></div><h2 class="tk-h">Send to Jira</h2>'
54
+ + (M.empty ? '<p class="tk-note">Every ticket here is in Jira and unchanged. There is nothing to send.</p>'
55
+ : `${M.sections.length === 1 ? '' : `<div class="tk-where">${where}</div>`}${sec}`)
56
+ + `<p class="tk-msg" role="status">${esc(st.msg || '')}</p>`
57
+ + `<div class="tk-acts"><button type="button" class="tk-c" data-tk-cancel>Cancel</button><button type="button" class="tk-go" data-tk-go${n && !st.busy ? '' : ' disabled'}>${esc(sendLabel(n))}</button></div>`;
58
+ }
59
+
60
+ /** Open the sheet. Resolves when it is drawn; onDone() runs after a send started. */
61
+ export async function openSend(o = {}) {
62
+ if (typeof document === 'undefined') return null;
63
+ ensureCss(); closeSend();
64
+ const back = document.activeElement;
65
+ const scrim = document.createElement('div'); scrim.className = 'tk-scrim';
66
+ const el = document.createElement('div');
67
+ el.className = 'cz tk-sheet' + (isPhone() ? ' phone' : '');
68
+ el.setAttribute('role', 'dialog'); el.setAttribute('aria-modal', 'true'); el.setAttribute('aria-label', 'Send to Jira'); el.setAttribute('data-esc-layer', '');
69
+ el.innerHTML = '<p class="tk-note" role="status">Reading the tickets.</p>';
70
+ document.body.append(scrim, el);
71
+ OPEN = { el, scrim, back };
72
+ scrim.onclick = closeSend;
73
+ const st = { v: null, on: new Set(), change: null, msg: '', busy: false, projects: (o.projects || []).filter(Boolean), project: '' };
74
+ const model = () => sendModel(st.v, { group: o.group == null ? null : o.group, ticket: o.ticket || null, projects: st.projects });
75
+ const draw = () => { if (!OPEN || OPEN.el !== el) return; const M = model(); el.innerHTML = sheetHtml(M, st); };
76
+ const read = async (keepTicks) => {
77
+ const v = await pmGet(viewUrl(o.ws, o.initiative));
78
+ if (!v || v.ok !== true) { el.innerHTML = `<p class="tk-note">${esc((v && v.error) || 'The tickets could not be read.')}</p><div class="tk-acts"><button type="button" class="tk-c" data-tk-cancel>Close</button></div>`; return false; }
79
+ st.v = v;
80
+ const M = model();
81
+ const can = new Set(M.sections.flatMap((s) => s.items.filter((i) => i.can).map((i) => i.id)));
82
+ if (!keepTicks) st.on = new Set(M.sections.flatMap((s) => s.items.filter((i) => i.on).map((i) => i.id)));
83
+ else st.on = new Set([...st.on].filter((id) => can.has(id)));
84
+ if (!st.project) st.project = M.project;
85
+ draw();
86
+ return true;
87
+ };
88
+ const setEpic = async (gid, body) => {
89
+ const r = await pmPost('/api/jira/epic', { ws: o.ws, initiative: o.initiative, ...(gid ? { group: gid } : {}), ...body });
90
+ if (!r || r.ok === false) { st.msg = (r && r.error) || 'The epic was not changed.'; draw(); return; }
91
+ st.change = null; st.msg = ''; await read(true);
92
+ };
93
+ el.addEventListener('change', (e) => { if (e.target.matches('[data-tk-project]')) st.project = e.target.value; });
94
+ el.addEventListener('keydown', (e) => {
95
+ if (e.key === 'Escape') { e.stopPropagation(); e.preventDefault(); closeSend(); return; }
96
+ if (e.key === 'Enter' && e.target.matches('[data-tk-key]')) { e.preventDefault(); const b = el.querySelector(`[data-tk-use="${CSS.escape(e.target.dataset.tkKey)}"]`); if (b) b.click(); }
97
+ });
98
+ el.addEventListener('click', async (e) => {
99
+ const b = e.target.closest('button'); if (!b || b.disabled) return;
100
+ const d = b.dataset;
101
+ if ('tkCancel' in d) { closeSend(); return; }
102
+ if (d.tkTick) { if (b.getAttribute('aria-disabled') === 'true') return; if (st.on.has(d.tkTick)) st.on.delete(d.tkTick); else st.on.add(d.tkTick); draw(); const n = el.querySelector(`[data-tk-tick="${CSS.escape(d.tkTick)}"]`); if (n) n.focus(); return; }
103
+ if (d.tkChange != null) { st.change = st.change === d.tkChange ? null : d.tkChange; draw(); const n = el.querySelector('[data-tk-key]'); if (n) n.focus(); return; }
104
+ if (d.tkNew != null) { await setEpic(d.tkNew, { mode: 'new' }); return; }
105
+ if (d.tkUse != null) { const inp = el.querySelector(`[data-tk-key="${CSS.escape(d.tkUse)}"]`); const key = inp ? inp.value.trim() : ''; if (!key) { st.msg = 'Paste the epic\'s Jira link or key, such as IDPF-400.'; draw(); return; } await setEpic(d.tkUse, { mode: 'existing', key }); return; }
106
+ if ('tkGo' in d) {
107
+ const ids = [...st.on]; if (!ids.length) return;
108
+ st.busy = true; st.msg = ''; draw();
109
+ const r = await pmPost('/api/jira/push', { ws: o.ws, initiative: o.initiative, ids, ...(st.project && model().projectFrom !== 'epic' ? { project: st.project } : {}) });
110
+ st.busy = false;
111
+ if (!r || r.ok === false) { st.msg = (r && r.error) || 'Nothing was sent.'; draw(); return; }
112
+ closeSend();
113
+ if (o.toast) o.toast(`Sending ${ids.length === 1 ? 'the ticket' : ids.length + ' tickets'} to Jira. Claude creates ${ids.length === 1 ? 'it' : 'them'} with your Atlassian connection, then reads ${ids.length === 1 ? 'it' : 'them'} back.`);
114
+ if (o.onDone) o.onDone(r);
115
+ }
116
+ });
117
+ if (!st.projects.length && o.board) { // the board's Jira projects, for when no epic key names the project
118
+ const b = await pmGet('/api/boards/items?board=' + encodeURIComponent(o.board) + (o.ws ? '&ws=' + encodeURIComponent(o.ws) : ''));
119
+ if (b && b.ok && Array.isArray(b.jiraProjects)) st.projects = b.jiraProjects.filter(Boolean);
120
+ }
121
+ const ok = await read(false);
122
+ if (ok) { const f = el.querySelector('[data-tk-go]:not([disabled])') || el.querySelector('[data-tk-cancel]'); if (f) f.focus(); }
123
+ return el;
124
+ }
@@ -0,0 +1,120 @@
1
+ /* pm/tk-tasks.css — the PRD-to-Jira tasks (kit 2, T1 to T3): the epic groups (PgTkList, PgTkSent), the drafted ticket (PgTkDraft) and the
2
+ * Send sheet (PgTkSend). Colors come from the cozy tokens (cozy.css), so dark mode follows them. Loaded by home-ini.js and tk-send.js. */
3
+
4
+ /* ── T1 · the epic groups ── */
5
+ .tk-g { display: flex; flex-direction: column; }
6
+ .tk-gh { position: relative; display: flex; align-items: center; }
7
+ .tk-ghb { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin: 6px 0 2px; padding: 0 8px; background: none; border: 0; font: inherit; color: var(--cz-ink); text-align: left; cursor: pointer; border-radius: 12px; }
8
+ .tk-gh.s .tk-ghb { padding-right: 8px; }
9
+ .tk-ghb b { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
10
+ .tk-gh.s .tk-ghb b { padding-right: 44px; }
11
+ .tk-ghb[aria-expanded="false"] b { color: var(--cz-ink2); font-weight: 700; }
12
+ .tk-ghr { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--cz-ink3); }
13
+ .tk-ghb:focus-visible, .tk-snd:focus-visible, .tk-row:focus-visible, .tk-fold:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
14
+ /* the send icon sits before the count, inside the header row (PgTkList .gh .r) */
15
+ .tk-snd { position: absolute; right: 52px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 999px; border: 0; background: none; color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
16
+ .tk-snd:hover { background: var(--cz-well); color: var(--cz-ink); }
17
+ .tk-list { background: var(--cz-card); border-radius: 20px; padding: 2px 0; box-shadow: 0 8px 24px -20px rgba(42, 46, 53, .35); }
18
+ .tk-row { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 14px 6px 12px; background: none; border: 0; font: inherit; color: var(--cz-ink); text-align: left; cursor: pointer; border-radius: 16px; }
19
+ .tk-row + .tk-row::before, .tk-row + .tk-fold::before { content: ""; position: absolute; left: 42px; right: 14px; top: 0; height: 1px; background: var(--cz-hair); }
20
+ .tk-row:hover { background: color-mix(in srgb, var(--cz-well) 45%, var(--cz-card)); }
21
+ .tk-ck { width: 18px; display: inline-flex; justify-content: center; flex: none; }
22
+ .tk-sq { width: 10px; height: 10px; border-radius: 3px; display: block; background: color-mix(in srgb, var(--cz-blue) 30%, var(--cz-card)); }
23
+ .tk-sq.doing { background: var(--cz-blue); }
24
+ .tk-sq.done { background: var(--cz-ok); }
25
+ .tk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
26
+ .tk-t b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
27
+ .tk-t span { font-size: 12.5px; color: var(--cz-ink3); }
28
+ .tk-mk { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
29
+ .tk-mk.warn { background: var(--cz-risk); }
30
+ .tk-mk.info { background: var(--cz-blue); }
31
+ .tk-av { width: 24px; height: 24px; border-radius: 50%; background: var(--cz-well); color: var(--cz-ink2); font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
32
+ .tk-fold { position: relative; display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px 0 42px; background: none; border: 0; font: 600 14px var(--cz-sans); color: var(--cz-ink2); cursor: pointer; text-align: left; justify-content: space-between; border-radius: 16px; }
33
+ .tk-read { margin: 8px 8px 0; font-size: 13px; color: var(--cz-ink3); }
34
+ .tk-card { background: var(--cz-card); border-radius: 20px; padding: 12px 14px; box-shadow: 0 8px 24px -20px rgba(42, 46, 53, .35); }
35
+ .tk-empty { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
36
+ .tk-empty p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--cz-ink2); }
37
+ .hi-v .tk-g.hi-tg { border-radius: 0; }
38
+
39
+ /* ── T2 · one drafted ticket ── */
40
+ .tk-v { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; position: relative; }
41
+ .tk-crumb { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--cz-ink3); }
42
+ .tk-flag { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cz-ink2); }
43
+ .tk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
44
+ .tk-f { background: var(--cz-card); border: 0; border-radius: 14px; padding: 8px 12px; min-height: 52px; display: flex; flex-direction: column; justify-content: center; text-align: left; font: inherit; color: var(--cz-ink); cursor: pointer; box-shadow: 0 8px 24px -20px rgba(42, 46, 53, .35); }
45
+ .tk-f:hover { background: color-mix(in srgb, var(--cz-well) 45%, var(--cz-card)); }
46
+ .tk-f:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
47
+ .tk-fl { font-size: 11px; font-weight: 800; color: var(--cz-ink3); }
48
+ .tk-fv { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
49
+ .tk-fv.mut, .tk-mut { color: var(--cz-ink3); font-weight: 600; }
50
+ .tk-sh { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
51
+ .tk-sh h3 { flex: 1; margin: 0; font-size: 12.5px; font-weight: 800; color: var(--cz-ink3); }
52
+ .tk-sec2 p, .tk-cb2 p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.45; }
53
+ .tk-sec2 ol, .tk-sec2 ul, .tk-cb2 ol, .tk-cb2 ul { margin: 0 0 6px; padding-left: 20px; font-size: 13.5px; line-height: 1.45; }
54
+ .tk-ac { display: flex; gap: 8px; font-size: 13px; line-height: 1.4; padding: 6px 0; border-top: 1px solid var(--cz-hair); }
55
+ .tk-ac:first-of-type { border-top: 0; }
56
+ .tk-ac em { font-style: normal; font-weight: 800; color: var(--cz-ink3); flex: none; }
57
+ .tk-miss { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cz-ink2); }
58
+ .tk-ib { width: 32px; height: 32px; border-radius: 999px; border: 0; background: none; color: var(--cz-ink3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
59
+ .tk-ib:hover { background: var(--cz-well); color: var(--cz-ink); }
60
+ .tk-folds { padding: 0 14px; }
61
+ .tk-coll + .tk-coll { border-top: 1px solid var(--cz-hair); }
62
+ .tk-cr { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0; background: none; border: 0; font: inherit; color: var(--cz-ink); cursor: pointer; text-align: left; }
63
+ .tk-cr b { flex: 1; font-size: 13.5px; font-weight: 700; }
64
+ .tk-cn { font-size: 12px; color: var(--cz-ink3); font-weight: 600; }
65
+ .tk-cr svg { color: var(--cz-ink3); }
66
+ .tk-cb2 { padding: 0 0 10px; }
67
+ .tk-cba { display: flex; justify-content: flex-end; }
68
+ .tk-ed { display: flex; flex-direction: column; gap: 8px; }
69
+ .tk-ed textarea { width: 100%; box-sizing: border-box; min-height: 120px; border: 1px solid var(--cz-hair); border-radius: 12px; padding: 10px 12px; font: 13.5px/1.45 var(--cz-sans); color: var(--cz-ink); background: var(--cz-card); resize: vertical; }
70
+ .tk-eda { display: flex; gap: 8px; }
71
+ .tk-vh { position: absolute; left: -9999px; }
72
+ .tk-fab { position: sticky; bottom: 16px; align-self: flex-end; margin-top: 0; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--cz-solid); color: var(--cz-onsolid); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 14px 34px -12px rgba(42, 46, 53, .45); z-index: 2; }
73
+ .tk-fab:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 3px; }
74
+ .tk-msg { margin: 0; font-size: 13px; color: var(--cz-late); min-height: 0; }
75
+ .tk-msg:empty { display: none; }
76
+
77
+ /* ── T3 · the Send sheet ── */
78
+ .tk-scrim { position: fixed; inset: 0; background: rgba(42, 46, 53, .38); z-index: 1000; }
79
+ .tk-sheet { position: fixed; z-index: 1001; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; box-sizing: border-box;
80
+ background: var(--cz-card); color: var(--cz-ink); border-radius: 28px; padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 14px; font-family: var(--cz-sans); box-shadow: 0 30px 80px -30px rgba(42, 46, 53, .5); }
81
+ .tk-sheet.phone { left: 0; right: 0; bottom: 0; top: auto; transform: none; width: auto; max-height: calc(100vh - 150px); border-radius: 28px 28px 0 0; padding: 10px 18px 20px; }
82
+ .tk-grab { display: none; width: 40px; height: 5px; border-radius: 3px; background: var(--cz-hair); margin: 0 auto 4px; }
83
+ .tk-sheet.phone .tk-grab { display: block; }
84
+ .tk-h { margin: 0; font-size: 19px; font-weight: 800; }
85
+ .tk-note { margin: 0; font-size: 13.5px; color: var(--cz-ink2); }
86
+ .tk-where { background: var(--cz-well); border-radius: 18px; overflow: hidden; }
87
+ .tk-wr { display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 46px; font-size: 13.5px; box-sizing: border-box; }
88
+ .tk-wr + .tk-wr, .tk-where > .tk-wr ~ .tk-wr { border-top: 1px solid var(--cz-hair); }
89
+ .tk-wl { width: 64px; flex: none; font-size: 12px; font-weight: 800; color: var(--cz-ink3); }
90
+ .tk-wv { flex: 1; min-width: 0; font-weight: 700; }
91
+ .tk-wv.mut { color: var(--cz-ink3); font-weight: 600; }
92
+ .tk-sel { flex: 1; font: 700 13.5px var(--cz-sans); color: var(--cz-ink); background: none; border: 0; }
93
+ .tk-chg { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; font: 700 13px var(--cz-sans); color: var(--cz-ink3); cursor: pointer; min-height: 36px; }
94
+ .tk-chgbox { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 12px; }
95
+ .tk-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: 14px; padding: 8px 12px; font: 700 13.5px var(--cz-sans); color: var(--cz-ink); cursor: pointer; }
96
+ .tk-opt.on { border-color: var(--cz-blue); }
97
+ .tk-opt em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--cz-ink3); }
98
+ .tk-fld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 800; color: var(--cz-ink3); }
99
+ .tk-row2 { display: flex; gap: 8px; }
100
+ .tk-fld input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--cz-hair); border-radius: 12px; padding: 0 12px; font: 13.5px var(--cz-sans); color: var(--cz-ink); background: var(--cz-card); }
101
+ .tk-use { height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--cz-solid); color: var(--cz-onsolid); font: 700 13px var(--cz-sans); cursor: pointer; }
102
+ .tk-sec { display: flex; flex-direction: column; gap: 8px; }
103
+ .tk-sn { margin: 0; font-size: 12px; font-weight: 800; color: var(--cz-ink3); }
104
+ .tk-items { display: flex; flex-direction: column; }
105
+ .tk-it { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; background: none; border: 0; border-top: 1px solid var(--cz-hair); font: inherit; color: var(--cz-ink); text-align: left; cursor: pointer; }
106
+ .tk-it:first-child { border-top: 0; }
107
+ .tk-itx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
108
+ .tk-it b { font-size: 13.5px; font-weight: 700; }
109
+ .tk-it[aria-disabled="true"] { cursor: default; color: var(--cz-ink3); }
110
+ .tk-it:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 8px; }
111
+ .tk-why { font-size: 12px; font-weight: 600; color: var(--cz-ink3); }
112
+ .tk-cb { width: 20px; height: 20px; border-radius: 6px; background: var(--cz-solid); color: var(--cz-onsolid); display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; }
113
+ .tk-cb.off { background: transparent; border: 1.5px solid var(--cz-ink3); opacity: .6; }
114
+ .tk-acts { margin-top: auto; display: flex; gap: 8px; }
115
+ .tk-acts button, .tk-go.sm, .tk-c.sm { flex: 1; height: 50px; border-radius: 999px; font: 800 14px var(--cz-sans); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
116
+ .tk-go.sm, .tk-c.sm { flex: none; height: 38px; padding: 0 16px; font-size: 13px; }
117
+ .tk-c { background: var(--cz-card); border: 1px solid var(--cz-hair); color: var(--cz-ink); }
118
+ .tk-go { background: var(--cz-solid); border: 0; color: var(--cz-onsolid); }
119
+ .tk-go:disabled { opacity: .45; cursor: default; }
120
+ .tk-acts button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
@@ -12,6 +12,7 @@
12
12
  <link rel="preload" href="/vendor/nunito-var.woff2" as="font" type="font/woff2" crossorigin />
13
13
  <link rel="stylesheet" href="/pm/cozy.css" />
14
14
  <link rel="stylesheet" href="/pm/cozy-board.css" />
15
+ <link rel="stylesheet" href="/pm/cozy-panel.css" />
15
16
  </head>
16
17
  <body class="cz bd-page">
17
18
  <!-- The Board has no dialog, dock, toast or hero of the old shell: pm/premium-shell.js binds to a detached copy when #dlg is absent. Its panels
@@ -30,12 +31,14 @@
30
31
  <button type="button" class="bd-ib" data-v="time" aria-pressed="false" aria-label="Timeline" title="Timeline"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 6h9M8 12h11M6 18h7"/></svg></button>
31
32
  <button type="button" class="bd-ib" data-v="list" aria-pressed="false" aria-label="List" title="List"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01"/></svg></button>
32
33
  </div>
34
+ <!-- the grouping (PgBoard, PgBoardProduct): programs first, or By product; shown only when a program holds an initiative of this board -->
35
+ <span class="bd-grpw2 bd-hide-s" id="bdGrpw" hidden></span>
33
36
  <span class="bd-vr bd-hide-s"></span>
34
37
  <button type="button" class="bd-ib" id="bdFind" aria-label="Find an initiative or work-item" title="Find an initiative or work-item" aria-haspopup="dialog"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4a7 7 0 1 0 0 14a7 7 0 1 0 0-14M20 20l-4-4"/></svg></button>
35
38
  <button type="button" class="bd-ib bd-show-s" id="bdView" aria-label="Change view" title="Change view"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 5h18v4H3zM3 11h18v4H3zM3 17h12v3H3z"/></svg></button>
36
39
  <button type="button" class="bd-ib" id="bdFilter" aria-label="Filter by owner, kind or sprint" title="Filter by owner, kind or sprint" aria-haspopup="dialog"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16l-6 8v6l-4-2v-4z"/></svg></button>
37
40
  <button type="button" class="bd-ib bd-hide-s" id="bdBell" aria-label="Notifications" title="Notifications" aria-haspopup="dialog"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 16v-5a6 6 0 0 1 12 0v5l2 2H4zM10 21h4"/></svg></button>
38
- <button type="button" class="bd-ib solid" id="newIni" aria-label="New initiative" title="New initiative" aria-haspopup="dialog"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
41
+ <button type="button" class="bd-ib solid" id="newIni" aria-label="New program or initiative" title="New program or initiative" aria-haspopup="menu"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
39
42
  <div class="tools tools-top"><span class="vh" id="snap" role="status">Reading the board</span></div>
40
43
  </div>
41
44
  </div>
@@ -66,7 +69,6 @@
66
69
  <div class="bd-pop bd-pop-xw" id="popRules" role="dialog" aria-labelledby="hRules" hidden></div>
67
70
 
68
71
  <!-- the initiative panel and the Jira ticket panel (a bottom sheet on a phone) -->
69
- <aside class="bd-peek" id="peek" aria-labelledby="pkTitle" hidden></aside>
70
72
  <div class="bd-toast" id="bdToast" role="status" hidden></div>
71
73
  </main>
72
74
  <noscript>This page needs JavaScript.</noscript>
@@ -8226,7 +8226,7 @@ async function handleRequest(req, res) {
8226
8226
  try {
8227
8227
  if (act === 'draft') return answer(jiraTickets.draft(w.root, id));
8228
8228
  if (act === 'edit') return answer(jiraTickets.edit(w.root, id, String(body.id || ''), body.patch));
8229
- if (act === 'epic') return answer(jiraTickets.setEpic(w.root, id, { mode: body.mode, key: body.key }));
8229
+ if (act === 'epic') return answer(jiraTickets.setEpic(w.root, id, { mode: body.mode, key: body.key, group: body.group == null ? null : String(body.group) }));
8230
8230
  if (act === 'prd') return answer(jiraTickets.resolvePrd(w.root, id, String(body.id || ''), String(body.use || '')));
8231
8231
  const start = (skill, name, origin, ask, map) => {
8232
8232
  const task = taskById(skill, w.root);
@@ -8242,7 +8242,9 @@ async function handleRequest(req, res) {
8242
8242
  const ids = Array.isArray(body.ids) ? body.ids.map(String).slice(0, 200) : [];
8243
8243
  const r = jiraTickets.approve(w.root, id, ids);
8244
8244
  if (!r.ok) return answer(r);
8245
- return start('jira-push', 'Push to Jira', 'jira:push', `\n\nThis push:\n- initiative: ${id}\n- tickets: ${r.approved.join(', ')}`, jiraPushSessions);
8245
+ // the Send sheet names the Jira project when no epic key does (the board's project, T3); the session uses it
8246
+ const project = /^[A-Z][A-Z0-9_]{0,30}$/.test(String(body.project || '')) ? String(body.project) : '';
8247
+ return start('jira-push', 'Push to Jira', 'jira:push', `\n\nThis push:\n- initiative: ${id}\n- tickets: ${r.approved.join(', ')}${project ? `\n- project: ${project}` : ''}`, jiraPushSessions);
8246
8248
  }
8247
8249
  if (busy(jiraCheckSessions)) return json(res, { ok: false, error: 'a check is already running for this initiative' }, 409);
8248
8250
  const q = jiraStatus.queryFor(w.root, id);
@@ -22,9 +22,9 @@ Rules that always hold:
22
22
 
23
23
  Procedure:
24
24
  1. Take the initiative from the task ("This push: initiative …"), else ask the PM. Run `pmos jira pending <initiative> --json`. If it lists nothing to create or update, say so under "Needs you" and stop.
25
- 2. Find the Jira project: the project of the epic key when the plan names one. Otherwise ask the PM for the project key before you create anything.
26
- 3. If the plan's epic has no key, create the epic from `epic.create`. Then run `pmos jira record <initiative> --epic <KEY>`.
27
- 4. For each ticket under `create`: create it in that project with its summary, description, issue type, priority and labels, as a child of the epic (the parent field). If the project has no such issue type or priority, use the nearest one and say which under "Needs you". Then run `pmos jira record <initiative> <ticket>=<KEY>`, for example `pmos jira record checkout TD-01=ATL-491`.
25
+ 2. Find the Jira project: the project of an epic key the plan names; else the project the task names ("- project: …", from the Send sheet). Otherwise ask the PM for the project key before you create anything.
26
+ 3. Create the epics that have no key. For each entry of `epics` with no key, create the epic from its `create`, then run `pmos jira record <initiative> --epic <KEY> --group <group>`. If the plan's `epic` is not null and has no key, create it from `epic.create`, then run `pmos jira record <initiative> --epic <KEY>`. An initiative can have several epics: one per epic group of its PRD.
27
+ 4. For each ticket under `create`: create it in that project with its summary, description, issue type, priority and labels, as a child of its epic (the parent field). Its epic is `parent` when that is set; else the epic you created for its `epic_group`; else the plan's `epic`. If the project has no such issue type or priority, use the nearest one and say which under "Needs you". Then run `pmos jira record <initiative> <ticket>=<KEY>`, for example `pmos jira record checkout TD-01=ATL-491`.
28
28
  5. For each ticket under `update`: update its summary, description, issue type and priority in Jira. Then run `pmos jira record <initiative> --updated <ticket>[,<ticket>]`.
29
29
  6. For each pushed ticket with `blocked_by`: link it as "is blocked by" each key there. A `blocked_by` entry with no key is a ticket not in Jira yet: skip it and say so under "Not sent".
30
30
  7. Run `pmos jira pending <initiative>` again. It must list nothing to create or update. If it does, report what is left.
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "program-hierarchy P4 P6 P8: programs on the Board's stage track, By product, Kanban, timeline and List (canvas PgBoard, PgBoardProduct, PgKanban, PgTimeline, PgList).",
3
+ "panels": [
4
+ "board-programs-test.js"
5
+ ],
6
+ "seconds": {
7
+ "board-programs-test.js": 60
8
+ }
9
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "_comment": "prd-to-jira (kit 2, T1 to T3 of the program-hierarchy PRD): the initiative's Tasks grouped by the epic each ticket goes into, a drafted ticket in the team's template, and the Send to Jira sheet. tk-model.test.js is the pure model (public/pm/tk-model.js) on a view lib/jira-tickets.js builds; tk-tasks-test.js runs Home's Tasks, the draft, the sheet and the Board's Commit row in a browser. Several epics per initiative in lib/jira-tickets.js run in jira-wbs.test.js.",
3
+ "modules": ["tk-model.test.js"],
4
+ "panels": ["tk-tasks-test.js"],
5
+ "seconds": { "tk-model.test.js": 2, "tk-tasks-test.js": 40 }
6
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "_comment": "program-hierarchy: the program model (pure, node) and the O1 overlay proof that Insights, the weekly update and sprints count as before.",
3
+ "modules": [
4
+ "program-model.test.js",
5
+ "program-overlay.test.js"
6
+ ],
7
+ "seconds": {
8
+ "program-model.test.js": 1,
9
+ "program-overlay.test.js": 1
10
+ }
11
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "program-hierarchy P5, P9, B1: the program panel and the side panel's 60 % width on the Board (canvas PgProgram, PgMilestones, XnAgBoardPanel).",
3
+ "panels": [
4
+ "program-panel-test.js"
5
+ ],
6
+ "seconds": {
7
+ "program-panel-test.js": 30
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Viewer kit: the pinned recording row and @Mentions at the top of Home, and the Mentions Viewer (home-mentions.js, home-rec-row.js; canvas XvANew, XvAMention*, XvARecHome). A browser suite.",
3
+ "panels": [
4
+ "home-rows-test.js"
5
+ ],
6
+ "seconds": {
7
+ "home-rows-test.js": 40
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Viewer kit build, meetings (XvAReplayEdit, XvAMaterial, XvARecHome): corrections and what PMOS learns (lib/meeting-learn.js), uploaded material (lib/meeting-files.js, POST/GET /api/meeting-material/file), unconfirmed captures never counted as facts (confirmedPoints), one recording state (pm/rec-state.js) and the material row. The pages run in premium-vw-meet-test.js.",
3
+ "modules": [
4
+ "viewer-meetings.test.js"
5
+ ],
6
+ "seconds": {
7
+ "viewer-meetings.test.js": 2
8
+ }
9
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "_comment": "viewer-shell-a: Your day in the Viewer (pure, node), Discuss in chat landing from the shell, and the loose chat's initiative suggestion.",
3
+ "modules": [
4
+ "home-day.test.js"
5
+ ],
6
+ "panels": [
7
+ "premium-discuss-landing-test.js",
8
+ "premium-link-suggest-test.js"
9
+ ],
10
+ "seconds": {
11
+ "home-day.test.js": 1,
12
+ "premium-discuss-landing-test.js": 30,
13
+ "premium-link-suggest-test.js": 30
14
+ }
15
+ }