create-pmos 0.349.0 → 0.351.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.349.0",
3
+ "version": "0.351.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.351.0",
37
+ "at": "2026-10-20T07:13:35.370Z",
38
+ "f": 2,
39
+ "prs": [
40
+ {
41
+ "n": 946,
42
+ "t": "Insights asks for a report through one rounded input",
43
+ "s": "One rounded input (\"Ask PMOS to set up a report\") with a + on the left (opens the same New menu: Dashboard or Report) and a round send button inside it on the right."
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "v": "0.350.0",
49
+ "at": "2026-10-20T06:51:36.341Z",
50
+ "f": 2,
51
+ "prs": [
52
+ {
53
+ "n": 949,
54
+ "t": "The My work item dialog as labelled fields and one Done bar",
55
+ "s": "Each choice is one labelled field with its value from the record and a chevron, like a simple ordering app."
56
+ }
57
+ ]
58
+ },
35
59
  {
36
60
  "v": "0.349.0",
37
61
  "at": "2026-10-20T06:33:28.050Z",
@@ -267,35 +291,6 @@
267
291
  "s": "The Checker gets a share of the cap."
268
292
  }
269
293
  ]
270
- },
271
- {
272
- "v": "0.331.0",
273
- "at": "2026-10-20T00:14:54.448Z",
274
- "f": 2,
275
- "prs": [
276
- {
277
- "n": 926,
278
- "t": "Count the meeting-prep read apart from Focus reads",
279
- "s": "The prep read carries brief=1."
280
- }
281
- ]
282
- },
283
- {
284
- "v": "0.330.0",
285
- "at": "2026-10-20T00:02:20.686Z",
286
- "f": 2,
287
- "prs": [
288
- {
289
- "n": 925,
290
- "t": "Draw the premium calendar the way the console draws it",
291
- "s": "The grid follows the console's Calendar."
292
- },
293
- {
294
- "n": 917,
295
- "t": "Updates and What's new in premium Settings, with a summary per published kit",
296
- "s": "Premium Settings opens with Updates."
297
- }
298
- ]
299
294
  }
300
295
  ]
301
296
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@cc477f3a
1
+ kernel-source: pmos@53f8bf38
2
2
  assembled: 2026-10-20
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-20T06:33:25Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-20T07:13:31Z"}
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-20T06:33:25Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-20T07:13:31Z"}
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-20T06:33:25Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-20T07:13:31Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -199,7 +199,11 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
199
199
  await q.click('#repFound .dmo'); await dlgOn(); await q.click('#oMain [data-rx="set"]'); await sleep(400);
200
200
  ok('R2 Set it up posts the finding and says where the first draft is', last()[0] === '/api/report-setups/setup' && last()[1].finding === 'f-1' && /first draft is planning\/reports\/release-readiness\/2026-10-23\.md/.test(await qt('#toast')), JSON.stringify(last()));
201
201
  await q.fill('#repAskIn', 'A weekly risk note'); await q.click('#repAskGo'); await sleep(300);
202
- ok('R3 the Ask box posts the request and says it only proposes', last()[0] === '/api/report-setups/ask' && last()[1].text === 'A weekly risk note' && /Nothing is set up yet/.test(await qt('#toast')) && /only proposes/.test(await qt('#cRep .nask-n')), JSON.stringify(last()));
202
+ ok('R3 the Ask box posts the request and says it only proposes', last()[0] === '/api/report-setups/ask' && last()[1].text === 'A weekly risk note' && /Nothing is set up yet/.test(await qt('#toast')) && /only proposes/i.test(await qt('#cRep .nask-n')), JSON.stringify(last()));
203
+ const info = async () => q.evaluate(() => ({ hid: document.querySelector('#repFold').hidden, exp: document.querySelector('#cRep .nrline .infob').getAttribute('aria-expanded') }));
204
+ const i0 = await info(); await q.click('#cRep .nrline .infob'); const i1 = await info();
205
+ ok('R3b the ask is one rounded input with + and send inside it, and the info button opens the longer note', i0.hid && i0.exp === 'false' && !i1.hid && i1.exp === 'true'
206
+ && await q.evaluate(() => { const f = document.querySelector('#repAsk'); return !!(f.querySelector('#listNew') && f.querySelector('#repAskIn') && f.querySelector('#repAskGo')) && !document.querySelector('#cRep .lbar'); }), JSON.stringify([i0, i1]));
203
207
  await q.click('#repAsks [data-ask="a-1"]'); await dlgOn(); await q.click('#oMain [data-rx="chg"]'); await sleep(100);
204
208
  ok('R3 Change it needs words first', /Say what to change/.test(await qt('#rxM')));
205
209
  await q.fill('#rxChg', 'quarterly'); await q.click('#oMain [data-rx="chg"]'); await sleep(300);
@@ -23,7 +23,9 @@ const until = async (fn, ms = 10000, step = 100) => { const t0 = Date.now(); for
23
23
  const showKey = (pg, key) => pg.evaluate((key) => { const has = () => document.querySelector(`#qBody .wrow[data-key="${key}"], #waitBody .wrow[data-key="${key}"]`); if (has()) return true; for (const k of [...document.querySelectorAll('#qTabs .qtb')].map((b) => b.dataset.tab)) { document.querySelector(`#qTabs [data-tab="${k}"]`).click(); if (has()) return true; } return false; }, key);
24
24
  const results = [];
25
25
  const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + extra : ''}`); };
26
- const more = async (pg) => { if (await pg.locator('#card [data-p="more"][aria-expanded="false"]').count()) await pg.click('#card [data-p="more"]'); };
26
+ /* the dialog's fields (premium-simple-ui): a field opens its panel; When holds Today, Not yet, Not before and Someday */
27
+ const field = async (pg, k) => { if (await pg.locator(`#card .ffd[data-k="${k}"][aria-expanded="false"]`).count()) await pg.click(`#card .ffd[data-k="${k}"]`); };
28
+ const more = (pg) => field(pg, 'when');
27
29
  let srv = null; let browser = null;
