create-pmos 0.371.0 → 0.373.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.371.0",
3
+ "version": "0.373.0",
4
4
  "description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -32,6 +32,30 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.373.0",
37
+ "at": "2026-10-21T03:11:16.462Z",
38
+ "f": 2,
39
+ "prs": [
40
+ {
41
+ "n": 982,
42
+ "t": "Calmer Briefing first screen: mic, calendar ⋯, pin on hover (calmer first screen 5/5)",
43
+ "s": "Calmer Briefing first screen: mic, calendar ⋯, pin on hover (calmer first screen 5/5)"
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "v": "0.372.0",
49
+ "at": "2026-10-21T02:53:20.808Z",
50
+ "f": 2,
51
+ "prs": [
52
+ {
53
+ "n": 981,
54
+ "t": "The Board's first screen has quiet chips, not two segmented rows (calmer first screen 4/5)",
55
+ "s": "The Board's first screen has quiet chips, not two segmented rows (calmer first screen 4/5)"
56
+ }
57
+ ]
58
+ },
35
59
  {
36
60
  "v": "0.371.0",
37
61
  "at": "2026-10-21T02:38:31.758Z",
@@ -297,35 +321,6 @@
297
321
  "s": "The box takes several lines."
298
322
  }
299
323
  ]
300
- },
301
- {
302
- "v": "0.353.0",
303
- "at": "2026-10-20T08:29:44.242Z",
304
- "f": 2,
305
- "prs": [
306
- {
307
- "n": 951,
308
- "t": "Sessions listed beside the chat, grouped like Slack",
309
- "s": "In full screen, the chat dialog has three panels: the session list on the left, the chat in the middle and the viewer on the right."
310
- }
311
- ]
312
- },
313
- {
314
- "v": "0.352.0",
315
- "at": "2026-10-20T08:20:25.043Z",
316
- "f": 2,
317
- "prs": [
318
- {
319
- "n": 944,
320
- "t": "Briefing \"What you need to do\" rows are two lines",
321
- "s": "Each row is two lines, the title and then \"subject · next step\", with a chevron, as in item 5 of the premium-simple-ui mockup."
322
- },
323
- {
324
- "n": 952,
325
- "t": "An .html file Claude names opens in the viewer as its page, not its source",
326
- "s": "The tab draws the page itself, with its toggles and charts working."
327
- }
328
- ]
329
324
  }
330
325
  ]
331
326
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@5bbd4993
1
+ kernel-source: pmos@8f1a741d
2
2
  assembled: 2026-10-21
3
3
  mode: vendor
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Eval calibration log"
4
4
  description: "Append-only record of every PM override of an evaluator verdict."
