create-pmos 0.443.0 → 0.444.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/package.json +13 -13
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/briefing-premium-board-test.js +8 -2
  7. package/workspace/briefing-premium-insights-test.js +40 -38
  8. package/workspace/briefing-premium-test.js +2 -1
  9. package/workspace/changelog.json +12 -0
  10. package/workspace/goals-clear-ui-test.js +34 -20
  11. package/workspace/guide/home.md +5 -0
  12. package/workspace/intel-report-ui-test.js +1 -1
  13. package/workspace/lib/board-premium.js +1 -1
  14. package/workspace/lib/engine/boards.js +9 -2
  15. package/workspace/lib/routes-boards.js +40 -1
  16. package/workspace/live-pill-round-test.js +178 -0
  17. package/workspace/okr-goals-ui-test.js +21 -19
  18. package/workspace/package-lock.json +2 -2
  19. package/workspace/package.json +1 -1
  20. package/workspace/panels-test.js +231 -0
  21. package/workspace/premium-rec-tab-test.js +2 -1
  22. package/workspace/premium-vw-item-test.js +10 -2
  23. package/workspace/premium-vw-jira-test.js +3 -0
  24. package/workspace/public/pm/bd-ini-panel.js +3 -2
  25. package/workspace/public/pm/cozy-adler.js +21 -0
  26. package/workspace/public/pm/cozy-divider.css +32 -0
  27. package/workspace/public/pm/cozy-divider.js +45 -0
  28. package/workspace/public/pm/cozy-insights.css +14 -0
  29. package/workspace/public/pm/cozy-live-pill.css +16 -22
  30. package/workspace/public/pm/cozy-live-pill.js +28 -17
  31. package/workspace/public/pm/cozy-panels.css +59 -0
  32. package/workspace/public/pm/cozy-panels.js +524 -0
  33. package/workspace/public/pm/cozy-viewer.js +146 -70
  34. package/workspace/public/pm/goals-clear.js +9 -2
  35. package/workspace/public/pm/home-app.js +22 -11
  36. package/workspace/public/pm/home-ini.js +9 -3
  37. package/workspace/public/pm/home-today.js +4 -2
  38. package/workspace/public/pm/ini-edit.js +401 -0
  39. package/workspace/public/pm/ini-tasks.js +42 -18
  40. package/workspace/public/pm/ini-versions.js +18 -4
  41. package/workspace/public/pm/ini-view-model.js +8 -4
  42. package/workspace/public/pm/ini-view.css +88 -1
  43. package/workspace/public/pm/ini-view.js +42 -11
  44. package/workspace/public/pm/premium-board.js +8 -6
  45. package/workspace/public/pm/premium-insights.js +205 -43
  46. package/workspace/public/pm/task-card.css +2 -0
  47. package/workspace/public/pm/task-card.js +4 -1
  48. package/workspace/stage-card-tasks-test.js +396 -0
  49. package/workspace/stage-card-test.js +1 -1
  50. package/workspace/task-delete-test.js +9 -1
  51. package/workspace/task-milestones-test.js +3 -3
  52. package/workspace/task-press-test.js +12 -4
  53. package/workspace/task-views-test.js +8 -4
  54. package/workspace/test-lists/batch18-live-pill-round.json +10 -0
  55. package/workspace/test-lists/batch18-panels.json +9 -0
  56. package/workspace/test-lists/stage-card-tasks.json +6 -0
