create-pmos 0.694.0 → 0.696.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/package.json +15 -3
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/briefing-premium-doc-edit-test.js +5 -5
  7. package/workspace/changelog.json +14 -2
  8. package/workspace/guide/home.md +3 -3
  9. package/workspace/lib/routes-boards.js +1 -1
  10. package/workspace/lib/routes-proposals.js +3 -0
  11. package/workspace/package-lock.json +2 -2
  12. package/workspace/package.json +1 -1
  13. package/workspace/premium-chat-notes-test.js +3 -3
  14. package/workspace/premium-report-read-test.js +1 -1
  15. package/workspace/premium-vw-slides-test.js +3 -3
  16. package/workspace/public/pm/cozy-board.css +3 -10
  17. package/workspace/public/pm/cozy-home.css +3 -5
  18. package/workspace/public/pm/cozy-insights.css +0 -1
  19. package/workspace/public/pm/cozy-viewer.js +1 -7
  20. package/workspace/public/pm/cozy-vw-shell.css +1 -2
  21. package/workspace/public/pm/cozy-vw.css +2 -6
  22. package/workspace/public/pm/cozy.css +0 -8
  23. package/workspace/public/pm/home-app.js +6 -7
  24. package/workspace/public/pm/home-chat.js +0 -1
  25. package/workspace/public/pm/home-ini.js +4 -4
  26. package/workspace/public/pm/home-more.js +1 -2
  27. package/workspace/public/pm/premium-board.js +1 -1
  28. package/workspace/public/pm/premium-report-read.js +3 -5
  29. package/workspace/public/pm/premium-shell.js +6 -10
  30. package/workspace/public/pm/premium-vw-doc.js +2 -3
  31. package/workspace/public/pm/premium-vw-slides.js +4 -5
  32. package/workspace/test-lists/design-placeholders.json +9 -0
  33. package/workspace/public/pm/cozy-placeholder.js +0 -26
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.694.0",
3
+ "version": "0.696.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": {
@@ -34,8 +34,8 @@
34
34
  ],
