create-pmos 0.398.0 → 0.399.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 (126) 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-adddoc-test.js +18 -14
  7. package/workspace/briefing-premium-board-test.js +80 -48
  8. package/workspace/briefing-premium-calendar-2-test.js +36 -36
  9. package/workspace/briefing-premium-calendar-3-test.js +39 -39
  10. package/workspace/briefing-premium-calendar-test.js +23 -24
  11. package/workspace/briefing-premium-doc-edit-test.js +6 -2
  12. package/workspace/briefing-premium-initiative-test.js +38 -16
  13. package/workspace/briefing-premium-insights-test.js +114 -37
  14. package/workspace/briefing-premium-metrics-test.js +6 -4
  15. package/workspace/briefing-premium-products-test.js +10 -7
  16. package/workspace/briefing-premium-sources-test.js +25 -22
  17. package/workspace/briefing-premium-test.js +46 -42
  18. package/workspace/briefing-premium-work-test.js +9 -9
  19. package/workspace/changelog.json +12 -0
  20. package/workspace/ev-everywhere-test.js +210 -0
  21. package/workspace/fixtures/premium-viewer-fixtures.js +11 -6
  22. package/workspace/guide/home.md +39 -18
  23. package/workspace/guide/index.md +1 -1
  24. package/workspace/lib/board-grill.js +63 -0
  25. package/workspace/lib/board-premium.js +36 -5
  26. package/workspace/lib/initiative-layout.js +77 -0
  27. package/workspace/lib/insights-premium.js +3 -2
  28. package/workspace/lib/insights-records.js +21 -7
  29. package/workspace/lib/meeting-points.js +52 -0
  30. package/workspace/lib/news-for-you.js +88 -0
  31. package/workspace/lib/notes-series.js +29 -6
  32. package/workspace/lib/report-confirm.js +48 -0
  33. package/workspace/lib/route-modules.js +8 -0
  34. package/workspace/lib/routes-board-docs.js +46 -0
  35. package/workspace/lib/routes-board-grill.js +90 -0
  36. package/workspace/lib/routes-home-review.js +108 -0
  37. package/workspace/lib/routes-initiative-layout.js +57 -0
  38. package/workspace/lib/routes-insights-premium.js +4 -1
  39. package/workspace/lib/routes-insights-records.js +8 -4
  40. package/workspace/lib/routes-meeting-points.js +37 -0
  41. package/workspace/lib/routes-news.js +57 -0
  42. package/workspace/lib/routes-notes.js +2 -1
  43. package/workspace/lib/routes-report-confirm.js +31 -0
  44. package/workspace/lib/routes-search.js +38 -0
  45. package/workspace/lib/search-index.js +176 -0
  46. package/workspace/package-lock.json +2 -2
  47. package/workspace/package.json +1 -1
  48. package/workspace/premium-board-actions-test.js +86 -50
  49. package/workspace/premium-briefing-depth-test.js +55 -54
  50. package/workspace/premium-chat-chart-tab-test.js +4 -2
  51. package/workspace/premium-chat-report-tab-test.js +16 -2
  52. package/workspace/premium-core-doc-issue-test.js +15 -13
  53. package/workspace/premium-phone-card-test.js +5 -3
  54. package/workspace/premium-report-read-test.js +55 -18
  55. package/workspace/premium-vw-backlog-test.js +2 -2
  56. package/workspace/premium-vw-cal-test.js +50 -35
  57. package/workspace/premium-vw-doc-test.js +9 -3
  58. package/workspace/premium-vw-item-test.js +1 -1
  59. package/workspace/premium-vw-jira-test.js +2 -2
  60. package/workspace/premium-vw-meet-test.js +37 -40
  61. package/workspace/premium-vw-notes-test.js +21 -19
  62. package/workspace/premium-vw-rec-test.js +11 -12
  63. package/workspace/premium-welcome-test.js +3 -3
  64. package/workspace/premium-work-depth-test.js +3 -3
  65. package/workspace/public/pm/bd-acts.js +303 -225
  66. package/workspace/public/pm/bd-asks.js +261 -0
  67. package/workspace/public/pm/bd-pop.js +59 -0
  68. package/workspace/public/pm/bd-span.js +49 -13
  69. package/workspace/public/pm/bd-views.js +169 -0
  70. package/workspace/public/pm/cozy-board.css +301 -0
  71. package/workspace/public/pm/cozy-ev.css +228 -0
  72. package/workspace/public/pm/cozy-evmodel.js +106 -0
  73. package/workspace/public/pm/cozy-evui.js +47 -0
  74. package/workspace/public/pm/cozy-insights.css +148 -10
  75. package/workspace/public/pm/cozy-nav.js +103 -39
  76. package/workspace/public/pm/cozy-news.js +140 -0
  77. package/workspace/public/pm/cozy-search.js +203 -0
  78. package/workspace/public/pm/cozy-settings.js +198 -0
  79. package/workspace/public/pm/cozy-sources.js +89 -0
  80. package/workspace/public/pm/cozy-today.css +217 -0
  81. package/workspace/public/pm/cozy-viewer.js +1 -0
  82. package/workspace/public/pm/cozy-vw-mtg.css +350 -0
  83. package/workspace/public/pm/cozy-vw-rp.css +152 -0
  84. package/workspace/public/pm/home-adddoc.js +5 -5
  85. package/workspace/public/pm/home-app.js +329 -55
  86. package/workspace/public/pm/home-around.js +24 -126
  87. package/workspace/public/pm/home-chat.js +67 -14
  88. package/workspace/public/pm/home-data.js +6 -6
  89. package/workspace/public/pm/home-dictate.js +54 -0
  90. package/workspace/public/pm/home-draft.js +6 -6
  91. package/workspace/public/pm/home-ini-model.js +190 -0
  92. package/workspace/public/pm/home-ini.css +171 -0
  93. package/workspace/public/pm/home-ini.js +456 -0
  94. package/workspace/public/pm/home-list.js +276 -0
  95. package/workspace/public/pm/home-more.js +17 -134
  96. package/workspace/public/pm/home-phone-card.js +4 -4
  97. package/workspace/public/pm/home-review.js +104 -0
  98. package/workspace/public/pm/home-task.js +67 -0
  99. package/workspace/public/pm/home-today.js +144 -0
  100. package/workspace/public/pm/home-work.js +54 -26
  101. package/workspace/public/pm/premium-board.js +163 -39
  102. package/workspace/public/pm/premium-chart-tab.js +4 -5
  103. package/workspace/public/pm/premium-first.js +5 -7
  104. package/workspace/public/pm/premium-insights.js +499 -202
  105. package/workspace/public/pm/premium-mtg-present.js +138 -0
  106. package/workspace/public/pm/premium-mtg-replay.js +142 -0
  107. package/workspace/public/pm/premium-report-read.js +216 -52
  108. package/workspace/public/pm/premium-report-tab.js +44 -19
  109. package/workspace/public/pm/premium-shell.js +7 -7
  110. package/workspace/public/pm/premium-vw-cal.js +150 -60
  111. package/workspace/public/pm/premium-vw-mtg.js +488 -261
  112. package/workspace/public/pm/premium-vw-notes.js +61 -0
  113. package/workspace/public/pm/rp-parts.js +269 -0
  114. package/workspace/public/premium-board.html +4 -3
  115. package/workspace/public/premium-insights.html +10 -10
  116. package/workspace/public/premium.html +3 -1
  117. package/workspace/r/m1.png +0 -0
  118. package/workspace/r/m2.png +0 -0
  119. package/workspace/r/m3.png +0 -0
  120. package/workspace/r/nl.png +0 -0
  121. package/workspace/test-lists/initiative-layout.json +9 -0
  122. package/workspace/test-lists/premium-uncovered-meetings.json +9 -0
  123. package/workspace/test-lists/premium-uncovered-reports.json +9 -0
  124. package/workspace/test-lists/uf-everywhere.json +15 -0
  125. package/workspace/test-lists/uf-home.json +9 -0
  126. package/workspace/test-lists/uncovered-board.json +9 -0