@@ -1,12 +1,15 @@
1
- /* pm/cozy-live-pill.js — the Live pill beside the floating menu on every page (batch 6 item 2; canvas XrrABoard, XrrAHome, XrrAPhone,
2
- * XrrAPhoneClosed, XrrAGrill). It replaces the recording pill (cozy-rec-pill.js): a recording is now its first row.
1
+ /* pm/cozy-live-pill.js — the Live pill above the floating menu on every page (batch 6 item 2; canvas XrrABoard, XrrAHome, XrrAPhone,
2
+ * XrrAPhoneClosed, XrrAGrill; made a round button by batch 18 item 15, canvas TbT1Split, TbT4Off). It replaces the recording pill
3
+ * (cozy-rec-pill.js): a recording is now its first row.
3
4
  *
4
- * Closed, it is one quiet pill with one mark per live item, in the list's order: a blue dot asks you, a ring is running, amber stopped,
5
- * a check finished and not read yet; a recording leads with its red dot and clock (grey and still while paused). No counts and no words:
6
- * its name says them (live-model.js pillLabel). A press, or Ctrl J (⌘J) on any page, opens one short list of the 5 or fewer things the
7
- * PM touched last, newest first (a popover over the menu button on a desktop, a sheet on a phone). A row opens that chat on Home; on
8
- * Home itself it opens in place (opts.go). While the list is open the rows keep their places: only a mark changes, with one info ripple.
9
- * ↑ ↓ move, Enter opens, Esc closes, 1 to 5 open a row. Nothing live: no pill (zero is silence). On a phone it hides with the menu
5
+ * Closed, it is one 44 px round button stacked above the menu button, with the NUMBER of live items in it and no marks. It turns blue with
6
+ * a soft glow when Claude asks you; a recording gives it a red corner dot (grey while paused), and the meeting clock moves to its tooltip
7
+ * and the list. Its name says the rest (live-model.js pillLabel). A press, or Ctrl J (⌘J) on any page, opens one short list of the 5 or
8
+ * fewer things the PM touched last, newest first (a popover over the menu button on a desktop, a sheet on a phone). A row opens that chat
9
+ * on Home; on Home itself it opens in place (opts.go). Where the panels engine runs (window.czPanels, pm/cozy-panels.js, batch 18 item 15)
10
+ * a row goes to czPanels.slideOver(item) first, which floats the chat over the Viewer (false: it did nothing, and today's open follows);
11
+ * the engine also drags a row (a[data-lv]) to a screen edge to open beside. While the list is open the rows keep their places: only a mark changes, with one info
12
+ * ripple. ↑ ↓ move, Enter opens, Esc closes, 1 to 5 open a row. Nothing live: no pill (zero is silence). On a phone it hides with the menu
10
13
  * button while the keyboard is up.
11
14
  *
12
15
  * mountLivePill(doc = document, opts) once per page, after mountNav: the pill lives inside #czNav, so it hides whenever the menu hides
@@ -14,8 +17,8 @@
14
17
  * opts.open() → id the session open on this page now: its row is tinted
15
18
  * Reads GET /api/live every 10 s while the page is shown, and on the cz:live event (Home sends it after the PM opens or answers a
16
19
  * session); the recording comes from pm/rec-state.js. Nothing is written.
17
- * Adler (batch 17 item 4-B, AdM1 "Live recording pill", AdH5): while a meeting records, his S face with headphones follows the clock in the
18
- * pill. The red dot stays: the face never replaces the row's mark. Paused, he is not shown (nobody is listening). */
20
+ * Adler (batch 17 item 4-B, AdM1 "Live recording pill", AdH5): while a meeting records, his S face with headphones follows the clock, now in
21
+ * the recording's row. The red dot stays: the face never replaces the row's mark. Paused, he is not shown (nobody is listening). */
19
22
  import { onRecording } from './rec-state.js';
20
23
  import { ownTab, bring } from './rec-tab-core.js';
21
24
  import { liveItems, keepOrder, pillLabel, rowLabel, clock, elapsed } from './live-model.js';
