create-pmos 0.631.0 → 0.633.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 (68) hide show
  1. package/package.json +27 -69
  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 +3 -0
  7. package/workspace/briefing-premium-board-test.js +4 -2
  8. package/workspace/briefing-premium-doc-edit-test.js +3 -0
  9. package/workspace/briefing-premium-initiative-test.js +4 -0
  10. package/workspace/briefing-premium-insights-test.js +1 -1
  11. package/workspace/briefing-premium-sources-test.js +2 -2
  12. package/workspace/changelog.json +26 -0
  13. package/workspace/core-docs-workflow-test.js +3 -0
  14. package/workspace/ev-everywhere-test.js +7 -17
  15. package/workspace/guide/layout.md +12 -5
  16. package/workspace/guide/notes.md +7 -3
  17. package/workspace/ini-workflow-test.js +3 -0
  18. package/workspace/lib/extension-cli.js +4 -1
  19. package/workspace/lib/extension-setup.js +93 -0
  20. package/workspace/lib/meeting-focus.js +5 -3
  21. package/workspace/lib/route-modules.js +1 -0
  22. package/workspace/lib/routes-extension.js +23 -0
  23. package/workspace/lib/routes-meeting-focus.js +2 -2
  24. package/workspace/live-pill-round-test.js +7 -2
  25. package/workspace/package-lock.json +2 -2
  26. package/workspace/package.json +1 -1
  27. package/workspace/premium-board-actions-test.js +3 -1
  28. package/workspace/premium-vw-backlog-test.js +2 -2
  29. package/workspace/premium-vw-doc-test.js +3 -0
  30. package/workspace/premium-vw-item-test.js +1 -1
  31. package/workspace/premium-vw-jira-test.js +4 -3
  32. package/workspace/public/pm/bd-ini-panel.js +4 -1
  33. package/workspace/public/pm/bd-prog-panel.js +3 -3
  34. package/workspace/public/pm/bd-views.js +8 -2
  35. package/workspace/public/pm/buddy-core.js +2 -2
  36. package/workspace/public/pm/cozy-board.css +15 -0
  37. package/workspace/public/pm/cozy-buddy.js +2 -0
  38. package/workspace/public/pm/cozy-ev.css +25 -0
  39. package/workspace/public/pm/cozy-ext.js +76 -0
  40. package/workspace/public/pm/cozy-home.css +38 -2
  41. package/workspace/public/pm/cozy-nav.js +72 -6
  42. package/workspace/public/pm/cozy-phone-rec.css +68 -0
  43. package/workspace/public/pm/cozy-phone-rec.js +105 -0
  44. package/workspace/public/pm/cozy-phone-settings.css +18 -0
  45. package/workspace/public/pm/cozy-phone-settings.js +73 -0
  46. package/workspace/public/pm/cozy-phone-swipe.js +51 -0
  47. package/workspace/public/pm/cozy-pop-work.css +56 -0
  48. package/workspace/public/pm/cozy-pop-work.js +72 -4
  49. package/workspace/public/pm/cozy-rec-tab.js +10 -0
  50. package/workspace/public/pm/cozy-settings.js +6 -2
  51. package/workspace/public/pm/cozy-today-app.js +56 -5
  52. package/workspace/public/pm/cozy-today-page.css +75 -1
  53. package/workspace/public/pm/cozy-today-view.js +87 -0
  54. package/workspace/public/pm/cozy-viewer.js +27 -7
  55. package/workspace/public/pm/home-app.js +31 -2
  56. package/workspace/public/pm/home-chat.js +8 -0
  57. package/workspace/public/pm/home-ini.js +7 -3
  58. package/workspace/public/pm/phone-ask.js +57 -0
  59. package/workspace/split-merge-ui-test.js +3 -1
  60. package/workspace/stage-card-tasks-test.js +6 -0
  61. package/workspace/stage-card-test.js +3 -0
  62. package/workspace/task-delete-test.js +3 -0
  63. package/workspace/task-links-test.js +3 -0
  64. package/workspace/task-plans-test.js +3 -0
  65. package/workspace/task-views-test.js +3 -0
  66. package/workspace/test-lists/meeting-buddy.json +1 -1
  67. package/workspace/test-lists/phone-design-v2.json +9 -0
  68. package/workspace/tk-tasks-test.js +4 -0