28
30
  const finish = async (code) => {
29
31
  if (browser) await browser.close().catch(() => {});
@@ -155,21 +157,26 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
155
157
  await p.locator('#toast .undo').click();
156
158
  ok('M8 Undo posts Reopen for that item', await until(() => A.posts.some((x) => x.path === '/api/pm-items/reopen' && x.body.id === 'item-bbbbbbbbbbb2')));
157
159
  await openKey('work:item-aaaaaaaaaaa1');
158
- const dlg = await p.evaluate(() => ({ title: document.querySelector('#dTitle').textContent, btn: [...document.querySelectorAll('#card button')].map((b) => b.textContent.trim()), mod: document.querySelector('#dlg').getAttribute('aria-modal'), ask: !!document.querySelector('#askGo'), wDis: true }));
159
- const quiet = dlg.btn.slice(3).join();
160
- await more(p); dlg.btn = [...(await p.evaluate(() => [...document.querySelectorAll('#card button')].map((b) => b.textContent.trim())))]; dlg.wDis = await p.evaluate(() => document.querySelector('#wBtn').disabled);
161
- ok('M8 a dialog offers the agent, Done, Not yet, Do today, More and Drop it; More opens the tool row and Waiting, and the agent box; Keep only where the review list holds the item', dlg.title === 'Decide how partial refunds are handled' && quiet === 'Let the agent draft this,Done,Later today,Tomorrow,Next week,Do today,More,Drop it' && dlg.btn.slice(3).join() === 'Let the agent draft this,Done,Later today,Tomorrow,Next week,Do today,Fewer options,Drop it,Edit,Who does each step,Not before…,Someday,Wait for them' && dlg.mod === 'true' && dlg.ask && dlg.wDis, JSON.stringify(dlg));
160
+ const dlg = await p.evaluate(() => ({ title: document.querySelector('#dTitle').textContent, mod: document.querySelector('#dlg').getAttribute('aria-modal'), ask: !!document.querySelector('#askGo'),
161
+ fields: [...document.querySelectorAll('#card .ffd small')].map((x) => x.textContent).join(), when: document.querySelector('#card .ffd[data-k="when"] b').textContent,
162
+ bar: [...document.querySelectorAll('#card .fbar button')].map((b) => b.textContent.trim()).join(), solid: [...document.querySelectorAll('#card .fbar .cta')].length }));
163
+ await more(p); dlg.opts = await p.evaluate(() => [...document.querySelectorAll('#card .fmenu .fopt > span')].map((x) => x.textContent).join());
164
+ await field(p, 'wait'); dlg.wDis = await p.evaluate(() => document.querySelector('#wBtn').disabled);
165
+ ok('M8 a dialog shows labelled fields (the agent, When, Waiting on, Who does it, Priority · Due) and one bar with Done; When holds Today, Not yet, Not before and Someday; Waiting needs a name', dlg.title === 'Decide how partial refunds are handled'
166
+ && dlg.fields === 'The agent,When,Waiting on,Who does it,Priority · Due' && /^Inbox/.test(dlg.when) && dlg.bar === 'Drop it,Done' && dlg.solid === 1
167
+ && dlg.opts === 'Today,Later today,Tomorrow,Next week,Not before a date…,Someday' && dlg.mod === 'true' && dlg.ask && dlg.wDis, JSON.stringify(dlg));
168
+ await more(p);
162
169
  await p.locator('#card [data-p="notyet"][data-when="tomorrow"]').click();
163
170
  ok('M8 Not yet posts the item and the day, and closes the dialog', await until(() => A.posts.some((x) => x.path === '/api/pm-items/notyet' && x.body.id === 'item-aaaaaaaaaaa1' && x.body.when === 'tomorrow' && Object.keys(x.body).sort().join() === 'id,when')) && await until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on'))));
164
171
  for (const [sel, route, check] of [['[data-p="flag"]', '/api/pm-items/flag', (b) => b.flagged === true], ['[data-p="xt"][data-k="someday"]', '/api/pm-items/someday', (b) => Object.keys(b).join() === 'id'], ['[data-p="done"]', '/api/pm-items/done', (b) => Object.keys(b).join() === 'id'], ['[data-p="remove"]', '/api/pm-items/remove', (b) => Object.keys(b).join() === 'id']]) {
165
172
  await openKey('work:item-aaaaaaaaaaa2'); const n = A.posts.length;
166
- if (sel.includes('someday')) await more(p);
173
+ if (sel.includes('someday') || sel.includes('flag')) await more(p);
167
174
  await p.locator('#card ' + sel).click();
168
175
  ok(`M8 ${route.split('/').pop()} posts exactly what the Work page's route takes`, await until(() => A.posts.length > n && lastPost().path === route && lastPost().body.id === 'item-aaaaaaaaaaa2' && check(lastPost().body)), JSON.stringify(lastPost()));
169
176
  await until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on')));
170
177
  }
171
178
  ok('M8 Done and Drop offer Undo for a short time', await p.evaluate(() => /Undo/.test(document.querySelector('#toast').textContent)));
172
- await openKey('work:item-aaaaaaaaaaa3'); await more(p); await p.fill('#wOn', ' Priya ');
179
+ await openKey('work:item-aaaaaaaaaaa3'); await field(p, 'wait'); await p.fill('#wOn', ' Priya ');
173
180
  ok('M8 Waiting needs a name', await p.evaluate(() => !document.querySelector('#wBtn').disabled));
174
181
  await p.click('#wBtn');
175
182
  ok('M8 Waiting posts the name', await until(() => A.posts.some((x) => x.path === '/api/pm-items/waiting' && x.body.id === 'item-aaaaaaaaaaa3' && x.body.on === 'Priya')));
@@ -256,8 +263,8 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
256
263
  await pg.fill('#capIn', 'Reply to Rina about SSO !p1'); await pg.press('#capIn', 'Enter');
257
264
  ok('E2 an added line comes back through the real routes in the Inbox tab, with its priority, not counted to clear, and its dialog opens', await until(() => pg.evaluate(() => document.querySelector('#qBody').dataset.tab === 'inbox' && /Reply to Rina about SSO/.test(document.querySelector('#qBody').textContent) && /P1/.test(document.querySelector('#qBody').textContent) && /Added by you/.test(document.querySelector('#qBody').textContent) && document.querySelector('#dN').textContent === '0' && document.querySelector('#dlg').classList.contains('on')), 15000));
258
265
  await sleep(700);
259
- await pg.locator('#card [data-p="flag"]').click();
260
- ok('E3 Do today, pressed in that dialog, moves it from the Inbox to Today through the real route', await until(() => pg.evaluate(() => document.querySelector('#qTabs [data-tab="today"]').textContent === 'Today1' && document.querySelector('#qTabs [data-tab="inbox"]').textContent === 'Inbox0' && document.querySelector('#dN').textContent === '1'), 15000));
266
+ await more(pg); await pg.locator('#card [data-p="flag"]').click();
267
+ ok('E3 Today, picked in the When field of that dialog, moves it from the Inbox to Today through the real route', await until(() => pg.evaluate(() => document.querySelector('#qTabs [data-tab="today"]').textContent === 'Today1' && document.querySelector('#qTabs [data-tab="inbox"]').textContent === 'Inbox0' && document.querySelector('#dN').textContent === '1'), 15000));
261
268
  await pg.click('#qTabs [data-tab="today"]'); await pg.locator('#qBody .wck').first().click();
262
269
  ok('E4 the check circle marks it done, and the list is empty again', await until(() => pg.evaluate(() => document.querySelector('#brief').textContent === 'Your list is empty.' && document.querySelector('#dN').textContent === '0'), 15000));
263
270
  const api = await fetch(BASE + '/api/my-work-premium').then((r) => r.json());
@@ -1,4 +1,28 @@
1
1
  [
2
+ {
3
+ "v": "0.351.0",
4
+ "at": "2026-10-20T07:13:35.370Z",
5
+ "f": 2,
6
+ "prs": [
7
+ {
8
+ "n": 946,
9
+ "t": "Insights asks for a report through one rounded input",
10
+ "s": "One rounded input (\"Ask PMOS to set up a report\") with a + on the left (opens the same New menu: Dashboard or Report) and a round send button inside it on the right."
11
+ }
12
+ ]
13
+ },
14
+ {
15
+ "v": "0.350.0",
16
+ "at": "2026-10-20T06:51:36.341Z",
17
+ "f": 2,
18
+ "prs": [
19
+ {
20
+ "n": 949,
21
+ "t": "The My work item dialog as labelled fields and one Done bar",
22
+ "s": "Each choice is one labelled field with its value from the record and a chevron, like a simple ordering app."
23
+ }
24
+ ]
25
+ },
2
26
  {
3
27
  "v": "0.349.0",
4
28
  "at": "2026-10-20T06:33:28.050Z",
@@ -258,7 +258,7 @@ My work is the second place on the rail, at `/premium-work.html`. It reads the l
258
258
 
259
259
  **Work queue.** One full-width card holds everything you sort, as tabs in one row: **Today**, **Inbox**, **Agents**, **Upcoming**, **Someday**, **Kept** and **Done**. Each tab shows its count, and the card opens on Today (or on the first tab that has something). Rows sit in two columns, one column on a narrow screen. The left and right arrow keys move between tabs. **Inbox** shows what is new from Jira and Slack first, then what you added. **Agents** holds drafts ready, runs working and runs failed. **Kept** gathers items you pressed Keep on, and **Done** shows what you added and marked done in the last 7 days. An item shows in one place tab only. Kept is a mark on an item, not a place, so a kept item also shows where it was placed. The card replaces the earlier On your plate, With agents and tray cards.
260
260
 
261
- **The item dialog.** The dialog shows **Done**, **Not yet** (Later today, Tomorrow, Next week, Do today) and **Drop it**. **More** opens the rest: Edit, Who does each step, Not before, Someday and Waiting on someone. Every action stays reachable.
261
+ **The item dialog.** The dialog shows one labelled field for each choice. Each field shows its value from the record and opens when you press it: **When** (Today, Later today, Tomorrow, Next week, Not before a date, Someday), **Waiting on**, **Who does it** (the steps) and **Priority · Due** (the edit panel). One bar at the bottom holds **Done**, with **Keep it** and **Drop it** beside it. Every action stays reachable.
262
262
 
263
263
  **The agent's draft.** The draft shows as formatted text in the detail panel on the right, labelled as the agent's and not checked, with **Open** and **Copy**. Its heading names the item ("Draft for IDPF-2989", or "Draft for you"), the round and the time of the latest round, and an approved step shows as "Step when you approve". A long draft is cut short, with **Show all**. It appears there as soon as the agent finishes, even while the dialog is open. The left column keeps the conversation (with **View round**) and the decision cards, in the console's words: **Post it to Jira** (marked outward, with exactly the text that goes), **Edit the draft**, **Keep it as a draft** and **Mark it done**. Post asks you to confirm the exact text first, and nothing is posted before that.
264
264
 
@@ -271,12 +271,14 @@ My work is the second place on the rail, at `/premium-work.html`. It reads the l
271
271
  - **The Work queue's place tabs** are Today, Inbox, Upcoming and Someday. A row shows where it came from (Yours, Jira, Slack, Board) and a due chip only when a date was set. The round check marks it done, with Undo for a few seconds. "Do this first" appears only on an overdue item.
272
272
  - **The Agents tab** counts running, failed and to-review drafts from each item's agent field. Press a count to show only the items in that state; press it again to show every item. The dark tile is the filter you picked. A draft is labelled "Agent draft, not checked" and is never counted as done. The agent itself is started, stopped, edited, sent back or approved in the item's dialog (see below).
273
273
  - **Waiting on others** lists who you wait for and for how long. There is no nudge.
274
- - **An item's dialog** offers Done, Not yet (later today, tomorrow, next week), Do today, Waiting on a name, Drop (with Undo), and Keep for an item untouched for seven days. The read-only agent from "Asking the agent" is beside it. Below those is a tool row with four more presses, each through the Work page's own route:
275
- - **Edit** changes the title, due day, priority, who you wait on and the job. A title that Jira, the breakdown or the morning brief owns is read-only, and the panel says so. Only the fields you changed are saved, and Undo writes the old values back.
276
- - **Who does each step** lists the item's steps. Each step is done by You, the Agent drafts it, or the Agent does it. A step that sends something to a person is only ever drafted by the agent, and the page says when it set that for you. **Add** adds a step.
277
- - **Not before** hides the item until a day: Tomorrow, Monday, In a week, or a date you pick. **Clear the date** brings it back.
278
- - **Someday** sends the item to Someday. On an item already there, the same button brings it back.
279
- - **The agent on an item** appears at the top of the dialog when the item has one. A *suggestion* shows what the agent will do (you can change the words) and **Let the agent draft this**. A *queued or working* agent shows its state and **Stop**. A *ready* draft is labelled the agent's and unchecked. **Post it to Jira** (or Slack, email and so on, from where the item came) first asks, names the place, shows exactly the text and posts nothing until you press **Post it now**. **Edit the draft** lets you change the text, and the post sends your text. **Send it back with a note** needs a note. **Mark it done** posts nothing. A failed run says why and offers **Try again** and **Stop**. An item you added has no place to post to, so it has no Post.
274
+ - **An item's dialog** offers Done, Drop (with Undo), and Keep for an item untouched for seven days, in the bar at the bottom. Its fields hold the rest, each through the Work page's own route:
275
+ - **When** shows where the item is (Today, Inbox, Upcoming, Waiting, Someday, or Not before a day). It offers Today, Not yet (later today, tomorrow, next week), Not before a date and Someday.
276
+ - **Waiting on** shows who you wait on, or Nobody. Type a name and press **Wait for them**.
277
+ - **Priority · Due** opens the edit panel. It changes the title, due day, priority, who you wait on and the job. A title that Jira, the breakdown or the morning brief owns is read-only, and the panel says so. Only the fields you changed are saved, and Undo writes the old values back.
278
+ - **Who does it** names who does the steps and how many there are. It lists the item's steps. Each step is done by You, the Agent drafts it, or the Agent does it. A step that sends something to a person is only ever drafted by the agent, and the page says when it set that for you. **Add** adds a step.
279
+ - **Not before a date** (in When) hides the item until a day: Tomorrow, Monday, In a week, or a date you pick. **Clear the date** brings it back.
280
+ - **Someday** (in When) sends the item to Someday. On an item already there, **Bring back from Someday** brings it back.
281
+ - **The agent on an item** appears at the top of the dialog when the item has one. A *suggestion* is a field, **The agent**, that opens to show what the agent will do (you can change the words) and **Let the agent draft this**. A *queued or working* agent shows its state and **Stop**. A *ready* draft is labelled the agent's and unchecked. **Post it to Jira** (or Slack, email and so on, from where the item came) first asks, names the place, shows exactly the text and posts nothing until you press **Post it now**. **Edit the draft** lets you change the text, and the post sends your text. **Send it back with a note** needs a note. **Mark it done** posts nothing. A failed run says why and offers **Try again** and **Stop**. An item you added has no place to post to, so it has no Post.
280
282
  - **Focus** sits under the add line. It shows the first of the (at most three) things PMOS suggests for today, grouped by the job they serve, with **Accept**. **See all** lists them with Accept, Not today and Clear, and your jobs with their open counts, and **Add a job** takes one line (`when …, I want …, so …`). An accepted group tags its Today rows with Focus. Focus starts empty each day. Editing and deleting a job stay in the console.
281
283
  - **Keys and swipe** work on the rows of the Work queue. J and K move between rows. The right arrow, or a drag to the right past 90 px, does Done on a Today row and In Today elsewhere; the left arrow, or a drag to the left, does Tomorrow on a Today row and Someday elsewhere. A Today row whose draft is ready offers Review on the right. A row in Waiting has none. Each one offers Undo, and under reduced motion the row does not slide.
282
284
 
@@ -327,9 +329,9 @@ Insights is the fourth place on the rail, at `/premium-insights.html`. It reads
327
329
  - **The pinned dashboard.** The card under the insight shows the pinned dashboard: its insight band (the next findings on it, past the one the page leads with), its charts and **Unpin**. When nothing is pinned, it shows All measures, marked **Not pinned**, with **Pin**. Pressing a dashboard in the list shows it in this card, with **Pin** and **Back to** the pinned one. One dashboard per board is pinned, All measures included; pillar groups cannot be pinned. The pin is a line in `premium-dashboards.jsonl` and shows on Insights only.
328
330
  - **Dashboards and reports.** One list holds the dashboards (All measures, your saved ones, then the pillars the metrics name) and then the reports (your set-up reports, then the report files). **All**, **Dashboards** and **Reports** filter it; it shows six rows to a page, with page numbers. A dashboard row shows its top finding and a pin. A report row quotes the opening sentence of its latest file; a set-up report with no file says no draft is written yet. **New** offers **Dashboard** or **Report**. Your requests and what PMOS found in your work stay at the top of the list. A saved dashboard draws its charts in the order you saved them. A chart whose record is gone, or that has fewer than two readings, is listed in its place with the reason and is not drawn.
329
331
  - **Open the Studio from the top.** **Chat** beside the board name opens the Insight Studio: on the saved dashboard you are looking at, otherwise on a new dashboard, or in Report mode when no measure has a series yet.
330
- - **Make or edit a dashboard.** **New**, then **Dashboard**, or **Edit** on a saved one, opens the **Insight Studio**, a wide dialog. On the right, the brief shows the Name, Purpose, Charts and Main dashboard; press a chip to change it. **Library** lists the board's measures and saved dashboards to add. The preview draws the dashboard as the page will, and lists a measure with no series as not drawn. The checks (a name, a purpose, a chart, six or fewer, no repeat, a main dashboard on the board) say what fails, with a one-press fix. On the left you can say it instead: "add Partner activation", "remove …", "move … first", "call it …", "it is for …", "make it the main dashboard", "undo" or "start a new one". A turn changes the draft only. **Undo** steps back one change. **Save the dashboard** records it; **Remove the dashboard** asks once more and then removes it. In a chart's dialog, **On your dashboards** has a switch for each saved dashboard, which adds the chart to it or takes it off.
332
+ - **Make or edit a dashboard.** **+** (at the left of the report input), then **Dashboard**, or **Edit** on a saved one, opens the **Insight Studio**, a wide dialog. On the right, the brief shows the Name, Purpose, Charts and Main dashboard; press a chip to change it. **Library** lists the board's measures and saved dashboards to add. The preview draws the dashboard as the page will, and lists a measure with no series as not drawn. The checks (a name, a purpose, a chart, six or fewer, no repeat, a main dashboard on the board) say what fails, with a one-press fix. On the left you can say it instead: "add Partner activation", "remove …", "move … first", "call it …", "it is for …", "make it the main dashboard", "undo" or "start a new one". A turn changes the draft only. **Undo** steps back one change. **Save the dashboard** records it; **Remove the dashboard** asks once more and then removes it. In a chart's dialog, **On your dashboards** has a switch for each saved dashboard, which adds the chart to it or takes it off.
331
333
  - **Make your own chart.** **New chart**, or **Edit** on one of your charts, opens the Insight Studio in **Chart** mode; the switch at the top moves between Chart and Dashboard, and each keeps its own draft. The brief shows the Question, Measure, Form (line, bars, number or meter), Range (all readings or the last few) and Target; **More** adds the Title, Better when, Note and Add to (a dashboard). The Studio suggests a form from the question and says why. The checks (a question, a target, enough readings, a form that fits the question, one scale) say what fails, with a one-press fix. You can say it instead: "show it as bars", "last 4 readings", "target 35", "lower is better", "call it …", "note: …", "add it to Weekly", or a question. A pie is declined, with the reason. **Save the chart** records it in the workspace's state folder, and adds it to the dashboard you named. Your charts are listed under **All measures**, and a dashboard can hold them beside the measures. **Remove the chart** asks once more; a dashboard that held it then says it was removed.
332
- - **Set up a report in the Studio.** **New**, then **Report**, on the list opens the Insight Studio in **Report** mode. The brief shows the Title, What it answers, Audience, Format, Schedule, Draw from (your work, or the board's dashboard) and the Sections. A new report always has the same sections, in the same order, so they are listed, not edited. The checks (what it answers, an audience, a format that fits the audience, a new title, the answer first) say what fails, with a one-press fix. You can say it instead: "it answers: …", "for leadership", "slides", "monthly", "every two weeks on Thursday", "call it …". **Set it up** records the report and writes its first draft as a file.
334
+ - **Set up a report in the Studio.** **+**, then **Report**, opens the Insight Studio in **Report** mode. The brief shows the Title, What it answers, Audience, Format, Schedule, Draw from (your work, or the board's dashboard) and the Sections. A new report always has the same sections, in the same order, so they are listed, not edited. The checks (what it answers, an audience, a format that fits the audience, a new title, the answer first) say what fails, with a one-press fix. You can say it instead: "it answers: …", "for leadership", "slides", "monthly", "every two weeks on Thursday", "call it …". **Set it up** records the report and writes its first draft as a file.
333
335
  - **Change the size of the Studio.** On a wide window, **Normal**, **Half**, **3/4** and **Whole** sit beside **Library**. Whole is the full screen. At Half, the conversation and the Studio are two tabs. The Studio opens on Whole, and PMOS remembers your choice on this browser.
334
336
  - **Shape a report's sections.** On a report drawn from your work, **Shape it in the Studio** opens Report mode on it. Tell PMOS how to shape the sections in your own words; PMOS proposes the next version and says what it changed. **Leave out** on a section makes the next version without it; the headline, Needs your call and Sources are always in. **Undo** goes back one version. **Use this structure** saves the version shown, and the next cycle follows it.
335
337
  - **Design how a report looks.** A set-up report in the Studio has two tabs: **1 Structure** (what it says) and **2 Design** (how it looks). The Design tab shows the versions D1 to Dn, the slides of the one shown (a large preview, previous and next, and thumbnails), and the samples the look follows. **Add a file** (PDF, PowerPoint, Word or an image) or **Add the link** (Google or Confluence) adds a sample, and PMOS says what it took from it. Say how it should look, for example "use the theme of my picture", and PMOS makes the next version. Pick a version to look at it. **Undo** goes back one version. **This is it** saves the version shown as the design, and each new cycle is drawn to it. When you open a report again, both tabs show what was said before.
@@ -338,7 +340,7 @@ Insights is the fourth place on the rail, at `/premium-insights.html`. It reads
338
340
  - **The findings.** Each finding is one sentence with its reason, taken from the series: will miss its target at this pace, on course, behind its line for three readings in a row, behind and still moving away from the target, closing in, slipped, reached its target, or a large one-step move. No cause is given.
339
341
  - **Board measures.** The same four tiles as the Board's Metrics card, counted from the board's repository and drawn the same way. Choose **8 weeks**, **26 weeks** or **52 weeks**; the page keeps your choice. Press a measure to read its definition and values and to set its target: type a number and press **Save target**, or press **Clear target**. For Corrections, Blocked and Idle, lower is better, so the target is the most you accept; for Merged a week it is the least. The target goes to the workspace's state folder (`board-metric-targets.jsonl`) and the Board draws it too. An agent session cannot set one.
340
342
  - **No series recorded.** A KR metric with one reading or none is listed with the reason and is not drawn.
341
- - **Ask PMOS to set up a report.** Type what the report is for and press **Ask**. A background run proposes a report and does nothing else. The request is listed as Working, then Ready to review. A ready request opens with its proposal: **Set it up**, **Change it** (say what to change; the run revises it), or **Cancel**.
343
+ - **Ask PMOS to set up a report.** The card has one rounded input. Type what the report is for and press the round send button inside it. The **+** at its left offers Dashboard or Report. The line under the input says it only proposes; its **ⓘ** shows the longer note. A background run proposes a report and does nothing else. The request is listed as Working, then Ready to review. A ready request opens with its proposal: **Set it up**, **Change it** (say what to change; the run revises it), or **Cancel**.
342
344
  - **Found in your work.** Up to three reports PMOS found in your calendar, mail or documents, each with why and what it saw. **Set it up** records the report and drafts its first cycle as a file. **Not a report** hides it and records it after 5 seconds, unless you press **Undo**. If the finding changed while the window was open, the window says what happened. It was already set up, it was marked not a report, or a new scan replaced it. The list is read again. Close the window and open the report from the list. If PMOS does not hear back, the window says nothing was recorded. Press the button to try again.
343
345
  - **Set up.** Your recurring reports, with their schedule and next draft. A report opens with **Draft it now** (for a report drawn from your work) and **Pause** or **Resume**.
344
346
  - **Report files.** The report files of the workspace, in the list, with cadence, slot and whether each is a draft or issued. Pressing one opens it on the page at the normal dialog size, with a status line (Draft or Issued, the saved design version, the file). The **slide deck / Document** menu picks the view: a deck is a title slide, then one slide for each section, with the arrow keys and a strip of slides; a document is a page. The **Read** menu holds **Present**, which shows the slide on the whole screen (the arrow keys move and Escape stops), and **Print or save as PDF**, which prints one slide to a page. **Download** gives PowerPoint, Word, Excel, CSV or the Markdown file; the files carry the words, not the look. **Edit** opens the words as a page. On a draft, **Issue** first says what it does, then **Issue it** freezes the cycle as you read it, through the console's own route; if the file changed since you opened it, nothing is issued and the reader shows the new words. Copies in Confluence or other tools are made in the console. Nothing is sent from this page.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.349.0",
3
+ "version": "0.351.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.349.0",
9
+ "version": "0.351.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.349.0",
3
+ "version": "0.351.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",
@@ -17,7 +17,9 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
17
17
  const until = async (fn, ms = 10000, step = 100) => { const t0 = Date.now(); for (;;) { const v = await fn(); if (v) return v; if (Date.now() - t0 > ms) return v; await sleep(step); } };
18
18
  const results = [];
19
19
  const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + extra : ''}`); };
20
- const more = async (pg) => { if (await pg.locator('#card [data-p="more"][aria-expanded="false"]').count()) await pg.click('#card [data-p="more"]'); };
20
+ /* the dialog's fields (premium-simple-ui): a field opens its panel; When holds Today, Not yet, Not before and Someday */
21
+ const field = async (pg, k) => { if (await pg.locator(`#card .ffd[data-k="${k}"][aria-expanded="false"]`).count()) await pg.click(`#card .ffd[data-k="${k}"]`); };
22
+ const more = (pg) => field(pg, 'when');
21
23
  let srv = null; let browser = null;
22
24
  const finish = async (code) => {
23
25
  if (browser) await browser.close().catch(() => {});
@@ -128,9 +130,9 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
128
130
 
129
131
  /* W3 steps */
130
132
  await openKey(p, 'work:item-bbbbbbbbbbb2');
131
- await more(p); const sbtn = await txt('[data-p="xt"][data-k="steps"]');
132
- ok('W3 the tool row counts the item\'s steps', /Who does each step · 2/.test(sbtn), sbtn);
133
- await more(p); await p.click('[data-p="xt"][data-k="steps"]');
133
+ const sbtn = await txt('[data-p="xt"][data-k="steps"]');
134
+ ok('W3 the Who does it field counts the item\'s steps and names who does them', /Who does it/.test(sbtn) && /You, Agent drafts · 2 steps/.test(sbtn), sbtn);
135
+ await field(p, 'steps');
134
136
  const st = await p.evaluate(() => ({ items: [...document.querySelectorAll('.xsteps li .xst')].map((x) => x.textContent), pressed: [...document.querySelectorAll('.xsteps [aria-pressed="true"]')].map((x) => x.textContent), h: [...document.querySelectorAll('.xpan .cta, .xpan input')].map((b) => Math.round(b.getBoundingClientRect().height)) }));
135
137
  ok('W3 each step shows who does it, from the record', st.items.join('|') === 'List the open questions|Send the agenda to the team' && st.pressed.join() === 'You,Agent drafts' && st.h.every((x) => x >= 44), JSON.stringify(st));
136
138
  A.replies['/api/pm-items/steps/who'] = { ok: true, who: 'agent-drafts', forced: true };
@@ -146,7 +148,7 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
146
148
 
147
149
  /* W4 Not before */
148
150
  await openKey(p, 'work:item-ccccccccccc1');
149
- await more(p); ok('W4 an item with a Not before day says it on the tool', /From 18 Oct/.test(await txt('[data-p="xt"][data-k="defer"]')));
151
+ ok('W4 an item with a Not before day says it on the When field', /Not before 18 Oct/.test(await txt('#card .ffd[data-k="when"]')));
150
152
  await more(p); await p.click('[data-p="xt"][data-k="defer"]');
151
153
  const dq = await p.evaluate(() => [...document.querySelectorAll('[data-p="xdq"]')].map((b) => [b.textContent, b.dataset.v].join('=')));
152
154
  ok('W4 Tomorrow, Monday and In a week are dates from the server\'s day (Fri 16 Oct)', dq.join() === 'Tomorrow=2026-10-17,Monday=2026-10-19,In a week=2026-10-23', dq.join());
@@ -169,13 +171,13 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
169
171
  ok('W9 Undo posts unpark', A.last().path === '/api/pm-items/unpark' && A.last().body.id === 'item-aaaaaaaaaaa2', JSON.stringify(A.last()));
170
172
  await dlgOff(p);
171
173
  await openKey(p, 'work:item-eeeeeeeeeee1');
172
- await more(p); ok('W5 an item already in Someday says so and the press brings it back', /In Someday/.test(await txt('[data-p="xt"][data-k="someday"]')) && await p.evaluate(() => document.querySelector('[data-p="xt"][data-k="someday"]').getAttribute('aria-pressed') === 'true'));
174
+ await more(p); ok('W5 an item already in Someday says so and the press brings it back', /Someday/.test(await txt('#card .ffd[data-k="when"]')) && /Bring back from Someday/.test(await txt('[data-p="xt"][data-k="someday"]')) && await p.evaluate(() => document.querySelector('[data-p="xt"][data-k="someday"]').getAttribute('aria-pressed') === 'true'));
173
175
  await more(p); await p.click('[data-p="xt"][data-k="someday"]');
174
176
  ok('W5 …by posting unpark', await wait(() => A.last().path === '/api/pm-items/unpark' && A.last().body.id === 'item-eeeeeeeeeee1'), JSON.stringify(A.last()));
175
177
  await dlgOff(p);
176
178
 
177
179
  /* W7 the agent */
178
- await openKey(p, 'work:item-aaaaaaaaaaa1');
180
+ await openKey(p, 'work:item-aaaaaaaaaaa1'); await field(p, 'agent');
179
181
  const ag1 = await p.evaluate(() => ({ state: document.querySelector('.agblk').dataset.state, ask: document.querySelector('#agAsk').value, say: document.querySelector('.agblk .nodef').textContent, btn: [...document.querySelectorAll('.agblk button')].map((b) => b.textContent.trim()) }));
180
182
  ok('W7 a suggestion shows what the agent will do, where nothing goes, the three choices and the press of the picked one', ag1.state === 'suggest' && ag1.ask === 'Draft your reply: partial refunds' && /Nothing goes to Jira until you post it/.test(ag1.say) && ag1.btn.length === 4 && /^SuggestedLet the agent draft this/.test(ag1.btn[0]) && /^Do it today/.test(ag1.btn[1]) && /^Not before /.test(ag1.btn[2]) && ag1.btn[3] === 'Let the agent draft this', JSON.stringify(ag1));
181
183
  await p.fill('#agAsk', 'Draft your reply: partial refunds, short');
@@ -358,7 +360,7 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
358
360
  ok('E8 Someday parks the real record', (await get('/api/pm-items')).work.someday.some((i) => i.id === it.id));
359
361
  await undoOf(pg, true); await sleep(300);
360
362
  ok('E9 Undo brings it back (unpark)', !(await get('/api/pm-items')).work.someday.some((i) => i.id === it.id));
361
- await pg.locator('#qBody .wrh').first().click(); await dlgOn(pg); await sleep(700); await pg.click('[data-p="flag"]'); await dlgOff(pg);
363
+ await pg.locator('#qBody .wrh').first().click(); await dlgOn(pg); await sleep(700); await more(pg); await pg.click('[data-p="flag"]'); await dlgOff(pg);
362
364
  ok('E10 once the item is in Today, Focus suggests it and the bar says why', await until(() => pg.evaluate(() => /Suggested · /.test(document.querySelector('#xFocus').textContent)), 8000));
363
365
  await pg.click('#xFocus [data-xf="acc"]');
364
366
  ok('E11 Accept writes the group to today\'s Focus, and the Today row carries the Focus tag', await until(async () => (await get('/api/pm-items')).focus.accepted.length === 1, 8000) && (await qTab(pg, 'today'), await until(() => pg.evaluate(() => !!document.querySelector('#qBody .xfc')), 8000)));
@@ -158,9 +158,6 @@ button.nfr:hover,button.nfr:focus-visible{background:color-mix(in oklab,var(--in
158
158
  .pdmv .round:disabled{opacity:.35}
159
159
  .addf label.pdchk{display:flex;align-items:center;gap:10px;min-height:44px;font-size:var(--fs-3);font-weight:500;color:var(--ink)}
160
160
  .addf .pdchk input{width:22px;height:22px;flex:none;accent-color:var(--ember)}
161
- .nask{display:flex;gap:8px;margin:4px 0 0}
162
- .nask input{flex:1;min-width:0;height:44px;border-radius:14px;border:1px solid var(--hair);background:var(--card-solid);padding:0 12px;font:inherit;font-size:var(--fs-3);color:var(--ink)}
163
- .nask input:focus-visible{outline:2px solid var(--ember);outline-offset:1px}
164
161
  .nask-n{margin:6px 0 0 4px;font-size:var(--fs-2)}
165
162
  .pdev{margin:0 0 12px;padding-left:18px;display:grid;gap:4px}
166
163
  .pdev small{color:var(--ink-3)}
@@ -190,9 +187,6 @@ button.nfr:hover,button.nfr:focus-visible{background:color-mix(in oklab,var(--in
190
187
  .nfd .nft b{font-weight:600}
191
188
  .nfd li.stall .nfdot,.nfd li.miss .nfdot{background:var(--ember)}
192
189
  .nfd li.course .nfdot{background:var(--ok)}
193
- .lbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0 0}
194
- .lbar .nask{flex:1 1 260px;margin:0}
195
- .lbar .dmcta{min-height:44px}
196
190
  .newm{position:relative}
197
191
  .lmenu{position:absolute;top:50px;left:0;z-index:5;display:grid;min-width:180px;padding:6px;border-radius:16px;background:var(--card-solid,var(--card));border:1px solid var(--hair);box-shadow:var(--card-shadow)}
198
192
  .lmenu button{min-height:44px;padding:0 12px;border-radius:10px;text-align:left;font-weight:600}
@@ -170,6 +170,10 @@ function decideHtml(r, a, step, w) {
170
170
 
171
171
  /* the agent block: one state, the controls that state allows, and nothing is posted before the confirm */
172
172
  function agentHtml(r) {
173
+ const a = r.dialog.agent, h = a ? agentInner(r) : '';
174
+ return h ? `<div class="agblk" data-state="${esc(a.state)}"><p class="ct">The agent</p>${h}</div>` : '';
175
+ }
176
+ function agentInner(r) {
173
177
  const a = r.dialog.agent;
174
178
  if (!a) return '';
175
179
  const w = a.where || 'anyone', dr = a.draft;
@@ -194,17 +198,35 @@ function agentHtml(r) {
194
198
  } else if (a.state === 'sent') {
195
199
  h = `<p class="nodef" role="status">${a.mine ? 'The draft is kept on this item.' : `You posted it to ${esc(w)}${a.sent_at ? ' at ' + esc(hhmm(a.sent_at)) : ''}.`}${a.link ? ` <a href="${esc(a.link)}" target="_blank" rel="noopener">Open what was posted</a>` : ''}</p>${draftBox}`;
196
200
  }
197
- return h ? `<div class="agblk" data-state="${esc(a.state)}"><p class="ct">The agent</p>${h}</div>` : '';
201
+ return h;
198
202
  }
199
203
 
200
- /* the tool row: Edit, Who does each step, Not before, Someday, and the panel of the one that is open */
201
- function toolsHtml(r) {
202
- const d = r.dialog, x = ui.xp || '', S = d.steps || [], nb = d.defer && d.defer > M.today ? d.defer : null;
203
- const b = (k, l) => `<button class="xtb" data-p="xt" data-k="${k}" aria-expanded="${x === k}">${l}</button>`;
204
- let h = `<div class="xtools" role="group" aria-label="More for this item">${b('edit', 'Edit')}${b('steps', 'Who does each step' + (S.length ? ' · ' + S.length : ''))}${b('defer', nb ? 'From ' + esc(dayLabel(nb)) : 'Not before…')}<button class="xtb" data-p="xt" data-k="someday" aria-pressed="${d.someday}">${d.someday ? 'In Someday' : 'Someday'}</button></div>`;
204
+ /* the dialog's fields (initiative premium-simple-ui): one labelled field for each choice, showing its value from the record, with a chevron.
205
+ * A field opens its panel under it, one at a time. When holds Today, Not yet, Not before and Someday; Waiting on, Who does it and Priority · Due
206
+ * hold the Waiting, Steps and Edit panels. One action bar at the bottom: Done, with Keep it and Drop it beside it. Every press is the same route as before. */
207
+ const CHEV = '<svg class="i chev" viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"/></svg>';
208
+ const PLACE = { today: ['Today', ''], inbox: ['Inbox', 'not placed yet'], tray: ['Not placed yet', 'you added it'], upcoming: ['Upcoming', ''], waiting: ['Waiting', ''], someday: ['Someday', ''] };
209
+ function whenOf(r) {
210
+ const d = r.dialog, nb = d.defer && d.defer > M.today ? d.defer : null;
211
+ if (nb) return ['Not before ' + dayLabel(nb), 'off your lists until then'];
212
+ const p = PLACE[r.list] || ['On your list', ''];
213
+ return r.list === 'upcoming' && d.edit.due ? [p[0], 'due ' + dayLabel(d.edit.due)] : p;
214
+ }
215
+ function fieldHtml(k, label, val, sub, open) {
216
+ return `<button class="ffd" data-p="xt" data-k="${k}" aria-expanded="${open}"><span class="ffv"><small>${esc(label)}</small><b>${esc(val)}${sub ? ` <em>· ${esc(sub)}</em>` : ''}</b></span>${CHEV}</button>`;
217
+ }
218
+ function panelHtml(r, x) {
219
+ const d = r.dialog, a = d.write.actions, S = d.steps || [];
220
+ if (x === 'agent') return `<div class="xpan agblk" data-state="${esc(d.agent.state)}">${agentInner(r)}</div>`;
221
+ if (x === 'when') {
222
+ const o = (attrs, l, sub) => `<button class="fopt" ${attrs}><span>${l}</span>${sub ? `<small>${sub}</small>` : ''}</button>`;
223
+ return `<div class="xpan fmenu" role="group" aria-label="When">${a.includes('flag') ? o('data-p="flag"', 'Today') : ''}${NOTYET.map(([k, t]) => o(`data-p="notyet" data-when="${k}"`, t, 'comes back by itself')).join('')}`
224
+ + o('data-p="xt" data-k="defer"', 'Not before a date…', 'leaves your lists') + o(`data-p="xt" data-k="someday" aria-pressed="${d.someday}"`, d.someday ? 'Bring back from Someday' : 'Someday') + '</div>';
225
+ }
226
+ if (x === 'wait') return `<div class="xpan"><div class="cact two"><input id="wOn" class="why one" maxlength="80" placeholder="A name" aria-label="Waiting on" autocomplete="off" value="${esc(ui.wo)}"><button class="cta quiet" data-p="waiting" id="wBtn"${ui.wo.trim() ? '' : ' disabled'}><span>Wait for them</span></button></div></div>`;
205
227
  if (x === 'edit') {
206
228
  const e = ui.ed || (ui.ed = { title: d.edit.title, due: d.edit.due, priority: d.edit.priority, wo: d.edit.waiting_on, job: d.edit.job }), ro = !!d.edit.title_ro;
207
- h += `<div class="xpan"><label class="xf"><span>Title</span><input id="xeT" maxlength="250" value="${esc(e.title)}"${ro ? ' disabled' : ''}></label>${ro ? `<p class="note">${esc(d.edit.title_ro)}</p>` : ''}`
229
+ return `<div class="xpan"><label class="xf"><span>Title</span><input id="xeT" maxlength="250" value="${esc(e.title)}"${ro ? ' disabled' : ''}></label>${ro ? `<p class="note">${esc(d.edit.title_ro)}</p>` : ''}`
208
230
  + `<label class="xf"><span>Due</span><input type="date" id="xeD" value="${esc(e.due)}"></label>`
209
231
  + `<div class="xf"><span>Priority</span><span class="seg2" role="group" aria-label="Priority">${PRIS.map((p) => `<button data-p="xpri" data-v="${p}" aria-pressed="${e.priority === p}">${p || 'None'}</button>`).join('')}</span></div>`
210
232
  + `<label class="xf"><span>Waiting on</span><input id="xeW" maxlength="80" value="${esc(e.wo)}" placeholder="A name moves it to Waiting"></label>`
@@ -212,29 +234,37 @@ function toolsHtml(r) {
212
234
  + `<div class="cact two"><button class="cta" data-p="xsave">${CHECK}<span>Save</span></button><button class="cta alt" data-p="xt" data-k="edit"><span>Cancel</span></button></div></div>`;
213
235
  }
214
236
  if (x === 'steps') {
215
- h += `<div class="xpan"><ul class="xsteps">${S.map((s) => `<li><span class="xst">${esc(s.text)}</span><span class="seg2" role="group" aria-label="Who does: ${esc(s.text)}">${WHO.map(([k, l]) => `<button data-p="xwho" data-sid="${esc(s.id)}" data-v="${k}" aria-pressed="${s.who === k}">${l}</button>`).join('')}</span></li>`).join('') || '<li class="note">No steps yet.</li>'}</ul>`
237
+ return `<div class="xpan"><ul class="xsteps">${S.map((s) => `<li><span class="xst">${esc(s.text)}</span><span class="seg2" role="group" aria-label="Who does: ${esc(s.text)}">${WHO.map(([k, l]) => `<button data-p="xwho" data-sid="${esc(s.id)}" data-v="${k}" aria-pressed="${s.who === k}">${l}</button>`).join('')}</span></li>`).join('') || '<li class="note">No steps yet.</li>'}</ul>`
216
238
  + `<p class="note">A step that sends something to a person is only ever drafted by the agent. You release it.</p>`
217
239
  + `<div class="xadd"><input id="xsIn" maxlength="200" placeholder="Add a step" aria-label="A new step" value="${esc(ui.sn)}"><button class="cta alt" data-p="xsadd">Add</button></div></div>`;
218
240
  }
219
241
  if (x === 'defer') {
220
242
  const dd = ui.dd || '';
221
- h += `<div class="xpan"><p class="note">It leaves your lists until that day.</p><span class="seg2" role="group" aria-label="Quick dates"><button data-p="xdq" data-v="${addIso(M.today, 1)}">Tomorrow</button><button data-p="xdq" data-v="${nextMonday(M.today)}">Monday</button><button data-p="xdq" data-v="${addIso(M.today, 7)}">In a week</button></span>`
243
+ return `<div class="xpan"><p class="note">It leaves your lists until that day.</p><span class="seg2" role="group" aria-label="Quick dates"><button data-p="xdq" data-v="${addIso(M.today, 1)}">Tomorrow</button><button data-p="xdq" data-v="${nextMonday(M.today)}">Monday</button><button data-p="xdq" data-v="${addIso(M.today, 7)}">In a week</button></span>`
222
244
  + `<label class="xf"><span>Or a date</span><input type="date" id="xdD" min="${addIso(M.today, 1)}" value="${esc(dd)}"></label>`
223
245
  + `<div class="cact two"><button class="cta" data-p="xdgo"${dd ? '' : ' disabled'}>${CHECK}<span>Not before ${dd ? esc(dayLabel(dd)) : 'that day'}</span></button>${d.defer ? '<button class="cta alt" data-p="xdclr"><span>Clear the date</span></button>' : ''}</div></div>`;
224
246
  }
225
- return h;
247
+ return '';
226
248
  }
227
249
  function cardInner(r) {
228
- const d = r.dialog, a = d.write.actions;
229
- const open = ui.more || !!ui.xp, move = a.includes('flag');
230
- const more = toolsHtml(r)
231
- + (a.includes('waiting') ? `<label class="whyl" for="wOn">Waiting on someone</label><div class="cact two"><input id="wOn" class="why one" maxlength="80" placeholder="A name" autocomplete="off" value="${esc(ui.wo)}"><button class="cta quiet" data-p="waiting" id="wBtn"${ui.wo.trim() ? '' : ' disabled'}><span>Wait for them</span></button></div>` : '');
232
- return agentHtml(r) + `<p class="ct">What you can do</p>`
233
- + `<div class="cact two"><button class="cta" data-p="done">${CHECK}<span>Done</span></button>${a.includes('keep') ? '<button class="cta quiet" data-p="keep"><span>Keep it</span></button>' : ''}</div>`
234
- + `<div class="mv2">Not yet <span class="seg2">${NOTYET.map(([k, t]) => `<button data-p="notyet" data-when="${k}">${t}</button>`).join('')}${move ? '<button data-p="flag">Do today</button>' : ''}</span></div>`
235
- + `<div class="cact two"><button class="cta quiet xmore" data-p="more" aria-expanded="${open}" aria-controls="xmoreBox"><span>${open ? 'Fewer options' : 'More'}</span></button><button class="cta quiet" data-p="remove"><span>Drop it</span></button></div>`
236
- + (open ? `<div id="xmoreBox" class="xmorebox">${more}</div>` : '')
237
- + '<p class="nodef err" id="cardErr" role="alert" hidden></p>';
250
+ const d = r.dialog, a = d.write.actions, x = ui.xp || '', S = d.steps || [], e = d.edit, ag = d.agent;
251
+ const steps = S.length ? S.length + (S.length === 1 ? ' step' : ' steps') : 'no steps yet';
252
+ const whos = [...new Set(S.map((s) => (WHO.find((w) => w[0] === s.who) || [0, 'You'])[1]))];
253
+ const fld = (k, label, val, sub, open = x === k) => fieldHtml(k, label, val, sub, open) + (open ? panelHtml(r, k) : '');
254
+ const when = whenOf(r);
255
+ let h = '';
256
+ /* an agent that is working, ready, failed or posted needs the PM's eye, so its block stays open; one that only can draft is a field */
257
+ if (ag && ag.state === 'suggest') h += fld('agent', 'The agent', 'Can draft this for you', ag.mine ? 'nothing leaves PMOS' : 'you read it first');
258
+ else h += agentHtml(r);
259
+ h += `<div class="ffds">`
260
+ + fieldHtml('when', 'When', when[0], when[1], x === 'when' || x === 'defer') + (x === 'when' || x === 'defer' ? panelHtml(r, x) : '')
261
+ + fld('wait', 'Waiting on', e.waiting_on || 'Nobody', '')
262
+ + fld('steps', 'Who does it', whos.length ? whos.join(', ') : 'You', steps)
263
+ + fld('edit', 'Priority · Due', e.priority || 'None', e.due ? 'due ' + dayLabel(e.due) : 'no date')
264
+ + `</div>`;
265
+ h += `<div class="fbar"><div class="fmeta">${a.includes('keep') ? '<button class="flink" data-p="keep">Keep it</button>' : ''}<button class="flink" data-p="remove">Drop it</button></div>`
266
+ + `<button class="cta fdone" data-p="done">${CHECK}<span>Done</span></button></div>`;
267
+ return h + '<p class="nodef err" id="cardErr" role="alert" hidden></p>';
238
268
  }
239
269
  const cardHtml = (r) => `<div class="acard" id="card">${cardInner(r)}</div>`;
240
270
  function paneHtml(r) {
@@ -1229,7 +1229,7 @@ button.dcr:hover{background:color-mix(in oklab,var(--ink) 4.5%,transparent)}
1229
1229
  .dtool{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:6px 0 8px}
1230
1230
  .dtool .seg button em{font-style:normal;font:600 var(--fs-2) var(--mono);margin-left:7px;opacity:.65}
1231
1231
  .dmsr{display:flex;align-items:center;gap:8px;height:40px;padding:0 14px;border-radius:999px;background:var(--well);min-width:220px;flex:0 1 280px}
1232
- .dmsr svg{width:16px;height:16px;color:var(--ink-3);flex:none}
1232
+ .dmsr svg{width:16px;height:16px;color:var(--ink-3);flex:none;position:relative}
1233
1233
  .dmsr input{border:0;background:none;font:inherit;font-size:var(--fs-3);color:var(--ink);width:100%;min-width:0;outline:none}
1234
1234
  .dmsr:focus-within{box-shadow:0 0 0 2px var(--ember)}
1235
1235
  @media (max-width:760px){
@@ -2262,6 +2262,40 @@ button.wl-row[aria-pressed="true"] .wl-tog{background:var(--solid);color:var(--o
2262
2262
  .ub{white-space:normal}
2263
2263
  .toolline{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:400 var(--fs-1) var(--mono);color:var(--ink-3);opacity:.85}
2264
2264
  .toolline::before{content:"";display:inline-block;vertical-align:middle;margin:0 8px 2px 0;width:6px;height:6px;border-radius:50%;background:var(--ink-3);opacity:.6}
2265
+ /* simple-ui #6: Insights "Dashboards and reports" asks through one rounded input, + for New, send inside it, one fine line with an info button */
2266
+ #cRep .nrpill{display:flex;align-items:center;gap:8px;min-height:56px;margin:14px 0 0;padding:0 6px;border-radius:999px;background:var(--card-solid);border:1px solid var(--hair)}
2267
+ #cRep .nrpill:focus-within{border-color:color-mix(in oklab,var(--ember) 55%,var(--hair))}
2268
+ #cRep .nrpill input{flex:1;min-width:0;height:44px;border:0;background:transparent;padding:0 4px;font:inherit;font-size:var(--fs-3);color:var(--ink)}
2269
+ #cRep .nrpill input:focus,#cRep .nrpill input:focus-visible{outline:0}
2270
+ #cRep .nrpill input::placeholder{color:var(--ink-3)}
2271
+ #cRep .nrplus,#cRep .nrgo{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;flex:none}
2272
+ #cRep .nrplus{background:var(--well);color:var(--ink)}
2273
+ #cRep .nrplus:hover{background:color-mix(in oklab,var(--ink) 10%,var(--well))}
2274
+ #cRep .nrgo{background:var(--solid);color:var(--on-solid);transition:transform .3s var(--spring),filter .2s}
2275
+ #cRep .nrgo:hover{filter:brightness(1.18)}
2276
+ #cRep .nrgo:active{transform:scale(.95)}
2277
+ #cRep .nrgo:disabled{opacity:.4}
2278
+ #cRep .nrplus svg.i,#cRep .nrgo svg.i{width:18px;height:18px;stroke-width:2.2}
2279
+ #cRep .nrpill .lmenu{top:52px}
2280
+ #cRep .nrline{margin:8px 0 0;text-wrap:balance;color:var(--ink-3);font-size:var(--fs-2);text-align:center}
2281
+ #cRep .nrline .infob{margin:-12px -12px -12px -6px;vertical-align:middle}
2282
+ #cRep #repFold{margin-top:8px}
2283
+ /* The item dialog's labelled fields and one action bar (initiative premium-simple-ui): a small label, the value from the record, a chevron.
2284
+ A field opens its panel under it. The bar holds one solid button, Done; Keep it and Drop it are plain words beside it. */
2285
+ .ffds{display:grid;gap:10px}
2286
+ .ffd{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:60px;padding:10px 16px;border-radius:16px;background:var(--card);box-shadow:inset 0 0 0 1px var(--hair);text-align:left;transition:box-shadow .25s}
2287
+ .ffd:hover,.ffd[aria-expanded="true"]{box-shadow:inset 0 0 0 1.5px var(--b3)}
2288
+ .ffv{min-width:0}.ffv small{display:block;font-size:var(--fs-2);color:var(--ink-3)}
2289
+ .ffv b{display:block;font-size:var(--fs-4);font-weight:500;line-height:1.3;overflow-wrap:anywhere}.ffv em{font-style:normal;font-weight:400;color:var(--ink-3);font-size:var(--fs-3)}
2290
+ .ffd .chev{color:var(--ink-2);transition:transform .25s var(--ease)}.ffd[aria-expanded="true"] .chev{transform:rotate(180deg)}
2291
+ .fmenu{padding:6px;gap:2px}
2292
+ .fopt{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 12px;border-radius:10px;font-size:var(--fs-3)}
2293
+ .fopt:hover,.fopt[aria-pressed="true"]{background:var(--well)}.fopt small{font-size:var(--fs-2);color:var(--ink-3)}
2294
+ .fbar{display:grid;gap:10px;padding-top:14px;border-top:1px solid var(--hair)}
2295
+ .fmeta{display:flex;justify-content:flex-end;gap:4px}
2296
+ .flink{min-height:44px;padding:0 10px;font-size:var(--fs-3);font-weight:500;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}.flink:hover{color:var(--ink)}
2297
+ .fdone{width:100%;justify-content:center;height:52px;font-size:var(--fs-4)}
2298
+ @media (max-width:640px){.acard .fdone{height:52px}}
2265
2299
  /* Simple Decision dialog (premium-simple-ui #3): evidence as label-value rows, the reason as one labelled field, one bottom bar with Later ▾ and Record */
2266
2300
  .dsim{gap:12px}
2267
2301
  .dsim .dkv{margin:0;background:var(--card);border-radius:var(--r-in);padding:4px 16px}
@@ -52,16 +52,16 @@
52
52
  <section class="card nrep rise" style="--d:6" id="cRep" aria-labelledby="hRep">
53
53
  <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h16M4 18h10"/></svg></span><h2 id="hRep">Dashboards and reports</h2><small id="repCap"></small></div>
54
54
  <div class="seg" id="listSeg" role="group" aria-label="Show"><i class="pill"></i></div>
55
- <div class="lbar">
56
- <span class="newm"><button class="dmcta" id="listNew" aria-haspopup="menu" aria-expanded="false" aria-controls="listMenu">New ▾</button>
57
- <span class="lmenu" id="listMenu" role="menu" hidden><button role="menuitem" id="pdNew">Dashboard</button><button role="menuitem" id="repNew">Report</button></span></span>
58
- <form class="nask" id="repAsk"><input id="repAskIn" maxlength="500" autocomplete="off" placeholder="Ask PMOS to set up a report" aria-label="Ask PMOS to set up a report"><button class="dmcta" id="repAskGo" type="submit">Ask</button></form>
59
- </div>
60
- <p class="note nask-n">Ask starts a background run that only proposes a report. Nothing is set up until you press Set it up. <button type="button" class="infob" aria-controls="repFold" aria-expanded="false" aria-label="About reports and the pin" title="About reports and the pin"><i aria-hidden="true">i</i></button></p>
61
- <div class="ifold" id="repFold" hidden><p class="mhint">A report is a file in the repository. PMOS drafts it, you read it. <b>Nothing is sent from here.</b> The pin puts one dashboard at the top of this page. It shows nowhere else.</p></div>
55
+ <form class="nrpill" id="repAsk">
56
+ <span class="newm"><button class="nrplus" type="button" id="listNew" aria-haspopup="menu" aria-expanded="false" aria-controls="listMenu" aria-label="New dashboard or report" title="New"><svg class="i" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></svg></button>
57
+ <span class="lmenu" id="listMenu" role="menu" hidden><button type="button" role="menuitem" id="pdNew">Dashboard</button><button type="button" role="menuitem" id="repNew">Report</button></span></span>
58
+ <input id="repAskIn" maxlength="500" autocomplete="off" placeholder="Ask PMOS to set up a report" aria-label="Ask PMOS to set up a report">
59
+ <button class="nrgo" id="repAskGo" type="submit" aria-label="Ask" title="Ask"><svg class="i" viewBox="0 0 24 24"><path d="M12 19V5M6 11l6-6 6 6"/></svg></button>
60
+ </form>
61
+ <p class="note nask-n nrline">Only proposes. Nothing is set up until you press Set it up. <button type="button" class="infob" aria-controls="repFold" aria-expanded="false" aria-label="About reports and the pin" title="About reports and the pin"><i aria-hidden="true">i</i></button></p>
62
+ <div class="ifold" id="repFold" hidden><p class="mhint">Ask starts a background run that only proposes a report. A report is a file in the repository. PMOS drafts it, you read it. <b>Nothing is sent from here.</b> The pin puts one dashboard at the top of this page. It shows nowhere else. Open a report to read it, edit its words or issue a draft.</p></div>
62
63
  <div id="repBody"></div>
63
64
  <div class="lpager" id="listPager"></div>
64
- <p class="nsch">Open a report to read it, edit its words or issue a draft.</p>
65
65
  </section>
66
66
  <section class="card rise" style="--d:7" id="cBm" aria-labelledby="hBm" hidden>
67
67
  <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M4 20V10M10 20V4M16 20v-8M22 20H2"/></svg></span><h2 id="hBm">Board measures</h2><button type="button" class="infob" aria-controls="bmFold" aria-expanded="false" aria-label="About the Board measures" title="About the Board measures"><i aria-hidden="true">i</i></button><small id="bmCap"></small><div class="seg mper" id="bmRange" role="group" aria-label="Range"><i class="pill"></i><button data-w="8" aria-pressed="true">8 weeks</button><button data-w="26" aria-pressed="false">26 weeks</button><button data-w="52" aria-pressed="false">52 weeks</button></div></div>