@@ -56,7 +59,11 @@ export function mountLivePill(doc = document, opts = {}) {
56
59
  const x = L.shown.find((i) => i.id === a.dataset.lv);
57
60
  // the recording: its snippet only shows; a press brings the recording tab forward (rec-tab-core.js), where the meeting is controlled
58
61
  if (x && x.kind === 'rec' && !(e && (e.metaKey || e.ctrlKey || e.shiftKey)) && ownTab() && bring(x.href)) { if (e) e.preventDefault(); set(false); return; }
59
- if (x && opts.go && !(e && (e.metaKey || e.ctrlKey || e.shiftKey)) && opts.go(x)) { if (e) e.preventDefault(); set(false); return; }
62
+ const plain = !(e && (e.metaKey || e.ctrlKey || e.shiftKey));
63
+ // the panels engine (batch 18 item 15): the row's chat slides over the Viewer; the engine calls the page's own go(item) itself
64
+ const P = typeof window !== 'undefined' ? window.czPanels : null;
65
+ if (x && plain && P && typeof P.slideOver === 'function' && P.slideOver(x) !== false) { if (e) e.preventDefault(); set(false); return; } // false: it did nothing
66
+ if (x && opts.go && plain && opts.go(x)) { if (e) e.preventDefault(); set(false); return; }
60
67
  set(false); // the link is followed
61
68
  }
62
69
  function rowsHtml(list) {
@@ -65,14 +72,17 @@ export function mountLivePill(doc = document, opts = {}) {
65
72
  return `<a class="lv-row${x.open ? ' cur' : ''}" href="${esc(x.href)}" data-lv="${esc(x.id)}" aria-label="${esc(rowLabel(x))}" aria-keyshortcuts="${i + 1}">`
66
73
  + `<span class="lv-mk">${x.kind === 'rec' ? `<i class="lv-m rec${x.paused ? ' paused' : ''}"></i>` : markHtml(x.mark, once)}</span>`
67
74
  + `<span class="lv-t">${esc(x.name)}<small>${esc(x.sub)}</small></span>${wedgeHtml(x.ctx)}`
75
+ + (x.kind === 'rec' && !x.paused ? `<span class="lv-ad">${adler('thinking', 18, { label: false, prop: 'headphones', id: 'lvrec' })}</span>` : '')
68
76
  + `<span class="lv-tm${x.kind === 'rec' && !x.paused ? ' rec' : x.mark === 'stop' ? ' stop' : ''}">${esc(x.time)}</span></a>`;
69
77
  }).join('');
70
78
  }
79
+ // the closed pill: the number of live items, and a red corner dot while a meeting records (grey while paused); no marks, no clock
71
80
  function pillHtml(list) {
72
- const r = list.find((x) => x.kind === 'rec'), rest = list.filter((x) => x.kind !== 'rec');
73
- return (r ? `<span class="lv-g"><i class="lv-m rec${r.paused ? ' paused' : ''}"></i><span class="lv-tm${r.paused ? '' : ' rec'}">${esc(r.time)}</span>${r.paused ? '' : `<span class="lv-ad">${adler('thinking', 18, { label: false, prop: 'headphones', id: 'lvrec' })}</span>`}</span>${rest.length ? '<span class="lv-sp"></span>' : ''}` : '')
74
- + (rest.length ? `<span class="lv-ms">${rest.map((x) => markHtml(x.mark, false)).join('')}</span>` : '');
81
+ const r = list.find((x) => x.kind === 'rec');
82
+ return `<span class="lv-n">${list.length}</span>` + (r ? `<i class="lv-rd${r.paused ? ' paused' : ''}" aria-hidden="true"></i>` : '');
75
83
  }