@@ -42,28 +42,28 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
42
42
  /* R1 Record: a meeting on now with no note */
43
43
  const A = await F.open(browser, BASE, '/premium-viewer.html?open=meeting&event=ev-live&date=' + F.dayKey(W.LIVE), { noLive: true });
44
44
  const p = A.page;
45
- ok('R1 a meeting on now with no note shows Record in its head', await until(() => p.evaluate(() => (document.querySelector('#czViewer .vz-pri') || {}).dataset && document.querySelector('#czViewer .vz-pri').dataset.k === 'record'), 15000));
45
+ ok('R1 a meeting on now with no note shows Record in its head', await until(() => p.evaluate(() => !!document.querySelector('#czViewer .vzm-hc [data-a="record"]')), 15000));
46
46
  await tap(p, '[data-a="record"]');
47
47
  ok('R1 Record asks first: tell everyone, then start', await until(async () => /Tell everyone first/.test(await text(p)) && !!(await p.$('#czViewer [data-a="recgo"]'))));
48
48
  ok('R1 nothing is made before the second press', posted(A.S, '/api/notes/new').length === 0);
49
49
  await tap(p, '[data-a="recgo"]');
50
50
  ok('R1 I told them, start makes the note and starts the recorder', await until(() => posted(A.S, '/api/notes/new').length === 1 && posted(A.S, '/api/notes/record').length === 1), JSON.stringify(A.S.posts.map((x) => x.path)));