5
- generated: {by: process:create-pmos, at: "2026-10-21T02:38:28Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-21T03:11:13Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Health budgets"
4
4
  description: "Closed registry of health-budget anchors (D59), edited only by the PM."
5
- generated: {by: process:create-pmos, at: "2026-10-21T02:38:28Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-21T03:11:13Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Discoveries and friction log"
4
4
  description: "Append-only record of what runs discovered and where the process rubbed."
5
- generated: {by: process:create-pmos, at: "2026-10-21T02:38:28Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-21T03:11:13Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -97,21 +97,22 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
97
97
  }
98
98
 
99
99
  /* B5 stages */
100
- await p.click('#ibTabs [data-v="stages"]');
100
+ ok('B3 the view is one chip in the Initiatives head that says List, and its menu (List, By stage, Timeline) starts shut (premium-calmer-first-screen)', await p.evaluate(() => document.querySelector('#ibF').textContent.trim() === 'List' && document.querySelector('#ibTabs').hidden && document.querySelector('#ibF').getAttribute('aria-expanded') === 'false' && [...document.querySelectorAll('#ibTabs button')].map((b) => b.textContent).join() === 'List,By stage,Timeline' && !!document.querySelector('#cIni .ch #ibF')));
101
+ await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(p, 'stages');
101
102
  const stg = await p.evaluate(() => ({ cols: [...document.querySelectorAll('#ibBody .isc')].map((c) => c.querySelector('.label').textContent.replace(/\s+/g, ' ').trim()), cards: document.querySelectorAll('#ibBody .icd').length, none: [...document.querySelectorAll('#ibBody .isc')].filter((c) => /None/.test(c.textContent)).length, pressed: document.querySelector('#ibTabs [aria-pressed="true"]').textContent }));
102
103
  ok('B5 one column per workflow stage with the board\'s own count; a stage with none says so', stg.cols.length === 9 && stg.cols[0] === 'Discover 1' && stg.cols.includes('Build 2') && stg.cols.includes('Evaluate 21') && stg.cols.includes('Ideate 0') && stg.none === 3 && stg.cards === 7 && stg.pressed === 'By stage', JSON.stringify(stg));
103
104
  /* B6 timeline */
104
- await p.click('#ibTabs [data-v="time"]');
105
+ await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(p, 'time');
105
106
  const tl = await p.evaluate(() => ({ rows: [...document.querySelectorAll('#ibBody .tlr')].map((r) => ({ t: r.querySelector('.tlt b').textContent, n: r.querySelector('.tln b').textContent, w: r.querySelector('.tln small').textContent, l: r.querySelector('.tlb').style.getPropertyValue('--l'), ww: r.querySelector('.tlb').style.getPropertyValue('--w'), bd: r.classList.contains('bd') })), today: !!document.querySelector('#ibBody .tlplot .td'), none: document.querySelector('#ibBody .tlnone').textContent }));
106
107
  ok('B6 a bar for each initiative with both dates, with days left or over; the others are counted and not drawn', tl.rows.length === 3 && tl.rows[0].t === 'Self-serve onboarding v2' && tl.rows[0].n === '7' && tl.rows[0].w === 'days over' && tl.rows[2].w === 'days left' && /4 initiatives have no dates on record/.test(tl.none) && tl.today, JSON.stringify(tl));
107
108
  ok('B6 each bar sits inside the scale', tl.rows.every((r) => parseFloat(r.l) >= 0 && parseFloat(r.l) + parseFloat(r.ww) <= 100.01) && tl.rows[0].bd);
108
109
  {
109
110
  const f = F.facts(); f.rows = f.rows.map((r) => ({ ...r, start: null, end: null }));
110
- const R = await open({ model: BP.build(f) }); await R.page.click('#ibTabs [data-v="time"]');
111
+ const R = await open({ model: BP.build(f) }); await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(R.page, 'time');
111
112
  ok('B6 with no dates anywhere it draws nothing and says so', await R.page.evaluate(() => document.querySelectorAll('#ibBody .tlr').length === 0 && /No initiative has both a start and an end date on record/.test(document.querySelector('#ibBody').textContent)));
112
113
  await R.ctx.close();
113
114
  }
114
- await p.click('#ibTabs [data-v="list"]');
115
+ await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(p, 'list');
115
116
 
116
117
  /* B9 B8 */
117
118
  ok('B9 with no Jira read the sprint card says so and draws nothing', await p.evaluate(() => /No sprint is on record/.test(document.querySelector('#sprBody').textContent) && document.querySelector('#sprCap').textContent === 'none' && !document.querySelector('#sprBody .spr')));
@@ -216,9 +217,9 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
216
217
  const R = await open({ w: 390, h: 844, theme }), q = R.page;
217
218
  const m = await q.evaluate(() => { const small = [...document.querySelectorAll('#ibTabs button, #ibBody .ini2, #docBody .dmcta, #bsw')].filter((b) => !b.closest('[hidden]') && b.getBoundingClientRect().height > 0 && b.getBoundingClientRect().height < 44).map((b) => b.className + ':' + Math.round(b.getBoundingClientRect().height)); return { over: document.documentElement.scrollWidth > innerWidth + 1, small }; });
218
219
  ok(`B13 at 390 px (${theme}) the page has no sideways scroll and every control is 44 px`, !m.over && m.small.length === 0, JSON.stringify(m));
219
- await q.click('#ibTabs [data-v="stages"]'); await q.click('#ibTabs [data-v="time"]');
220
+ await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(q, 'stages'); await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(q, 'time');
220
221
  ok(`B13 at 390 px (${theme}) the stage and timeline views do not scroll sideways`, await q.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1));
221
- await q.click('#ibTabs [data-v="list"]'); await q.locator('#ibBody .ini2').first().click(); await until(() => q.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(900);
222
+ await (async (pg, v) => { if (await pg.locator('#ibTabs').isHidden()) await pg.click('#ibF'); await pg.click(`#ibTabs [data-v="${v}"]`); })(q, 'list'); await q.locator('#ibBody .ini2').first().click(); await until(() => q.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(900);
222
223
  const g = await q.evaluate(() => { const r = document.querySelector('#dlg').getBoundingClientRect(); return { l: Math.round(r.left), w: Math.round(r.width), vw: innerWidth, tabs: getComputedStyle(document.querySelector('#dTabs')).display }; });
223
224
  ok(`B13 at 390 px (${theme}) the dialog is full width and its Detail / Conversation switch is shown`, g.l === 0 && g.w === g.vw && g.tabs !== 'none', JSON.stringify(g));
224
225
  await R.ctx.close();
@@ -250,8 +251,8 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
250
251
  /* B13 fidelity against the mockup */
251
252
  if (!fs.existsSync(MOCKUP)) ok('B13 the mockup is in the repository', false, MOCKUP);
252
253
  else {
253
- const PAIRS = [['rail', '.rail'], ['card', '#cIni'], ['heading', '#hIni'], ['tabs', '#ibTabs'], ['inih', '.inih'], ['row', '.ini2'], ['title', '.ini2 .it b'], ['subtitle', '.ini2 .it small'], ['stage', '.ini2 .wst em'], ['segs', '.ini2 .sg2'], ['progress', '.ini2 .pg i'], ['finish', '.ini2 .rl'], ['tag', '.tgf'], ['docs', '#cDocs'], ['dmr', '.dmr'], ['dmi', '.dmi'], ['dmt', '.dmn b'], ['dmd', '.dmn>small'], ['cta', '.dmcta.alt'], ['dock', '.dock']];
254
- const SKIP_W = ['row', 'title', 'subtitle', 'stage', 'finish', 'tag', 'dmr', 'dmt', 'dmd', 'cta', 'segs', 'progress', 'spr', 'docs', 'card', 'tabs', 'heading', 'inih'];
254
+ const PAIRS = [['rail', '.rail'], ['card', '#cIni'], ['heading', '#hIni'], ['inih', '.inih'], ['row', '.ini2'], ['title', '.ini2 .it b'], ['subtitle', '.ini2 .it small'], ['stage', '.ini2 .wst em'], ['segs', '.ini2 .sg2'], ['progress', '.ini2 .pg i'], ['finish', '.ini2 .rl'], ['tag', '.tgf'], ['docs', '#cDocs'], ['dmr', '.dmr'], ['dmi', '.dmi'], ['dmt', '.dmn b'], ['dmd', '.dmn>small'], ['cta', '.dmcta.alt'], ['dock', '.dock']];
255
+ const SKIP_W = ['row', 'title', 'subtitle', 'stage', 'finish', 'tag', 'dmr', 'dmt', 'dmd', 'cta', 'segs', 'progress', 'spr', 'docs', 'card', 'heading', 'inih'];
255
256
  const PROPS = ['fontSize', 'fontWeight', 'fontFamily', 'color', 'backgroundColor', 'borderRadius', 'paddingTop', 'paddingLeft', 'letterSpacing', 'lineHeight', 'boxShadow', 'backdropFilter', 'borderTopColor'];
256
257
  const grab = (pg) => pg.evaluate(([pairs, props]) => { const o = {}; for (const [n, s0] of pairs) { const s = (n === 'rail' || n === 'dock') ? s0 : 'main.stage:not([hidden]) ' + s0; const e = document.querySelector(s); if (!e) { o[n] = null; continue; } const cs = getComputedStyle(e), r = e.getBoundingClientRect(), v = { left: Math.round(r.left), width: Math.round(r.width) }; props.forEach((k) => { v[k] = cs[k]; }); o[n] = v; } return o; }, [PAIRS, PROPS]);
257
258
  for (const [w, h] of [[1280, 900], [390, 844]]) for (const th of ['light', 'dark']) {
@@ -76,6 +76,7 @@ const ready = (model) => ({ status: 200, body: { ok: true, state: 'ready', model
76
76
  ok('C2 merges, blocked and idle are counted; blocked and idle chart from today and say plainly that their history starts today', tiles[1].v === '3' && tiles[1].chart && tiles[2].v === '1' && tiles[2].c === 'of 3 open · history starts today' && tiles[2].chart && tiles[3].v === '1' && tiles[3].c === 'of 3 open · history starts today' && tiles[3].chart && /\bbad\b/.test(tiles[2].cls) && /\bwarn\b/.test(tiles[3].cls), JSON.stringify(tiles));
77
77
  const per = await p.evaluate(() => [...document.querySelectorAll('#perTabs button')].map((b) => b.textContent + ':' + b.getAttribute('aria-pressed') + ':' + (b.getAttribute('aria-disabled') || '')).join('|'));
78
78
  ok('C2 only Week is available; Day and Month are disabled', per === 'Day:false:true|Week:true:|Month:false:true', per);
79
+ ok('C2 Day and Month hold no count, so only Week shows, as one quiet chip (premium-calmer-first-screen)', await p.evaluate(() => [...document.querySelectorAll('#perTabs button')].filter((b) => getComputedStyle(b).display !== 'none').map((b) => b.textContent).join() === 'Week'));
79
80
  ok('C2 no target, on-target chip, dashed line or demo label is drawn; the lead line says no measure has a target', await p.evaluate(() => !document.querySelector('#cMet .mchip.ok, #cMet .tg, #cMet .tgl') && !/on target|demo|dashed/i.test(document.querySelector('#metBody').textContent) && /No measure here has a target/.test(document.querySelector('#metHint').textContent)));
80
81
  const look = await p.evaluate(() => ({ chips: [...document.querySelectorAll('#metBody .mt1')].map((t) => (t.querySelector('.mchip') || {}).textContent || ''), off: [...document.querySelectorAll('#metBody .mt1')].map((t) => t.classList.contains('off')), lead: (document.querySelector('#metHint .mflag') || {}).textContent || '', ins: (document.querySelector('#metHint a#metIns') || {}).getAttribute ? document.querySelector('#metHint a#metIns').getAttribute('href') : '' }));
81
82
  ok('C2 the tiles that need a look carry the chip and the orange outline; the lead line counts them and links to Insights', JSON.stringify(look.off) === JSON.stringify(tiles.map((t) => /\b(warn|bad)\b/.test(t.cls))) && look.chips.every((c, i) => (c === 'Needs a look') === look.off[i]) && look.lead === look.off.filter(Boolean).length + ' of 4 need a look.' && /^\/premium-insights\.html\?ws=/.test(look.ins), JSON.stringify(look));
@@ -112,7 +113,7 @@ const ready = (model) => ({ status: 200, body: { ok: true, state: 'ready', model
112
113
  await p.locator('#metBody .mt1').nth(2).click(); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(400);
113
114
  ok('C4 Blocked opens its definition, and the weeks before its history started read Not kept yet', await p.evaluate(() => { const v = [...document.querySelectorAll('#oMain .vtb div b')].map((b) => b.textContent); return document.querySelector('#dTitle').textContent === 'Blocked' && /blocked step/.test(document.querySelector('#oMain .lede').textContent) && v.length === 8 && v.slice(0, 7).every((x) => x === 'Not kept yet') && v[7] === '1'; }));
114
115
  await p.keyboard.press('Escape'); await until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on')));
115
- await p.click('#perTabs [data-per="day"]', { force: true }); ok('C4 a disabled period says why and changes nothing', await until(() => p.evaluate(() => /by week only/.test(document.querySelector('#toast').textContent))) && await p.evaluate(() => document.querySelector('#perTabs [data-per="week"]').getAttribute('aria-pressed') === 'true'));
116
+ await p.$eval('#perTabs [data-per="day"]', (b) => b.click()); ok('C4 a disabled period says why and changes nothing', await until(() => p.evaluate(() => /by week only/.test(document.querySelector('#toast').textContent))) && await p.evaluate(() => document.querySelector('#perTabs [data-per="week"]').getAttribute('aria-pressed') === 'true'));
116
117
  ok('0 no page error', A.errors.length === 0, A.errors.join(' | '));
117
118
  await A.ctx.close();
118
119
 
@@ -191,9 +192,9 @@ const ready = (model) => ({ status: 200, body: { ok: true, state: 'ready', model
191
192
  /* C8 fidelity against the mockup */
192
193
  if (!fs.existsSync(MOCKUP)) ok('C8 the mockup is in the repository', false, MOCKUP);
193
194
  else {
194
- const SEL = [['card', '#cMet'], ['heading', '#hMet'], ['hint', '#cMet .mhint'], ['per', '#perTabs'], ['note', '#cMet .note'], ['t1', '#cMet .mt1:nth-child(1)'], ['t1val', '#cMet .mt1:nth-child(1) .mval'], ['t1cap', '#cMet .mt1:nth-child(1) .mwk'], ['t1chg', '#cMet .mt1:nth-child(1) .mchg'], ['t1svg', '#cMet .mt1:nth-child(1) svg'], ['t1line', '#cMet .mt1:nth-child(1) .ln2'], ['t1dot', '#cMet .mt1:nth-child(1) .dt'], ['t1foot', '#cMet .mt1:nth-child(1) .mfoot'], ['t3', '#cMet .mt1:nth-child(3)'], ['t3val', '#cMet .mt1:nth-child(3) .mval'], ['t3cap', '#cMet .mt1:nth-child(3) .mwk'], ['t4', '#cMet .mt1:nth-child(4)'], ['t4lab', '#cMet .mt1:nth-child(4) span']];
195
- const SKIP_W = new Set(['hint', 'note', 't1val', 't1cap', 't1chg', 't1foot', 't3val', 't3cap', 't4lab', 'heading', 'per']);
196
- const SKIP_L = new Set(['t1val', 't1cap', 't1chg', 't1foot', 't3val', 't3cap', 't4lab', 'hint', 'note', 'per']);
195
+ const SEL = [['card', '#cMet'], ['heading', '#hMet'], ['hint', '#cMet .mhint'], ['note', '#cMet .note'], ['t1', '#cMet .mt1:nth-child(1)'], ['t1val', '#cMet .mt1:nth-child(1) .mval'], ['t1cap', '#cMet .mt1:nth-child(1) .mwk'], ['t1chg', '#cMet .mt1:nth-child(1) .mchg'], ['t1svg', '#cMet .mt1:nth-child(1) svg'], ['t1line', '#cMet .mt1:nth-child(1) .ln2'], ['t1dot', '#cMet .mt1:nth-child(1) .dt'], ['t1foot', '#cMet .mt1:nth-child(1) .mfoot'], ['t3', '#cMet .mt1:nth-child(3)'], ['t3val', '#cMet .mt1:nth-child(3) .mval'], ['t3cap', '#cMet .mt1:nth-child(3) .mwk'], ['t4', '#cMet .mt1:nth-child(4)'], ['t4lab', '#cMet .mt1:nth-child(4) span']];
196
+ const SKIP_W = new Set(['hint', 'note', 't1val', 't1cap', 't1chg', 't1foot', 't3val', 't3cap', 't4lab', 'heading']);
197
+ const SKIP_L = new Set(['t1val', 't1cap', 't1chg', 't1foot', 't3val', 't3cap', 't4lab', 'hint', 'note']);
197
198
  const PROPS = ['fontSize', 'fontWeight', 'fontFamily', 'color', 'backgroundColor', 'borderRadius', 'paddingTop', 'paddingLeft', 'letterSpacing', 'lineHeight', 'boxShadow', 'stroke', 'strokeWidth', 'fill', 'marginTop'];
198
199
  const grab = (pg) => pg.evaluate(([pairs, props]) => { const o = {}; for (const [n, s] of pairs) { const e = document.querySelector('main.stage:not([hidden]) ' + s); if (!e) { o[n] = null; continue; } const cs = getComputedStyle(e), r = e.getBoundingClientRect(), v = { left: Math.round(r.left), width: Math.round(r.width) }; props.forEach((k) => { v[k] = cs[k]; }); o[n] = v; } return o; }, [SEL, PROPS]);
199
200
  for (const [w, h] of [[1280, 900], [390, 844]]) for (const th of ['light', 'dark']) {
@@ -288,11 +288,15 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
288
288
  ok('R7 Today has Ahead, a now marker and Earlier today', tl.groups.join() === 'Ahead,Earlier today' && /^18:05 · snapshot$/.test(tl.now), JSON.stringify(tl));
289
289
  ok('R7 the caption counts earlier and ahead', tl.cap === `${MODEL.today.earlier.length} earlier · ${MODEL.today.ahead.length} ahead`, tl.cap);
290
290
  ok('R7 one chip per source with its count', tl.chips.join() === 'Calendar2,Merges3,Agent runs0', tl.chips.join());
291
+ ok('R7 the Calendar header shows only ⋯ and the fold; Notes, the source filter and the full calendar wait in the shut ⋯ (premium-calmer-first-screen)', await p.evaluate(() => { const h = document.querySelector('#todayCard .ch'), seen = [...h.querySelectorAll('button')].filter((b) => b.getClientRects().length).map((b) => b.id || b.className); const m = document.querySelector('#calMenu'); return seen.join() === 'calMore,foldb' && m.hidden && !!m.querySelector('.fbtn') && !!m.querySelector('#vnOpen') && !!m.querySelector('.vc-open'); }));
292
+ await p.click('#calMore');
293
+ ok('R7 ⋯ opens the menu with Notes, Filter sources and Full calendar', await p.evaluate(() => { const m = document.querySelector('#calMenu'); return !m.hidden && document.querySelector('#calMore').getAttribute('aria-expanded') === 'true' && /Notes.*Filter sources.*Full calendar/.test(m.textContent); }));
291
294
  await p.click('.fbtn');
295
+ ok('R7 a press in the menu runs and shuts it', await p.evaluate(() => document.querySelector('#calMenu').hidden && document.querySelector('#todayOpts').classList.contains('on')));
292
296
  await p.click('#srcChips [data-k="merge"]');
293
297
  ok('R7 turning a source off removes its rows', await p.evaluate(() => ![...document.querySelectorAll('#tl .ev')].some((e) => e.classList.contains('src-merge'))));
294
298
  await p.click('#srcChips [data-k="merge"]');
295
- await p.click('.fbtn');
299
+ await p.click('#calMore'); await p.click('.fbtn');
296
300
 
297
301
  /* dialog */
298
302
  const row0 = p.locator('#rank .rhd').first();
@@ -302,6 +306,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
302
306
  ok('R4 Enter on a row opens the standard dialog', dlg);
303
307
  const d = await p.evaluate(() => ({ title: document.querySelector('#dTitle').textContent, inert: ['.rail', 'main.stage', '#dock'].every((s) => document.querySelector(s).inert), pane: document.querySelector('#oMain').textContent, card: document.querySelector('#card') ? document.querySelector('#card').textContent : '', log: document.querySelector('#logT') ? document.querySelector('#logT').textContent : '', label: document.querySelector('#oLab').textContent, input: document.querySelector('#askIn').disabled, role: document.querySelector('#dlg').getAttribute('aria-modal') }));
304
308
  ok('R11 the page behind the dialog is inert and the dialog is modal', d.inert && d.role === 'true');
309
+ ok('R4 the dialog offers Pin to the top for a list row (premium-calmer-first-screen)', await p.evaluate(() => { const b = document.querySelector('#card .dpin'); return !!b && /Pin to the top/.test(b.textContent) && b.getAttribute('aria-pressed') === 'false'; }));
305
310
  ok('R4 the dialog names the row, with an activity log of what was read', d.title === MODEL.list.rows[0].title && /Readfromtherepository3steps/.test(d.log.replace(/\s+/g, '')), d.log);
306
311
  ok('R4 the detail pane opens with the record\'s path and heading, as the mockup draws it', await p.evaluate(() => { const o = document.querySelector('#oMain'); return !!o.querySelector('.dpath') && !!o.querySelector('.d1') && o.querySelector('.dpath').compareDocumentPosition(o.querySelector('.d1')) & Node.DOCUMENT_POSITION_FOLLOWING; }));
307
312
  ok('R4 the card holds the evidence and the next step, and the right pane the record', /The way through/.test(d.card) && /Blocked at/.test(d.card) && /Initiative record/.test(d.label) && /planning\/initiatives|console-3-boards/.test(d.pane), d.card.slice(0, 120));
@@ -652,7 +657,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
652
657
  {
653
658
  const t = await p.evaluate(() => {
654
659
  const small = [];
655
- for (const s of ['.rr .rhd', '.rr .rpin', '#tl .ev', '#srcChips .fchip', '.fbtn', '.rail .pl', '#srcChip', '#moreBtn', '.rail .pchat .orb', '#theme2']) document.querySelectorAll(s).forEach((e) => { const r = e.getBoundingClientRect(); if (r.width && (r.height < 44 || r.width < 44)) small.push(s + ' ' + Math.round(r.width) + 'x' + Math.round(r.height)); });
660
+ for (const s of ['.rr .rhd', '.rr .rpin', '#tl .ev', '#srcChips .fchip', '.fbtn', '#calMore', '.rail .pl', '#srcChip', '#moreBtn', '.rail .pchat .orb', '#theme2']) document.querySelectorAll(s).forEach((e) => { const r = e.getBoundingClientRect(); if (r.width && (r.height < 44 || r.width < 44)) small.push(s + ' ' + Math.round(r.width) + 'x' + Math.round(r.height)); });
656
661
  return small;
657
662
  });
658
663
  ok('R11 every control is at least 44 px', t.length === 0, t.join(' | '));
@@ -1,4 +1,28 @@
1
1
  [
2
+ {
3
+ "v": "0.373.0",
4
+ "at": "2026-10-21T03:11:16.462Z",
5
+ "f": 2,
6
+ "prs": [
7
+ {
8
+ "n": 982,
9
+ "t": "Calmer Briefing first screen: mic, calendar ⋯, pin on hover (calmer first screen 5/5)",
10
+ "s": "Calmer Briefing first screen: mic, calendar ⋯, pin on hover (calmer first screen 5/5)"
11
+ }
12
+ ]
13
+ },
14
+ {
15
+ "v": "0.372.0",
16
+ "at": "2026-10-21T02:53:20.808Z",
17
+ "f": 2,
18
+ "prs": [
19
+ {
20
+ "n": 981,
21
+ "t": "The Board's first screen has quiet chips, not two segmented rows (calmer first screen 4/5)",
22
+ "s": "The Board's first screen has quiet chips, not two segmented rows (calmer first screen 4/5)"
23
+ }
24
+ ]
25
+ },
2
26
  {
3
27
  "v": "0.371.0",
4
28
  "at": "2026-10-21T02:38:31.758Z",
@@ -132,7 +132,7 @@ A row has two lines: a verb-first title, then the subject and what the repositor
132
132
 
133
133
  The header counts "N of M done". A row counts as done when the record behind it changes, so a row clears by itself. Nothing on this page presses Done for you. The count starts again each day and is kept on this device.
134
134
 
135
- The pin on a row keeps it at the top for this session.
135
+ The pin on a row keeps it at the top for this session. On a desktop it shows when you point at the row; on a phone it shows only on a pinned row, and **Pin to the top** is in the row's dialog.
136
136
 
137
137
  ## Calendar
138
138
 
@@ -148,7 +148,7 @@ Above the list, with today picked, a ring shows how many of the meetings still a
148
148
 
149
149
  With another day picked, the card lists that day's meetings from the calendar PMOS holds, and the items due that day. It reads the week once when the page opens. If the calendar cannot be read, the card says "Calendar not read" and gives the reason, and does not guess. A meeting in the past is shown dimmer. Picking a day changes only what the card shows and records nothing.
150
150
 
151
- **The full calendar.** The button beside the filter in the card's title row opens the calendar in a dialog. **Day**, **Week** and **Month** each read the calendar PMOS holds for that range; the arrows move one day, week or month, and **Today** comes back. The calendar fills the dialog; the dialog's conversation button brings the conversation back beside it. Day and Week are drawn the way the console's Calendar draws them. Week is a timeline from Monday to Sunday, with the weekend shaded and today tinted. Each day's head shows the day (press it to open that day), its meeting hours and a load bar. The **dates** row shows all-day meetings and the dated marks the Calendar reads (a promised date, a plan item, a release, a report, your own due items): four a day in a week, and a **+N** that opens the day. Every hour from 08:00 to 18:00 (wider when a meeting is earlier or later) has its label. Meetings at the same time sit side by side. A routine meeting (a stand-up, a 1:1, or one tied to no initiative, prep or record) is grey. In a narrow dialog, such as on a phone, Week is a list of days and Day stays a timeline. In Month, press a day to open it. Press a meeting to open its meeting dialog; the calendar stays as a **Calendar** tab beside it, at the same view. An empty range says "No meetings in this week" (or day, or month), and a calendar that cannot be read says "Calendar not read" with the reason.
151
+ **The full calendar.** **Full calendar** in the card's ⋯ menu opens the calendar in a dialog. **Day**, **Week** and **Month** each read the calendar PMOS holds for that range; the arrows move one day, week or month, and **Today** comes back. The calendar fills the dialog; the dialog's conversation button brings the conversation back beside it. Day and Week are drawn the way the console's Calendar draws them. Week is a timeline from Monday to Sunday, with the weekend shaded and today tinted. Each day's head shows the day (press it to open that day), its meeting hours and a load bar. The **dates** row shows all-day meetings and the dated marks the Calendar reads (a promised date, a plan item, a release, a report, your own due items): four a day in a week, and a **+N** that opens the day. Every hour from 08:00 to 18:00 (wider when a meeting is earlier or later) has its label. Meetings at the same time sit side by side. A routine meeting (a stand-up, a 1:1, or one tied to no initiative, prep or record) is grey. In a narrow dialog, such as on a phone, Week is a list of days and Day stays a timeline. In Month, press a day to open it. Press a meeting to open its meeting dialog; the calendar stays as a **Calendar** tab beside it, at the same view. An empty range says "No meetings in this week" (or day, or month), and a calendar that cannot be read says "Calendar not read" with the reason.
152
152
 
153
153
  Press a meeting, from today or from another day, to open the meeting dialog. It shows the time, the people, and what the meeting is about. It also shows the notes (decisions, next steps and open questions), the material, and, when a recording was kept, its length and the key points. Each part appears only when a record holds it.
154
154
 
@@ -158,7 +158,7 @@ In **Notes**, each next step has **Make task** when the note is linked to an ini
158
158
 
159
159
  **Record.** A meeting of today that ended less than 10 minutes ago, or has not started, has a **Record** press in the dialog. Before the first press, the dialog says "Tell everyone first" and what the press does: it makes the meeting's note, or uses the one it has, and starts to listen to your microphone and the sound of the meeting. The audio and the notes stay on this machine. The console's own sheet asks where the meeting's sound comes from. It looks as it does in the console, in the premium colours. While it records, the dialog shows the clock, **Pause** and **Stop**. A paused meeting stays open for one hour and has **Resume**. **Stop** asks first, because a stopped meeting cannot be resumed, and offers **Pause instead**. A refusal shows the reason and changes nothing. What the dialog shows comes from the recorder and from the notes the server holds, not from the last press. Only one meeting records at a time. A row in Today or in the week shows **Recording** or **Paused** when its note is in that state.
160
160
 
161
- **The Record control.** The Briefing's top bar has **Record**. A press starts an untitled note at once and listens to your microphone and the sound of the meeting. The arrow next to it lists today's meetings that have not ended more than 10 minutes ago, each with its time and **Now**, **Recording** or **Paused**, and **New note**. The first start on the page asks "Tell everyone first". The control hides while a note records, because only one note records at a time. The other premium pages have no Record control, because only the Briefing can hold the microphone.
161
+ **The Record control.** The Briefing's top bar has a round microphone. When a meeting of today has not ended more than 10 minutes ago, a press lists those meetings, each with its time and **Now**, **Recording** or **Paused**, and **New note**. With no such meeting, a press goes straight to a new note: an untitled note that listens to your microphone and the sound of the meeting. The first start on the page asks "Tell everyone first". The control hides while a note records, because only one note records at a time. The other premium pages have no Record control, because only the Briefing can hold the microphone.
162
162
 
163
163
  **Live notes.** A started note opens its meeting's dialog (or a dialog of its own when it has no meeting) with a **Live notes** tab beside the detail. The tab reads the note every 3 seconds while it is shown: Recording with the clock, or Paused with the time it stays open until, and **Highlight**, **Pause** or **Resume**, and **Stop**. **Highlight** keeps the last 30 seconds and the next ones as a highlight, written from the transcript when the window closes, as the console does. **Stop** asks first. **Private** asks first, because it deletes the note's audio, transcript and screen shots now. **Your notes** is saved when you leave the box, through the console's save. The tab lists the highlights and the live transcript with who spoke, as the note holds them. **Focus** opens a **Focus** tab next to it when the note belongs to a calendar meeting.
164
164
 
@@ -172,7 +172,7 @@ In **Notes**, each next step has **Make task** when the note is linked to an ini
172
172
 
173
173
  In the **Add material** sheet, a **Topic** choice ties the item to one of the meeting's topics, so Focus can bring it up. It appears only when the meeting has topics.
174
174
 
175
- **Notes.** The Calendar card header has a **Notes** press. On a phone the header has no room, so **Notes** sits under the day; show the card first if it is hidden. It opens the dialog with every meeting note in the detail pane, as the console's Calendar › Notes lists them. The notes are grouped by what each one is about: Portfolio, each board in the portfolio's order, Initiatives, then Not linked. A row shows the meeting's day and time, its length, its initiative or a "board" tag, "no meeting" when the note has no meeting, "recording" or "paused", and a count when statements differ from a file. The notes of one meeting series are one row with the number of meetings and how many next steps are still open. The chevron folds it open to its newest three notes, each with the first line of its summary. Type in the search field to filter by title, meeting, initiative or summary at once. After a moment PMOS also searches what was said, the decisions and the transcripts, and adds the notes it finds. A private note is found by its title only.
175
+ **Notes.** The Calendar card's ⋯ menu has **Notes**, with **Filter sources** and **Full calendar**; the header itself shows only ⋯ and the fold. On a phone the header has no room, so **Notes** sits under the day; show the card first if it is hidden. It opens the dialog with every meeting note in the detail pane, as the console's Calendar › Notes lists them. The notes are grouped by what each one is about: Portfolio, each board in the portfolio's order, Initiatives, then Not linked. A row shows the meeting's day and time, its length, its initiative or a "board" tag, "no meeting" when the note has no meeting, "recording" or "paused", and a count when statements differ from a file. The notes of one meeting series are one row with the number of meetings and how many next steps are still open. The chevron folds it open to its newest three notes, each with the first line of its summary. Type in the search field to filter by title, meeting, initiative or summary at once. After a moment PMOS also searches what was said, the decisions and the transcripts, and adds the notes it finds. A private note is found by its title only.
176
176
 
177
177
  Press a note to open it as a tab beside the list, with **Before**, **During** and **After** as the meeting dialog has. Press a series to open its newest note, then page through the series with the arrows. The tab's head shows the note's meeting and what it is about. **Change** (or **Choose what it is about**) lists the Portfolio, each board and its initiatives; **Save** writes the note's link, as the console's picker does, and the note moves into its group. Linking a note to another calendar event stays in the console. Make task writes the next step to the note's initiative, as in the meeting dialog.
178
178
 
@@ -304,13 +304,14 @@ Not drawn, because no record backs them: answers and ideas an agent files by its
304
304
  Board is the fourth place on the rail, after Chat, at `/premium-board.html`. It reads what the production Initiatives page reads, for one board at a time, and shows a switcher only when more than one board is registered. The first time it takes a few seconds, because the routes derive every initiative. The page says "Reading the board" with the seconds, shows nothing in place of a guess, and asks again.
305
305
 
306
306
  - **The header** counts the board's open initiatives: how many are on track, at risk, late and on hold, with a bar. A zero is shown.
307
+ - **The view chip** in the Initiatives head says which view is shown (List, By stage or Timeline); press it to pick another.
307
308
  - **List** shows the late and at-risk initiatives first, then the board's now view, up to 100 loaded and 25 on screen at a time. A row shows the owner and lane, a status chip when it is not on track, how far through the workflow it is (and "derived" when the workflow engine placed it), a progress bar only when a record holds progress, and the planned finish only when an end date was set ("Not planned" otherwise). "Do this first" appears only when the first row is late.
308
309
  - **By stage** has one column for each stage of the board's workflow with the board's own count and its first five initiatives.
309
310
  - **List** and **Timeline** show ten tasks a page with Previous and Next; **By stage** shows six cards a column with Show more. **Timeline** draws a bar for each initiative that has both a start and an end date, with the days left or over, and counts the rest. With no dates on record it says so and draws nothing.
310
311
  - **Sprint** appears when an agent session has read Jira for the board. Otherwise it says there is none. Press it to open the sprint's facts, with the sprint as a board in a second tab: **To do**, **In progress** and **Done** columns from the last Jira read, with the dates, the days left and the points. The sprint goal is the one the Jira status check writes from the sprint's tickets, as on the console's Sprints tab, with its summary; Jira's own goal shows under it only as a reference (**In Jira: "…"**). Until the check has written one, the tab says **No goal yet**. The active and next sprints are buttons at the top. The closed sprints are behind **Past sprints**, which is shut until you press it. Press any card to open its ticket in another tab. A ticket that is on no initiative of this board shows what the sprint read holds (title, status, points and its Jira link). The board is read only: Jira owns each ticket's status and sprint, so you move tickets in Jira. Tickets with no sprint are not in this read. **Coming up** shows the next release, from the releases ledger.
311
312
  - **Open the backlog** is in the Sprint dialog and on its sprint tab. It opens the board's Jira backlog in a tab beside the dialog: the open sprints (active, then next) and then **Backlog**, the tickets in no sprint and not done. A row shows the key, title, status, points and initiative, and why a blocked ticket is blocked. **All**, **Blocked** and **Bugs** filter it (Bugs appears only when the Jira read holds the issue type). A row opens its ticket. The list holds only the tickets the board's initiatives pushed to Jira or hold under their epics, in key order: the Jira read has no rank, assignee or capacity. You move and rank tickets in Jira. With no Jira read, the tab says so.
312
313
  - **Next release** shows the next release that carries an initiative of this board, the one planned after it, and the three latest past releases (**Released** when accepted, else **Past**). It reads the release records (`releases/releases.jsonl`, written from the console's Releases view); Jira fix versions alone do not make a release. With no release planned it says so and still lists the past ones. With none at all it says "No release is on record for this board, past or planned."
313
- - **Metrics** appears above the Initiatives card on the board of any workspace except the home one (PMOS itself), and counts from that workspace's own repository. It has four tiles. **Corrections per 100 runs** is the corrections logged on the week's runs in `planning/runs/agent-runs.jsonl`; a week with fewer than 10 runs is left blank. **Merged a week** counts the commits on the first-parent line of the trunk. **Blocked** and **Idle for a month** come from the workflow engine, which keeps no history. From the first day the card is read, PMOS keeps their counts once a day in the workspace's state folder (`board-metric-history.jsonl`), so their charts start on that day and their caption says **history starts today** (later, the date). Earlier weeks read **Not kept yet**. Move over a chart, or use the arrow keys, to read a week. A tile that cannot be counted says **Not read** and why; a repository with no run log says **No runs yet**. The line above the tiles starts with how many tiles need a look, and those tiles have a **Needs a look** chip and an orange outline. The line ends with **open Insights**, which opens the same board's Insights page. Press a tile for its definition and values, with the read-only agent beside it. A target is set on Insights, not here. A measure with a target shows it under the value, draws it as a dashed line, and carries **On target** or its gap (for example **2 short**); off target, it also has the orange outline. A measure without a target draws no line. Day and Month are off. It was tested only on made-up repositories, not on a real IDPF or microsite repository.
314
+ - **Metrics** appears above the Initiatives card on the board of any workspace except the home one (PMOS itself), and counts from that workspace's own repository. It counts by week only, so its period shows as one **Week** chip. A tile still being read says Reading; open it to see why. It has four tiles. **Corrections per 100 runs** is the corrections logged on the week's runs in `planning/runs/agent-runs.jsonl`; a week with fewer than 10 runs is left blank. **Merged a week** counts the commits on the first-parent line of the trunk. **Blocked** and **Idle for a month** come from the workflow engine, which keeps no history. From the first day the card is read, PMOS keeps their counts once a day in the workspace's state folder (`board-metric-history.jsonl`), so their charts start on that day and their caption says **history starts today** (later, the date). Earlier weeks read **Not kept yet**. Move over a chart, or use the arrow keys, to read a week. A tile that cannot be counted says **Not read** and why; a repository with no run log says **No runs yet**. The line above the tiles starts with how many tiles need a look, and those tiles have a **Needs a look** chip and an orange outline. The line ends with **open Insights**, which opens the same board's Insights page. Press a tile for its definition and values, with the read-only agent beside it. A target is set on Insights, not here. A measure with a target shows it under the value, draws it as a dashed line, and carries **On target** or its gap (for example **2 short**); off target, it also has the orange outline. A measure without a target draws no line. Day and Month are off. It was tested only on made-up repositories, not on a real IDPF or microsite repository.
314
315
  - **The top bar** names the page and the board. With more than one board a menu switches between them, and **Chat** in the rail opens the Chat page on the board's conversation.
315
316
  - **Core documents** lists the board's documents with their state, cadence and writer, a summary (drafts to review, not started, up to date), a progress bar, a filter and a search. A document with a file opens in the dialog, read only, with its path and state; a draft there has **Issue it**, which marks it issued through the console's own route and sends nothing, and **Draft it again**, which starts a new draft that replaces this one (a board draft has no Edit tab). **Draft it** starts the existing read-only run that writes a draft and sends nothing; **Draft the N not started** does that for each document that can be drafted. **Open** stays on premium pages: the backlog goes to this page's initiatives, new asks to its New asks card, releases to the release dialog, a Horizon scan to the Briefing's Horizon scan, and **Set it up** for a report to Insights. **Add a document** opens a form (title, who writes it, where it lives) and saves a document the core set does not cover on the board's record, in `custom-docs.jsonl`. A document with no link reads "Not started". A document with a link to Confluence or Google Docs reads "Linked" and shows its address. PMOS does not read or sync the linked page, so a linked document is never counted as up to date. Issue and Drop are not on this page.
316
317
  - **Opening an initiative.** A click on an initiative opens its page (see "Initiative page"). **Open initiatives** (Page or Popup) in the ⋯ menu changes that: Popup opens the initiative's dialog instead, which shows its record as a grid and the path of its file, with the read-only agent beside it. The choice is kept in this browser. The dialog holds no press.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.371.0",
3
+ "version": "0.373.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.371.0",
9
+ "version": "0.373.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.371.0",
3
+ "version": "0.373.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",
@@ -78,7 +78,7 @@ const answer = (url, mode) => {
78
78
  {
79
79
  const { page, ctx, S } = await open();
80
80
  ok('R8 the Briefing\'s Calendar card has a button that opens the calendar', S.up);
81
- await page.click('#todayCard .vc-open');
81
+ await page.click('#calMore'); await page.click('#todayCard .vc-open');
82
82
  ok('R8 the button opens a dialog with the calendar as its detail', await until(() => page.evaluate(() => document.querySelector('#dlg').classList.contains('on') && document.querySelector('#dTitle').textContent === 'Calendar')) && await ready(page));
83
83
  await until(() => vis(page, '#vcMain .vc-ev'));
84
84
  ok('R8 it opens on this week, read from GET /api/calendar-views?view=week', (await pressed(page)) === 'week' && S.asks.some((u) => /view=week&date=/.test(u)), S.asks.join(' '));
@@ -120,7 +120,7 @@ const answer = (url, mode) => {
120
120
  await page.keyboard.press('Escape');
121
121
  await until(() => page.evaluate(() => !document.querySelector('#dlg').classList.contains('on')), 3000);
122
122
  S.mode = 'empty';
123
- await page.click('#todayCard .vc-open');
123
+ await page.click('#calMore'); await page.click('#todayCard .vc-open');
124
124
  await until(() => page.evaluate(() => /No meetings in this week/.test((document.querySelector('#vcMain') || {}).textContent || '')));
125
125
  ok('R6 a week with no meetings says so', await page.evaluate(() => /No meetings in this week\./.test(document.querySelector('#vcMain').textContent) && !document.querySelector('#vcMain .vc-ev')));
126
126
  S.mode = 'fail';
@@ -134,7 +134,7 @@ const answer = (url, mode) => {
134
134
  /* R7 phone and dark theme */
135
135
  {
136
136
  const { page, ctx, S } = await open({ w: 390, h: 844, theme: 'dark' });
137
- await page.click('#todayCard .vc-open');
137
+ await page.click('#calMore'); await page.click('#todayCard .vc-open');
138
138
  await until(() => vis(page, '#vcMain .vc-ar'));
139
139
  ok('R7 at 390px the week is a day list, not the timeline', (await vis(page, '#vcMain .vc-ar')) === 3 && (await vis(page, '#vcMain .vc-g')) === 0, String(await vis(page, '#vcMain .vc-ar')));
140
140
  const m = async () => page.evaluate(() => {
@@ -66,7 +66,7 @@ const NOTE = { id: 'n3', title: 'Call with a partner', state: 'ended', meeting:
66
66
  await page.route('**/api/boards/backlog*', (r) => json(r, { ok: true, rows: [{ id: 'ux', title: 'Premium UX' }, { id: 'sso', title: 'SSO for teams' }] }));
67
67
  await page.goto(BASE + '/premium.html?theme=' + theme);
68
68
  S.up = await until(() => page.evaluate(() => !!document.querySelector('#vnOpen') && !!document.querySelector('#vnOpenFoot') && document.querySelectorAll('#rank .rr').length > 0), 20000);
69
- if (S.up) { if (w <= 600 && await page.evaluate(() => document.querySelector('#todayCard').classList.contains('calhid'))) await page.click('#todayCard .foldb'); await page.click(w <= 600 ? '#vnOpenFoot' : '#vnOpen'); S.dlg = await until(() => page.evaluate(() => document.querySelector('#dlg').classList.contains('on') && document.querySelectorAll('#vnBody .vn-g').length > 0)); }
69
+ if (S.up) { if (w <= 600 && await page.evaluate(() => document.querySelector('#todayCard').classList.contains('calhid'))) await page.click('#todayCard .foldb'); if (w > 600) await page.click('#calMore'); await page.click(w <= 600 ? '#vnOpenFoot' : '#vnOpen'); S.dlg = await until(() => page.evaluate(() => document.querySelector('#dlg').classList.contains('on') && document.querySelectorAll('#vnBody .vn-g').length > 0)); }
70
70
  SESS.push(S);
71
71
  return Object.assign(S, { ctx, page });
72
72
  };
@@ -36,10 +36,10 @@ const midnight = new Date(NOW.getFullYear(), NOW.getMonth(), NOW.getDate());
36
36
  const monday = () => { const d = new Date(midnight); d.setDate(d.getDate() - ((d.getDay() + 6) % 7)); return d; };
37
37
  /* "Live review" is under way now (it starts at most 10 minutes ago, never before midnight), so the Record menu lists it. */
38
38
  const START = new Date(Math.max(midnight.getTime(), Math.floor((NOW.getTime() - 10 * 60000) / 60000) * 60000)), END = new Date(START.getTime() + 60 * 60000);
39
- const weekAnswer = () => {
39
+ const weekAnswer = (none) => {
40
40
  const m = monday(), cells = [];
41
41
  for (let i = 0; i < 7; i++) { const d = new Date(m.getFullYear(), m.getMonth(), m.getDate() + i); cells.push({ key: dayKey(d), start: dayKey(d), end: dayKey(d), events: [] }); }
42
- cells.find((c) => c.key === dayKey(START)).events.push({ id: 'ev-live', at: iso(START), end: iso(END), title: 'Live review', attendees: ['Priya', 'Dara'] });
42
+ if (!none) cells.find((c) => c.key === dayKey(START)).events.push({ id: 'ev-live', at: iso(START), end: iso(END), title: 'Live review', attendees: ['Priya', 'Dara'] });
43
43
  return { ok: true, view: 'week', range: { start: cells[0].key, end: cells[6].key }, cells, events_source: 'calendar-memory', today: dayKey(NOW), context: {}, link_boards: [], gantt: [] };
44
44
  };
45
45
  const FOCUS = () => ({ ok: true, now_ms: Date.now(), date: dayKey(NOW), event: { id: 'ev-live', title: 'Live review', at: iso(START), end: iso(END), attendees: ['Priya', 'Dara'] },
@@ -75,7 +75,7 @@ const RECORDER = () => {
75
75
 
76
76
  const facts = () => { const f = F.facts(); f.meetings = [{ start: START.getTime(), end: END.getTime(), title: 'Live review', with: 'Priya, Dara', initiative: null }]; return f; };
77
77
  const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'application/json', body: JSON.stringify(b) });
78
- const open = async ({ w = 1280, h = 900, theme = 'light', notes = [], url = '/premium.html' } = {}) => {
78
+ const open = async ({ w = 1280, h = 900, theme = 'light', notes = [], url = '/premium.html', none = false } = {}) => {
79
79
  const ctx = await browser.newContext({ viewport: { width: w, height: h } });
80
80
  const page = await ctx.newPage();
81
81
  const S = { errors: [], reqs: [], notes: notes.map((n) => ({ ...n })), newPosts: [], recPosts: [], pausePosts: [], stopPosts: [], savePosts: [], privPosts: [], focusGets: 0 };
@@ -85,7 +85,7 @@ const RECORDER = () => {
85
85
  const noteBy = (id) => S.notes.find((n) => n.id === id);
86
86
  const body = (r) => JSON.parse(r.request().postData() || '{}');
87
87
  await page.route('**/api/briefing-premium*', (r) => json(r, { ok: true, state: 'ready', model: B.build(facts()), as_of: Date.now() }));
88
- await page.route('**/api/calendar-views*', (r) => json(r, weekAnswer()));
88
+ await page.route('**/api/calendar-views*', (r) => json(r, weekAnswer(none)));
89
89
  await page.route('**/api/meeting-replay*', (r) => json(r, { ok: false, error: 'none' }, 404));
90
90
  await page.route('**/api/meeting-material*', (r) => json(r, { ok: true, key: 'k', items: [] }));
91
91
  await page.route('**/api/notes/one*', (r) => {
@@ -117,21 +117,25 @@ const RECORDER = () => {
117
117
  const tabs = (p) => p.evaluate(() => [...document.querySelectorAll('#vTabs .vtab')].map((t) => t.textContent.trim()).join('|'));
118
118
  const pane = (p, id) => p.evaluate((x) => { const e = document.querySelector(`#dOut .obody.vw[data-vw="${x}"]`); return e && !e.hidden ? e.textContent : ''; }, id);
119
119
 
120
+ /* a new note: the mic lists today's meetings and New note, or with no meeting asks for a new note at once */
121
+ const newNote = async (pg) => { await pg.click('#recCtl [data-rc="mic"]'); await until(() => pg.evaluate(() => !!document.querySelector('#recCtl [data-rc="new"], #recCtl [data-rc="go"]'))); if (await pg.$('#recCtl .recm [data-rc="new"]')) await pg.click('#recCtl .recm [data-rc="new"]'); await pg.click('#recCtl [data-rc="go"]'); };
122
+
120
123
  /* R1 the Record control */
121
124
  const A = await open();
122
125
  ok('0 the Briefing opens with the Record control on its top bar', A.up);
123
126
  if (!A.up) return finish(1);
124
127
  const p = A.page;
125
- ok('R1 Record says what it does before the press, and nothing was sent', await p.evaluate(() => /stay on this machine/.test(document.querySelector('#recCtl [data-rc="new"]').title)) && !A.reqs.some((r) => /^POST \/api\/notes/.test(r)));
126
- await p.click('#recCtl [data-rc="menu"]');
128
+ ok('R1 Record is one round mic with no label on the page (premium-calmer-first-screen)', await p.evaluate(() => { const b = [...document.querySelectorAll('#recCtl button')].filter((x) => x.offsetParent); return b.length === 1 && b[0].dataset.rc === 'mic' && !b[0].textContent.trim() && b[0].offsetWidth <= 48; }));
129
+ ok('R1 Record says what it does before the press, and nothing was sent', await p.evaluate(() => /stay on this machine/.test(document.querySelector('#recCtl [data-rc="mic"]').title)) && !A.reqs.some((r) => /^POST \/api\/notes/.test(r)));
130
+ await p.click('#recCtl [data-rc="mic"]');
127
131
  const menu = await until(() => p.evaluate(() => { const m = document.querySelector('#recCtl .recm'); return m && !m.hidden ? m.textContent : ''; }));
128
132
  if (process.env.SHOTS) await p.screenshot({ path: path.join(process.env.SHOTS, 'menu-1280.png') });
129
- ok('R1 the arrow lists today\'s meeting under way, marked Now, and New note', /Live review/.test(menu) && /Now/.test(menu) && /New note/.test(menu), menu);
133
+ ok('R1 the mic lists today\'s meeting under way, marked Now, and New note', /Live review/.test(menu) && /Now/.test(menu) && /New note/.test(menu), menu);
130
134
  await p.click('#recCtl [data-rc="ev"]');
131
135
  ok('R1 the first start asks "Tell everyone first" and sends nothing', await until(() => p.evaluate(() => /Tell everyone first/.test(document.querySelector('#recCtl .recm').textContent))) && A.newPosts.length === 0);
132
136
  await p.click('#recCtl [data-rc="no"]');
133
137
  ok('R1 Not yet closes the ask and sends nothing', await until(() => p.evaluate(() => document.querySelector('#recCtl .recm').hidden)) && A.newPosts.length === 0);
134
- await p.click('#recCtl [data-rc="menu"]'); await until(() => p.evaluate(() => !!document.querySelector('#recCtl [data-rc="ev"]')));
138
+ await p.click('#recCtl [data-rc="mic"]'); await until(() => p.evaluate(() => !!document.querySelector('#recCtl [data-rc="ev"]')));
135
139
  await p.click('#recCtl [data-rc="ev"]'); await p.click('#recCtl [data-rc="go"]');
136
140
  ok('R1 "I told them, start" makes the meeting\'s note and listens on it', await until(() => A.recPosts.length === 1) && A.newPosts[0].meeting && A.newPosts[0].meeting.event_id === 'ev-live' && A.recPosts[0].id === 'n1', JSON.stringify(A.newPosts));
137
141
  ok('R1 the Record control hides while a note records', await until(() => p.evaluate(() => document.querySelector('#recCtl').hidden)));
@@ -186,13 +190,21 @@ const RECORDER = () => {
186
190
 
187
191
  /* R1 New note */
188
192
  const N = await open();
189
- await N.page.click('#recCtl [data-rc="new"]'); await N.page.click('#recCtl [data-rc="go"]');
193
+ await newNote(N.page);
190
194
  ok('R1 New makes an untitled note with no meeting and listens on it', await until(() => N.recPosts.length === 1) && N.newPosts[0].title === '' && !N.newPosts[0].meeting);
191
195
  ok('R1 a note with no meeting opens in a dialog of its own with its Live notes tab', await until(async () => /Live notes/.test(await tabs(N.page)) && /Untitled note/.test(await N.page.evaluate(() => document.querySelector('#dTitle').textContent))), await tabs(N.page));
192
196
  ok('R1 the tab of a note with no meeting has no Focus', await until(async () => /Recording/.test(await pane(N.page, 'rec:n1'))) && !(await N.page.evaluate(() => !!document.querySelector('#dOut [data-rv="fv"]'))));
193
197
  ok('R5 no page error with a new note', N.errors.length === 0, N.errors.join(' | '));
194
198
  await N.ctx.close();
195
199
 
200
+ /* R1 no meeting today: the mic goes straight to a new note */
201
+ const E = await open({ none: true });
202
+ await E.page.click('#recCtl [data-rc="mic"]');
203
+ ok('R1 with no meeting of today the mic asks "Tell everyone first" for a new note, lists nothing and sends nothing', await until(() => E.page.evaluate(() => /Tell everyone first/.test(document.querySelector('#recCtl .recm').textContent) && !document.querySelector('#recCtl [data-rc="ev"]'))) && E.newPosts.length === 0);
204
+ await E.page.click('#recCtl [data-rc="go"]');
205
+ ok('R1 …and the start makes an untitled note with no meeting', await until(() => E.recPosts.length === 1) && E.newPosts[0].title === '' && !E.newPosts[0].meeting);
206
+ await E.ctx.close();
207
+
196
208
  /* R2 another page */
197
209
  const live = { id: 'n1', title: 'Live review', state: 'recording', updated_at: new Date().toISOString(), meeting: { kind: 'event', event_id: 'ev-live', start: iso(START), title: 'Live review' } };
198
210
  const W = await open({ notes: [live], url: '/premium-work.html' });
@@ -202,7 +214,7 @@ const RECORDER = () => {
202
214
  /* R5 floors: 390 px, light and dark */
203
215
  for (const [w, th] of [[390, 'light'], [390, 'dark'], [1280, 'dark']]) {
204
216
  const P = await open({ w, h: 844, theme: th });
205
- await P.page.click('#recCtl [data-rc="new"]'); await P.page.click('#recCtl [data-rc="go"]');
217
+ await newNote(P.page);
206
218
  await until(async () => /Recording/.test(await pane(P.page, 'rec:n1')));
207
219
  if (w < 1000) await P.page.evaluate(() => { const t = document.querySelector('#dlg [data-tab="out"], #tabOut'); if (t) t.click(); });
208
220
  const f = await P.page.evaluate(() => ({ scroll: document.documentElement.scrollWidth <= innerWidth + 1, btn: [...document.querySelectorAll('#dOut .obody.vw:not([hidden]) button, #recChip button')].filter((b) => b.offsetParent).map((b) => b.offsetHeight), who: [...document.querySelectorAll('#dOut .obody.vw:not([hidden]) button, #recChip button')].filter((b) => b.offsetParent && b.offsetHeight < 44).map((b) => b.className + ':' + b.textContent.trim()) }));
@@ -81,9 +81,15 @@ function drawInit() {
81
81
  const bar = $('#iniBar'); bar.hidden = !I.cap; if (I.cap) { bar.setAttribute('aria-valuemax', I.cap.open); bar.setAttribute('aria-valuenow', I.cap.on); $('b', bar).style.width = (I.cap.open ? I.cap.on / I.cap.open * 100 : 0) + '%'; }
82
82
  $('#ibBody').innerHTML = view === 'list' ? drawList() : view === 'stages' ? drawStages() : drawTime();
83
83
  $('#iniNote').textContent = I.note;
84
- $$('#ibTabs button').forEach((b) => b.setAttribute('aria-pressed', b.dataset.v === view)); pillOf($('#ibTabs'));
84
+ $$('#ibTabs button').forEach((b) => b.setAttribute('aria-pressed', b.dataset.v === view));
85
+ { const cur = $(`#ibTabs [data-v="${view}"]`).textContent; $('#ibF').firstChild.textContent = cur; $('#ibF').setAttribute('aria-label', 'View: ' + cur); }
85
86
  }
86
- $('#ibTabs').addEventListener('click', (e) => { const b = e.target.closest('[data-v]'); if (!b) return; view = b.dataset.v; drawInit(); });
87
+ /* the view is one chip in the card's head; List, By stage and Timeline wait in its menu (premium-calmer-first-screen) */
88
+ function ibMenu(open) { $('#ibTabs').hidden = !open; $('#ibF').setAttribute('aria-expanded', String(open)); }
89
+ $('#ibF').addEventListener('click', () => { const open = $('#ibTabs').hidden; ibMenu(open); if (open) $('#ibTabs [aria-pressed="true"]').focus(); });
90
+ document.addEventListener('click', (e) => { if (!$('#ibTabs').hidden && !e.target.closest('#ibTabs, #ibF')) ibMenu(false); });
91
+ document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && !$('#ibTabs').hidden) { ibMenu(false); $('#ibF').focus(); } });
92
+ $('#ibTabs').addEventListener('click', (e) => { const b = e.target.closest('[data-v]'); if (!b) return; ibMenu(false); view = b.dataset.v; drawInit(); $('#ibF').focus(); });
87
93
  $('#ibBody').addEventListener('click', (e) => {
88
94
  if (e.target.closest('#more')) { shown += 25; drawInit(); return; }
89
95
  if (e.target.closest('#goneT')) { showGone = !showGone; drawInit(); const g = $('#goneT'); if (g) g.focus(); return; }
@@ -17,7 +17,7 @@ export const fmt = (m, v) => (+v).toFixed(m.dec) + (m.suf || '');
17
17
  const lastJ = (t) => t.ser.reduce((a, v, j) => (v != null ? j : a), 0);
18
18
 
19
19
  export function tileHtml(t, i) {
20
- if (t.absent) return `<div class="mt1" data-m="${i}" data-op="m:${i}" tabindex="0" role="button" aria-label="${esc(t.label)}: ${esc(t.absent)}. ${esc(t.why)}"><span>${esc(t.label)}</span><b class="mval">${esc(t.absent)}</b><em class="mwk">${esc(t.why)}</em></div>`;
20
+ if (t.absent) return `<div class="mt1 abs" data-m="${i}" data-op="m:${i}" tabindex="0" role="button" aria-label="${esc(t.label)}: ${esc(t.absent)}. ${esc(t.why)}"><span>${esc(t.label)}</span><b class="mval">${esc(t.absent)}</b><em class="mwk">${esc(t.why)}</em></div>`;
21
21
  const chip = t.tg != null ? `<i class="mchip ${t.ok ? 'ok' : 'warn'}">${esc(t.chip)}</i>` : t.look ? '<i class="mchip warn">Needs a look</i>' : '';
22
22
  const lab = chip ? `<span class="mlab">${esc(t.label)}${chip}</span>` : `<span>${esc(t.label)}</span>`, off = t.look ? ' off' : '';
23
23
  const tgt = t.tg != null ? `<em class="mtg">${esc(t.targetTxt)}</em>` : '';
@@ -209,9 +209,9 @@ export function mountCalEntry(card, d) {
209
209
  if (!card || card.querySelector('.vc-open')) return;
210
210
  vwStyle('cal');
211
211
  const b = document.createElement('button'); b.type = 'button'; b.className = 'vc-open'; b.setAttribute('aria-label', 'Open the calendar'); b.title = 'Open the calendar';
212
- b.innerHTML = '<svg class="i" viewBox="0 0 24 24"><path d="M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7"/></svg>';
213
- const h = card.querySelector('.ch'), fold = h && h.querySelector('.foldb');
214
- if (fold) fold.before(b); else if (h) h.append(b);
212
+ b.innerHTML = '<svg class="i" viewBox="0 0 24 24"><path d="M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7"/></svg><span>Full calendar</span>';
213
+ const h = card.querySelector('.ch'), menu = card.querySelector('#calMenu'), fold = h && h.querySelector('.foldb');
214
+ if (menu) menu.append(b); else if (fold) fold.before(b); else if (h) h.append(b); // in the header's ⋯ menu (premium-calmer-first-screen)
215
215
  b.onclick = () => openCalendar(d);
216
216
  }
217
217
 
@@ -140,7 +140,7 @@ export function mountNotes(d) {
140
140
  b.onclick = () => openNotes(d);
141
141
  return b;
142
142
  };
143
- const f = head.querySelector('.fbtn'), b = mk('vnOpen', 'vn-open');
143
+ const f = head.querySelector('.fbtn'), b = mk('vnOpen', 'vn-open'); // the header's ⋯ menu holds it with the filter (premium-calmer-first-screen)
144
144
  if (f) f.before(b); else head.append(b);
145
145
  card.append(mk('vnOpenFoot', 'vn-open vn-foot'));
146
146
  return { open: () => openNotes(d) };
@@ -1,10 +1,10 @@
1
1
  :root{--fs-1:11px;--fs-2:12px;--fs-3:14px;--fs-4:16px;--fs-5:20px;--fs-6:28px}
2
2
  /* pm/premium-vw-rec.css — note recording in the premium viewer (premium-viewer S4): the Record control, the Live notes tab and the Focus tab. Loaded by vwStyle('rec'). */
3
- .recctl{position:relative;display:inline-flex;align-items:stretch;border-radius:8px;background:var(--solid);color:var(--on-solid);flex:none}
3
+ .recctl{position:relative;display:inline-flex;flex:none}
4
4
  .recctl[hidden]{display:none}
5
- .recb{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 14px;font-size:var(--fs-2);font-weight:600;color:inherit;border-radius:6px}
6
- .recb .i{width:16px;height:16px}
7
- .recb.arr{padding:0 10px;border-left:1px solid var(--hair)}
5
+ .recb{color:var(--ink)}
6
+ .recb .i{width:18px;height:18px}
7
+ .recb[aria-expanded="true"]{background:var(--solid);color:var(--on-solid)}
8
8
  .recb:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
9
9
  .recm{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:min(320px,calc(100vw - 32px));padding:8px;border:1px solid var(--hair);border-radius:8px;background:var(--card-solid);box-shadow:var(--card-shadow);color:var(--ink)}
10
10
  .recm[hidden]{display:none}
@@ -217,16 +217,17 @@ function renderFocus(el, id, d) {
217
217
  draw(); loop();
218
218
  }
219
219
 
220
- /** The Record control on the Briefing's top bar: Record (a new note now) and an arrow with today's meetings. Each start asks "Tell everyone first" once. */
220
+ /** The Record control on the Briefing's top bar: one round mic. With a meeting of today it lists the meetings and New note; with none it
221
+ * goes straight to a new note. Each start asks "Tell everyone first" once (premium-calmer-first-screen). */
221
222
  export function mountRecord(here, d) {
222
223
  if (here !== 'brief' || $('#recCtl')) return;
223
224
  DEPS = d;
224
225
  const at = $('.tools-top'); if (!at) return;
225
226
  vwStyle('rec');
226
227
  const w = document.createElement('div'); w.id = 'recCtl'; w.className = 'recctl';
227
- w.innerHTML = `<button type="button" class="recb" data-rc="new" aria-label="Record a new note" title="${esc(NEW_LINE)}">${ic('mic')}<span>Record</span></button><button type="button" class="recb arr" data-rc="menu" aria-haspopup="menu" aria-expanded="false" aria-label="Record a meeting of today">${ic('chev')}</button><div class="recm" role="menu" hidden></div>`;
228
+ w.innerHTML = `<button type="button" class="recb round glass" data-rc="mic" aria-haspopup="menu" aria-expanded="false" aria-label="Record a note or a meeting of today" title="${esc(NEW_LINE)}">${ic('mic')}</button><div class="recm" role="menu" hidden></div>`;
228
229
  at.prepend(w);
229
- const menu = $('.recm', w), arr = $('[data-rc="menu"]', w);
230
+ const menu = $('.recm', w), arr = $('[data-rc="mic"]', w);
230
231
  let rows = [], told = false, pend = null;
231
232
  const close = () => { menu.hidden = true; arr.setAttribute('aria-expanded', 'false'); };
232
233
  const consent = (what) => { pend = what; menu.innerHTML = `<div class="recask" role="alert"><p><b>Tell everyone first.</b> ${esc(CONSENT_LINE.replace('Tell everyone first. ', ''))}</p><p class="note">${esc(what === 'new' ? NEW_LINE : RECORD_LINE)}</p><div><button type="button" class="rvb cta" data-rc="go">I told them, start</button><button type="button" class="rvb" data-rc="no">Not yet</button></div></div>`; menu.hidden = false; arr.setAttribute('aria-expanded', 'true'); const g = $('[data-rc="go"]', menu); if (g) g.focus(); };
@@ -242,6 +243,7 @@ export function mountRecord(here, d) {
242
243
  const list = async () => {
243
244
  const rec = REC(); rows = rec ? await rec.today() : [];
244
245
  const v = menuView(rows, rec ? rec.notes() : []);
246
+ if (!v.items.some((x) => x.mark !== 'Recording' && x.mark !== 'Paused')) { ask('new'); return; } // no meeting to choose: the mic records a new note
245
247
  menu.innerHTML = `<p class="label">Today’s meetings</p>${v.items.length ? v.items.map((x) => `<button type="button" role="menuitem" data-rc="ev" data-i="${x.i}"${x.mark === 'Recording' || x.mark === 'Paused' ? ' disabled' : ''}><b>${esc(x.title)}</b><small>${esc(x.time)}${x.mark ? ' · ' + esc(x.mark) : ''}</small></button>`).join('') : '<p class="note">No meeting of today can be recorded now.</p>'}<button type="button" role="menuitem" data-rc="new">${ic('plus')}New note</button>`;
246
248
  menu.hidden = false; arr.setAttribute('aria-expanded', 'true'); const f = $('[role="menuitem"]:not([disabled])', menu); if (f) f.focus();
247
249
  };
@@ -249,7 +251,7 @@ export function mountRecord(here, d) {
249
251
  w.onclick = (e) => { // delegated to the control's presses
250
252
  const t = e.target.closest('[data-rc]'); if (!t) return; e.stopPropagation();
251
253
  const a = t.dataset.rc;
252
- if (a === 'menu') { if (menu.hidden) list(); else close(); return; }
254
+ if (a === 'mic') { if (menu.hidden) list(); else close(); return; }
253
255
  if (a === 'new') { ask('new'); return; }
254
256
  if (a === 'ev') { ask(+t.dataset.i); return; }
255
257
  if (a === 'go') { told = true; start(pend); return; }
@@ -195,7 +195,10 @@ a.round{color:inherit;text-decoration:none}
195
195
  .rr:hover .rpin,.rpin:focus-visible,.rpin[aria-pressed="true"]{opacity:1}
196
196
  .rpin:hover{background:var(--well);color:var(--ink)}
197
197
  .rpin[aria-pressed="true"]{color:var(--ember-ink)}
198
- @media (hover:none){.rpin{opacity:1}}
198
+ @media (hover:none){.rpin{display:none}.rpin[aria-pressed="true"]{display:grid;opacity:1}}
199
+ .dpin{display:inline-flex;align-items:center;gap:6px;float:right;min-height:32px;margin:-6px 0 0 8px;padding:0 10px;border-radius:999px;font-family:var(--sans);font-size:var(--fs-2);font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink-2)}
200
+ .dpin .i{width:14px;height:14px}.dpin:hover{background:var(--well);color:var(--ink)}.dpin[aria-pressed="true"]{color:var(--ember-ink)}
201
+ @media (max-width:640px){.dpin{min-height:44px}}
199
202
  .mprog{height:4px;border-radius:8px;background:color-mix(in oklab,var(--ink) 10%,transparent);margin:0 0 6px;overflow:hidden}
200
203
  .mprog b{display:block;height:100%;width:0;border-radius:8px;background:var(--ok);transition:width .6s var(--spring,ease)}
201
204
  .nodef{margin:10px 0 0;font-size:var(--fs-2);color:var(--ink-2)}
@@ -1526,6 +1529,10 @@ button.dsn:hover{box-shadow:inset 0 0 0 1.5px rgb(79,109,245)}
1526
1529
  @media (max-width:700px){.ibt>.mt1:last-child:nth-child(odd){grid-column:1/-1}}
1527
1530
  .ch .mper button{height:30px;padding:0 14px;font-size:var(--fs-2)}
1528
1531
  .ch .mper button[aria-disabled="true"]{opacity:.4;cursor:not-allowed}
1532
+ /* calmer first screen: PMOS counts the Board's measures by week only, so the period shows as one quiet Week chip; a tile still reading says "Reading" and keeps the why for its detail */
1533
+ #perTabs button[aria-disabled="true"]{display:none}
1534
+ #perTabs .pill{background:transparent}#perTabs button[aria-pressed="true"]{color:var(--ink)}
1535
+ .mt1.abs .mwk{display:none}
1529
1536
  #cMet .ch{flex-wrap:wrap;gap:10px}
1530
1537
  .mhint{margin:2px 0 14px;color:var(--ink-2);font-size:var(--fs-2);line-height:1.55;max-width:78ch}
1531
1538
  .mhint b{color:var(--ink)}
@@ -1612,7 +1619,15 @@ button.dsn:hover{box-shadow:inset 0 0 0 1.5px rgb(79,109,245)}
1612
1619
  #rng button[aria-pressed="true"]{background:var(--solid);color:var(--on-solid)}
1613
1620
  #todayCard .ch h2{flex:none;margin:0}
1614
1621
  #todayCard .ch small{display:none}
1615
- #todayCard .ch .fbtn{margin-left:auto}
1622
+ /* the Calendar card's ⋯ menu: Notes, the source filter and the full calendar (premium-calmer-first-screen) */
1623
+ #todayCard .ch .chm{margin-left:auto;position:relative;flex:none}
1624
+ .chmore{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--well);color:var(--ink)}
1625
+ .chmore[aria-expanded="true"]{background:var(--solid);color:var(--on-solid)}
1626
+ .chmenu{position:absolute;right:0;top:calc(100% + 8px);z-index:40;display:grid;gap:2px;min-width:200px;padding:6px;border:1px solid var(--hair);border-radius:8px;background:var(--card-solid);box-shadow:var(--card-shadow)}
1627
+ .chmenu[hidden]{display:none}
1628
+ .chmenu>button,.ch.stuck .chmenu .fbtn{display:flex;align-items:center;gap:8px;width:100%;height:auto;min-height:44px;margin:0;padding:0 10px;border-radius:6px;background:none;color:var(--ink);font-size:var(--fs-2);font-weight:500;text-align:left;transform:none}
1629
+ .chmenu>button .i{width:16px;height:16px}
1630
+ .chmenu>button:hover,.chmenu>button:focus-visible,.chmenu .fbtn[aria-expanded="true"]{background:var(--well);color:var(--ink)}
1616
1631
  #todayCard.wkm .fbtn,#todayCard.wkm #todayOpts{display:none}
1617
1632
  .rcap{font-size:var(--t-small);color:var(--ink-3);margin-top:2px}
1618
1633
  .wkd{font:600 var(--t-micro) var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);padding:14px 0 6px;display:flex;gap:10px;align-items:center}
@@ -182,7 +182,12 @@ $('#tl').addEventListener('click', async (e) => {
182
182
  document.addEventListener('click', (e) => {
183
183
  const fb = e.target.closest('.fbtn');
184
184
  if (fb) { const o = $('#' + fb.dataset.opts), v = !o.classList.contains('on'); o.classList.toggle('on', v); o.inert = !v; fb.setAttribute('aria-expanded', v); }
185
+ /* the Calendar card's ⋯ holds Notes, the source filter and the full calendar; a press inside runs and shuts it (premium-calmer-first-screen) */
186
+ const cm = $('#calMenu'), more = e.target.closest('#calMore');
187
+ if (cm) calMenu(more ? cm.hidden : false);
185
188
  });
189
+ function calMenu(open) { const cm = $('#calMenu'), b = $('#calMore'); if (!cm || cm.hidden === !open) return; cm.hidden = !open; b.setAttribute('aria-expanded', String(open)); if (open) { const f = cm.querySelector('button'); if (f) f.focus(); } }
190
+ document.addEventListener('keydown', (e) => { const cm = $('#calMenu'); if (e.key === 'Escape' && cm && !cm.hidden) { calMenu(false); $('#calMore').focus(); } });
186
191
 
187
192
  /* ── dock ───────────────────────────────────────────────────────────────────────────────────────────────── */
188
193
  function drawDock() {
@@ -260,9 +265,19 @@ function openRow(r) {
260
265
  openR = r; const d = r.dialog;
261
266
  openDlg({ eye: d.eye + ' · real data', title: d.title || r.title, sub: d.sub || r.subject, say: d.say, stream: turnA(logHtml(d)) + turnA(ptx(d.say)) + cardHtml(r), noteKey: r.chatKey || r.key, pane: paneHtml(r), label: d.pane.label }); // a goal row (premium-chat-session U7) opens its own conversation
262
267
  ctaState(r);
268
+ pinBtn(r.key);
263
269
  if (r.dialog.noAsk) { $('#askF').hidden = true; $('#askNote').hidden = true; } else loadThread(r.chatKey || r.key); // the read-only agent answers about the model's rows only
264
270
  setTimeout(() => { const b = $('#dBody'); b.scrollTop = b.scrollHeight; }, 120);
265
271
  }
272
+ /* A list row's pin also sits in its dialog: a phone has no hover, so the row shows the pin only once pinned (premium-calmer-first-screen) */
273
+ function pinBtn(k) {
274
+ const ct = $('#card .ct'); if (!ct || ![...$$('#rank .rpin')].some((b) => b.dataset.pin === k)) return;
275
+ const on = pinned.has(k), b = document.createElement('button');
276
+ b.type = 'button'; b.className = 'dpin'; b.dataset.dpin = k; b.setAttribute('aria-pressed', String(on));
277
+ b.innerHTML = `<svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M9 4h6l-1 6 3 3H7l3-3zM12 13v7"/></svg>${on ? 'Unpin' : 'Pin to the top'}`;
278
+ b.onclick = () => { pinned.has(k) ? pinned.delete(k) : pinned.add(k); drawRows(); toast(pinned.has(k) ? 'Pinned to the top for this session.' : 'Unpinned.'); b.remove(); pinBtn(k); };
279
+ ct.append(b);
280
+ }
266
281
  function showErr(msg) { const e = $('#cardErr'); if (!e) { toast(msg); return; } e.textContent = msg; e.hidden = false; }
267
282
  /* A press that records. The page waits for the server's answer: a refusal shows its reason and keeps what the PM typed. */
268
283
  async function write(path, body, done) {
@@ -47,10 +47,9 @@
47
47
  <div class="bcols">
48
48
  <div>
49
49
  <section class="card rise" style="--d:5" id="cIni" aria-labelledby="hIni">
50
- <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M12 3 3 8l9 5 9-5z"/><path d="m3 13 9 5 9-5"/></svg></span><h2 id="hIni">Initiatives</h2><small id="iniCap"></small><button class="fold alt dmadd2" id="newIni" type="button" hidden>New initiative</button></div>
50
+ <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M12 3 3 8l9 5 9-5z"/><path d="m3 13 9 5 9-5"/></svg></span><h2 id="hIni">Initiatives</h2><small id="iniCap"></small><span class="lfw"><button type="button" class="lfchip" id="ibF" aria-haspopup="true" aria-expanded="false" aria-controls="ibTabs" aria-label="View: List">List<svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="m7 10 5 5 5-5"/></svg></button><span class="lfmenu glass" id="ibTabs" role="group" aria-label="Initiatives view" hidden><button type="button" data-v="list" aria-pressed="true">List</button><button type="button" data-v="stages" aria-pressed="false">By stage</button><button type="button" data-v="time" aria-pressed="false">Timeline</button></span></span><button class="fold alt dmadd2" id="newIni" type="button" hidden>New initiative</button></div>
51
51
  <div class="mprog" id="iniBar" role="progressbar" aria-label="Open initiatives on track" aria-valuemin="0" hidden><b></b></div>
52
- <div class="seg" id="ibTabs" role="group" aria-label="Initiatives view"><i class="pill"></i><button data-v="list" aria-pressed="true">List</button><button data-v="stages" aria-pressed="false">By stage</button><button data-v="time" aria-pressed="false">Timeline</button></div>
53
- <div id="ibBody"></div>
52
+ <div id="ibBody"></div>
54
53
  <p class="note" id="iniNote" style="margin-top:12px"></p>
55
54
  </section>
56
55
  </div>
@@ -65,7 +65,7 @@
65
65
  </div>
66
66
  <div>
67
67
  <section class="card rise" id="todayCard" style="--d:7" aria-labelledby="hToday">
68
- <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg></span><h2 id="hToday">Calendar</h2><small id="todayCap"></small><button class="fbtn" data-opts="todayOpts" aria-expanded="false" aria-controls="todayOpts" aria-label="Filter sources"><svg class="i" viewBox="0 0 24 24"><path d="M4 7h9M17 7h3M4 17h3M11 17h9"/><circle cx="15" cy="7" r="2"/><circle cx="9" cy="17" r="2"/></svg></button></div>
68
+ <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg></span><h2 id="hToday">Calendar</h2><small id="todayCap"></small><div class="chm" id="calM"><button type="button" class="chmore" id="calMore" aria-haspopup="true" aria-expanded="false" aria-controls="calMenu" aria-label="Calendar options" title="Notes, sources and the full calendar"><svg class="i" viewBox="0 0 24 24"><circle cx="5" cy="12" r="1.6"/><circle cx="12" cy="12" r="1.6"/><circle cx="19" cy="12" r="1.6"/></svg></button><div class="chmenu" id="calMenu" hidden><button class="fbtn" data-opts="todayOpts" aria-expanded="false" aria-controls="todayOpts" aria-label="Filter sources"><svg class="i" viewBox="0 0 24 24"><path d="M4 7h9M17 7h3M4 17h3M11 17h9"/><circle cx="15" cy="7" r="2"/><circle cx="9" cy="17" r="2"/></svg><span>Filter sources</span></button></div></div></div>
69
69
  <div id="wkStrip"></div>
70
70
  <div class="prep" id="prep" hidden></div>
71
71
  <div class="opts" id="todayOpts" inert><div><div class="chips" id="srcChips" role="group" aria-label="Sources"></div></div></div>