84
+ // the tooltip: the meeting clock first while one records, then the key
85
+ const tipOf = (list) => { const r = list.find((x) => x.kind === 'rec'); return (r ? (r.paused ? 'Recording paused ' : 'Recording ') + r.time + ' · ' : '') + 'Now ' + (mac() ? '⌘J' : 'Ctrl J'); };
76
86
  function draw() {
77
87
  if (!pill) return;
78
88
  const now = items();
@@ -81,9 +91,10 @@ export function mountLivePill(doc = document, opts = {}) {
81
91
  if (L.open && !list.length) { set(false); return; }
82
92
  pill.hidden = !now.length && !L.open;
83
93
  pill.classList.toggle('recp', now.some((x) => x.kind === 'rec' && !x.paused));
94
+ pill.classList.toggle('asks', now.some((x) => x.mark === 'ask'));
84
95
  pill.setAttribute('aria-label', pillLabel(now, { mac: mac() }));
85
- pill.title = 'Now ' + (mac() ? '⌘J' : 'Ctrl J');
86
- pill.innerHTML = pillHtml(now);
96
+ pill.title = tipOf(now);
97
+ const h = pillHtml(now); if (pill.__h !== h) { pill.__h = h; pill.innerHTML = h; }
87
98
  if (L.open) {
88
99
  const f = doc.activeElement && tray.contains(doc.activeElement) ? doc.activeElement.dataset.lv : null;
89
100
  tray.innerHTML = rowsHtml(list);
@@ -113,7 +124,7 @@ export function mountLivePill(doc = document, opts = {}) {
113
124
  // the meeting clock ticks once a second while a recording runs; nothing else moves
114
125
  function tickRec(list) {
115
126
  const run = list.some((x) => x.kind === 'rec' && !x.paused);
116
- if (run && !L.tick) L.tick = setInterval(() => { if (!doc.hidden) { const t = clock(elapsed(L.rec)); pill.querySelectorAll('.lv-g .lv-tm').forEach((n) => { n.textContent = t; }); const r = tray.querySelector('[data-lv^="rec:"] .lv-tm'); if (r) r.textContent = t; } }, 1000);
127
+ if (run && !L.tick) L.tick = setInterval(() => { if (!doc.hidden) { const t = clock(elapsed(L.rec)); pill.title = 'Recording ' + t + ' · Now ' + (mac() ? '⌘J' : 'Ctrl J'); const r = tray.querySelector('[data-lv^="rec:"] .lv-tm'); if (r) r.textContent = t; } }, 1000);
117
128
  else if (!run && L.tick) { clearInterval(L.tick); L.tick = null; }
118
129
  }
119
130
  async function read() {
@@ -0,0 +1,59 @@
1
+ /* pm/cozy-panels.css — the panels' layout (batch 18 item 15, build 15-A; cozy-panels.js). Structure only: the divider's look is
2
+ * cozy-divider.css (build 15-B). Colours come from the tokens in cozy.css, so light and dark follow them. */
3
+
4
+ /* the desk's order: the list, then the panels and the dividers between them */
5
+ body.cz-pn #hmList { order: -1; }
6
+
7
+ /* a divider is a 0-wide item in the desk's 22 px gap: its middle is the gap's middle; the hit area is 20 px wide and the full height */
8
+ .cz-pn-div { position: relative; flex: 0 0 0px; align-self: stretch; margin: 0 -11px; z-index: 6; outline: none; touch-action: none; cursor: col-resize; }
9
+ .cz-pn-div::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; width: 20px; }
10
+ .cz-pn-div::after { content: ""; position: absolute; top: 8px; bottom: 8px; left: -1px; width: 2px; border-radius: 1px; background: var(--cz-blue); opacity: 0; }
11
+ .cz-pn-div.drag::after { opacity: 1; }
12
+ .cz-pn-div:focus-visible::after { opacity: .6; }
13
+ .cz-pn-in { position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
14
+ body.cz-pn-drag, body.cz-pn-drag * { cursor: col-resize !important; user-select: none !important; }
15
+ /* the Viewer's own grip is the divider's job on a page with panels */
16
+ body.cz-pn .hm-vw .cz-vw-grip { display: none; }
17
+ /* the Viewer lying over the chat in a narrow window (cz-vw-over) has no divider */
18
+ body.cz-vw-over .cz-pn-div { display: none; }
19
+
20
+ /* laid out here: the Viewer host steps aside, so the chat and each Viewer are items of the desk, sized by their share */
21
+ body.cz-pn-man .hm-vw { display: contents; }
22
+ body.cz-pn-man .cz-pn-row { min-width: 0; }
23
+ body.cz-pn-man .hm-vw .cz-vw.cz-pn-row { width: auto !important; }
24
+ .cz-pn-away { display: none !important; }
25
+ .cz-pn-shut { opacity: .45; transition: opacity .12s; }
26
+
27
+ /* slide over (TbT3Over, TbT3bViewerOver): one panel floats over the right side, lifted and rounded, with a grab bar on top */
28
+ .cz-pn-over { position: absolute !important; top: 12px; right: 12px; bottom: 12px; z-index: 40; margin: 0 !important; box-sizing: border-box; border-radius: 22px; background: var(--cz-card); box-shadow: var(--cz-sheet), 0 0 0 1px var(--cz-hair); animation: cz-pn-in .2s ease-out; }
29
+ .hm-chat.cz-pn-over, body.cz-home .hm-chat.cz-pn-over { width: 400px; padding: 28px 16px 16px; }
30
+ .cz-vw.cz-pn-over { width: 560px !important; flex: none !important; }
31
+ .cz-pn-moving { transition: none !important; animation: none; }
32
+ @keyframes cz-pn-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
33
+ .cz-pn-grab { position: absolute; top: 0; left: 50%; width: 80px; height: 22px; margin-left: -40px; display: grid; place-items: center; cursor: grab; touch-action: none; z-index: 6; }
34
+ .cz-pn-grab i { width: 40px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--cz-ink3) 45%, transparent); }
35
+ .cz-pn-grab:hover i { background: var(--cz-ink3); }
36
+
37
+ /* the chat's own ⧉ and × (TbT1Split), top right of the chat while a Viewer is open */
38
+ .cz-pn-ct { position: absolute; top: 0; right: 0; z-index: 5; display: flex; gap: 2px; }
39
+ body.cz-home .hm-chat > .cz-pn-ct { top: 16px; right: 16px; }
40
+ body.cz-home .hm-chat.cz-pn-over > .cz-pn-ct { top: 12px; right: 12px; }
41
+ body.cz-pn-ctl .hm-chd { padding-right: 96px; }
42
+ body.cz-pn-ctl .hm-chat > .hm-reopen { display: none; }
43
+
44
+ /* the ⧉ menu (TbT7Place): Full screen, Split, Slide over, three 44 px icons */
45
+ .cz-pn-menu { position: fixed; z-index: 90; display: flex; gap: 4px; padding: 6px; border-radius: 18px; background: var(--cz-card); border: 1px solid var(--cz-hair); box-shadow: var(--cz-sheet); }
46
+ .cz-pn-menu button { width: 44px; height: 44px; border: 0; border-radius: 12px; display: grid; place-items: center; background: none; color: var(--cz-ink2); cursor: pointer; padding: 0; }
47
+ .cz-pn-menu button:hover { background: var(--cz-well); }
48
+ .cz-pn-menu button[aria-checked="true"] { background: var(--cz-bluebg); color: var(--cz-blueink); }
49
+ .cz-pn-menu button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
50
+
51
+ /* open beside (TbT5DragRow): the row follows the pointer, and the half it will take turns blue */
52
+ .cz-pn-ghost { position: fixed; z-index: 92; pointer-events: none; max-width: 260px; padding: 10px 14px; border-radius: 14px; background: var(--cz-card); color: var(--cz-ink); box-shadow: var(--cz-sheet); font: 600 var(--fs-3, 14px)/1.25 var(--cz-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
53
+ .cz-pn-drop { position: fixed; z-index: 91; pointer-events: none; box-sizing: border-box; border-radius: 22px; background: color-mix(in srgb, var(--cz-blue) 12%, transparent); box-shadow: inset 0 0 0 2px var(--cz-blue); }
54
+ .cz-pn-drop[hidden] { display: none; }
55
+ body.cz-pn-dragrow, body.cz-pn-dragrow * { user-select: none !important; cursor: grabbing !important; }
56
+
57
+ @media (prefers-reduced-motion: reduce) { .cz-pn-over { animation: none; } .cz-pn-shut { transition: none; } }
58
+ /* a phone keeps today's one panel: nothing here applies */
59
+ @media (max-width: 760px) { .cz-pn-div, .cz-pn-ct, .cz-pn-grab { display: none !important; } }