51
- ok('R1 the card turns live: Recording, with Stop', await until(async () => (await p.textContent('#czViewer .vz-chip')) === 'Recording' && !!(await p.$('#czViewer .vz-pri[data-k="stop"]'))), 12000);
51
+ ok('R1 the card turns live: Recording, with Stop', await until(async () => (await p.textContent('#czViewer .vzm-state')) === 'Recording' && !!(await p.$('#czViewer .vzm-rec [data-a="stop"]')), 12000));
52
52
 
53
53
  /* R2 Highlight */
54
- await tap(p, '.vz-bar [data-a="hl"]');
54
+ await tap(p, '.vzm-rec [data-a="hl"]');
55
55
  ok('R2 Highlight starts the recorder\'s highlight', await until(() => p.evaluate(() => window.__premiumRecorder._hl === 1)));
56
56
 
57
57
  /* R3 the live notes */
58
58
  await p.fill('#czViewer [data-a="mine"]', 'Ask about the dates');
59
59
  ok('R3 what you type is saved to the note', await until(() => posted(A.S, '/api/notes/save').some((x) => x.body.body === 'Ask about the dates')), JSON.stringify(posted(A.S, '/api/notes/save')));
60
- await tap(p, '.vz-bar [data-a="pause"]');
60
+ await tap(p, '.vzm-rec [data-a="pause"]');
61
61
  ok('R3 Pause pauses the recorder (POST /api/notes/pause)', await until(() => posted(A.S, '/api/notes/pause').length === 1));
62
- ok('R3 a paused note offers Resume, marked Waiting for design', await until(async () => !!(await p.$('#czViewer .vz-pri[data-k="resume"]')) && !!(await p.$('#czViewer [data-cz-placeholder="Paused and not-capturing states"]'))));
63
- await tap(p, '.vz-pri[data-k="resume"]');
62
+ ok('R3 a paused note offers Resume in its recording line, with no Waiting for design marker', await until(async () => !!(await p.$('#czViewer .vzm-rec [data-a="resume"]')) && !(await p.$('#czViewer [data-cz-placeholder]'))));
63
+ await tap(p, '.vzm-rec [data-a="resume"]');
64
64
  ok('R3 Resume records again', await until(() => posted(A.S, '/api/notes/record').length === 2));