35
35
  "pmosChanges": [
36
36
  {
37
- "v": "0.694.0",
38
- "at": "2026-11-22T09:46:19.118Z",
37
+ "v": "0.696.0",
38
+ "at": "2026-11-22T09:53:22.260Z",
39
39
  "f": 4,
40
40
  "prs": [
41
41
  {
@@ -43,6 +43,18 @@
43
43
  "t": "Discovery in three questions on a new initiative (A459)",
44
44
  "s": "Discovery in three questions on a new initiative (A459)",
45
45
  "k": "new"
46
+ },
47
+ {
48
+ "n": 1516,
49
+ "t": "Your move's question list derives the rows once, not once per initiative",
50
+ "s": "Your move's question list derives the rows once, not once per initiative",
51
+ "k": "fix"
52
+ },
53
+ {
54
+ "n": 1513,
55
+ "t": "No \"Waiting for design\" tag or card reaches a user (A460)",
56
+ "s": "No \"Waiting for design\" tag or card reaches a user (A460)",
57
+ "k": "new"
46
58
  }
47
59
  ]
48
60
  },
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@d4fea2c6
1
+ kernel-source: pmos@ef6809b0
2
2
  assembled: 2026-11-22
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-11-22T09:46:15Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-22T09:53:18Z"}
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-11-22T09:46:15Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-22T09:53:18Z"}
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-11-22T09:46:15Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-22T09:53:18Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,8 +2,8 @@
2
2
  'use strict';
3
3
  /* briefing-premium-doc-edit-test.js — editing a document and its proposals (initiative briefing-premium-doc-edit; planning/prd/briefing-premium-doc-edit-prd.md E1 to E8),
4
4
  * re-pointed to the Agreed design (initiative premium-agreed-design): the document opens as a page in the Home Viewer (pm/premium-vw-doc.js) from the
5
- * initiative's Files row. Edit is the page's Markdown mode and save row; the Edit log and the Proposals list are a plain section under the page marked
6
- * "Waiting for design" until the design draws them. The page-level Keep and Undo all are in premium-vw-doc-test.js.
5
+ * initiative's Files row. Edit is the page's Markdown mode and save row; the Edit log and the Proposals list are a plain section under the page, with no
6
+ * marker (remove-design-placeholders). The page-level Keep and Undo all are in premium-vw-doc-test.js.
7
7
  * Serves the real page from the real server. The initiative model and the /api/doc-sheet routes are answered by a small stateful stand-in, so each press can be
8
8
  * read off the request the page sent. The routes' own behaviour (the file, the log, stale, 403) is in briefing-premium-doc-edit.test.js, on a scratch repository.
9
9
  * E1 tabs · E2 edit · E3 ask · E4 proposals · E5 after a write · E6 held · E7 honesty · E8 fidelity and floors */
@@ -96,7 +96,7 @@ const prop = (o) => Object.assign({ id: 'prop-a', state: 'proposed', prompt: 'ad
96
96
  ok('0 the document opens as a page in the Viewer', !!(await p.evaluate(() => document.querySelector('#czViewer:not([hidden]) .obody.vw[data-vw="doc:planning/prd/self-serve-v2-prd.md"]'))));
97
97
  /* E1 the page's modes and the section under it */
98
98
  ok('E1 the page offers Page, Edit and Markdown', await p.evaluate((v) => [...document.querySelectorAll(v + ' .vwseg')].map((b) => b.textContent.trim()).join('|') === 'Page|Edit|Markdown', V));
99
- ok('E1 under the page are Edit log and Proposals with the open count, marked Waiting for design', await p.evaluate((v) => { const s = document.querySelector(v + ' .vwside'); return !!s && /Waiting for design/.test(s.querySelector('.hx-wait').textContent) && [...s.querySelectorAll('[data-vd^="side:"]')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()).join('|') === 'Edit log|Proposals 1'; }, V));
99
+ ok('E1 under the page are Edit log and Proposals with the open count, with no Waiting for design marker', await p.evaluate((v) => { const s = document.querySelector(v + ' .vwside'); return !!s && !/Waiting for design/.test(s.textContent) && [...s.querySelectorAll('[data-vd^="side:"]')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()).join('|') === 'Edit log|Proposals 1'; }, V));
100
100
  ok('E7 the page never says it is read-only', !/Read-only/i.test(await txt(p, V)));
101
101
 
102
102
  /* E2 edit (the file as Markdown; editing in place is in premium-vw-doc-test.js) */
@@ -179,8 +179,8 @@ const prop = (o) => Object.assign({ id: 'prop-a', state: 'proposed', prompt: 'ad
179
179
  for (const t of ['log', 'props']) {
180
180
  await side(R.page, t);
181
181
  if (t === 'props') await R.page.click(`${V} [data-vd="prej:prop-a"]`);
182
- const f = await R.page.evaluate(([v, phone]) => { const bad = []; const root = document.querySelector(v + ' .vwside'); for (const e of root.querySelectorAll('button,input,textarea')) { const r = e.getBoundingClientRect(); if (r.width && r.height && r.height < (phone ? 44 : 32)) bad.push(e.textContent.trim() || e.id); } return { sx: document.documentElement.scrollWidth - innerWidth, bad, out: [...root.querySelectorAll('.vwprop,input,button')].filter((e) => e.getBoundingClientRect().right > innerWidth + 1).length, wait: getComputedStyle(root.querySelector('.hx-wait')).borderRadius }; }, [V, w < 761]);
183
- ok(`E8 ${t} at ${w} px ${theme}: no sideways scroll, no small target, nothing past the edge, the cozy marker`, f.sx <= 0 && f.bad.length === 0 && f.out === 0 && f.wait !== '0px', JSON.stringify(f));
182
+ const f = await R.page.evaluate(([v, phone]) => { const bad = []; const root = document.querySelector(v + ' .vwside'); for (const e of root.querySelectorAll('button,input,textarea')) { const r = e.getBoundingClientRect(); if (r.width && r.height && r.height < (phone ? 44 : 32)) bad.push(e.textContent.trim() || e.id); } return { sx: document.documentElement.scrollWidth - innerWidth, bad, out: [...root.querySelectorAll('.vwprop,input,button')].filter((e) => e.getBoundingClientRect().right > innerWidth + 1).length, wait: !!root.querySelector('.hx-wait') }; }, [V, w < 761]);
183
+ ok(`E8 ${t} at ${w} px ${theme}: no sideways scroll, no small target, nothing past the edge, no marker`, f.sx <= 0 && f.bad.length === 0 && f.out === 0 && !f.wait, JSON.stringify(f));
184
184
  }
185
185
  await R.ctx.close();
186
186
  }
@@ -1,7 +1,7 @@
1
1
  [
2
2
  {
3
- "v": "0.694.0",
4
- "at": "2026-11-22T09:46:19.118Z",
3
+ "v": "0.696.0",
4
+ "at": "2026-11-22T09:53:22.260Z",
5
5
  "f": 4,
6
6
  "prs": [
7
7
  {
@@ -9,6 +9,18 @@
9
9
  "t": "Discovery in three questions on a new initiative (A459)",
10
10
  "s": "Discovery in three questions on a new initiative (A459)",
11
11
  "k": "new"
12
+ },
13
+ {
14
+ "n": 1516,
15
+ "t": "Your move's question list derives the rows once, not once per initiative",
16
+ "s": "Your move's question list derives the rows once, not once per initiative",
17
+ "k": "fix"
18
+ },
19
+ {
20
+ "n": 1513,
21
+ "t": "No \"Waiting for design\" tag or card reaches a user (A460)",
22
+ "s": "No \"Waiting for design\" tag or card reaches a user (A460)",
23
+ "k": "new"
12
24
  }
13
25
  ]
14
26
  },
@@ -167,7 +167,7 @@ PMOS names a session after its first real answer. It does not ask. It changes th
167
167
  - **Undo** gives back the name that PMOS gave, and PMOS names the session again.
168
168
  - The Home row shows the same name.
169
169
 
170
- Some features are still not designed. Home keeps each one usable as a plain card in the Viewer with the label **Waiting for design**. The label means that the card works, but its look is not final.
170
+ Some features, such as Notes, open as a plain card in the Viewer. Each one works fully. If a part of the Viewer cannot load, a short message says that it could not open.
171
171
 
172
172
  ## Search, Guide and Settings
173
173
 
@@ -239,11 +239,11 @@ A need opens in the Viewer with its title, its facts and its choices. A need fro
239
239
 
240
240
  ## Your first Briefing
241
241
 
242
- After an import in Welcome, Home opens with `first=` in the address. A card at the top of the list shows what came in and the state of each tool that you ticked. **Undo this import** reverses the import and returns to Welcome. The card shows **Waiting for design**.
242
+ After an import in Welcome, Home opens with `first=` in the address. A card at the top of the list shows what came in and the state of each tool that you ticked. **Undo this import** reverses the import and returns to Welcome.
243
243
 
244
244
  ## A document page
245
245
 
246
- A document opens as a page in the Viewer. Use **Page**, **Edit** or **Markdown** to read it, edit it in place, or edit the file as text. Under the page, a section marked **Waiting for design** holds two lists:
246
+ A document opens as a page in the Viewer. Use **Page**, **Edit** or **Markdown** to read it, edit it in place, or edit the file as text. Under the page, a section holds two lists:
247
247
 
248
248
  - **Edit log.** Each version of the file, with its reason, who changed it, and the day.
249
249
  - **Proposals.** The agent's proposed changes. **Open proposals** shows each open proposal with the request and each section. **Accept** takes only the sections that are still current. If no section is current, the proposal says that it cannot be accepted. **Reject** asks for a reason first. **Closed** lists the accepted and rejected proposals with their reasons. If the server refuses a press, the section shows the server's reason.
@@ -2159,7 +2159,7 @@ function taskRestore(ctx, body, g) { return writeAs(ctx, '/api/boards/tasks/rest
2159
2159
  * initiative's workflow moved task stages instead). → { ok, board, row } | { ok: false, pending?, status, error } */
2160
2160
  function initiativeWorkflow(ctx, w, id) {
2161
2161
  const fr = frameFor(ctx, w);
2162
- const b = baseRows(w);
2162
+ const b = baseRows(w, ctx); // in the caller's read pass, if it has one: a caller that asks for many initiatives derives the rows once
2163
2163
  if (b.pending) return { ok: false, pending: true, status: 202, error: PENDING };
2164
2164
  if (!b.ok) return { ok: false, status: 500, error: b.error };
2165
2165
  const b0 = b.rows.find((r) => r.id === id);
@@ -193,6 +193,9 @@ function heldOf(ctx, w) {
193
193
  const SG = require('./source-guard.js');
194
194
  const out = [];
195
195
  if (!dirOf(ctx, w)) return out;
196
+ // one read pass for the whole walk: view() asks for each row's workflow, and without a pass every row derived the base rows of the
197
+ // whole workspace again (one stat per record, per row), which held the server for seconds on a large repository
198
+ if (!(ctx.boardsPass instanceof Map)) ctx = Object.assign({}, ctx, { boardsPass: new Map() });
196
199
  const fr = RB.frameFor(ctx, w);
197
200
  for (const board of fr.boards || []) {
198
201
  // no derive: a read that finds the rows still being derived skips the board this time (the list is fixed later in the day, and the
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.694.0",
3
+ "version": "0.696.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.694.0",
9
+ "version": "0.696.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/sdk": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.694.0",
3
+ "version": "0.696.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",
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
  /* premium-chat-notes-test.js — Notes for a premium chat conversation (initiative premium-chat-attach, N1-N7; re-pointed by premium-agreed-design
4
4
  * to Home's chat: /premium-chat.html opens Home with the chat ?about names. Notes is not in the Agreed design, so it stays usable from the
5
- * composer's + menu (Notes, #hmNotes) and opens in the cozy Viewer with a "Waiting for design" marker; there is no + menu and no tab strip).
5
+ * composer's + menu (Notes, #hmNotes) and opens in the cozy Viewer, with no marker (remove-design-placeholders); there is no + menu and no tab strip).
6
6
  * Serves the real Home from the real server; notes save through the real /api/chat-file/notes in a scratch state folder.
7
7
  * N1 the Notes button opens the notepad in the Viewer, the old Scratchpad text is the first note · N2 typed Markdown is saved as a .md file
8
8
  * N3 a checkbox ticks · N4 New note and the list · N5 the buttons are icons with names · N6 Add selection · N7 Share with Claude puts the note on
@@ -54,7 +54,7 @@ const notes = (key = KEY) => lib.listNotes({ runtimeDir: T.STATE_DIR, key }).not
54
54
  await page.waitForFunction(() => !!document.querySelector('#hmNotes'), null, { timeout: 15000 });
55
55
  return { page, ctx, errors, asks, st };
56
56
  };
57
- // Notes is an item of the box's + menu (Agreed design: the toolbar is "+ / @ chip"; Notes is marked Waiting for design)
57
+ // Notes is an item of the box's + menu (Agreed design: the toolbar is "+ / @ chip")
58
58
  const openNotes = async (page) => { await page.click('#hmAdd'); await page.click('#hmNotes'); return until(async () => page.isVisible('#ntEd')); };
59
59
  const typeIn = async (page, s) => { await page.click('#ntEd'); await page.keyboard.type(s); };
60
60
 
@@ -65,7 +65,7 @@ const notes = (key = KEY) => lib.listNotes({ runtimeDir: T.STATE_DIR, key }).not
65
65
  /* N1 */
66
66
  ok('N1 the composer has a Notes button, not a Scratchpad', /Notes/.test(await page.getAttribute('#hmNotes', 'aria-label')) && !/Scratchpad/.test(await page.textContent('#hmFoot')));
67
67
  ok('N1 the Scratchpad strip and its chip are gone', (await page.$('#sPad')) === null && (await page.$('#sPadT')) === null);
68
- ok('N1 Notes opens in the Viewer, titled Notes, marked Waiting for design', !!(await openNotes(page)) && (await page.textContent('#czVwTitle')).trim() === 'Notes' && !!(await until(async () => page.isVisible('#czViewer .hx-wait'))));
68
+ ok('N1 Notes opens in the Viewer, titled Notes, with no Waiting for design marker', !!(await openNotes(page)) && (await page.textContent('#czVwTitle')).trim() === 'Notes' && !!(await until(async () => page.isVisible('#ntEd'))) && !/Waiting for design/.test(await page.textContent('#czViewer')));
69
69
  ok('N1 the old Scratchpad text is the first note, line by line', !!(await until(async () => notes().length === 1)) && notes()[0].text === 'call Dana\n\nask about Q4' && /call Dana[\s\S]*ask about Q4/.test(await page.textContent('#ntEd')));
70
70
  ok('N1 the pad is emptied once its text is a note', !!(await until(async () => { const r = await (await fetch(BASE + '/api/scratchpad?key=' + encodeURIComponent(KEY))).json(); return r.text === ''; })));
71
71
  ok('N1 the note title shows in the head', (await page.textContent('#ntSw')).trim() === 'call Dana');
@@ -200,7 +200,7 @@ const iss = issues.appendFromCli(dir, [{ ev: 'issued', cadence: CAD, slot: '2026
200
200
  /* E: Edit edits in place: on a page the page editor, inside the card; Cancel brings the report back */
201
201
  await tap('[data-r="view|doc"]');
202
202
  await tap('[data-r="edit"]');
203
- ok('E1 Edit on a page mounts the page editor in the card, marked Waiting for design', await until(() => p.evaluate(() => { const h = document.querySelector('#czViewer [data-vz-ed]'); return h && h.dataset.mounted && h.children.length > 0 && !!document.querySelector('#czViewer [data-cz-placeholder="Page editor"]'); }), 15000));
203
+ ok('E1 Edit on a page mounts the page editor in the card, with no Waiting for design marker', await until(() => p.evaluate(() => { const h = document.querySelector('#czViewer [data-vz-ed]'); return h && h.dataset.mounted && h.children.length > 0 && !/Waiting for design/.test(document.querySelector('#czViewer').textContent); }), 15000));
204
204
  ok('E2 while editing the edit bar takes the summary\'s place: the chip says Editing the Oct 12 draft, then Slides | Page and Cancel', /Editing the Oct 12 draft/.test(await chipT()) && await tools() === 'view|deck,view|doc,edcancel' && !(await has('.czs-sum')) && !(await has('.rp-bar')), await tools());
205
205
  await tap('[data-r="edcancel"]');
206
206
  ok('E3 Cancel brings the report back', await until(() => p.evaluate(() => !!document.querySelector('#czViewer .rp-pg') && !document.querySelector('#czViewer [data-vz-ed]'))));
@@ -3,7 +3,7 @@
3
3
  /* premium-vw-slides-test.js — the slide editor in the Viewer card (initiative premium-viewer, R-SL1, R6, R7; planning/prd/premium-viewer-prd.md;
4
4
  * re-pointed for premium-agreed-design, area viewer: ReportPanel.dc.html in edit mode). A real server on a scratch git repository with two cycles
5
5
  * of one report (one issued). /premium-viewer.html?open=report opens a cycle in the Viewer card; Edit mounts the slide editor in the card, and the
6
- * panel's own toolbar (Undo, Redo, Insert, Layout, Theme, Cancel, Save) drives it; the editor is marked "Waiting for design". The presenter view
6
+ * panel's own toolbar (Undo, Redo, Insert, Layout, Theme, Cancel, Save) drives it. The presenter view
7
7
  * (N4 to N11) is the editor's own Present: the panel has no entry to it yet, so those checks press the editor's button directly.
8
8
  * Every save goes through the real POST /api/doc-sheet/edit and is read back from disk.
9
9
  * O opening · E editing · S save and read back · H a hand edit wins · C a stale file · N Present · I issued · F floors
@@ -93,7 +93,7 @@ const disk = () => fs.readFileSync(path.join(dir, pNew), 'utf8');
93
93
  ok('O1 a draft report opens in the Viewer card', await openReader('2026-10-12'));
94
94
  /* re-pointed (batch 6 item 1b, canvas OvReport): Edit is an icon on the report Viewer's bar, so ⋯ does not repeat it */
95
95
  ok('O2 on Slides, Edit is on the bar once, as an icon, and ⋯ does not repeat it (OvReport)', await until(() => p.evaluate(() => !!document.querySelector('#czViewer [data-cz-vw="more"]'))) && !(await menuOf(p)).includes('Edit') && await p.evaluate(() => { const L = document.querySelectorAll('#czViewer .cz-vw-body [data-r="edit"]'); return L.length === 1 && L[0].closest('.rp-bar') && !L[0].textContent.trim() && L[0].getAttribute('aria-label') === 'Edit'; }));
96
- ok('O3 Edit mounts the slide editor in the card, with no dialog and no tab; the parts the design does not draw (slide tools, speaker notes) are marked Waiting for design', await openEditor() && await p.evaluate(() => !document.querySelector('#dlg, #vTabs') && !!document.querySelector('#czViewer [data-cz-placeholder="Slide tools"]') && !!document.querySelector('#czViewer [data-cz-placeholder="Speaker notes"]')));
96
+ ok('O3 Edit mounts the slide editor in the card, with no dialog and no tab; the slide tools and the speaker notes are there, with no Waiting for design marker', await openEditor() && await p.evaluate(() => !document.querySelector('#dlg, #vTabs') && !!document.querySelector('#czViewer .sl-tools [data-dup]') && !!document.querySelector('#czViewer details.sl-notes textarea') && !/Waiting for design/.test(document.querySelector('#czViewer').textContent)));
97
97
  ok('O3 the panel\'s toolbar drives it: Undo, Redo, Insert, Layout, Theme, Cancel and Save, and the cycle chip says Editing', await p.evaluate(() => [...document.querySelectorAll('#czViewer .vz-tb > button')].map((b) => b.dataset.r).join() === 'ed|undo,ed|redo,ins,ed|layout,ed|theme,edcancel,edsave' && /Editing the Oct 12 draft/.test(document.querySelector('#czViewer [data-r="cycm"]').textContent)), await p.evaluate(() => [...document.querySelectorAll('#czViewer .vz-tb > button')].map((b) => b.dataset.r).join()));
98
98
  let s = await st();
99
99
  ok('O4 the report reads as a title slide and one slide per section', s && s.n === 5 && s.slides[0].l === 'title' && s.slides.map((x) => x.els[0].html).join('|') === 'Partner review, 12 Oct|Headline|Initiatives|Partner note|Sources', s && s.slides.map((x) => x.els[0].html).join('|'));
@@ -120,7 +120,7 @@ const disk = () => fs.readFileSync(path.join(dir, pNew), 'utf8');
120
120
  await p.mouse.dblclick(b.x + 20, b.y + b.h / 2);
121
121
  await until(() => p.evaluate(() => document.activeElement && document.activeElement.isContentEditable));
122
122
  await p.keyboard.press('End'); await p.keyboard.type(' this week');
123
- await p.$eval(V + ' details.sl-notes', (d) => { d.open = true; }); // the speaker notes fold away under the stage (Waiting for design)
123
+ await p.$eval(V + ' details.sl-notes', (d) => { d.open = true; }); // the speaker notes fold away under the stage
124
124
  await p.click(V + ' .sl-notes textarea'); await p.keyboard.type('Say the number first.');
125
125
  s = await st();
126
126
  ok('E3 double-click types into a text item', s.slides[1].els[0].html === 'Headline this week', s.slides[1].els[0].html);
@@ -119,7 +119,6 @@ body.bd-page main.bd-main { position: relative; max-width: none; margin: 16px; p
119
119
  .bd-page #moreMenu { right: 0; left: auto; }
120
120
  .bd-page .crmenu > button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px; font: var(--fw-strong) var(--fs-row)/var(--lh-row) var(--cz-sans); color: var(--cz-ink); white-space: nowrap; }
121
121
  .bd-page .crmenu > button:hover, .bd-page .crmenu > button:focus-visible { background: var(--cz-well); }
122
- .bd-page .crmenu > button .bd-wtag { margin-left: auto; }
123
122
  /* the product menu ticks several (batch 11 item 7): a blue tick when on, a grey dash on All products when only some are */
124
123
  .bd-page .crmenu > button .crtk { margin-left: auto; width: 18px; height: 18px; flex: none; display: inline-flex; }
125
124
  .bd-page .crmenu > button .crtk svg { width: 18px; height: 18px; fill: none; stroke: var(--cz-blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@@ -178,11 +177,7 @@ body.bd-page main.bd-main { position: relative; max-width: none; margin: 16px; p
178
177
  .bd-chip.bd-jf svg.ad-svg { width: 24px; height: 24px; }
179
178
  .bd-pip { position: absolute; right: 3px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--cz-risk); border: 2px solid var(--cz-card); }
180
179
 
181
- /* ── the "Waiting for design" card, where the shell has none yet; messages ── */
182
- .bd-wait { border: 1px dashed var(--cz-hair); border-radius: 18px; padding: 22px; color: var(--cz-ink3); font-size: var(--fs-meta); line-height: var(--lh-meta); }
183
- .bd-wait b { display: block; color: var(--cz-ink); font-size: var(--fs-body); margin-bottom: 4px; line-height: var(--lh-body); }
184
- .bd-wait p { margin: 0; }
185
- .bd-waitw { min-height: 200px; }
180
+ /* ── messages ── */
186
181
  .bd-msg { margin: 0; padding: 18px; border: 1px solid var(--cz-hair); border-radius: 18px; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
187
182
  .bd-msg b { color: var(--cz-ink); }
188
183
  .bd-msg.err b { color: var(--cz-red); }
@@ -687,9 +682,7 @@ span.tg-end { left: var(--tl-x); cursor: default; } /* a shared board's milest
687
682
  .tg-none .bd-chip, .tg-ask { height: 44px; }
688
683
  }
689
684
 
690
- /* ── the plain versions of what the Agreed design has no frame for (pm/bd-acts.js): a small "Waiting for design" tag on each ── */
691
- .bd-wtag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; border: 1px dashed var(--bd-pass); color: var(--cz-ink3); font: var(--fw-strong) var(--fs-badge)/var(--lh-badge) var(--cz-sans); white-space: nowrap; vertical-align: middle; }
692
- .pk-eye .bd-wtag { margin-left: 6px; }
685
+ /* ── the plain versions of what the Agreed design has no frame for (pm/bd-acts.js) ── */
693
686
  .bd-whead { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
694
687
  .bd-amut { margin: 0; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
695
688
  .bd-amsg { margin: 0; min-height: 1em; font-size: var(--fs-meta); color: var(--cz-red); line-height: var(--lh-meta); }
@@ -775,7 +768,7 @@ button.bd-lr:hover { background: var(--bd-row); }
775
768
  .bt-qt { margin-left: 0; }
776
769
  }
777
770
 
778
- /* the phone's plain entries to the help frames, Year and 5 yr (no phone frame draws them): a "Waiting for design" row */
771
+ /* the phone's plain entries to the help frames, Year and 5 yr (no phone frame draws them) */
779
772
  .bd-phx { flex-wrap: wrap; margin: 6px 0 0; }
780
773
  .bd-phb { display: inline-flex; flex-wrap: wrap; gap: 6px; }
781
774
  .bd-phscroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
@@ -410,8 +410,6 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
410
410
  .hv-ui .flag { align-self: flex-start; padding: 1px 8px; border-radius: var(--radius-pill, 999px); box-shadow: inset 0 0 0 1.5px var(--cz-blue); color: var(--cz-blueink); font-size: var(--fs-label); font-weight: var(--fw-strong); line-height: var(--lh-label); }
411
411
  .hv-doc { line-height: 1.6; }
412
412
  .hx { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 12px; font-size: var(--fs-body); line-height: var(--lh-body); }
413
- .hx-wait, .hv .hx-wait { margin: 0; display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill, 999px); background: var(--cz-well); color: var(--cz-ink3); font-size: var(--fs-badge); font-weight: var(--fw-strong); line-height: var(--lh-badge); }
414
- .hx-wait i { width: 6px; height: 6px; border-radius: 50%; background: var(--cz-dot-q); }
415
413
  .hx-sec h4 { margin: 4px 0 6px; font-size: var(--fs-body); line-height: var(--lh-body); }
416
414
  .hx-row { display: flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid var(--cz-hair); }
417
415
  .hx-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
@@ -609,7 +607,7 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
609
607
  .hm-slash .l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
610
608
  .hm-slash .l1 b { font-size: var(--fs-row); font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: var(--lh-row); }
611
609
  .hm-scope + .hm-files { margin-bottom: 6px; }
612
- /* the phone moment card (home-phone-card.js) at the top of the phone's sheet; not in the Agreed design, so marked Waiting for design */
610
+ /* the phone moment card (home-phone-card.js) at the top of the phone's sheet */
613
611
  .hm-phc { display: grid; gap: 6px; margin: 2px 2px 14px; padding: 14px 16px; border-radius: var(--radius-card, 18px); background: var(--cz-card); box-shadow: inset 3px 0 0 var(--cz-blue), var(--cz-float); color: var(--cz-ink); }
614
612
  .hm-phc[hidden] { display: none; }
615
613
  .hm-phc .label { font-size: var(--fs-badge); font-weight: var(--fw-strong); letter-spacing: .04em; text-transform: uppercase; color: var(--cz-ink3); line-height: var(--lh-badge); }
@@ -636,7 +634,7 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
636
634
  .hm-phc .phmv p em { grid-column: 2; font-style: normal; font-size: var(--fs-meta); color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: var(--lh-meta); }
637
635
  .hm-phc .phq { color: var(--cz-ink3); }
638
636
 
639
- /* the first-run card after an import (premium-first.js): plain, Waiting for design */
637
+ /* the first-run card after an import (premium-first.js): plain */
640
638
  .hm-first { display: grid; gap: 8px; margin: 2px 2px 14px; padding: 14px 16px; border-radius: var(--radius-card, 18px); background: var(--cz-card); box-shadow: var(--cz-float); color: var(--cz-ink); }
641
639
  .hm-first h2 { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); }
642
640
  .hm-first h4 { margin: 4px 0 0; font-size: var(--fs-body); line-height: var(--lh-body); }
@@ -646,7 +644,7 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
646
644
  .hv-intro { margin: 0; font-size: var(--fs-meta); line-height: 1.5; color: var(--cz-ink2); }
647
645
  .hv-intro b { margin-right: 4px; color: var(--cz-ink); }
648
646
  .hv-link { display: inline-flex; align-items: center; min-height: 44px; height: auto; text-decoration: none; box-sizing: border-box; }
649
- /* Around you (home-around.js): plain, Waiting for design */
647
+ /* Around you (home-around.js): plain */
650
648
  .ar { display: grid; gap: 10px; }
651
649
  .ar-hd { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
652
650
  .ar-hd small { font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
@@ -404,7 +404,6 @@ p.ins-fl { flex-direction: row; align-items: center; margin: 0 0 6px; flex-wrap:
404
404
  }
405
405
 
406
406
  /* the minimal panels the Agreed design does not draw yet (goal detail, budget, tile target, report flows), in the Viewer card */
407
- .ins-vbody .cz-ph { margin-bottom: 12px; }
408
407
  .ins-kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 12px; margin: 0 0 14px; font-size: var(--fs-body); line-height: var(--lh-body); }
409
408
  .ins-kv dt { color: var(--muted); font-weight: var(--fw-strong); }
410
409
  .ins-kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
@@ -65,7 +65,6 @@
65
65
  * - every step is a browser history entry ({ czvw: { s, i } }), so the browser's Back and Forward and a phone's back swipe walk the same
66
66
  * trail; Back at the first item closes the Viewer. Close (×, Escape, close()) takes the trail's entries off again, so Back never
67
67
  * lands on a closed item. A page writes its own address with replaceUrl(url), which waits while the history is still moving.
68
- * placeholder(featureName, { kind?, icon? }) opens the card with czPlaceholder(featureName) in it (cozy-placeholder.js)
69
68
  * The popup (slice 2 of the six-place navigation, boards 3, 7, 23; pm/cozy-popup.js): open({ pop: { … } }) on a desk puts the item in a
70
69
  * Viewer of its own on the left of the near-full popup, with the chat on its right. pop is what the chat is about (cozy-popup.js show()).
71
70
  * A press inside the popup (the Viewer or the chat beside it) drills in there; the header then shows the path and ←. That Viewer has no
@@ -81,7 +80,6 @@
81
80
  * widthOf(kind) · setWidth(px) · wide(on?) · railOn() for the page and the tests; railSync(key?) for a page
82
81
  * that draws a card for a rail tile (Home).
83
82
  * The look is in cozy-vw-shell.css (loaded here once) over cozy.css (.cz-vw…). The old #dlg path (premium-viewer.js) is separate. */
84
- import { czPlaceholder } from './cozy-placeholder.js';
85
83
 
86
84
  export const ICONS = {
87
85
  doc: 'M7 3h7l5 5v13H7zM14 3v5h5',
@@ -718,10 +716,6 @@ export const bodyOf = (id) => { const x = ALL.find((y) => shown(y) && y.cur.id =
718
716
  /** Close the Viewer that shows item id (nothing else). */
719
717
  export function closeOf(id) { const x = ALL.find((y) => shown(y) && y.cur.id === String(id)); if (x) { use(x); close(); } }
720
718
  export function onChange(fn) { if (typeof fn === 'function') G.subs.push(fn); }
721
- /** Open the Viewer on a feature the design does not draw yet. */
722
- export function placeholder(featureName, o = {}) {
723
- return open({ id: 'placeholder:' + featureName, kind: o.kind || featureName, title: featureName, icon: o.icon || 'info', render: (el) => czPlaceholder(el, featureName) });
724
- }
725
719
 
726
720
  /* ── one trail: ← →, the browser's Back and Forward, a phone's back swipe (batch 14 item 7) ── */
727
721
  const H = { s: '', n: 0, adopt: false, auto: false, q: [], wait: 0, press: null };
@@ -871,4 +865,4 @@ const popShown = () => ALL.some((y) => y.pop && shown(y));
871
865
  export function popNext(pop) { G.popNext = pop ? { pop, t: Date.now() } : null; }
872
866
  /** Close the popup's Viewer (an item with unsaved changes asks first). */
873
867
  export function closePop() { const x = ALL.find((y) => y.pop && shown(y)); if (x) { use(x); guarded(close); } }
874
- if (typeof window !== 'undefined') window.czViewer = { open, close, closeOf, bodyOf, back, forward, trail, replaceUrl, drill, setPresses, setChip, setCheck, isOpen, current, body, onChange, placeholder, retitle, czSummary, czSections, widthOf, setWidth, wide, railOn, railSync, ICONS };
868
+ if (typeof window !== 'undefined') window.czViewer = { open, close, closeOf, bodyOf, back, forward, trail, replaceUrl, drill, setPresses, setChip, setCheck, isOpen, current, body, onChange, retitle, czSummary, czSections, widthOf, setWidth, wide, railOn, railSync, ICONS };
@@ -38,7 +38,6 @@
38
38
  .cz-vw-ib[aria-pressed="true"] { background: var(--cz-bluebg); color: var(--cz-blueink); }
39
39
  .cz-vw-hd [data-cz-vw="back"] { margin-left: -6px; }
40
40
  .cz-vw-body { padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
41
- .cz-vw-body:has(> .cz-ph) { padding: 0; }
42
41
 
43
42
  /* the grip (xvWidth): drag, double-click to reset, arrows from the keyboard */
44
43
  .cz-vw-grip { position: absolute; left: 0; top: 50%; margin-top: -32px; width: 16px; height: 64px; display: flex; align-items: center; justify-content: center; cursor: col-resize; z-index: 4; touch-action: none; border-radius: 8px; }
@@ -132,7 +131,7 @@ button.czs-it:focus-visible { outline: 2px solid var(--cz-blue); outline-offset:
132
131
  .cz-vw-w2 .cz-vw-body > .czs-sum { grid-column: 1; }
133
132
  .cz-vw-w2 .cz-vw-body > :not(.czs-sum) { grid-column: 2; max-width: 75ch; }
134
133
  .cz-vw-w2 .cz-vw-body > .czs-sum + * { grid-row: 1 / span 6; }
135
- .cz-vw-w2 .cz-vw-body > :only-child, .cz-vw-w2 .cz-vw-body > .cz-ph { grid-column: 1 / -1; max-width: none; }
134
+ .cz-vw-w2 .cz-vw-body > :only-child { grid-column: 1 / -1; max-width: none; }
136
135
 
137
136
  /* the list folded to a rail (xvWidth): "Show the list", then the groups' tiles */
138
137
  body.cz-vw-rail [data-cz-vw-list], body.cz-vw-rail #hmList { flex: 0 0 64px !important; width: 64px !important; padding: 12px 8px !important; }
@@ -3,8 +3,7 @@
3
3
  * ReportPanel.dc.html are the reference. Colours are the cozy tokens of pm/cozy.css only; the design's own names are aliased here:
4
4
  * --vz-solid the design's --solid (the filled button) --vz-on text on it
5
5
  * --vz-ember --ember (the blue dot, the ring) --vz-eink --ember-ink (blue text)
6
- * --vz-spot --spot (the pale blue fill) --vz-ok --ok (done, matches, decisions)
7
- * A part the design does not draw carries the cozy "Waiting for design" card (cozy-placeholder.js) or the small .vz-wait marker. */
6
+ * --vz-spot --spot (the pale blue fill) --vz-ok --ok (done, matches, decisions) */
8
7
  .vz { --vz-solid: var(--cz-blueink); --vz-on: var(--cz-card); --vz-ember: var(--cz-blue); --vz-eink: var(--cz-blueink); --vz-spot: var(--cz-bluebg);
9
8
  --vz-ok: var(--cz-blueink); --vz-bad: var(--cz-red);
10
9
  box-sizing: border-box; padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 12px; font-size: var(--fs-body); color: var(--cz-ink); font-family: var(--cz-sans); line-height: var(--lh-body); }
@@ -20,7 +19,6 @@
20
19
  .vz .vz-col { display: flex; flex-direction: column; gap: 6px; }
21
20
  .vz .vz-col14 { display: flex; flex-direction: column; gap: 14px; }
22
21
  .vz .vz-sp { flex: 1; }
23
- .vz .vz-wait { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: var(--radius-pill, 999px); background: var(--cz-well); color: var(--cz-ink3); font-size: var(--fs-badge); font-weight: var(--fw-strong); white-space: nowrap; line-height: var(--lh-badge); }
24
22
  .vz .vz-msg { padding: 8px 10px; border-radius: var(--radius-md, 12px); background: var(--cz-well); font-size: var(--fs-meta); color: var(--cz-ink2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: var(--lh-meta); }
25
23
  .vz .vz-msg[data-tone="bad"] { background: var(--cz-redbg); color: var(--cz-red); }
26
24
  .vz .vz-link { color: var(--vz-eink); font-weight: var(--fw-strong); font-size: var(--fs-label); min-height: 26px; padding: 0 8px; border-radius: var(--radius-sm, 8px); line-height: var(--lh-label); }
@@ -357,7 +355,6 @@ body.pm-ds .vz-host .cz-vw {
357
355
  .vz-ed .sl-tb { display: none; }
358
356
  .vz-ed { min-height: 0; }
359
357
  .vz-issue[data-k="bad"] { background: var(--vz-bad) !important; }
360
- .vz-pres .vz-wait { margin-left: 8px; }
361
358
  @media (max-width: 760px) {
362
359
  .vz-dko { display: none !important; }
363
360
  .vz-pho { display: flex; flex-direction: column; gap: 2px; }
@@ -431,7 +428,7 @@ button.vz-line { padding: 4px; border-radius: var(--radius-sm, 8px); }
431
428
  .vz-dkt button { aspect-ratio: 16 / 9; border-radius: var(--radius-md, 10px); padding: 8px !important; display: flex !important; align-items: flex-end; background: var(--cz-well) !important; color: var(--cz-ink2); border: 1px solid var(--cz-hair) !important; min-width: 0; }
432
429
  .vz-dkt button[aria-current="true"] { border-color: transparent !important; box-shadow: 0 0 0 2px var(--vz-ember); }
433
430
  .vz-dkt button span { display: block; font-size: var(--fs-badge); font-weight: var(--fw-strong); line-height: 1.3; text-align: left; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
434
- /* the parts the design does not draw yet, under the view: a quiet block marked Waiting for design */
431
+ /* a quiet block under the view */
435
432
  .vz-blk { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--cz-hair); }
436
433
  .vz-schm { flex-basis: 100%; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: var(--radius-card, 18px); background: var(--cz-card); box-shadow: 0 0 0 1px var(--cz-hair), var(--cz-sheet); max-width: 340px; }
437
434
  .vz-schm .vz-r1 { padding: 6px 10px 2px; }
@@ -500,7 +497,6 @@ button.vz-line { padding: 4px; border-radius: var(--radius-sm, 8px); }
500
497
  .sl-cz .sl-notes{display:block;font-size:var(--fs-meta);color:var(--cz-ink3);line-height:var(--lh-meta);}
501
498
  .sl-cz .sl-notes summary{cursor:pointer;display:flex;align-items:center;gap:8px;min-height:32px}
502
499
  .sl-cz .sl-notes textarea{width:100%;margin-top:4px;box-sizing:border-box;border-radius:var(--radius-md, 12px);background:var(--cz-card);color:var(--cz-ink)}
503
- .sl-cz .vz-wait{display:inline-flex;align-items:center;padding:1px 7px;border-radius:var(--radius-pill, 999px);background:var(--cz-well);color:var(--cz-ink3);font-size:var(--fs-badge);font-weight:var(--fw-strong);white-space:nowrap;line-height:var(--lh-badge);}
504
500
  @media (max-width:760px){.sl-cz .sl-tools .sl-b,.sl-cz .sl-nv{min-height:44px;height:44px}.sl-cz .sl-nv{width:44px}}
505
501
  .sl-cz .sl-cap{display:block;min-width:0}
506
502
  @media (max-width:640px){.sl-cz .sl-rail{order:0;overflow:visible}.sl-cz .sl-th{width:auto;flex:initial}.sl-cz .sl-tools .sl-bl span{display:inline}}
@@ -352,20 +352,12 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
352
352
  /* a phone: a title marked wrap (the initiative, batch 18 item 1) takes two lines before it cuts */
353
353
  @media (max-width: 760px) { .cz-vw-title.wrap, .cz-vw-title.wrap .cz-vw-rn { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; } }
354
354
  .cz-vw-body { flex: 1; min-height: 0; overflow: auto; }
355
- .cz-vw-body > .cz-ph { margin: 16px; }
356
355
  /* a phone: the Viewer is the whole screen, and the place menu steps aside while it is open */
357
356
  @media (max-width: 760px) {
358
357
  .cz-vw, .cz-vw.cz-vw-float { position: fixed; inset: 0; z-index: 70; width: auto; max-width: none; border: 0; border-radius: 0; box-shadow: var(--cz-sheet); }
359
358
  .cz-vw-on .cz-fabw { display: none; }
360
359
  }
361
360
 
362
- /* ── A feature the design does not draw yet (cozy-placeholder.js): one small calm card ── */
363
- .cz-ph { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 20px; background: var(--cz-well); color: var(--cz-ink2); font-family: var(--cz-sans); }
364
- .cz-ph-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cz-card); color: var(--cz-ink3); flex: none; }
365
- .cz-ph-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
366
- .cz-ph-t { min-width: 0; }
367
- .cz-ph-l { margin: 0; font-size: var(--fs-row); font-weight: var(--fw-strong); color: var(--cz-ink2); line-height: var(--lh-row); }
368
- .cz-ph-n { margin: 2px 0 0; font-size: var(--fs-meta); color: var(--cz-ink3); line-height: var(--lh-meta); }
369
361
 
370
362
  /* ── slide editor on the cozy pages (moved from premium-vw-slides.css, which stays on the console type scale) ── */
371
363
  /* ── the cozy pages (premium-agreed-design, area viewer): the console tokens this sheet names, mapped to the cozy tokens of cozy.css,
@@ -1027,7 +1027,6 @@ const chat = mountChat($('#hmChat'), {
1027
1027
  workItem: (text, t) => workItem(text, t),
1028
1028
  openTerminal: (sid) => openTerminal(sid),
1029
1029
  viewerClosed: () => !VW.isOpen() && !isPhone(),
1030
- wait: MORE.WAIT, // the Notes viewer only: the Home canvas does not draw it
1031
1030
  desk: () => !isPhone(),
1032
1031
  reopenViewer: () => reopenViewer(),
1033
1032
  head: (t) => (isPhone() ? '' : TD.chatHeadHtml(chatHead(t))), // the phone names it in its top bar (#hmTop)
@@ -1868,7 +1867,7 @@ function openOverview() {
1868
1867
  let M = S.IM;
1869
1868
  let ask = null; // on-hold | cancelled while its reason is asked
1870
1869
  const draw = (b) => {
1871
- if (!M) { b.innerHTML = MORE.WAIT + '<p class="hx-n">The initiative could not be read.</p>'; return; }
1870
+ if (!M) { b.innerHTML = '<p class="hx-n">The initiative could not be read.</p>'; return; }
1872
1871
  const stages = (M.acts && M.acts.stages) || [];
1873
1872
  const move = stages.length && !(M.acts && M.acts.self) ? `<div class="hx-tabs" role="group" aria-label="Move to a stage">${stages.map((s) => `<button type="button" aria-pressed="${s === M.acts.stage}" data-ov-move="${esc(s)}">${esc(s)}</button>`).join('')}</div>` : '<p class="hx-n">The stage of this board comes from the workflow engine.</p>';
1874
1873
  const life = M.acts && M.acts.life ? `<button type="button" class="hx-b" data-ov-life="active">Resume</button>`
@@ -1876,12 +1875,12 @@ function openOverview() {
1876
1875
  : `<button type="button" class="hx-b" data-ov-life="on-hold">Put on hold</button><button type="button" class="hx-b" data-ov-life="cancelled">Cancel</button>`;
1877
1876
  const tasks = (M.tasks.rows || []).slice(0, 40).map((t) => `<div class="hx-row" data-ov-tkrow="${esc(t.key)}"><span class="hx-t"><b>${esc(t.title)}</b><em>${esc([t.src, t.state, t.owner].filter(Boolean).join(' · '))}</em></span><button type="button" class="hx-b" data-ov-tk="${esc(t.key)}" aria-label="Open ${esc(t.title)}">Open</button>${t.pmos && t.uid ? `<select data-ov-task="${esc(t.uid)}" aria-label="Status of ${esc(t.title)}">${['To do', 'In progress', 'Done', "Won't do", 'Archived'].map((s) => `<option${t.state === s ? ' selected' : ''}>${s}</option>`).join('')}</select>` : ''}</div>`).join('') || `<p class="hx-n">${esc(M.tasks.note || 'No task.')}</p>`;
1878
1877
  const docs = (M.docs.rows || []).filter((d) => !d.tech).map((d) => `<div class="hx-row" data-ov-doc="${esc(d.key)}"><span class="hx-t"><b>${esc(d.title)}</b><em>${esc([d.state, d.by, d.when || (d.added ? 'added ' + d.added : '')].filter(Boolean).join(' · '))}</em>${d.link ? `<small>${esc(d.link.kind + ': ' + d.link.url)}</small>` : ''}</span>${d.path && d.st === 'draft' && d.slot ? `<button type="button" class="hx-b" data-ov-dread="${esc(d.key)}">Read</button>` : d.path ? `<button type="button" class="hx-b" data-ov-open="${esc(d.path)}" data-ov-name="${esc(d.title)}">Open</button>` : ''}${d.act && d.act.kind === 'draft' && !d.running ? `<button type="button" class="hx-b pri" data-ov-draft="${esc(d.key)}">Draft it</button>` : d.running ? '<em class="hx-n">Drafting</em>' : ''}</div>`).join('');
1879
- b.innerHTML = MORE.WAIT + `<div class="hv-acts"><button type="button" class="hx-b" data-ov-record>Open the full record</button>${M.board && M.board.id ? '<button type="button" class="hx-b" data-ov-sprint>Sprint</button>' : ''}</div><section class="hx-sec"><h4>Stage</h4>${move}<div class="hv-acts">${life}</div></section>`
1878
+ b.innerHTML = `<div class="hv-acts"><button type="button" class="hx-b" data-ov-record>Open the full record</button>${M.board && M.board.id ? '<button type="button" class="hx-b" data-ov-sprint>Sprint</button>' : ''}</div><section class="hx-sec"><h4>Stage</h4>${move}<div class="hv-acts">${life}</div></section>`
1880
1879
  + `<section class="hx-sec"><h4>Tasks</h4>${tasks}<div class="hx-add"><input id="ovTask" placeholder="Add a task" aria-label="Add a task"><button type="button" class="hx-b pri" data-ov-add>Add</button></div></section>`
1881
1880
  + `<section class="hx-sec"><h4>Core documents</h4>${M.docs.cap ? `<p class="hx-n" data-ov-dsum>${esc(M.docs.cap)}</p>` : ''}${docs || '<p class="hx-n">No core document.</p>'}<div class="hv-acts"><button type="button" class="hx-b" data-ov-adddoc>Add a document</button></div></section><p class="hx-n" role="status" id="ovMsg"></p>`;
1882
1881
  };
1883
1882
  const body = VW.open({ id: 'ov:' + id, kind: 'Overview', title: iniTitle(id), icon: 'goal', render: draw });
1884
- if (!M) { body.innerHTML = MORE.WAIT + '<p class="hx-n" role="status">Reading the initiative.</p>'; loadIni().then(() => { if (S.ini !== id || !body.isConnected) return; M = S.IM; draw(body); drawList(); }); } // a slow first read: read it again rather than say it failed
1883
+ if (!M) { body.innerHTML = '<p class="hx-n" role="status">Reading the initiative.</p>'; loadIni().then(() => { if (S.ini !== id || !body.isConnected) return; M = S.IM; draw(body); drawList(); }); } // a slow first read: read it again rather than say it failed
1885
1884
  const bw = () => ({ ws: M.board.ws, board: M.board.id });
1886
1885
  const after = async (r, ok) => { if (r && r.ok !== false) { toast(ok); await load(); if (S.ini === id && S.IM) M = S.IM; draw(body); } else { const m = body.querySelector('#ovMsg'); if (m) m.textContent = (r && r.error) || 'Nothing was changed.'; } };
1887
1886
  body.onclick = async (e) => {
@@ -1958,12 +1957,12 @@ async function openMeeting(m, x = {}) {
1958
1957
  const v = await V();
1959
1958
  const o = { ws: deskWs(), ...(x.record ? { record: true } : {}) };
1960
1959
  if (typeof v.openMeeting === 'function') return v.openMeeting(m.note ? { note: m.note } : m, o);
1961
- try { const M = await import('./premium-vw-mtg.js'); return M.openMeeting(m.note ? { note: m.note } : m, o); } catch { return VW.placeholder('Meeting', { icon: 'meet' }); }
1960
+ try { const M = await import('./premium-vw-mtg.js'); return M.openMeeting(m.note ? { note: m.note } : m, o); } catch { toast('The meeting could not open. Try again.'); return null; }
1962
1961
  }
1963
1962
  async function openCalendar() {
1964
1963
  const v = await V();
1965
1964
  if (typeof v.openCalendar === 'function') return v.openCalendar({ ws: deskWs(), view: 'day' });
1966
- return VW.placeholder('Calendar', { icon: 'cal' });
1965
+ toast('The calendar could not open. Try again.'); return null;
1967
1966
  }
1968
1967
 
1969
1968
  /* the record dot shows a recording that is on: this page's recorder, or a note the server holds as recording */
@@ -2298,7 +2297,7 @@ function cta() {
2298
2297
  }
2299
2298
 
2300
2299
  /* ── start ── */
2301
- mountIni({ S, VW, pmGet, pmPost, toast, rowOf: (id) => iniRowOf(id), renameIni: (id, pre) => iniRenameOf(id, pre), renameTask: (t) => taskRenameOf(t), load: () => load(), loadIni: () => loadIni(), openFile: (f) => openFile(f), iniTitle: (id) => iniTitle(id), drawList: () => drawList(), wait: MORE.WAIT,
2300
+ mountIni({ S, VW, pmGet, pmPost, toast, rowOf: (id) => iniRowOf(id), renameIni: (id, pre) => iniRenameOf(id, pre), renameTask: (t) => taskRenameOf(t), load: () => load(), loadIni: () => loadIni(), openFile: (f) => openFile(f), iniTitle: (id) => iniTitle(id), drawList: () => drawList(),
2302
2301
  // the initiative's page (HbCDesk): its card, its header and its ⋯
2303
2302
  openBoardTask: (t) => openBoardTask(t),
2304
2303
  goHome: () => { VW.close(); goHome(); }, // after the initiative's Delete (batch 16 item 5d): it is gone, so Home shows the list again
@@ -721,7 +721,6 @@ export function mountChat(el, host) {
721
721
  const notesLib = () => notesM || (notesM = import('./premium-notes.js').then((M) => {
722
722
  M.mountNotes({ getKey: () => (C.t && C.t.key) || null, ws: (C.t && C.t.ws) || new URLSearchParams(location.search).get('ws') || undefined,
723
723
  get input() { return foot.querySelector('textarea'); }, note: { set textContent(v) { if (v) host.toast(v); } },
724
- show: () => { const b = VWC.body(); if (b && host.wait && !b.querySelector(':scope > .hx-wait')) b.insertAdjacentHTML('afterbegin', host.wait); }, // Notes is not drawn on the Home canvas: it keeps its marker
725
724
  toChat: () => { if (!host.desk()) VWC.close(); } });
726
725
  return M;
727
726
  }));
@@ -1,7 +1,7 @@
1
1
  /* pm/home-ini.js — an initiative's layout inside Home, as the canvas draws it (initiative premium-uncovered-features, Initiative; artboards InStage,
2
2
  * InTasks, InDocs, InPhone). The pure half is home-ini-model.js.
3
3
  *
4
- * mountIni(ctx) once, from home-app.js. ctx: { S, VW, pmGet, pmPost, toast, load, openFile, iniTitle, drawList, wait }
4
+ * mountIni(ctx) once, from home-app.js. ctx: { S, VW, pmGet, pmPost, toast, load, openFile, iniTitle, drawList }
5
5
  * iniList(sc) after each draw of the list column: reads the layout record and moves the stage by itself when it may. The list column
6
6
  * never changes for an initiative (canvas HbC): the initiative is a page of the Viewer.
7
7
  * iniPage(o?) the initiative's page in the Viewer (o.pop: in the one popup, with Home's chat beside it): the ONE view the Board's panel draws too (ini-view.js; batch 6 items 1 and 3):
@@ -660,7 +660,7 @@ function docsMore(id) {
660
660
  async function addDoc(id) {
661
661
  const M = curM(), S = X.ctx.S; if (!M) return;
662
662
  const A = await import('./home-adddoc.js');
663
- A.openAddDocVw({ VW: X.ctx.VW, pmPost: X.ctx.pmPost, toast: X.ctx.toast, wait: X.ctx.wait || '', ws: M.board.ws, scope: M.docs.scope, phases: MD.PHASES, title: X.ctx.iniTitle(id), back: () => iniOverview('docs'), onAdded: async () => { await X.ctx.load(); if (S.ini === id) iniOverview('docs'); } });
663
+ A.openAddDocVw({ VW: X.ctx.VW, pmPost: X.ctx.pmPost, toast: X.ctx.toast, ws: M.board.ws, scope: M.docs.scope, phases: MD.PHASES, title: X.ctx.iniTitle(id), back: () => iniOverview('docs'), onAdded: async () => { await X.ctx.load(); if (S.ini === id) iniOverview('docs'); } });
664
664
  }
665
665
  function wire(body, id) {
666
666
  const say = (m) => { const el = body.querySelector('#ovMsg'); if (el) el.textContent = m; };
@@ -682,7 +682,7 @@ function wire(body, id) {
682
682
  if (/^(draft|open):/.test(d.czsAct || '')) {
683
683
  const key = d.czsAct.slice(d.czsAct.indexOf(':') + 1), doc = (M.docs.rows || []).find((x) => x.key === key); if (!doc) return;
684
684
  if (d.czsAct.startsWith('draft:')) { after(await X.ctx.pmPost('/api/core-docs/draft', { ws: M.board.ws, scope: M.docs.scope, key }), 'The draft started. It waits for you to read.'); return; }
685
- if (doc.path && doc.st === 'draft' && doc.slot) { const A = await import('./home-draft.js'); A.openDraftVw({ VW: X.ctx.VW, pmGet: X.ctx.pmGet, pmPost: X.ctx.pmPost, toast: X.ctx.toast, wait: X.ctx.wait || '', ws: M.board.ws, scope: M.docs.scope, doc, iniTitle: X.ctx.iniTitle(id), onIssued: () => X.ctx.load() }); return; }
685
+ if (doc.path && doc.st === 'draft' && doc.slot) { const A = await import('./home-draft.js'); A.openDraftVw({ VW: X.ctx.VW, pmGet: X.ctx.pmGet, pmPost: X.ctx.pmPost, toast: X.ctx.toast, ws: M.board.ws, scope: M.docs.scope, doc, iniTitle: X.ctx.iniTitle(id), onIssued: () => X.ctx.load() }); return; }
686
686
  X.ctx.openFile({ path: doc.path, name: doc.title }); return;
687
687
  }
688
688
  if ('hiDby' in d) { menu(t, Object.entries(MD.DOC_BY).map(([k, l]) => ({ label: l, radio: true, on: X.doc.by === k, go: () => { X.doc.by = k; redrawView(); } })), 'Group documents by'); return; }
@@ -702,7 +702,7 @@ function wire(body, id) {
702
702
  if (d.ovDread) {
703
703
  const doc = (M.docs.rows || []).find((x) => x.key === d.ovDread); if (!doc) return;
704
704
  const A = await import('./home-draft.js');
705
- A.openDraftVw({ VW: X.ctx.VW, pmGet: X.ctx.pmGet, pmPost: X.ctx.pmPost, toast: X.ctx.toast, wait: X.ctx.wait || '', ws: M.board.ws, scope: M.docs.scope, doc, iniTitle: X.ctx.iniTitle(id), onIssued: () => X.ctx.load() });
705
+ A.openDraftVw({ VW: X.ctx.VW, pmGet: X.ctx.pmGet, pmPost: X.ctx.pmPost, toast: X.ctx.toast, ws: M.board.ws, scope: M.docs.scope, doc, iniTitle: X.ctx.iniTitle(id), onIssued: () => X.ctx.load() });
706
706
  return;
707
707
  }
708
708
  if ('ovAdddoc' in d) { addDoc(id); return; }
@@ -1,5 +1,5 @@
1
1
  /* pm/home-more.js — the features the Agreed design does not draw yet, as plain minimal versions in the Viewer
2
- * (initiative premium-agreed-design, Home: "keep every uncovered feature usable, in the cozy style, with a small Waiting for design marker").
2
+ * (initiative premium-agreed-design, Home: "keep every uncovered feature usable, in the cozy style").
3
3
  *
4
4
  * Each opens in the Viewer card (cozy-viewer.js), never the old dialog, and reads and writes through the routes the old pages used:
5
5
  * openSettings() the designed Settings (pm/cozy-settings.js, premium-uncovered-features E3)
@@ -14,7 +14,6 @@
14
14
  * 17:00, the calendar is an icon in Your day's header, and a note is + New › Recording.
15
15
  * Every write is the PM's press (pmPost carries the launch nonce). Nothing here sends anything outside PMOS. */
16
16
 
17
- export const WAIT = '<p class="hx-wait"><i aria-hidden="true"></i>Waiting for design</p>';
18
17
  const toast = (t) => { const el = document.getElementById('toast'); if (!el) return; el.textContent = t; el.classList.add('on'); clearTimeout(toast.t); toast.t = setTimeout(() => el.classList.remove('on'), 4200); };
19
18
  const when = (iso) => { const d = new Date(iso); if (Number.isNaN(d.getTime())) return ''; const p = (n) => String(n).padStart(2, '0'); return (d.toDateString() === new Date().toDateString() ? '' : d.getDate() + ' ' + d.toLocaleString('en-GB', { month: 'short' }) + ' ') + p(d.getHours()) + ':' + p(d.getMinutes()); };
20
19
 
@@ -1188,7 +1188,7 @@ document.addEventListener('click', (e) => {
1188
1188
  await draw();
1189
1189
  } });
1190
1190
  });
1191
- /* ── the tools the Agreed design draws but has no frame for: plain versions with a "Waiting for design" tag (pm/bd-acts.js) ─────────── */
1191
+ /* ── the tools the Agreed design draws but has no frame for: plain versions (pm/bd-acts.js) ─────────── */
1192
1192
  $('#bdFind').addEventListener('click', (e) => { if (ROC && workOn()) roFind(e.currentTarget); else Acts.open.find(e.currentTarget); });
1193
1193
  /** A copy's search (shared-copy brief Part A 3): a field beside the find icon that keeps the rows whose name holds the words. The workspace's
1194
1194
  * Search reads the publisher's computer, which a copy never reaches, so a copy searches only what it holds, in memory. */
@@ -54,7 +54,6 @@ import { pmGet, pmPost } from './http.js';
54
54
  import { open as vOpen, current as vCur, czSections } from './cozy-viewer.js';
55
55
  import * as MP from './premium-mtg-present.js'; // the one presenter window for every kind (canvas note xvPresent)
56
56
  import { presentInRecording } from './cozy-rec-bridge.js'; // while a meeting records, the recording tab presents it (rule 10)
57
- import { placeholderHtml } from './cozy-placeholder.js';
58
57
  import { vzStyle } from './premium-vw-open.js';
59
58
  import { reviewHtml, chatOf as rfChatOf, ICON as RF_ICON } from './report-flow.js'; // Claude's review and the template icon (batch 22 item 14, canvas RfH2, RfH6)
60
59
  import * as OU from './report-orders-ui.js'; // batch 27 item 16: the orders of a draft (canvas TpA, TpD, TpE)
@@ -83,7 +82,6 @@ const DAYS = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'];
83
82
  const W = 1280;
84
83
  const q = (o) => Object.entries(o).filter(([, v]) => v != null && v !== '').map(([k, v]) => k + '=' + encodeURIComponent(v)).join('&');
85
84
  const inline = (s) => esc(s).replace(/\*\*([^*]+)\*\*/g, '<b>$1</b>').replace(/`([^`]+)`/g, '<code>$1</code>');
86
- const WAIT = (f) => `<span class="vz-wait" data-cz-placeholder="${esc(f)}">Waiting for design</span>`; // only the page editor keeps it
87
85
  /** The reader's own sheet (cozy-vw-rp.css), added to the page once. */
88
86
  function rpStyle() {
89
87
  if (typeof document === 'undefined' || document.querySelector('link[data-rp-css]')) return;
@@ -486,7 +484,7 @@ function bodyHtml() {
486
484
  const SS = slideState(), n = SS ? SS.deck.slides.length : slides().length, at = SS ? SS.i : R.i;
487
485
  return `<div class="vz-rpb">${R.msg ? `<p class="vz-msg" role="status" data-tone="${R.msg.tone || ''}">${esc(R.msg.text)}</p>` : ''}`
488
486
  + (R.view === 'deck' && !R.noTip ? `<p class="vz-tip"><span>${tipText(at, n)}</span>${ib('notip', ic('x', 14), 'Hide this tip', { cls: ' vz-small' })}</p>` : '')
489
- + (R.view === 'deck' ? '' : `<div class="vz-r1">${WAIT('Page editor')}</div>`) + '<div class="vz-ed" data-vz-ed></div></div>';
487
+ + '<div class="vz-ed" data-vz-ed></div></div>';
490
488
  }
491
489
  const view = R.err ? `<p class="vz-msg" data-tone="bad" role="alert">The document could not be read: ${esc(R.err)}</p>` : !R.W ? '<p class="vz-empty" role="status">Reading the report.</p>'
492
490
  : R.gal ? galView() : (R.view === 'deck' ? deckHtml() : R.view === 'live' ? liveView() : pageHtml()) + ordAssHtml();
@@ -973,7 +971,7 @@ async function shareAct(k, v) {
973
971
  }
974
972
  }
975
973
 
976
- /* ── edit: the slide editor or the page editor, mounted in the panel (Waiting for design) ── */
974
+ /* ── edit: the slide editor or the page editor, mounted in the panel ── */
977
975
  async function mountEditor() {
978
976
  const me = R, b = bodyEl(), host = b && b.querySelector('[data-vz-ed]');
979
977
  if (!host || host.dataset.mounted) return;
@@ -989,7 +987,7 @@ async function mountEditor() {
989
987
  if (R !== me || !host.isConnected) return;
990
988
  m.openDocPage({ path: me.row.path, title: me.name + (me.row.slot ? ' · ' + me.row.slot : '') }, { host, ws: () => me.ws, onClose: done });
991
989
  }
992
- } catch (x) { host.innerHTML = placeholderHtml(R.view === 'deck' ? 'Slide editor' : 'Page editor', 'The editor could not start here: ' + String((x && x.message) || x)); }
990
+ } catch (x) { host.innerHTML = `<p class="vz-msg" role="alert" data-tone="bad">The ${R.view === 'deck' ? 'slide' : 'page'} editor could not start: ${esc(String((x && x.message) || x))}</p>`; }
993
991
  }
994
992
  const slideState = () => (window.__premiumSlides && R ? window.__premiumSlides.state(R.row.path) : null);
995
993
  async function editCancel() {
@@ -12,7 +12,7 @@ import { splitReport, reportChipHtml, blockSig } from './report-chat.js';
12
12
  import { askCardHtml, answerText } from './chat-ask.js';
13
13
  import { termTarget, TERM_ICON } from './chat-term.js';
14
14
  import { openReportTab } from './premium-report-tab.js';
15
- import { placeholder as czPlaceholderView } from './cozy-viewer.js'; // the Agreed design's Viewer; imported first, so its Escape runs before the dialog's
15
+ import './cozy-viewer.js'; // the Agreed design's Viewer; imported first, so its Escape runs before the dialog's
16
16
  import { openChartTab } from './premium-chart-tab.js';
17
17
  /** A pmos-report block opens the Report tab, or the Chart tab for a chart or a dashboard (premium-reports-from-chat, slice C). */
18
18
  export const openBlockTab = (b) => (b && b.kind === 'report' ? openReportTab(b) : openChartTab(b));
@@ -58,16 +58,13 @@ export function flip() {
58
58
  theme(next); store.set(THEME_KEY, next); tbTheme();
59
59
  }
60
60
  { const t = new URLSearchParams(location.search).get('theme') || store.get(THEME_KEY); theme(t); }
61
- /* ── the top bar: one ⋯ menu (premium-agreed-design). The design draws no Sources chip, no bell, no mic and no help button, and leaves the menu's
62
- * contents to be designed (only Insights names them: Sources, Export, About these numbers). So each item opens the Viewer on its placeholder, and
63
- * Theme stays a plain switch. Nothing in the menu leads to the console. The ids moreBtn, moreMenu, modeRow and settingsBtn stay: pages add their
61
+ /* ── the top bar: one ⋯ menu (premium-agreed-design). The design draws no Sources chip, no bell, no mic and no help button. The menu holds
62
+ * Sources (the designed Sources, premium-uncovered-features E3), Theme as a plain switch and Settings. Nothing in the menu leads to the console. The ids moreBtn, moreMenu, modeRow and settingsBtn stay: pages add their
64
63
  * own items before #settingsBtn and anchor their popovers on #moreBtn. ── */
65
64
  const MORE = '<svg class="i" viewBox="0 0 24 24"><circle cx="6" cy="12" r="1.3"/><circle cx="12" cy="12" r="1.3"/><circle cx="18" cy="12" r="1.3"/></svg>';
66
65
  const TH = [['light', 'Light'], ['dark', 'Dark'], ['auto', 'Auto']];
67
- /** The ⋯ menu's items that open a placeholder: [id, label, icon]. Insights adds what its own design names. Pure, for a unit test. */
68
- export const moreItems = (path = location.pathname) => (/premium-(insights|intelligence)/.test(path)
69
- ? [['srcItem', 'Sources', 'source'], ['tbExport', 'Export', 'export'], ['tbAbout', 'About these numbers', 'info']]
70
- : [['srcItem', 'Sources', 'source']]);
66
+ /** The ⋯ menu's own items: [id, label, icon]. Intelligence has its own ⋯ (Export CSV, Reports and dashboards); About is in the guide. */
67
+ export const moreItems = () => [['srcItem', 'Sources', 'source']];
71
68
  function tbMount() {
72
69
  const t = $('.tools-top'); if (!t || $('#tbMore')) return;
73
70
  const items = moreItems();
@@ -103,8 +100,7 @@ function tbMount() {
103
100
  const L = live(), i = L.indexOf(document.activeElement); if (!L.length) return;
104
101
  e.preventDefault(); L[(i + (e.key === 'ArrowDown' ? 1 : L.length - 1) + (i < 0 ? 1 : 0)) % L.length].focus();
105
102
  });
106
- items.forEach(([id, label, icon]) => { $('#' + id).onclick = id === 'srcItem' ? () => import('./cozy-sources.js').then((M) => M.openSources()) // the designed Sources (premium-uncovered-features E3)
107
- : () => czPlaceholderView(label, { icon }); });
103
+ $('#srcItem').onclick = () => import('./cozy-sources.js').then((M) => M.openSources()); // the designed Sources (premium-uncovered-features E3)
108
104
  tbReadSrc();
109
105
  setInterval(() => { if (!document.hidden) tbReadSrc(); }, 300000);
110
106
  }
@@ -245,8 +245,7 @@ function makePage(d, ctx) {
245
245
  + `<p class="vwerr" id="vwErr" role="alert">${esc(P.msg)}</p><div class="vwrow"><span class="vwmut" id="vwSv">${P.mode === 'edit' ? 'Type straight into the page. Press / for a block.' : 'The file as it is on disk.'}</span>`
246
246
  + `<button type="button" class="vwbtn" data-vd="cancel">Cancel</button><button type="button" class="vwbtn pri" data-vd="save"${P.busy ? ' disabled' : ''}>Save as v${v() + 1}</button></div></div>`;
247
247
  }
248
- /** The Edit log and the Proposals list under the page. The Agreed design does not draw them yet, so this is a plain minimal section with a
249
- * "Waiting for design" marker (initiative premium-agreed-design). Each revision shows its reason; each proposal shows who asked, the request, each
248
+ /** The Edit log and the Proposals list under the page: a plain section in the cozy style. Each revision shows its reason; each proposal shows who asked, the request, each
250
249
  * section, and Accept (only the sections still current) or Reject (with a reason). Closed proposals keep their state and reason. */
251
250
  function sideHtml() {
252
251
  if (ctx.host) return '';
@@ -264,7 +263,7 @@ function makePage(d, ctx) {
264
263
  : P.side === 'props'
265
264
  ? `<p class="vwlab">Open proposals · ${m.count}</p>${m.open.length ? m.open.map(one).join('') : '<p class="vwmut">No open proposals.</p>'}${m.closed.length ? `<p class="vwlab">Closed · ${m.closed.length}</p>${m.closed.map(one).join('')}` : ''}`
266
265
  : '';
267
- return `<section class="vwside" aria-label="Edit log and proposals"><p class="hx-wait"><i aria-hidden="true"></i>Waiting for design</p><div class="vwrow">${tab('log', 'Edit log')}${tab('props', 'Proposals', m.count)}</div>`
266
+ return `<section class="vwside" aria-label="Edit log and proposals"><div class="vwrow">${tab('log', 'Edit log')}${tab('props', 'Proposals', m.count)}</div>`
268
267
  + `<p class="vwerr" id="vwSideErr" role="alert">${esc(P.sideErr || '')}</p>${body ? `<div class="vwmp" role="region" aria-label="${P.side === 'log' ? 'Edit log' : 'Proposals'}">${body}</div>` : ''}</section>`;
269
268
  }
270
269
  /* AdH4: a quiet sign-off at the end of a page the agent wrote last; a page a person wrote last has none */
@@ -176,9 +176,9 @@ function load(S, text) {
176
176
 
177
177
  /* The report panel's edit mode (ReportPanel.dc.html, pane "edit"): the slide with a dashed outline, "Slides ‹ n of N ›" and a strip of
178
178
  * thumbnails, five to a row. The panel's own toolbar drives the editor (the editor's toolbar is in the DOM but not shown). The slide tools,
179
- * the selected item's tools and the speaker notes are not in the design: they stay usable, marked "Waiting for design". */
179
+ * the selected item's tools and the speaker notes sit under the stage in the cozy style. */
180
180
  function cozySkeleton(S) {
181
- const ro = S.ro, W8 = (f) => `<span class="vz-wait" data-cz-placeholder="${esc(f)}">Waiting for design</span>`;
181
+ const ro = S.ro;
182
182
  return `<div class="sl sl-cz${ro ? ' ro' : ''}" data-sl>`
183
183
  + `<div class="sl-tb" role="toolbar" aria-label="Slides">${ro ? '' : `${tb('undo', 'Undo', 'undo', ' disabled')}${tb('redo', 'Redo', 'redo', ' disabled')}${tbl('text', 'Text', 'txt')}${tbl('img', 'Image', 'img')}${tbl('chart', 'Chart', 'chart')}${tbl('table', 'Table', 'tbl')}${tbl('shape', 'Shape', 'shape')}${tbl('layout', 'Layout', 'lay', ' aria-haspopup="menu"')}${tbl('theme', 'Theme', 'pal', ' aria-haspopup="menu"')}`}`
184
184
  + `${S.onClose ? '<button type="button" class="sl-b sl-bl" data-c="close"><span>Cancel</span></button>' : ''}${ro ? '' : `<button type="button" class="sl-b sl-pri" data-c="save">${I('save')}<span>Save</span></button>`}</div>`
@@ -187,7 +187,7 @@ function cozySkeleton(S) {
187
187
  + `<div class="sl-snav"><b>Slides</b><span class="sl-gap"></span><button type="button" class="sl-b sl-nv" data-rel="-1" aria-label="Previous slide" title="Previous slide">${I('lt')}</button><span class="sl-cnt" aria-live="polite"></span><button type="button" class="sl-b sl-nv" data-rel="1" aria-label="Next slide" title="Next slide">${I('rt')}</button></div>`
188
188
  + `<nav class="sl-rail" aria-label="Slides"></nav>`
189
189
  + (ro ? '' : '<div class="sl-ctx" role="toolbar" aria-label="Change the selected item"></div><div class="sl-tools" role="toolbar" aria-label="This slide"></div>')
190
- + `<details class="sl-notes"><summary>Speaker notes ${W8('Speaker notes')}</summary><textarea rows="3" aria-label="Speaker notes" placeholder="${ro ? 'No notes' : 'What you will say on this slide. Only you see it.'}"${ro ? ' readonly' : ''}></textarea></details></div></div>`;
190
+ + `<details class="sl-notes"><summary>Speaker notes</summary><textarea rows="3" aria-label="Speaker notes" placeholder="${ro ? 'No notes' : 'What you will say on this slide. Only you see it.'}"${ro ? ' readonly' : ''}></textarea></details></div></div>`;
191
191
  }
192
192
  function build(S) {
193
193
  const el = S.root, ro = S.ro;
@@ -256,7 +256,7 @@ function drawRail(S) {
256
256
  const c = S.$('.sl-cnt'); if (c) c.textContent = (S.i + 1) + ' of ' + n;
257
257
  S.root.querySelectorAll('.sl-snav [data-rel]').forEach((b) => { b.disabled = b.dataset.rel === '-1' ? S.i === 0 : S.i === n - 1; });
258
258
  const t = S.$('.sl-tools'), k = S.i;
259
- if (t) t.innerHTML = `<span class="vz-wait" data-cz-placeholder="Slide tools">Waiting for design</span><span class="sl-tl">Slide ${k + 1}</span>`
259
+ if (t) t.innerHTML = `<span class="sl-tl">Slide ${k + 1}</span>`
260
260
  + `<button type="button" class="sl-b sl-bl" data-up="${k}" aria-label="Move slide ${k + 1} earlier"${k === 0 ? ' disabled' : ''}><span>Earlier</span></button><button type="button" class="sl-b sl-bl" data-dn="${k}" aria-label="Move slide ${k + 1} later"${k === n - 1 ? ' disabled' : ''}><span>Later</span></button>`
261
261
  + `<button type="button" class="sl-b sl-bl" data-dup="${k}" aria-label="Duplicate slide ${k + 1}"><span>Duplicate</span></button><button type="button" class="sl-b sl-bl" data-del="${k}" aria-label="Delete slide ${k + 1}"${n < 2 ? ' disabled' : ''}><span>Delete</span></button>`
262
262
  + `<button type="button" class="sl-b sl-bl" data-add aria-haspopup="menu">${I('plus')}<span>Slide</span></button><button type="button" class="sl-b sl-bl" data-c="present" title="The slide, the next one, your notes and a timer">${I('play')}<span>Presenter view</span></button>`;
@@ -290,7 +290,6 @@ function drawCtx(S) {
290
290
  else if (it.t === 'img') h = tbl('pick', it.src ? 'Change image' : 'Choose image', 'img');
291
291
  else h = D.FILLS.map((c) => `<button type="button" class="sl-sw f-${c[0]}" data-c="fill" data-v="${c[0]}" aria-label="${c[1]}" title="${c[1]}" aria-pressed="${(it.fill || 'acc') === c[0]}"></button>`).join('') + `<button type="button" class="sl-b sl-bl" data-c="round" aria-pressed="${!!it.round}">Round</button>`;
292
292
  if (it) h += `<span class="sl-gap"></span>${tb('front', 'Bring to front', 'front')}${tb('back', 'Send to back', 'back')}${tb('dup', 'Duplicate', 'dup')}${tb('del', 'Delete', 'trash')}`;
293
- if (it && S.cozy) h = '<span class="vz-wait" data-cz-placeholder="Item tools">Waiting for design</span>' + h;
294
293
  ctx.innerHTML = h;
295
294
  }
296
295
  function go(S, k) { commitEdit(S); closePop(S); S.i = Math.max(0, Math.min(S.deck.slides.length - 1, k)); S.sel = null; drawAll(S); }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Remove the shipped \"Waiting for design\" placeholders (initiative remove-design-placeholders, bet A460, done test P1-P6): reads the shipped files for the words, the marker classes and the features that carried them. No server, browser, model or network.",
3
+ "modules": [
4
+ "design-placeholders.test.js"
5
+ ],
6
+ "seconds": {
7
+ "design-placeholders.test.js": 2
8
+ }
9
+ }
@@ -1,26 +0,0 @@
1
- /* pm/cozy-placeholder.js — the card for a feature the Agreed design does not draw yet (initiative premium-agreed-design).
2
- *
3
- * The rebuilt pages show only what the design draws. Where a feature has no design yet, a page draws this small calm card in its place,
4
- * so the feature is named and nothing old is shown instead:
5
- * czPlaceholder(el, featureName, note?) → el. It puts the card in el (it replaces what el held) and returns el.
6
- * placeholderHtml(featureName, note?) → the same card as a string, for a page that builds its markup as text.
7
- * The card reads "<featureName> · Waiting for design". note is one optional short line under it. The look is in cozy.css (.cz-ph). */
8
- const esc = (s) => String(s == null ? '' : s).replace(/[&<>"]/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' }[c]));
9
- const ICON = 'M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M12 7v5l3 2';
10
-
11
- /** The words of the card's line; pure, for a unit test. */
12
- export const placeholderText = (featureName) => (String(featureName || '').trim() || 'This part') + ' · Waiting for design';
13
-
14
- export function placeholderHtml(featureName, note) {
15
- return `<div class="cz-ph" role="note" data-cz-placeholder="${esc(String(featureName || '').trim())}">`
16
- + `<span class="cz-ph-ic" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="${ICON}"/></svg></span>`
17
- + `<div class="cz-ph-t"><p class="cz-ph-l">${esc(placeholderText(featureName))}</p>${note ? `<p class="cz-ph-n">${esc(note)}</p>` : ''}</div></div>`;
18
- }
19
-
20
- export function czPlaceholder(el, featureName, note) {
21
- if (!el) return el;
22
- el.innerHTML = placeholderHtml(featureName, note);
23
- return el;
24
- }
25
-
26
- if (typeof window !== 'undefined') { window.czPlaceholder = czPlaceholder; window.czPlaceholderHtml = placeholderHtml; }