@@ -69,6 +69,7 @@ const MODULES = Object.freeze([
69
69
  'routes-initiative-premium', // briefing-premium-initiative: the premium initiative page's model from the Initiatives sheet's own routes (read-only)
70
70
  'routes-initiative-layout', // premium-uncovered-features (Initiative): Moves on by itself, held stages, task groups and saved group sets (page press; file mode)
71
71
  'routes-board-publish', // board-publish slice 2 (D103): publish a board to the central host, republish, turn off (page press; the host is never given a way in)
72
+ 'routes-extension', // meeting-buddy: Settings › Connectors › Google Meet: copy the Chrome extension to a folder you can see, open Chrome's extensions page (page press)
72
73
  'routes-relay', // event-relay (D110): Settings › Connectors › Listening: set up, show steps, stop, pull now (page press; an event only starts a read)
73
74
  'routes-programs', // program-hierarchy: programs above initiatives across products, their members, tasks and milestones (page press; file mode)
74
75
  'routes-brief-page', // console3 Briefing as the brief: Today agenda, Needs you and Mentions (read-only; writes go through routes-pm-items)
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+ /* routes-extension.js — Settings › Connectors › Google Meet: set up the PMOS Chrome extension from the workspace (lib/extension-setup.js).
3
+ *
4
+ * GET /api/extension -> { ok, folder, copied, version, shipped, current, seen, refreshed } refreshes an existing copy after an update
5
+ * POST /api/extension/setup -> { ok, folder, opened } page press: copy the extension to ~/PMOS Chrome extension, show it, open Chrome's extensions page
6
+ * GET /api/extension/seen -> { ok } the buddy page says it loaded inside the Meet panel
7
+ * Nothing here changes Chrome; the PM still presses Load unpacked once. */
8
+ const X = require('./extension-setup.js');
9
+
10
+ module.exports = {
11
+ prefixes: ['/api/extension'],
12
+ handle: async (req, res, url, ctx) => {
13
+ const p = url.pathname;
14
+ // an update ships a new extension: keep the copy the PM loaded current (Chrome still needs the reload arrow on its card)
15
+ if (p === '/api/extension' && req.method === 'GET') { const refreshed = X.refresh(); ctx.json(res, { ...X.status(), refreshed }); return true; }
16
+ if (p === '/api/extension/seen' && req.method === 'GET') { X.markSeen(); ctx.json(res, { ok: true }); return true; }
17
+ if (p !== '/api/extension/setup') return false;
18
+ if (req.method !== 'POST') { ctx.json(res, { ok: false, error: 'POST only' }, 405); return true; }
19
+ const r = X.setup();
20
+ ctx.json(res, r, r.ok ? 200 : 500);
21
+ return true;
22
+ },
23
+ };
@@ -2,7 +2,7 @@
2
2
  /* routes-meeting-focus.js — the Meeting focus page's server side (initiative c3-meeting-focus; lib/route-modules.js).
3
3
  *
4
4
  * GET /api/meeting-focus?event=<id>&date=YYYY-MM-DD[&ws=]
5
- * → { ok, now_ms, event, brief, material, note, topics, current, runs, tail, captured, gist, chips, notes, raise, asks, companion }
5
+ * → { ok, now_ms, event, brief, material, note, topics, current, runs, tail, captured, gist, gists, chips, notes, raise, asks, companion }
6
6
  * event.call is the meeting's call address ({ url, app } or null, lib/meeting-focus.js callLinkOf; meeting-buddy). Each caught item that
7
7
  * came from a bullet carries its id (bid), so the buddy's Undo drops it with POST /api/notes/bullet.
8
8
  * The meeting (the calendar read for that day), its brief (lib/calendar-layers.js briefOf), the note linked to it, the last
@@ -282,7 +282,7 @@ async function read(q, ctx) {
282
282
  note: note ? { id: note.id, title: note.title || ev.title, state: note.state, recorded_from: note.recorded_from || null, lines: (note.transcript || []).length, sessions } : null,
283
283
  topics: fresh.topics, current: fresh.current, runs: fresh.runs,
284
284
  tail: note ? F.tailOf(note, { now: nowMs }) : [], captured, agenda,
285
- gist: fresh.gist, chips: fresh.chips, notes: fresh.notes, raise: fresh.raise, asks: fresh.asks,
285
+ gist: fresh.gist, gists: fresh.gists, chips: fresh.chips, notes: fresh.notes, raise: fresh.raise, asks: fresh.asks,
286
286
  companion: { on: !F.off(env) && kindOk() && typeof ctx.spawnSession === 'function', running: !!fresh.pending, started, reason: call.reason, last_run_at: fresh.last_run_at || null, error: fresh.error },
287
287
  } };
288
288
  }
@@ -169,8 +169,13 @@ const ASKS = () => RUNNING().concat([{ id: 'b', name: 'Redistribute plan items',
169
169
  await pctx.route('**/api/live', (r) => r.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify({ ok: true, sessions: ASKS(), titles: {} }) }));
170
170
  const ph = await pctx.newPage();
171
171
  await ph.goto(BASE + '/premium-board.html');
172
- const f2 = await until(() => ph.evaluate(() => { const l = document.getElementById('czLive'), f = document.getElementById('czFab'); if (!l || l.hidden) return null; const a = l.getBoundingClientRect(), b = f.getBoundingClientRect(); return { above: a.bottom <= b.top, right: Math.abs((a.left + a.width / 2) - (b.left + b.width / 2)) <= 1, w: Math.round(a.width), text: l.textContent.trim() }; }), 30000);
173
- ok('F2 a phone: the round pill stacks above the menu button at the bottom right', f2 && f2.above && f2.right && f2.w === 44 && f2.text === '3', JSON.stringify(f2));
172
+ // the phone design (Ph2_menu): no round button and no pill; ⋯ sits at the top right and its menu has "Live now 3"
173
+ const f2 = await until(() => ph.evaluate(() => { const l = document.getElementById('czLive'), f = document.getElementById('czFab'); if (!f || !document.body.classList.contains('cz-phmore')) return null; return { pill: !!l && !l.hidden && getComputedStyle(l).display !== 'none', top: Math.round(f.getBoundingClientRect().top) }; }), 30000);
174
+ ok('F2 a phone: no round pill, and ⋯ is at the top right', f2 && !f2.pill && f2.top < 80, JSON.stringify(f2));
175
+ await ph.click('#czFab');
176
+ const lv = await until(() => ph.evaluate(() => { const b = document.querySelector('#czMenu [data-cz-live]'); return b ? b.textContent.trim() : null; }), 30000);
177
+ ok('F2 a phone: the ⋯ menu says Live now 3', lv === 'Live now3' || /Live now\s*3/.test(lv || ''), JSON.stringify(lv));
178
+ await ph.click('#czFab');
174
179
  await shot(ph, 'phone-pill');
175
180
  await ph.goto(BASE + '/premium.html');
176
181
  await until(() => ph.evaluate(() => !!document.querySelector('#hmList .hm-hd')), 30000);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.631.0",
3
+ "version": "0.633.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.631.0",
9
+ "version": "0.633.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/sdk": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.631.0",
3
+ "version": "0.633.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -58,6 +58,8 @@ const tap = (pg, sel) => pg.$eval(sel, (b) => b.click());
58
58
  // the Board's first questions (board-grill: start, file, answer, later) write only triage-answers.jsonl and the material folder; intake/draft only drafts
59
59
  const ALLOWED = /^\/api\/(?:boards\/(?:asks\/(?:add|accept|decline)|move|archive|wontdo|ini-delete|ini-restore)|lifecycle|briefing-premium\/note|board-grill\/(?:start|file|answer|later)|intake\/draft|initiative-layout|proposals\/look)$/; // initiative-layout: the card's Moves on by itself switch (premium-uncovered-features); proposals/look: Create asks Claude to look for the new initiative elsewhere (batch 12 item 4); wontdo: the stage picker's Won't do and its Undo (batch 16 item 5c)
60
60
 
61
+ // the phone design (Ph2_init): a phone shows an initiative as the popup's phone page; the old page is ⋯ › Every part
62
+ const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', { state: 'attached', timeout: 20000 }); await pg.evaluate(() => { const r = (window.__czVwMore ? window.__czVwMore(document.body) : []).find((x) => x.label === 'Every part'); if (r) r.go(); }); await pg.waitForTimeout(800); };
61
63
  (async () => {
62
64
  const exe = findBrowser();
63
65
  if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the suite cannot run'); return finish(1); }
@@ -308,7 +310,7 @@ const ALLOWED = /^\/api\/(?:boards\/(?:asks\/(?:add|accept|decline)|move|archive
308
310
  await until(() => S.page.evaluate(() => document.querySelectorAll('#ibBody .ini2').length > 0), 30000);
309
311
  const f = await S.page.evaluate(() => ({ wide: document.documentElement.scrollWidth > innerWidth + 1, small: [...document.querySelectorAll('#ibBody .ini2, #chNeed, #newIni')].filter((b) => b.offsetParent && (b.getBoundingClientRect().width < 44 || b.getBoundingClientRect().height < 44)).map((b) => b.className + ':' + Math.round(b.getBoundingClientRect().width) + 'x' + Math.round(b.getBoundingClientRect().height)) }));
310
312
  ok('F1 at 390 px there is no sideways scroll and every new control is at least 44 px', !f.wide && !f.small.length, JSON.stringify(f));
311
- await S.page.click('#ibBody .ini2'); await until(() => S.page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-iv-stagepick]'))); await S.page.click('#czViewer [data-iv-stagepick]');
313
+ await S.page.click('#ibBody .ini2'); await everyPart(S.page); await until(() => S.page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-iv-stagepick]'))); await S.page.click('#czViewer [data-iv-stagepick]');
312
314
  const mi = await until(() => S.page.evaluate(() => { const L = [...document.querySelectorAll('.hi-pop .hi-mi')]; return L.length ? L.every((b) => b.getBoundingClientRect().height >= 44) && document.documentElement.scrollWidth <= innerWidth + 1 : null; }));
313
315
  ok('F2 the action rows are 44 px tall and the open sheet adds no sideways scroll', !!mi);
314
316
  await S.ctx.close();
@@ -67,8 +67,8 @@ const SPRINTS = { ok: true, source: 'jira', readAt: '2026-10-19T09:00:00Z', velo
67
67
  };
68
68
  const viaMore = async (pg, label) => { const it = (l) => `#czViewer .cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("${l}"))`, more = async () => { await pg.click('#czViewer:not([hidden]) [data-cz-vw="more"]'); await until(() => pg.evaluate(() => !!document.querySelector('#czViewer .cz-vw-menu'))); }, view = (v) => until(() => pg.evaluate((x) => !!document.querySelector(`#czViewer:not([hidden]) [data-hi-v="${x}"]`), v)); if ((await pg.$('#czViewer:not([hidden]) [data-hi-v="page"]')) && (await pg.$('#czViewer:not([hidden]) [data-iv-docs]')) && !['Split into a new initiative', 'Merge into', 'Program', 'Open on the Board', 'Copy', 'The record', 'Delete'].includes(label)) { await pg.click('#czViewer:not([hidden]) [data-iv-docs]'); await view('docs'); if (label === 'Documents') return; } await more(); for (let i = 0; i < 20 && !(await pg.$(it(label))) && !(await pg.$(it('Stage'))); i++) { await pg.keyboard.press('Escape'); await pg.waitForTimeout(250); await more(); } if (!(await pg.$(it(label))) && (await pg.$(it('Stage')))) { await pg.click(it('Stage')); await view('stage'); if (label === 'Stage') return; await more(); } await pg.click(it(label)); }; // batch 16 item 5c: the page's ⋯ is short; Documents opens from its fold, and the Documents view's ⋯ holds Stage, whose ⋯ holds Documents, Open the full record and Sprint
69
69
  const toSprint = async (page) => {
70
- if (!(await page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-hi-v]')))) { await (async (g) => { const P = '#czViewer:not([hidden]) [data-hi-v="page"]', r = '#hmList [data-hm-sel^="i:"][aria-current="true"]'; for (let i = 0; i < 4 && !(await g.$(P)) && (await g.$('#czViewer:not([hidden]) [data-cz-vw="back"]')); i++) { await g.click('#czViewer [data-cz-vw="back"]'); await g.waitForTimeout(150); } if (await g.$(P)) return; if (await g.$(r)) await g.click(r); else await g.reload(); await g.waitForSelector(P + ' .iv', { timeout: 30000 }); })(page); /* ← back to the initiative's page, else its row, else the address again (an initiative the list does not show) */ /* the page holds the Tasks (batch 11 item 20) */ }
71
- await until(() => page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-hi-v]')), 5000);
70
+ if (!(await page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) :is([data-hi-v], .pw-ph)')))) { await (async (g) => { const P = '#czViewer:not([hidden]) [data-hi-v="page"]', r = '#hmList [data-hm-sel^="i:"][aria-current="true"]'; for (let i = 0; i < 4 && !(await g.$(P)) && (await g.$('#czViewer:not([hidden]) [data-cz-vw="back"]')); i++) { await g.click('#czViewer [data-cz-vw="back"]'); await g.waitForTimeout(150); } if (await g.$(P)) return; if (await g.$(r)) await g.click(r); else await g.reload(); await g.waitForSelector(P + ' .iv', { timeout: 30000 }); })(page); /* ← back to the initiative's page, else its row, else the address again (an initiative the list does not show) */ /* the page holds the Tasks (batch 11 item 20) */ }
71
+ await until(() => page.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) :is([data-hi-v], .pw-ph)')), 5000); // a phone: the popup's phone page (Ph2_init)
72
72
  await viaMore(page, 'Sprint');
73
73
  return until(() => page.evaluate(() => !!document.querySelector('#czViewer .obody.vw[data-vw="sprint:w1"] [data-jbl]')), 5000);
74
74
  };
@@ -40,6 +40,8 @@ const prop = (o) => Object.assign({ id: 'prop-a', state: 'proposed', prompt: 'ad
40
40
  { name: 'Goal', kind: 'changed', before: '- a first call without help', after: '- a first call in under ten minutes', current: '- a first call without help', stale: false },
41
41
  { name: 'Requirements', kind: 'changed', before: 'x', after: 'y', current: 'z', stale: true }] }, o || {});
42
42
 
43
+ // the phone design (Ph2_init): a phone shows an initiative as the popup's phone page; the old page is ⋯ › Every part
44
+ const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', { state: 'attached', timeout: 20000 }); await pg.evaluate(() => { const r = (window.__czVwMore ? window.__czVwMore(document.body) : []).find((x) => x.label === 'Every part'); if (r) r.go(); }); await pg.waitForTimeout(800); };
43
45
  (async () => {
44
46
  const exe = findBrowser();
45
47
  if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the suite cannot run'); return finish(1); }
@@ -80,6 +82,7 @@ const prop = (o) => Object.assign({ id: 'prop-a', state: 'proposed', prompt: 'ad
80
82
  return send({ ok: false, error: 'not in this test' }, 404);
81
83
  });
82
84
  await page.goto(BASE + '/premium.html?ini=self-serve-v2&ws=w1&theme=' + theme);
85
+ if (w <= 760) await everyPart(page);
83
86
  await until(() => page.evaluate(() => !!document.querySelector('#czViewer [data-iv-docs]')), 15000); // the initiative's page (canvas HbC)
84
87
  // the page's Documents "Show all N" opens every document in the Viewer
85
88
  await page.click('#czViewer [data-iv-docs]');
@@ -130,7 +130,7 @@ const openCard = async (pg, uid, V = '#czViewer') => {
130
130
  }
131
131
  {
132
132
  const { page, ctx, S } = await open({ w: 390, h: 844, theme: 'dark' });
133
- await overview(page);
133
+ await page.waitForSelector('#czViewer .pw-ph', { state: 'attached', timeout: 20000 }); // a phone: the popup's phone page (Ph2_init), its ⋯ holds the record (pm/home-ini.js)
134
134
  await viaMore(page, 'Open the full record');
135
135
  await until(async () => /Checks/.test(await paneTxt(page, INI)));
136
136
  const fl = await page.evaluate((k) => {
@@ -76,7 +76,7 @@ const TICKETS = {
76
76
  // Home's initiative layout (premium-agreed-design): the card's Overview has the Sprint press; the Viewer shows one item at a time
77
77
  const viaMore = async (pg, label) => { const it = (l) => `#czViewer .cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("${l}"))`, more = async () => { await pg.click('#czViewer:not([hidden]) [data-cz-vw="more"]'); await until(() => pg.evaluate(() => !!document.querySelector('#czViewer .cz-vw-menu'))); }, view = (v) => until(() => pg.evaluate((x) => !!document.querySelector(`#czViewer:not([hidden]) [data-hi-v="${x}"]`), v)); if ((await pg.$('#czViewer:not([hidden]) [data-hi-v="page"]')) && (await pg.$('#czViewer:not([hidden]) [data-iv-docs]')) && !['Split into a new initiative', 'Merge into', 'Program', 'Open on the Board', 'Copy', 'The record', 'Delete'].includes(label)) { await pg.click('#czViewer:not([hidden]) [data-iv-docs]'); await view('docs'); if (label === 'Documents') return; } await more(); for (let i = 0; i < 20 && !(await pg.$(it(label))) && !(await pg.$(it('Stage'))); i++) { await pg.keyboard.press('Escape'); await pg.waitForTimeout(250); await more(); } if (!(await pg.$(it(label))) && (await pg.$(it('Stage')))) { await pg.click(it('Stage')); await view('stage'); if (label === 'Stage') return; await more(); } await pg.click(it(label)); }; // batch 16 item 5c: the page's ⋯ is short; Documents opens from its fold, and the Documents view's ⋯ holds Stage, whose ⋯ holds Documents, Open the full record and Sprint
78
78
  const overview = async (pg) => { await (async (g) => { const P = '#czViewer:not([hidden]) [data-hi-v="page"]', r = '#hmList [data-hm-sel^="i:"][aria-current="true"]'; for (let i = 0; i < 4 && !(await g.$(P)) && (await g.$('#czViewer:not([hidden]) [data-cz-vw="back"]')); i++) { await g.click('#czViewer [data-cz-vw="back"]'); await g.waitForTimeout(150); } if (await g.$(P)) return; if (await g.$(r)) await g.click(r); else await g.reload(); await g.waitForSelector(P + ' .iv', { timeout: 30000 }); })(pg); /* ← back to the initiative's page, else its row, else the address again (an initiative the list does not show) */ /* the page holds the Tasks (batch 11 item 20) */ return until(() => pg.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) [data-hi-v]'))); };
79
- const openSprint = async (pg) => { if (!(await pg.$('#czViewer:not([hidden]) [data-hi-v]'))) await overview(pg); /* open() already showed the Overview */ await viaMore(pg, 'Sprint'); };
79
+ const openSprint = async (pg) => { if (!(await pg.$('#czViewer:not([hidden]) :is([data-hi-v], .pw-ph)'))) await overview(pg); /* open() already showed the Overview */ await viaMore(pg, 'Sprint'); };
80
80
  const open = async ({ w = 1280, h = 900, theme = 'light', sprints = SPRINTS, tickets = TICKETS } = {}) => {
81
81
  const ctx = await openMission(await browser.newContext({ viewport: { width: w, height: h }, colorScheme: theme }));
82
82
  await ctx.addInitScript((t) => { try { localStorage.setItem('pmos.c3.theme', t); } catch { /* none */ } }, theme);
@@ -90,8 +90,9 @@ const TICKETS = {
90
90
  await page.route('**/api/initiative-premium*', (r) => json(r, { ok: true, state: 'ready', model: IMODEL, as_of: Date.now() }));
91
91
  await page.route('**/api/briefing-premium/**', (r) => json(r, { ok: true, turns: [], working: false }));
92
92
  await page.goto(BASE + '/premium-initiative.html?id=self-serve-v2&ws=w1&board=w1&theme=' + theme); // the Board's expand link: Home with the initiative
93
- await until(() => page.evaluate(() => !!document.querySelector('#czViewer .iv-mc') && !!window.__premiumVwJira), 20000);
94
- await overview(page);
93
+ // a phone shows the popup's phone page (Ph2_init); its ⋯ keeps Sprint (pm/home-ini.js)
94
+ if (w <= 760) await page.waitForSelector('#czViewer .pw-ph', { state: 'attached', timeout: 20000 });
95
+ else { await until(() => page.evaluate(() => !!document.querySelector('#czViewer .iv-mc') && !!window.__premiumVwJira), 20000); await overview(page); }
95
96
  await sleep(300); reads.length = 0; posts.length = 0; // Home's own reads; the checks below are about the sprint view's
96
97
  return { ctx, page, errors, posts, reads };
97
98
  };
@@ -211,7 +211,8 @@ function popExtra(r) {
211
211
  const x = O.rowOf(r.key) || r;
212
212
  VW.drill();
213
213
  VW.open({ kind: 'Initiative', title: x.title, icon: 'goal', id: 'all:' + vidOf(x), back: true,
214
- render: (b) => { b.dataset.pwAll = '1'; const y = O.rowOf(r.key) || x; b.innerHTML = iniBody(y, b); wire(b, y.key); } });
214
+ // the Board's next read draws it again (refresh): it is the initiative shown while it is open
215
+ render: (b) => { b.dataset.pwAll = '1'; const y = O.rowOf(r.key) || x; cur = { key: y.key, tk: null, vid: vidOf(y) }; O.onShow(y.key); b.innerHTML = iniBody(y, b); wire(b, y.key); } });
215
216
  },
216
217
  props: r.id ? () => { const x = O.rowOf(r.key) || r; VW.drill(); PP.open(viewOf(x), H); } : null,
217
218
  product: () => openProduct(O.rowOf(r.key) || r),
@@ -372,6 +373,8 @@ export function refresh(force) {
372
373
  if (!cur) return;
373
374
  const r = O.rowOf(cur.key); if (!r || !r.track) { close(); return; }
374
375
  // the Viewer that shows this initiative, not the one used last (a chat beside it took the initiative's body, batch 31 item 10)
376
+ // Every part (the old page as a drill-in, the way a phone reaches it, Ph2_init) reads the same row, so it is drawn again too
377
+ const all = !cur.tk && VW.bodyOf('all:' + vidOf(r)); if (all) { const t = all.scrollTop; all.innerHTML = iniBody(r, all); all.scrollTop = t; }
375
378
  const b = VW.bodyOf(vidOf(r)); if (!b || (!force && document.activeElement && b.contains(document.activeElement))) return;
376
379
  if (cur.tk) return; // the ticket Viewer reads its own records (tk-view.js); Read Jira again opens it fresh
377
380
  const top = b.scrollTop;
@@ -414,7 +414,7 @@ function draw(keepFocus) {
414
414
  const p = progOf(cur.id); if (!p) { VW.close(); return; }
415
415
  readAway(p); readMore(p); readDrafts(p);
416
416
  const b = VW.body(); if (!b) return;
417
- if (PW.on(b)) { const t = b.scrollTop, L = levelOf(cur.id); if (L) { b.innerHTML = PW.levelHtml(L, { today: L.today, add: false }); b.scrollTop = t; } return; } // the program in the popup (board 26)
417
+ if (PW.inPop(b)) { const t = b.scrollTop, L = levelOf(cur.id); if (L) { b.innerHTML = PW.levelHtml(L, { today: L.today, add: false }); b.scrollTop = t; } return; } // the program in the popup (board 26)
418
418
  const f = keepFocus && document.activeElement && b.contains(document.activeElement) ? document.activeElement : null;
419
419
  const sel = f ? (f.dataset.pp ? `[data-pp="${f.dataset.pp}"]` + (f.dataset.fold ? `[data-fold="${CSS.escape(f.dataset.fold)}"]` : '') + (f.dataset.key ? `[data-key="${CSS.escape(f.dataset.key)}"]` : '') + (f.dataset.ms ? `[data-ms="${CSS.escape(f.dataset.ms)}"]` : '') : f.dataset.czsFold ? `[data-czs-fold="${CSS.escape(f.dataset.czsFold)}"]` : null) : null;
420
420
  const top = b.scrollTop;
@@ -478,10 +478,10 @@ function openPanel(id, from, via) {
478
478
  VW.open({ kind: 'Program', title: titleOf(p), icon: I.prog, id: 'program:' + id,
479
479
  // on a desk the program opens in the one popup, the chat about it beside it (slice 3 of the six-place navigation, board 26)
480
480
  pop: RO ? undefined : { id: p.id, kind: 'program', title: p.title, ws: p.home || board().ws || undefined },
481
- discuss: true, more: () => (PW.on(VW.bodyOf('program:' + id)) ? [{ label: 'Every part', on: () => allParts(id) }, { sep: true }] : []).concat(moreOf(progOf(id) || p)), rename,
481
+ discuss: true, more: () => (PW.inPop(VW.bodyOf('program:' + id)) ? [{ label: 'Every part', on: () => allParts(id) }, { sep: true }] : []).concat(moreOf(progOf(id) || p)), rename,
482
482
  render: (body) => {
483
483
  { const q = progOf(id); if (q && VW.current() && VW.current().title !== titleOf(q)) VW.retitle('program:' + id, titleOf(q)); } // a rename in the charter, on ←
484
- if (PW.on(body)) { levelDraw(body, id, from); return; }
484
+ if (PW.inPop(body)) { levelDraw(body, id, from); return; }
485
485
  oldDraw(body, id, from);
486
486
  },
487
487
  onClose: () => {
@@ -263,8 +263,14 @@ export function stagesHtml(L, o = {}) {
263
263
  /** A phone row: the status dot, the title, the stage and what it waits on; the workflow's icon at the end when the board has more than one. */
264
264
  function phoneRow(r) {
265
265
  const s = statusLine(r), t = r.track || {}, w = WF.stageOfRow(r);
266
- const sub = [stageName(r) || (w && w.name), t.you ? t.you.replace(/^Your /, 'your ') : s.tone !== 'ok' && s.tone !== 'q' ? s.text.toLowerCase() : '', r.owner].filter(Boolean).join(' · ');
267
- return `<button type="button" class="bd-lrow ini2${A.sel && A.sel() === r.key ? ' sel' : ''}" data-key="${esc(r.key)}" aria-haspopup="dialog"><i class="cz-dot ${s.tone} ${s.mo || ''}"></i><span class="tx"><span class="t">${WK.iconHtml(r.kind)}${nameHtml(r)}</span><span class="s${t.you ? '' : ' q'}">${esc(sub)}</span></span>${t.you && t.days != null ? `<span class="r">${t.days}d</span>` : ''}${many() ? WF.wfIcon(WF.wfOf(r), 18) : ''}</button>`;
266
+ // the phone design (Ph2_work): "Discover · 15 days over · wawan", the late or at risk words in their own tone, no kind icon before the name
267
+ const say = t.you ? t.you.replace(/^Your /, 'your ') : s.tone !== 'ok' && s.tone !== 'q' ? s.text.toLowerCase() : '';
268
+ const st = stageName(r) || (w && w.name) || '';
269
+ // a Project (Ph2 checks across kinds): the end date leads the late words, "ends 4 Dec"
270
+ const em = WK.kindOf(r.kind) === 'project' && /^\d{4}-\d{2}-\d{2}/.test(String(r.end || '')) ? String(r.end).slice(0, 10).split('-') : null;
271
+ const ends = em ? 'ends ' + (+em[2]) + ' ' + ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'][+em[1] - 1] : '';
272
+ const sub = [st ? esc(st) : '', ends, say ? `<em class="${t.you ? 'you' : esc(s.tone)}">${esc(say)}</em>` : '', r.owner ? esc(r.owner) : ''].filter(Boolean).join(' · ');
273
+ return `<button type="button" class="bd-lrow ini2${A.sel && A.sel() === r.key ? ' sel' : ''}" data-key="${esc(r.key)}" aria-haspopup="dialog"><i class="cz-dot ${s.tone} ${s.mo || ''}"></i><span class="tx"><span class="t">${nameHtml(r)}</span><span class="s q">${sub}</span></span>${t.you && t.days != null ? `<span class="r">${t.days}d</span>` : ''}${many() ? WF.wfIcon(WF.wfOf(r), 18) : ''}</button>`;
268
274
  }
269
275
  export function phoneListHtml(L) {
270
276
  const you = L.filter((r) => r.track && r.track.you), bad = L.filter((r) => !you.includes(r) && needOf(r) <= 3), left = L.filter((r) => !you.includes(r) && !bad.includes(r));
@@ -143,12 +143,12 @@ export function contextHtml(m) {
143
143
  return m.context.map((c) => row(c.label, esc(c.text), c.href ? `<a class="mb-ib" href="${esc(c.href)}" target="_blank" rel="noopener noreferrer" aria-label="Open it" title="Open it">${svg(P.open)}</a>` : '')).join('');
144
144
  }
145
145
  export function draftsHtml(m) {
146
- return m.drafts.map((d) => `<div class="mb-r mb-draft" data-draft="${esc(d.id)}"><span class="t"><small>Draft for the call chat</small>${esc(d.text)}</span>`
146
+ return m.drafts.map((d) => `<div class="mb-r mb-draft" data-draft="${esc(d.id)}" data-sw-right="copy" data-sw-left="chat-x"><span class="t"><small>Draft for the call chat</small>${esc(d.text)}</span>`
147
147
  + ib('copy', 'Copy the line, then paste it in the call chat', P.copy, ` data-id="${esc(d.id)}"`, 'go') + ib('chat-x', 'Not now', P.x, ` data-id="${esc(d.id)}"`) + '</div>').join('');
148
148
  }
149
149
  export function consentHtml(m) {
150
150
  if (!m.consent.show) return '';
151
- return `<div class="mb-r mb-consent"><span class="t"><small>PMOS proposes</small>Tell the call you are taking notes with PMOS?<q class="mb-line">${esc(CONSENT_LINE)}</q></span>`
151
+ return `<div class="mb-r mb-consent" data-sw-right="copy" data-sw-left="consent-x"><span class="t"><small>PMOS proposes</small>Tell the call you are taking notes with PMOS?<q class="mb-line">${esc(CONSENT_LINE)}</q></span>`
152
152
  + `<span class="mb-acts">${ib('copy', 'Copy the line, then paste it in the call chat', P.copy, ' data-id="consent"', 'go')}${ib('consent-x', 'Not now', P.x)}</span></div>`;
153
153
  }
154
154
  export function answerHtml(m) {
@@ -1586,3 +1586,18 @@ html.ro body.wk-on .bd-hd { display: none; } /* find and tune moved to the top
1586
1586
  /* slice 1: the rail of places leaves the toolbar 80 px less beside a Viewer; the "what needs a look" pill gives way first (it leaves the
1587
1587
  toolbar with slice 4), so ⋯ never runs past the panel's edge (its menu hangs from the wrapper, so only the chip clips) */
1588
1588
  @media (min-width: 761px) { .bd-hd #bdNeedw { min-width: 0; } .bd-hd #bdNeedw .bd-chip.bd-need { flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; } .bd-hd .bd-chip.bd-need > span { flex: none; } }
1589
+
1590
+ /* ── The phone design (board Ph2_work; build brief nav-structure/phone/build-brief-v2.md) ──
1591
+ * The product chip with its name, then Find and the tune button; the ⋯ of the menu sits at the right (pm/cozy-nav.js), so the head leaves it
1592
+ * 48 px. The View chip, the needs pill and New stay as they were (a phone list by default). A row says "Discover · 15 days over · wawan", the late words in their
1593
+ * tone, and its name wraps to two lines. */
1594
+ @media (max-width: 760px) {
1595
+ body.cz-phmore .bd-hd { padding-right: 48px; }
1596
+ body.cz-phmore .bd-lrow.ini2 { align-items: flex-start; border-radius: 12px; }
1597
+ body.cz-phmore .bd-lrow.ini2 > .cz-dot { margin-top: 8px; }
1598
+ body.cz-phmore .bd-lrow.ini2 .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
1599
+ body.cz-phmore .bd-lrow.ini2 .s em { font-style: normal; }
1600
+ body.cz-phmore .bd-lrow.ini2 .s em.red, body.cz-phmore .bd-lrow.ini2 .s em.late { color: var(--cz-late); }
1601
+ body.cz-phmore .bd-lrow.ini2 .s em.risk { color: var(--cz-risk); }
1602
+ body.cz-phmore .bd-lrow.ini2 .s em.you { color: var(--cz-blueink); }
1603
+ }
@@ -54,6 +54,8 @@ async function read() {
54
54
 
55
55
  /** Which meeting this call is. With none that fits, today's meetings to pick from. */
56
56
  async function find() {
57
+ // inside the Meet panel (the extension passes ?meet): tell Settings › Connectors › Google Meet that the panel works
58
+ if (q.has('meet') && window.top !== window) pmGet('/api/extension/seen').catch(() => {});
57
59
  if (q.get('event')) { S.ev = { id: q.get('event') }; S.date = q.get('date') || ''; return read(); }
58
60
  const r = await pmGet('/api/meeting-focus/now?meet=' + encodeURIComponent(q.get('meet') || '') + '&title=' + encodeURIComponent(q.get('mtitle') || ''));
59
61
  if (r && r.ok) { S.ev = r.event; S.date = r.date; return read(); }
@@ -507,3 +507,28 @@
507
507
  html.ro body.cz-railon.cz-pn-page { padding-left: 16px; }
508
508
  html.ro body.cz.cz-railon main.cz-panel.stage { margin-left: 16px; }
509
509
  }
510
+
511
+ /* ── The phone's ⋯ (phone design, boards Ph2_menu and Ph2_today; build brief nav-structure/phone/build-brief-v2.md) ──
512
+ * No round button and no bottom bar: #czFab is a plain ⋯ at the top right of every page, its one dot on its top right corner, and the menu
513
+ * drops under it. The pages leave 48 px free at the right of their top line (body.cz-phmore). Rules here win over a page's own phone
514
+ * position of the old round button (bottom right), so they carry !important on the place only. */
515
+ @media (max-width: 760px) {
516
+ body.cz-phmore .cz-fabw { top: calc(env(safe-area-inset-top, 0px) + 8px) !important; right: 8px !important; bottom: auto !important; left: auto !important;
517
+ flex-direction: column-reverse; align-items: flex-end; gap: 6px; z-index: 70; }
518
+ body.cz-phmore .cz-fab { width: 44px; height: 44px; border: 0; background: transparent; box-shadow: none; color: var(--cz-ink); }
519
+ body.cz-phmore .cz-fab[aria-expanded="true"] { background: var(--cz-well); }
520
+ body.cz-phmore .cz-fab svg { width: 22px; height: 22px; stroke-width: 2.6; }
521
+ body.cz-phmore .ev-fd { top: 5px; width: 8px; height: 8px; border-width: 2px; }
522
+ body.cz-phmore .ev-fd.you, body.cz-phmore .ev-fd.risk { left: auto; right: 5px; }
523
+ body.cz-phmore .cz-ears, body.cz-phmore .cz-fabw .cz-live, body.cz-phmore .cz-fabw .lv-pill { display: none !important; } /* Live now is a menu row */
524
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm { width: 232px; padding: 8px; gap: 2px; border-radius: 18px; }
525
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm a, body.cz-phmore .cz-fabm.ev-menu.ev-phm button.ev-mi { min-height: 44px; font-weight: var(--fw-regular); position: relative; }
526
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm .bad { color: var(--cz-late); }
527
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm [aria-current="page"] { font-weight: var(--fw-strong); }
528
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm .ev-k { color: var(--cz-ink2); font-size: var(--fs-row); font-weight: var(--fw-regular); }
529
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm .ev-k + .ev-md.you { margin-left: 8px; width: 7px; height: 7px; }
530
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm .ev-md.risk { position: static; margin-left: auto; border: 0; }
531
+ body.cz-phmore .cz-fabm.ev-menu.ev-phm .ev-hr { border: 0; border-top: 1px solid var(--cz-hair); margin: 4px 6px; width: auto; }
532
+ body.cz-phmore .ins-bar { padding-right: 48px; } /* Goals keeps its own top line clear of the ⋯ */
533
+ body.cz-phmore .ev-scrim { background: rgba(42,46,53,.22); }
534
+ }
@@ -0,0 +1,76 @@
1
+ /* cozy-ext.js — Settings › Connectors › Google Meet: set up the PMOS panel over a Meet call from the workspace (initiative meeting-buddy;
2
+ * Wawan 2026-11-19: "I can't find the file. Make it easy, make the setup can be done on the workspace").
3
+ *
4
+ * One row: the panel over Google Meet, what it does now, and icon buttons. Set up copies the extension to ~/PMOS Chrome extension, shows
5
+ * it in Finder and opens Chrome's extensions page; the steps left for the PM (Developer mode, Load unpacked, pick the folder) show under
6
+ * the row. Chrome keeps that last press for the person: no page can load an extension.
7
+ *
8
+ * extState() -> a fresh state object for one Settings dialog
9
+ * extLoad(X) GET /api/extension
10
+ * extHtml(X) -> the Google Meet block
11
+ * extClick(e, X, redraw, toast) -> true when the press was this block's; runs it
12
+ * Routes: lib/routes-extension.js. UI copy says PMOS. */
13
+ import { pmGet, pmPost } from './http.js';
14
+ import { esc, svg } from './cozy-evui.js';
15
+
16
+ const SETUP = 'M12 4v11M7 10l5 5 5-5M5 20h14';
17
+ const COPY = 'M9 9h11v11H9zM5 15V5a1 1 0 0 1 1-1h10';
18
+ const STEPS = 'M9 6h11M9 12h11M9 18h11M4 6h.01M4 12h.01M4 18h.01';
19
+ const hm = (iso) => { const d = new Date(iso); return Number.isFinite(d.getTime()) ? String(d.getHours()).padStart(2, '0') + ':' + String(d.getMinutes()).padStart(2, '0') : ''; };
20
+
21
+ export function extState() { return { st: null, open: false, busy: false }; }
22
+
23
+ export async function extLoad(X) {
24
+ const r = await pmGet('/api/extension').catch(() => null);
25
+ X.st = r && r.ok ? r : { ok: false };
26
+ }
27
+
28
+ const ib = (act, icon, label) => `<button type="button" class="ev-ib" data-ext="${act}" aria-label="${esc(label)}" title="${esc(label)}">${svg(icon, 18)}</button>`;
29
+
30
+ /** What the row says now. Pure. */
31
+ export function extLine(st) {
32
+ if (!st || !st.ok) return 'PMOS could not read the extension’s state.';
33
+ if (st.seen) return 'Working · seen in a call at ' + hm(st.seen);
34
+ if (st.refreshed) return 'Updated. Press the reload arrow on the PMOS card in Chrome’s extensions page.';
35
+ if (st.copied) return 'Copied to the folder “PMOS Chrome extension” in your home folder. Load it once in Chrome.';
36
+ return 'Not set up. One press puts it in a folder you can find and opens Chrome’s extensions page.';
37
+ }
38
+
39
+ export function extHtml(X) {
40
+ const st = X.st;
41
+ if (st === null) return '';
42
+ const head = '<h4 id="evMeet">Google Meet</h4>';
43
+ const on = !!(st.ok && st.seen);
44
+ const acts = st.ok ? (st.copied
45
+ ? ib('steps', STEPS, X.open ? 'Hide the steps' : 'Show the steps') + ib('setup', SETUP, 'Open the folder and Chrome’s extensions page again')
46
+ : ib('setup', SETUP, 'Set up the PMOS panel for Google Meet')) : '';
47
+ const panel = X.open && st.ok ? `<div class="ev-rl-steps ev-small" data-ext-panel><ol>`
48
+ + '<li>In Chrome’s extensions page, turn on Developer mode (top right).</li>'
49
+ + '<li>Press Load unpacked.</li>'
50
+ + '<li>Pick the folder “PMOS Chrome extension” in your home folder. Finder shows it.</li>'
51
+ + '<li>Open a Google Meet call. The PMOS panel shows at the bottom right.</li></ol>'
52
+ + `<div class="ev-rl-kv"><b>Folder</b><code>${esc(st.folder || '')}</code>${ib('copy', COPY, 'Copy the folder’s path')}</div>`
53
+ + '<p class="ev-small ev-mut">If Load unpacked is greyed out, your company’s Chrome blocks extensions that are not in the Web Store.</p></div>' : '';
54
+ return `<div data-ext>${head}<p class="ev-small ev-mut">The PMOS panel shows over a Google Meet call. Only you see it.</p>`
55
+ + `<div class="ev-trow ev-fr" data-ext-row><span class="ev-gut">${on ? '<i class="ev-dot ok" aria-hidden="true"></i>' : ''}</span><div class="ev-tx ev-grow"><span>PMOS in Google Meet</span><p class="ev-small ev-mut">${esc(extLine(st))}</p></div><span class="ev-rl-acts">${acts}</span></div>${panel}</div>`;
56
+ }
57
+
58
+ export async function extClick(e, X, redraw, toast) {
59
+ const b = e.target.closest('[data-ext]'); if (!b) return false;
60
+ if (X.busy) return true;
61
+ const act = b.dataset.ext;
62
+ const say = (t) => { if (toast) toast(t); };
63
+ if (act === 'copy') {
64
+ try { await navigator.clipboard.writeText((X.st && X.st.folder) || ''); say('Path copied.'); } catch { say('Select the path and copy it by hand.'); }
65
+ return true;
66
+ }
67
+ if (act === 'steps') { X.open = !X.open; redraw(); return true; }
68
+ X.busy = true;
69
+ const r = await pmPost('/api/extension/setup', {}).catch(() => null);
70
+ X.busy = false;
71
+ if (!r || r.ok === false) { say((r && r.error) || 'Not done. Nothing changed.'); return true; }
72
+ X.open = true;
73
+ say(r.opened ? 'Finder shows the folder, and Chrome’s extensions page is open. Three presses left, listed under the row.' : 'The folder is ready. Open chrome://extensions in Chrome and follow the steps under the row.');
74
+ await extLoad(X); redraw();
75
+ return true;
76
+ }
@@ -928,9 +928,11 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
928
928
  /* no name and time line and no "You · 12:09": still read out to a screen reader. The ask card keeps its name line. */
929
929
  body.cz-home:not(.hm-plist) .hm-a:not(.ask):not(.hm-intro) .hm-ab > .hm-who:not(:has(.hm-say)),
930
930
  body.cz-home:not(.hm-plist) .hm-u > .hm-you { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
931
- /* Copy, Retry and Make it a task: on the newest message; an older one shows them on press and hold, or on focus */
931
+ /* Copy, Retry and Make it a task, and the "Worked …" line: only on a touch of the message (phone design, Ph2_ask), or on focus. A tap on
932
+ * the message shows them; a tap elsewhere hides them (home-chat.js). An opened "Worked" line stays. */
932
933
  body.cz-home:not(.hm-plist) .hm-tools { margin-top: 8px; }
933
- body.cz-home:not(.hm-plist) .hm-a:not(.last):not(.held):not(:focus-within) .hm-tools { height: 0; margin: 0; overflow: hidden; opacity: 0; }
934
+ body.cz-home:not(.hm-plist) .hm-a:not(.held):not(:focus-within) .hm-tools { height: 0; margin: 0; overflow: hidden; opacity: 0; }
935
+ body.cz-home:not(.hm-plist) .hm-log > .hm-worked:has(+ .hm-a:not(.held):not(:focus-within)):not(:has([aria-expanded="true"])):not(:focus-within) { display: none; }
934
936
 
935
937
  /* the foot: one box, + · input · mic · send, on the card with no fade over the stream */
936
938
  body.cz-home:not(.hm-plist) #hmFoot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--cz-card); }
@@ -988,3 +990,37 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
988
990
  /* the notes a turn's worked line folds (popup round 3 point 19c): quiet, above its steps */
989
991
  .hm-notes { padding: 4px 0 2px 18px; }
990
992
  .hm-notes p { margin: 0 0 4px; font-size: var(--fs-meta); color: var(--cz-ink2); }
993
+
994
+ /* ── Ask PMOS on a phone (phone design, board Ph2_asklist; pm/phone-ask.js) ──
995
+ * Home's page on a phone: the chats grouped by work, on the white page, no cards. The title alone at the top (the menu's ⋯ is at its right,
996
+ * cozy-ev.css); the composer is fixed at the foot and starts a chat. Home's own list is not drawn; an open chat covers the page as before. */
997
+ .pa-page[hidden] { display: none !important; }
998
+ @media (max-width: 760px) {
999
+ body.cz-home.pa-on.hm-plist { background: var(--cz-card); }
1000
+ body.cz-home.pa-on.hm-plist #hmDesk > .hm-list { display: none !important; }
1001
+ body.cz-home.pa-on:not(.hm-plist) .pa-page { display: none !important; }
1002
+ .pa-page { display: block; font-family: var(--cz-sans); color: var(--cz-ink); padding: calc(env(safe-area-inset-top, 0px) + 14px) 0 112px; }
1003
+ .pa h1, .pa h2, .pa ul { margin: 0; padding: 0; }
1004
+ .pa ul { list-style: none; }
1005
+ .pa-top { min-height: 44px; display: flex; align-items: center; padding-right: 44px; margin-bottom: 14px; }
1006
+ .pa-top h1 { font-size: var(--fs-display); font-weight: var(--fw-strong); line-height: 1.25; }
1007
+ .pa-none { margin: 12px 0; font-size: var(--fs-body); color: var(--cz-ink3); line-height: var(--lh-body); }
1008
+ .pa-g { padding-top: 16px; }
1009
+ .pa-g h2 { display: flex; align-items: center; gap: 10px; padding: 4px 0 6px; font-size: var(--fs-body); font-weight: var(--fw-strong); line-height: var(--lh-body); color: var(--cz-ink); }
1010
+ .pa-gi { flex: none; width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; background: var(--cz-bluebg); color: var(--cz-blue); }
1011
+ .pa-gi.loose { background: var(--cz-well); color: var(--cz-ink3); }
1012
+ .pa-gt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1013
+ .pa-g h2 em { font-style: normal; font-weight: var(--fw-regular); color: var(--cz-ink3); font-size: var(--fs-meta); }
1014
+ .pa-r { all: unset; box-sizing: border-box; position: relative; width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--cz-hair); cursor: pointer; }
1015
+ .pa-r:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
1016
+ .pa-d { position: absolute; left: 0; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--cz-blue); }
1017
+ .pa-x { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
1018
+ .pa-x b { font-size: var(--fs-row); font-weight: var(--fw-strong); line-height: var(--lh-row); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1019
+ .pa-x small { font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1020
+ .pa-r time { flex: none; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-row); }
1021
+ .pa-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--cz-card); }
1022
+ .pa-new { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink3); cursor: text; }
1023
+ .pa-ph { flex: 1; font-size: var(--fs-field); }
1024
+ .pa-pl, .pa-mic { display: inline-grid; place-items: center; color: var(--cz-ink2); }
1025
+ .pa-go { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--cz-solid); color: var(--cz-onsolid); }
1026
+ }