65
- await until(async () => !!(await p.$('#czViewer .vz-pri[data-k="stop"]')));
66
- await tap(p, '.vz-pri[data-k="stop"]');
65
+ await until(async () => !!(await p.$('#czViewer .vzm-rec [data-a="stop"]')));
66
+ await tap(p, '.vzm-rec [data-a="stop"]');
67
67
  ok('R3 Stop asks first', await until(async () => /Stop for good/.test(await text(p))));
68
68
  await tap(p, '[data-a="stopgo"]');
69
69
  ok('R3 Stop and write the notes stops the recorder', await until(() => posted(A.S, '/api/notes/stop').length === 1));
@@ -80,9 +80,8 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
80
80
  ok('R3 Make it private posts private: true', await until(() => posted(B.S, '/api/notes/private').some((x) => x.body.id === 'n2' && x.body.private === true)));
81
81
 
82
82
  /* R4 Focus */
83
- await tap(q, '[data-a="more"]');
84
- await tap(q, '[data-a="m-focus"]');
85
- ok('R4 Focus opens its minimal view, marked Waiting for design, with the topics', await until(async () => !!(await q.$('#czViewer [data-cz-placeholder="Focus"]')) && /The Issue button/.test(await text(q))), (await text(q)).slice(0, 300));
83
+ await tap(q, '[data-a="tab"][data-k="focus"]');
84
+ ok('R4 Focus is a tab of the live card, with the topics and no Waiting for design marker', await until(async () => !(await q.$('#czViewer [data-cz-placeholder]')) && /The Issue button/.test(await text(q))), (await text(q)).slice(0, 300));
86
85
  await B.ctx.close();
87
86
 
88
87
  /* R5 New note: an untitled note recorded at once */
@@ -97,7 +96,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
97
96
 
98
97
  /* R6 floors */
99
98
  const D = await F.open(browser, BASE, '/premium-viewer.html?open=meeting&note=n2', { w: 390, h: 844, init: () => { window.__premiumHolding = { id: 'n2' }; } });
100
- await until(() => D.page.evaluate(() => !!document.querySelector('#czViewer .vz-bar')), 15000);
99
+ await until(() => D.page.evaluate(() => !!document.querySelector('#czViewer .vzm-rec')), 15000);
101
100
  const fl = await D.page.evaluate(() => ({ over: document.documentElement.scrollWidth - innerWidth, chip: !!document.querySelector('#recChip, #recCtl') }));
102
101
  ok('R6 on a phone the live card has no sideways scroll, and no old round mic or record chip is drawn', fl.over <= 0 && !fl.chip, JSON.stringify(fl));
103
102
  await D.ctx.close();
@@ -136,8 +136,8 @@ const BRIEFING = { ok: true, items: [{ title: 'Refund reason codes needs an anch
136
136
 
137
137
  /* R7 the first-Briefing card, and Undo */
138
138
  const C = await open({ url: '/premium.html?ws=w1&first=imp1', tools: { calendar: { started: true }, inbox: { error: 'No connection for Inbox.' } } });
139
- // premium-agreed-design: Home has no columns; the card sits at the top of Home's list (the scroller of #hmList, above the Elsewhere foot), plain, with its Waiting for design marker
140
- ok('R7 the card sits at the top of Home\'s list with the import\'s item, its initiative and its file', await until(() => C.page.evaluate(() => { const c = document.querySelector('#wlFirst'); const l = document.querySelector('#hmList > .hm-lsc'); return !!c && !!l && c.parentElement === l && [...l.children].filter((x) => !x.hidden).indexOf(c) === 0 && /Waiting for design/.test(c.textContent) && /Refund reason codes needs an anchor/.test(c.textContent) && /payments board/.test(c.textContent) && /refund-codes-prd\.md:1/.test(c.textContent); })));
139
+ // premium-agreed-design: Home has no columns; the card sits at the top of Home's list (the scroller of #hmList, above the Elsewhere foot), plain; premium-uncovered-features drew it as the Today card (HmDay), so it has no Waiting for design marker
140
+ ok('R7 the card sits at the top of Home\'s list with the import\'s item, its initiative and its file', await until(() => C.page.evaluate(() => { const c = document.querySelector('#wlFirst'); const l = document.querySelector('#hmList > .hm-lsc'); return !!c && !!l && c.parentElement === l && [...l.children].filter((x) => !x.hidden).indexOf(c) === 0 && !/Waiting for design/.test(c.textContent) && /Refund reason codes needs an anchor/.test(c.textContent) && /payments board/.test(c.textContent) && /refund-codes-prd\.md:1/.test(c.textContent); })));
141
141
  ok('R7 the card lists the ticked tools: one being read, one with its reason', await C.page.evaluate(() => /Calendar is being read in an agent session/.test(document.querySelector('#wlFirst').textContent) && /No connection for Inbox\./.test(document.querySelector('#wlFirst').textContent) && !/Slack|Jira/.test(document.querySelector('#wlFirst').textContent)));
142
142
  await click(C.page, '#wlUndo');
143
143
  ok('R7 Undo this import retracts that import and returns to the found step', await until(() => C.S.undone.length === 1) && JSON.stringify(C.S.undone[0]) === '{"ws":"w1","import_id":"imp1"}' && await until(() => C.page.url().includes('/premium-welcome.html?ws=w1&step=found')) && await heading(C.page, /What PMOS found/));
@@ -147,7 +147,7 @@ const BRIEFING = { ok: true, items: [{ title: 'Refund reason codes needs an anch
147
147
  ok('R7 a Briefing with no items says nothing needs the PM and lists nothing', await until(() => E.page.evaluate(() => { const c = document.querySelector('#wlFirst'); return !!c && /Nothing needs you right now/.test(c.textContent) && !c.querySelector('ol'); })));
148
148
  await E.ctx.close();
149
149
  const N = await open({ url: '/premium.html?ws=w1' });
150
- ok('R7 without first= Home has no first card', await until(() => N.page.evaluate(() => document.querySelectorAll('#hmList .hm-r').length > 0)) && await N.page.evaluate(() => !document.querySelector('#wlFirst')));
150
+ ok('R7 without first= Home has no first card', await until(() => N.page.evaluate(() => document.querySelectorAll('#hmList .hm-pg, #hmList .hm-none').length > 0 && !/Reading your work/.test(document.querySelector('#hmList').textContent))) && await N.page.evaluate(() => !document.querySelector('#wlFirst')));
151
151
  await N.ctx.close();
152
152
 
153
153
  /* R8 not now, R9 already imported */
@@ -5,7 +5,7 @@
5
5
  * press the page makes, so the only POSTs allowed are the listed routes, each with the launch nonce. The last block drives the real routes over a scratch state folder.
6
6
  * W2 edit · W3 steps · W4 Not before · W5 Someday · W6 Focus and jobs · W7 the agent · W8 keys and swipe · W9 Undo · W11 refusals · W12 floors
7
7
  * Re-pointed to the Agreed design (initiative premium-agreed-design): /premium-work.html is Home now, and My work is a minimal card in the Home
8
- * Viewer marked "Waiting for design" (pm/home-work.js), opened from the place menu: More, My work. Your list holds the Work queue's rows; a row
8
+ * Viewer (pm/home-work.js; no "Waiting for design" marker since premium-uncovered-features, canvas HmMyWork), opened from the place menu: More, My work. Your list holds the Work queue's rows; a row
9
9
  * opens the item in the same card (its fields sheet, its agent, its draft or source), and Focus and jobs opens the same way. Back, or Escape,
10
10
  * goes back to the list. The presses, the routes and the keys and swipe are the same as on the old page. */
11
11
  const fs = require('fs');
@@ -104,7 +104,7 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
104
104
  await undoOf(p);
105
105
  ok('W9 Undo of Accept posts focus/clear for that key', A.last().path === '/api/pm-items/focus/clear' && A.last().body.key === 'job:job-1' && Object.keys(A.last().body).join() === 'key', JSON.stringify(A.last()));
106
106
  const fd = await p.evaluate(() => ({ title: document.querySelector('#czVwTitle').textContent, text: document.querySelector('.mw-fj').textContent, wait: !!document.querySelector('.mw-fj .hx-wait'), add: document.querySelector('[data-fx="jadd"]').disabled }));
107
- ok('W6 See all lists the suggestion with the item it covers, and the PM\'s jobs with open counts', fd.title === 'Focus and jobs' && /to walk in with a decision ready/.test(fd.text) && /Prepare for the Design review/.test(fd.text) && /When a design review is on the calendar, I want to walk in with a decision ready, so the review ends with a disposition\./.test(fd.text) && /1 open item/.test(fd.text) && fd.wait, JSON.stringify(fd));
107
+ ok('W6 See all lists the suggestion with the item it covers, and the PM\'s jobs with open counts', fd.title === 'Focus and jobs' && /to walk in with a decision ready/.test(fd.text) && /Prepare for the Design review/.test(fd.text) && /When a design review is on the calendar, I want to walk in with a decision ready, so the review ends with a disposition\./.test(fd.text) && /1 open item/.test(fd.text) && !fd.wait, JSON.stringify(fd));
108
108
  ok('W6 Add the job stays off until the line has when, I want and so', fd.add && await p.evaluate(async () => { const i = document.querySelector('#xjIn'); i.value = 'when a launch slips'; i.dispatchEvent(new Event('input', { bubbles: true })); return document.querySelector('[data-fx="jadd"]').disabled; }));
109
109
  await p.fill('#xjIn', 'when a launch slips, I want the owner named, so the date holds');
110
110
  ok('W6 …and turns on when it has all three', await p.evaluate(() => !document.querySelector('[data-fx="jadd"]').disabled));
@@ -349,7 +349,7 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
349
349
  // re-pointed for premium-agreed-design: /premium-work.html opens Home; My work is the card from the place menu, and an added line is opened from Your list
350
350
  await until(() => pg.evaluate(() => /\/premium\.html$/.test(location.pathname) && !!document.querySelector('#czFab')), 15000);
351
351
  await pg.click('#czFab'); await pg.click('[data-cz-more]'); await pg.locator('#hmMenu button').filter({ hasText: 'My work' }).first().click();
352
- ok('E1 on an empty scratch state My work says the list is empty and Focus has nothing to suggest', await until(() => pg.evaluate(() => /Nothing on your list/.test((document.querySelector('#czViewer .mw-list') || {}).textContent || '') && /Nothing to suggest/.test(document.querySelector('#xFocus .xfq').getAttribute('aria-label'))), 20000));
352
+ ok('E1 on an empty scratch state My work says the list is empty and Focus has nothing to suggest', await until(() => pg.evaluate(() => /Nothing is open/.test((document.querySelector('#czViewer .mw-list') || {}).textContent || '') && /Nothing to suggest/.test(document.querySelector('#xFocus .xfq').getAttribute('aria-label'))), 20000));
353
353
  await pg.fill('#hxLine', 'Reply to Rina about SSO !p1'); await pg.click('#czViewer [data-x="add"]');
354
354
  await until(() => pg.evaluate(() => !!document.querySelector('.mw-list .wrh')), 8000);
355
355
  await pg.locator('.mw-list .wrh').first().click(); await dlgOn(pg); await sleep(300);