create-pmos 0.486.0 → 0.488.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 +27 -27
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +26 -0
- package/workspace/guide/notes.md +2 -1
- package/workspace/guide/report-design.md +3 -1
- package/workspace/lib/headless.js +4 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-rec-now-test.js +3 -3
- package/workspace/public/pm/cozy-rec-now.css +7 -4
- package/workspace/public/pm/cozy-rec-now.js +22 -2
- package/workspace/public/pm/cozy-vw-rp.css +19 -0
- package/workspace/public/pm/premium-report-read.js +33 -4
- package/workspace/public/pm/rp-parts.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.488.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,32 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.488.0",
|
|
37
|
+
"at": "2026-11-02T06:16:07.264Z",
|
|
38
|
+
"f": 3,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1148,
|
|
42
|
+
"t": "Report Viewer follows the agreed design RfH2 (batch 23 item 3)",
|
|
43
|
+
"s": "Report Viewer follows the agreed design RfH2 (batch 23 item 3)",
|
|
44
|
+
"k": "new"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"v": "0.487.0",
|
|
50
|
+
"at": "2026-11-02T05:32:30.382Z",
|
|
51
|
+
"f": 3,
|
|
52
|
+
"prs": [
|
|
53
|
+
{
|
|
54
|
+
"n": 1147,
|
|
55
|
+
"t": "Batch 23 feedback",
|
|
56
|
+
"s": "Batch 23 feedback",
|
|
57
|
+
"k": "new"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
35
61
|
{
|
|
36
62
|
"v": "0.486.0",
|
|
37
63
|
"at": "2026-11-02T03:54:59.832Z",
|
|
@@ -269,32 +295,6 @@
|
|
|
269
295
|
"k": "new"
|
|
270
296
|
}
|
|
271
297
|
]
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"v": "0.468.0",
|
|
275
|
-
"at": "2026-10-31T09:41:17.517Z",
|
|
276
|
-
"f": 3,
|
|
277
|
-
"prs": [
|
|
278
|
-
{
|
|
279
|
-
"n": 1121,
|
|
280
|
-
"t": "Slice 2 backend and the central host Worker (boards.pm-os.app)",
|
|
281
|
-
"s": "Slice 2 backend and the central host Worker (boards.pm-os.app)",
|
|
282
|
-
"k": "new"
|
|
283
|
-
}
|
|
284
|
-
]
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"v": "0.467.0",
|
|
288
|
-
"at": "2026-10-31T08:49:40.991Z",
|
|
289
|
-
"f": 3,
|
|
290
|
-
"prs": [
|
|
291
|
-
{
|
|
292
|
-
"n": 1119,
|
|
293
|
-
"t": "Ratify the central board-publish host as D103; log board-publish run 1",
|
|
294
|
-
"s": "Ratify the central board-publish host as D103; log board-publish run 1",
|
|
295
|
-
"k": "x"
|
|
296
|
-
}
|
|
297
|
-
]
|
|
298
298
|
}
|
|
299
299
|
]
|
|
300
300
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-02T06:16:04Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-02T06:16:04Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-02T06:16:04Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.488.0",
|
|
4
|
+
"at": "2026-11-02T06:16:07.264Z",
|
|
5
|
+
"f": 3,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1148,
|
|
9
|
+
"t": "Report Viewer follows the agreed design RfH2 (batch 23 item 3)",
|
|
10
|
+
"s": "Report Viewer follows the agreed design RfH2 (batch 23 item 3)",
|
|
11
|
+
"k": "new"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"v": "0.487.0",
|
|
17
|
+
"at": "2026-11-02T05:32:30.382Z",
|
|
18
|
+
"f": 3,
|
|
19
|
+
"prs": [
|
|
20
|
+
{
|
|
21
|
+
"n": 1147,
|
|
22
|
+
"t": "Batch 23 feedback",
|
|
23
|
+
"s": "Batch 23 feedback",
|
|
24
|
+
"k": "new"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
2
28
|
{
|
|
3
29
|
"v": "0.486.0",
|
|
4
30
|
"at": "2026-11-02T03:54:59.832Z",
|
package/workspace/guide/notes.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "Guide: notes"
|
|
4
4
|
description: "How to take notes in a meeting: one note top to bottom, typed notes as timed lines, key points written each minute and labelled by Jev, delete a note; final notes written after Stop from the whole recording, with speakers and a quote for each item, decisions with their why and who, next steps with an open question, a discussion paragraph, and Wispr Flow's notes merged in and fetched by hand when the fetch fails; listen to your microphone and the meeting on this machine, see decisions, actions and questions caught as they are said, check them against the repository for conflicts, capture highlights during the meeting, create tasks from next steps, correct and tag lines, see what changed in your notes, replay the meeting, see screenshots of the shared screen beside the transcript, link a note to its meeting and its initiative, and get a summary."
|
|
5
|
-
timestamp: 2026-
|
|
5
|
+
timestamp: 2026-11-02
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Guide: notes
|
|
@@ -61,6 +61,7 @@ The recording tab holds the recording and stays on the meeting. When you open Ho
|
|
|
61
61
|
- **The header** shows the red dot, the meeting clock and the title. The browser tab's title is the clock. After the calendar end, the clock turns amber and says **Past 10:30 end**.
|
|
62
62
|
- **The line under the stage** is the meeting so far. Each highlight is a star on it. Hold the pointer on a star, or move the focus to it, to see the time, the line said and the screenshot.
|
|
63
63
|
- **The bar** has icons only: **Highlight**, **Pause**, **Pause the screenshots** (only with a shared screen; the sound goes on) and the red **Stop**. **Stop** asks first, then the tab shows the meeting's notes.
|
|
64
|
+
- **Caught so far** is in the side panel, or under the topic on the light page. It is the same section as in the Viewer: the counts of decisions, next steps and highlights on its header, then **So far:** with a short summary of the talk, then the topic strip (done in dark blue, now in blue, the rest grey). It shows nothing until something is caught.
|
|
64
65
|
- **Sharing stopped**: the stage turns grey with **Share again**. The sound goes on.
|
|
65
66
|
- **Not hearing the meeting**: an amber line with **Share again** shows when the microphone is heard and the meeting is not. The snippet on other pages says it too.
|
|
66
67
|
- **The next meeting**: if you press **Record** on another meeting while one records, the recording tab asks once: **Stop Viewer sync and record Design review?**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "Design how a report looks, and read it as a deck"
|
|
4
4
|
description: "How to design the look of a report in the design studio, how each cycle reads as a deck or an interactive document, how to present it, and how speaker notes and notes on the slide work."
|
|
5
|
-
timestamp: 2026-
|
|
5
|
+
timestamp: 2026-11-02
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Design how a report looks
|
|
@@ -66,6 +66,8 @@ Press **This is it** to save the version as the design. PMOS redraws the current
|
|
|
66
66
|
|
|
67
67
|
A cycle of a report with a design opens in the **Read** tab as a deck. A report whose design is a document opens as an interactive document.
|
|
68
68
|
|
|
69
|
+
The top of the page shows one chip for each cycle. The current cycle is blue. Under the chips, one line tells the state of the cycle, for example "Draft · Nov 1 · 2 suggestions". The icons on the right are Edit, Present, Share and Download. The checks are under the slides. Press **Issue it** at the foot of the page to issue the cycle. The design of the report (its template) holds the parts and the look of the report, so the page does not show them again.
|
|
70
|
+
|
|
69
71
|
- Use the strip of slides, or the previous and next buttons, to move.
|
|
70
72
|
- Move the pointer onto a value to show its detail.
|
|
71
73
|
- Click a number or a status to show where it comes from.
|
|
@@ -265,7 +265,10 @@ function argsFor(kind, { modelArgs = [], addDirs = [], writePaths = [], budgetUs
|
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
// stream-json needs --verbose in print mode; it adds the step events, and the last line is the same result object as `json`.
|
|
268
|
-
|
|
268
|
+
// dontAsk (batch 23 item 2): the PM's own Claude Code default mode must not reach a run that cannot answer. With "plan" as the PM's default, a
|
|
269
|
+
// report draft stopped after reading ("Plan mode is on, and the draft step writes files") and wrote nothing. dontAsk runs the list above and denies
|
|
270
|
+
// the rest, which is what this file already promises; it is not a bypass.
|
|
271
|
+
const argv = ['-p', '--output-format', 'stream-json', '--verbose', '--no-session-persistence', '--permission-mode', 'dontAsk', ...modelArgs, '--allowedTools', tools.join(',')];
|
|
269
272
|
// A run with a budget (a grill run, lib/grill.js budgetFor) stops at it, so the monthly credit cap holds
|
|
270
273
|
const b = Number(budgetUsd);
|
|
271
274
|
if (budgetUsd != null && Number.isFinite(b) && b > 0) argv.push('--max-budget-usd', String(b));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.488.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.488.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* XrtA7Transcript, XrtA5PhoneRec). Serves the real /premium-rec.html from the real server; the notes and the meeting are answered by stand-ins
|
|
5
5
|
* (fixtures/premium-viewer-fixtures.js, plus GET /api/meeting-focus with Raise now items and a question here) for the whole browser context.
|
|
6
6
|
* The tab opens with go=1 and starts the stand-in recorder on note n2 itself, so it holds the recorder and is in the room; window.__rtShare gives it a picture.
|
|
7
|
-
* N1 in the room: the topic now big, chips, Raise now, the counts
|
|
7
|
+
* N1 in the room: the topic now big, chips, Raise now, the counts on Caught so far · N2 ✓ on a prompt · N3 a note is kept · N4 a question and its answer, kept with +
|
|
8
8
|
* N5 the live transcript card · N6 a shared screen: the panel moves to the side card, which the bar can hide · N7 a phone
|
|
9
9
|
* Every wait polls the page; no fixed sleep stands in for a state. */
|
|
10
10
|
const path = require('path');
|
|
@@ -82,11 +82,11 @@ async function context(o = {}) {
|
|
|
82
82
|
await p.goto(BASE + '/premium-rec.html?note=n2&go=1');
|
|
83
83
|
ok('N1 in the room the Now panel fills the light page; the side card stays hidden', await until(() => p.evaluate(() => document.getElementById('rt').dataset.mode === 'room' && !!document.querySelector('#rtStage .rn.rn-room h1') && document.getElementById('rtSide').hidden), 15000),
|
|
84
84
|
await p.evaluate(() => document.getElementById('rt').dataset.mode));
|
|
85
|
-
const room = await p.evaluate(() => ({ now: document.querySelector('.rn-now').innerText, chips: [...document.querySelectorAll('.rn-stp span')].map((s) => s.textContent.trim()), raise: [...document.querySelectorAll('.rn-rq')].map((r) => r.innerText), counts: (document.querySelector('.rn-
|
|
85
|
+
const room = await p.evaluate(() => ({ now: document.querySelector('.rn-now').innerText, chips: [...document.querySelectorAll('.rn-stp span')].map((s) => s.textContent.trim()), raise: [...document.querySelectorAll('.rn-rq')].map((r) => r.innerText), counts: (document.querySelector('.rn-cgt h5 .r') || {}).textContent }));
|
|
86
86
|
ok('N1 the topic now is big, with minutes on it and minutes left', /^Now\s+The Issue button\s+\d+ min on it · \d+ min left$/.test(room.now.trim()), room.now);
|
|
87
87
|
ok('N1 chips for the done topic and Next', JSON.stringify(room.chips) === JSON.stringify(['One toolbar row', 'Next: Phone layout']), JSON.stringify(room.chips));
|
|
88
88
|
ok('N1 Raise now: the two prompts with where they came from', room.raise.length === 2 && /Check · from the screen/.test(room.raise[0]) && /Follow-up · from Oct 15/.test(room.raise[1]), JSON.stringify(room.raise));
|
|
89
|
-
ok('N1
|
|
89
|
+
ok('N1 the counts on the Caught so far header', room.counts === '1 decision · 2 next steps · 1 highlight', room.counts);
|
|
90
90
|
const icons = await p.evaluate(() => [...document.querySelectorAll('#rtBar [data-slot="now"] button')].map((b) => [b.getAttribute('aria-label'), getComputedStyle(b).display === 'none', b.textContent.trim()]));
|
|
91
91
|
ok('N1 the bar holds the transcript icon; the side-panel toggle is hidden in the room; both icon only', icons.length === 2 && icons.some((x) => x[0] === 'Live transcript' && !x[1]) && icons.some((x) => /side panel/.test(x[0]) && x[1]) && icons.every((x) => x[2] === ''), JSON.stringify(icons));
|
|
92
92
|
ok('N1 every button in the panel is icon only with a label', await p.evaluate(() => [...document.querySelectorAll('.rn button')].every((b) => b.getAttribute('aria-label') && !b.textContent.trim())));
|
|
@@ -29,9 +29,13 @@
|
|
|
29
29
|
.rn-ib:hover { background: var(--cz-well); }
|
|
30
30
|
.rn-ib:disabled { opacity: .5; cursor: default; }
|
|
31
31
|
|
|
32
|
-
/* the counts
|
|
33
|
-
.rn-
|
|
34
|
-
.rn-
|
|
32
|
+
/* Caught so far (batch 23 item 1): the counts on the header, the gist, the topic strip (done dark blue, now blue, the rest hairline) */
|
|
33
|
+
.rn-cgt h5 .r { font-weight: 700; }
|
|
34
|
+
.rn-gist { margin: 0 4px 10px; font-size: var(--fs-3); line-height: 1.5; color: var(--cz-ink2); }
|
|
35
|
+
.rn-str { display: block; width: 100%; height: 8px; }
|
|
36
|
+
.rn-str rect { fill: var(--cz-hair); }
|
|
37
|
+
.rn-str rect[data-k="done"] { fill: var(--cz-blueink); }
|
|
38
|
+
.rn-str rect[data-k="now"] { fill: var(--cz-blue); }
|
|
35
39
|
|
|
36
40
|
/* a question and Claude's answer */
|
|
37
41
|
.rn-chx { display: flex; flex-direction: column; gap: 8px; }
|
|
@@ -70,7 +74,6 @@
|
|
|
70
74
|
.rn-stp b { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--cz-ink3); opacity: .55; display: block; box-sizing: border-box; }
|
|
71
75
|
.rn-room .rn-rz { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
|
72
76
|
.rn-room .rn-rq .w { font-size: var(--fs-3); }
|
|
73
|
-
.rn-room .rn-cgl { padding: 0; }
|
|
74
77
|
.rn-room .rn-mine { width: calc(100% - 64px); max-width: 936px; margin: 0 auto 16px; box-sizing: border-box; background: var(--cz-card); box-shadow: 0 0 0 1px var(--cz-hair); }
|
|
75
78
|
|
|
76
79
|
/* the live transcript: a 420px rounded card beside Now, closed by default */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* XrtA7Transcript, XrtA5PhoneRec on the main canvas).
|
|
3
3
|
*
|
|
4
4
|
* nowModel(F, one, { now? }) → Model pure: what the Now panel shows, from GET /api/meeting-focus (F) and GET /api/notes/one (one)
|
|
5
|
-
* nowHtml(m, { room? }) → string To cover (or, in the room, the topic now big with chips), Raise now,
|
|
5
|
+
* nowHtml(m, { room? }) → string To cover (or, in the room, the topic now big with chips), Raise now, Caught so far, the last answer
|
|
6
6
|
* transcriptModel(one, { max? }) → [Line] pure: the live transcript, oldest first, with the highlight and decision marks
|
|
7
7
|
* transcriptHtml(lines) → string the 420px card's feed
|
|
8
8
|
* kindOf(text) → 'ask' | 'note' a line that ends with "?" asks Claude; anything else is kept as a note
|
|
@@ -85,11 +85,31 @@ export function nowModel(F, one, { now = Date.now() } = {}) {
|
|
|
85
85
|
topics, current, next: topics.find((t) => t.state === 'open') || null,
|
|
86
86
|
onIt: current ? Math.max(0, Math.round(current.spent / 60000)) : null,
|
|
87
87
|
left, raise, counts: parts.join(' · '), answer,
|
|
88
|
+
// Caught so far (batch 23 item 1): the companion's gist of the talk, as the Viewer's meeting card shows it
|
|
89
|
+
gist: typeof f.gist === 'string' ? f.gist.trim().slice(0, 400) : '',
|
|
88
90
|
};
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
const mark = (state) => (state === 'done' ? svg(P.check, 16) : state === 'now' ? '<i></i>' : '<b></b>');
|
|
92
94
|
|
|
95
|
+
/** The topics as one strip, each as long as its time (4 min at least, as the Viewer's strip): done, now, still to cover. An SVG, so no inline style. */
|
|
96
|
+
function stretchHtml(topics) {
|
|
97
|
+
const parts = topics.map((t) => ({ w: Math.max(4, t.spent / 60000), k: t.state === 'done' ? 'done' : t.state === 'now' ? 'now' : 'plan' }));
|
|
98
|
+
const tot = parts.reduce((a, x) => a + x.w, 0) || 1, gap = 1.2, room = 100 - gap * Math.max(0, parts.length - 1);
|
|
99
|
+
let x = 0;
|
|
100
|
+
const rects = parts.map((q) => { const w = Math.max(0.6, room * q.w / tot), r = `<rect x="${x.toFixed(2)}%" width="${w.toFixed(2)}%" height="100%" rx="4" data-k="${q.k}"/>`; x += w + gap; return r; }).join('');
|
|
101
|
+
return `<svg class="rn-str" aria-hidden="true" width="100%" height="8">${rects}</svg>`;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** Caught so far (batch 23 item 1, the Viewer's section in the recording tab): the counts on the header, "So far: <gist>", the topic strip.
|
|
105
|
+
* Silent at zero: no gist and no counts draws nothing. */
|
|
106
|
+
function caughtHtml(m) {
|
|
107
|
+
if (!m.gist && !m.counts) return '';
|
|
108
|
+
return `<section class="rn-sec rn-cgt" aria-label="Caught so far"><h5>Caught so far${m.counts ? `<span class="r">${esc(m.counts)}</span>` : ''}</h5>`
|
|
109
|
+
+ (m.gist ? `<p class="rn-gist">${esc('So far: ' + m.gist)}</p>` : '')
|
|
110
|
+
+ (m.gist && m.topics.length ? stretchHtml(m.topics) : '') + '</section>';
|
|
111
|
+
}
|
|
112
|
+
|
|
93
113
|
/** The panel's body (not the note box, which the page keeps so a half-typed line survives a redraw). */
|
|
94
114
|
export function nowHtml(m, { room = false } = {}) {
|
|
95
115
|
let h = '';
|
|
@@ -114,7 +134,7 @@ export function nowHtml(m, { room = false } = {}) {
|
|
|
114
134
|
+ `<button type="button" class="rn-ib" data-rn="skip" aria-label="Not now" title="Not now">${svg(P.x)}</button></div>`).join('')
|
|
115
135
|
+ '</div></section>';
|
|
116
136
|
}
|
|
117
|
-
|
|
137
|
+
h += caughtHtml(m);
|
|
118
138
|
if (m.answer) {
|
|
119
139
|
const a = m.answer;
|
|
120
140
|
h += `<div class="rn-chx" aria-live="polite"><div class="q">${esc(a.question)}</div>`
|
|
@@ -279,3 +279,22 @@ button.rp-cy:hover { background: var(--cz-well); }
|
|
|
279
279
|
.rf-pass { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 10px 4px; border-top: 1px solid var(--cz-hair); font-size: var(--fs-2); }
|
|
280
280
|
.rf-pass span { color: var(--cz-ink3); }
|
|
281
281
|
.rf-opt[aria-checked="true"] .vz-ring { border: 5px solid var(--cz-blue); }
|
|
282
|
+
|
|
283
|
+
/* a slide and its strip keep their 16:9 in the panel's column: the column must not squeeze them (batch 23 item 3: the cover slide was cut) */
|
|
284
|
+
.rp-a .vz-slide, .rp-a .rp-thumbs, .rp-a .rp-nav { flex: none; }
|
|
285
|
+
/* the mini slide is drawn at 2x on the type scale, then scaled down to fit the thumbnail */
|
|
286
|
+
.rp-th.rp-th > span:first-child .vz-words { inset: auto; left: 0; top: 0; width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0; padding: 12px 18px; gap: 6px; font-size: 12px; }
|
|
287
|
+
.rp-th.rp-th > span:first-child .vz-words h4, .rp-th.rp-th > span:first-child .vz-words.vz-title h4 { font-size: 20px; line-height: 1.15; margin: 0; }
|
|
288
|
+
.rp-th.rp-tt > span .vz-words > * { visibility: hidden; }
|
|
289
|
+
|
|
290
|
+
/* the agreed report Viewer (batch 23 item 3; canvas RfH1, RfH2): cycle chips, one status line, the tools, the report, the review, the primary */
|
|
291
|
+
.rp-ccs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
|
|
292
|
+
.rp-cc { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--cz-well); font: 700 var(--fs-2) var(--cz-sans); color: var(--cz-ink2); }
|
|
293
|
+
button.rp-cc { cursor: pointer; }
|
|
294
|
+
.rp-cc.on { background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
295
|
+
.rp-cc i, .rp-stl i { width: 8px; height: 8px; border-radius: 50%; background: var(--cz-blue); flex: none; }
|
|
296
|
+
.rp-stl { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-2); color: var(--cz-ink2); }
|
|
297
|
+
.rp-stl[data-tone="you"] { color: var(--cz-blueink); font-weight: 700; }
|
|
298
|
+
.rp-rfh .rp-bar { justify-content: flex-end; }
|
|
299
|
+
.rp-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 4px; }
|
|
300
|
+
.rp-foot .rp-pri { width: 40px; height: 40px; margin: 0; }
|
|
@@ -57,7 +57,7 @@ import { vzStyle } from './premium-vw-open.js';
|
|
|
57
57
|
import { reviewHtml, ICON as RF_ICON } from './report-flow.js'; // Claude's review and the template icon (batch 22 item 14, canvas RfH2, RfH6)
|
|
58
58
|
import { adler } from './cozy-adler.js'; // registers window.czViews; vzStyle adds the Viewer's sheet (cozy-vw.css)
|
|
59
59
|
import { cycleGroups, cycleName, briefModel, briefGlanceHtml, briefConfirmHtml, briefWhyHtml, briefLooksHtml, paperModel, paperHtml, liveModel, liveHtml, presentHtml, dayMon, reportSummary,
|
|
60
|
-
rpSumHtml, rpBarHtml, cadenceWords, goesOutWords, FORMATS } from './rp-parts.js';
|
|
60
|
+
rpSumHtml, rpBarHtml, cadenceWords, goesOutWords, FORMATS, RP_ICONS } from './rp-parts.js';
|
|
61
61
|
|
|
62
62
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
63
63
|
const svg = (p, n = 18) => `<svg viewBox="0 0 24 24" width="${n}" height="${n}" aria-hidden="true">${p}</svg>`;
|
|
@@ -414,7 +414,7 @@ function deckHtml() {
|
|
|
414
414
|
return `<div class="vz-slide" tabindex="0" role="group" aria-roledescription="slide" aria-label="Slide ${i + 1} of ${L.length}: ${esc(L[i].h)}. Use the arrow keys to change slide." data-r="slide">${slideCard(L[i])}</div>`
|
|
415
415
|
+ `<div class="rp-nav">${ib('prev', ic('prev', 15), 'Previous slide', { off: i === 0 })}<span class="rp-count" aria-live="polite">Slide ${i + 1} of ${L.length}</span>${ib('next', ic('next', 15), 'Next slide', { off: i === L.length - 1 })}</div>`
|
|
416
416
|
+ `<div class="vz-thumbs rp-thumbs" role="group" aria-label="Slides">`
|
|
417
|
-
+ L.map((x, j) => `<button type="button" class="vz-th rp-th${x.k === 'title' ? ' rp-tt' : ''}" data-r="go|${j}"${j === i ? ' aria-current="true"' : ''} aria-label="Slide ${j + 1}: ${esc(x.h)}" title="${j + 1} · ${esc(x.h)}"
|
|
417
|
+
+ L.map((x, j) => `<button type="button" class="vz-th rp-th${x.k === 'title' ? ' rp-tt' : ''}" data-r="go|${j}"${j === i ? ' aria-current="true"' : ''} aria-label="Slide ${j + 1}: ${esc(x.h)}" title="${j + 1} · ${esc(x.h)}"><span>${slideCard(x, true)}</span></button>`).join('')
|
|
418
418
|
+ '</div>';
|
|
419
419
|
}
|
|
420
420
|
function pageHtml() {
|
|
@@ -427,7 +427,35 @@ function liveView() {
|
|
|
427
427
|
return liveHtml(L, { name: R.name, audience: R.audience, period: R.issued ? 'As issued · ' + dayMon(R.row.slot) : 'Now', issued: R.issued, readAgo: R.LV && agoOf(R.LV.at), hover: R.LV ? R.LV.hover : null, prodOpen: R.pop === 'prod', products: R.LV && R.LV.m && R.LV.m.board ? R.LV.m.board.switcher : [] });
|
|
428
428
|
}
|
|
429
429
|
const agoOf = (t) => { if (!t) return ''; const m = Math.round((Date.now() - t) / 60000); return m < 1 ? 'just now' : m === 1 ? '1 min ago' : m < 60 ? m + ' min ago' : Math.round(m / 60) + ' h ago'; };
|
|
430
|
+
/* ── the agreed report Viewer for a report with a template (batch 23 item 3; canvas RfH1, RfH2; Wawan: "this is still old design") ──
|
|
431
|
+
* The cycles as chips (this one blue), one status line, the tools as icons (Edit, Present, Share, Download), the slides or the page in the
|
|
432
|
+
* template's format, Claude's review, and the one primary at the foot (Issue it, or Bring back). No summary card, no Slides | Document | Live
|
|
433
|
+
* page switch and no At a glance or Structure and look folds: the template icon in the header holds the format, readers, look and sources. */
|
|
434
|
+
const rfhOn = () => !!R.setup && !R.cuts;
|
|
435
|
+
function rfhHtml() {
|
|
436
|
+
const w = R.W || { sections: [] }, confirm = !R.issued && R.BF ? R.BF.count : 0;
|
|
437
|
+
const S = reportSummary({ state: R.archived ? 'archived' : R.issued ? 'issued' : 'draft', slot: R.row.slot || R.row.date, path: R.row.path,
|
|
438
|
+
purpose: R.setup && R.setup.purpose, sub: w.sub, confirm, shares: R.shares, nextDraft: '' });
|
|
439
|
+
const n = R.rv && !R.issued ? (R.rv.fix || []).filter((f) => !R.rvHide.has(f.id) && !R.rvSent.has(f.id)).length : 0;
|
|
440
|
+
const line = S.line + (n ? ' · ' + n + (n === 1 ? ' suggestion' : ' suggestions') : '');
|
|
441
|
+
const others = R.cycles.filter((x) => x.path !== R.row.path && !x.archived);
|
|
442
|
+
const chips = `<div class="rp-ccs" role="group" aria-label="Cycles"><span class="rp-cc on"${S.tone ? ' data-tone="you"' : ''}>${S.tone ? '<i aria-hidden="true"></i>' : ''}${esc(S.line.split(' · ').slice(0, 2).join(' · '))}</span>`
|
|
443
|
+
+ others.map((x) => `<button type="button" class="rp-cc vz-hv" data-r="cyc|${esc(x.path)}">${esc((x.state === 'issued' ? 'Issued' : 'Draft') + ' · ' + cycleName(x, R.id))}</button>`).join('') + '</div>';
|
|
444
|
+
const wait = waitWords(R.bfRaw, R.setup && R.setup.draft).filter((t) => !/^New sections are ready/.test(t));
|
|
445
|
+
const st = `<p class="rp-stl"${S.tone ? ' data-tone="you"' : ''}>${S.tone ? '<i aria-hidden="true"></i>' : ''}<span>${esc(R.msg ? R.msg.text : wait.length ? wait.join(' ') : line)}</span></p>`;
|
|
446
|
+
const tools = rpBarHtml({ tools: [
|
|
447
|
+
R.issued ? null : { act: 'edit', label: 'Edit', icon: 'pen' }, { act: 'present', label: 'Present', icon: 'present' },
|
|
448
|
+
R.archived ? null : { act: 'share', label: 'Share', icon: 'share', exp: R.pop === 'share', pop: 'dialog' },
|
|
449
|
+
{ act: 'dlm', label: 'Download', icon: 'dl', exp: R.pop === 'dl' }] });
|
|
450
|
+
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>'
|
|
451
|
+
: R.view === 'doc' ? pageHtml() : deckHtml();
|
|
452
|
+
const conf = confirm && R.BF ? czSections([{ id: 'confirm', title: 'Please confirm', count: confirm, open: true, render: () => briefConfirmHtml(R.BF, { issued: R.issued, busy: R.busy }) + (R.bfMsg ? `<p class="vz-msg" role="status">${esc(R.bfMsg)}</p>` : '') }], { key: 'report' }) : '';
|
|
453
|
+
const pri = R.archived ? { act: 'unarch|' + R.row.path, label: 'Bring back', icon: 'back' } : R.issued ? null : { act: 'issue', label: 'Issue it', icon: 'send' };
|
|
454
|
+
const foot = pri ? `<div class="rp-foot"><button type="button" class="rp-pri" data-r="${esc(pri.act)}" aria-label="${esc(pri.label)}" title="${esc(pri.label)}"${R.busy ? ' disabled' : ''}><svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="${RP_ICONS[pri.icon]}"/></svg></button></div>` : '';
|
|
455
|
+
return `<div class="vz-rpb rp-rfh">${R.conf ? confHtml() : ''}${chips}${st}${R.W && !R.err ? tools : ''}${view}${R.W && !R.err && !R.issued ? rvHtml() : ''}${conf}${askHtml()}${foot}</div>`;
|
|
456
|
+
}
|
|
430
457
|
function bodyHtml() {
|
|
458
|
+
if (!R.edit && rfhOn()) return rfhHtml();
|
|
431
459
|
if (R.edit) {
|
|
432
460
|
const SS = slideState(), n = SS ? SS.deck.slides.length : slides().length, at = SS ? SS.i : R.i;
|
|
433
461
|
return `<div class="vz-rpb">${R.msg ? `<p class="vz-msg" role="status" data-tone="${R.msg.tone || ''}">${esc(R.msg.text)}</p>` : ''}`
|
|
@@ -563,7 +591,7 @@ function scaleOf(el, w) { if (w) el.style.setProperty('--rp-scale', String(Math.
|
|
|
563
591
|
export function fit(root) { root.querySelectorAll('.vz-fr').forEach((c) => { if (RO) RO.observe(c); scaleOf(c, c.getBoundingClientRect().width); }); }
|
|
564
592
|
|
|
565
593
|
/* ── the presses ── */
|
|
566
|
-
const say = (text, tone) => { R.msg = { text, tone }; draw(); };
|
|
594
|
+
const say = (text, tone) => { R.msg = { text, tone }; draw(); const me = R, m = R.msg; if (tone !== 'bad') setTimeout(() => { if (R === me && R.msg === m) { R.msg = null; draw(); } }, 9000); };
|
|
567
595
|
async function act([k, v], t) {
|
|
568
596
|
if (k === 'rv-do' || k === 'rv-no' || k === 'rv-all') return rvAct(k, v);
|
|
569
597
|
if (k === 'pop') { R.pop = v || null; return draw(); }
|
|
@@ -574,7 +602,7 @@ async function act([k, v], t) {
|
|
|
574
602
|
if (k === 'nextcyc') { R.pop = null; return nextCycle(); }
|
|
575
603
|
if (k === 'unarch') { R.pop = null; return lifeIt('unarchive', v); }
|
|
576
604
|
if (k === 'view') {
|
|
577
|
-
if (R.view === v) return; const ico = (x) => (x === 'doc' ? 'doc' : 'report'), was = R.view; R.view = v; R.pop = null; if (v === 'live' && !R.LV) readLive();
|
|
605
|
+
if (R.view === v) return; const ico = (x) => (x === 'doc' ? 'doc' : 'report'), was = R.view; R.view = v; R.viewSet = true; R.pop = null; if (v === 'live' && !R.LV) readLive();
|
|
578
606
|
const ed = R.edit && bodyEl() && bodyEl().querySelector('[data-vz-ed]'); if (ed) delete ed.dataset.mounted;
|
|
579
607
|
if (!R.edit && ico(was) !== ico(v) && vCur() && vCur().id === R.vid) { R.reopen = true; vOpen(R.head()); R.reopen = false; } // the header's tile follows what it is read as (XvAReportDoc)
|
|
580
608
|
return draw();
|
|
@@ -632,6 +660,7 @@ async function readSetup() {
|
|
|
632
660
|
R.setup = j && Array.isArray(j.setups) ? j.setups.find((x) => x.id === R.id) || null : null;
|
|
633
661
|
if (R.setup && R.setup.audience) R.audience = R.setup.audience;
|
|
634
662
|
if (R.setup && R.setup.name && !R.hand.name) R.name = R.setup.name;
|
|
663
|
+
if (R.setup && !R.viewSet) R.view = !R.setup.output || R.setup.output === 'google-slides' ? 'deck' : 'doc'; // the agreed Viewer shows the template's format
|
|
635
664
|
}
|
|
636
665
|
|
|
637
666
|
/* ── issue ── */
|
|
@@ -177,7 +177,7 @@ export function rpSumHtml(o = {}, a = 'data-r') {
|
|
|
177
177
|
* o = { view, views: [[key, label]], tools: [{ act, label, icon, exp }] }
|
|
178
178
|
*/
|
|
179
179
|
export function rpBarHtml(o = {}, a = 'data-r') {
|
|
180
|
-
const seg = `<div class="rp-seg" role="group" aria-label="Read as">${(o.views || []).map(([k, l]) => `<button type="button" ${a}="view|${k}" aria-pressed="${o.view === k}">${esc(l)}</button>`).join('')}</div>`;
|
|
180
|
+
const seg = !(o.views || []).length ? '' : `<div class="rp-seg" role="group" aria-label="Read as">${(o.views || []).map(([k, l]) => `<button type="button" ${a}="view|${k}" aria-pressed="${o.view === k}">${esc(l)}</button>`).join('')}</div>`;
|
|
181
181
|
const tools = (o.tools || []).filter(Boolean).map((t) => `<button type="button" class="rp-tl vz-hv" ${a}="${esc(t.act)}" aria-label="${esc(t.label)}" title="${esc(t.label)}"${t.exp != null ? ` aria-haspopup="${t.pop || 'menu'}" aria-expanded="${t.exp}"` : ''}>${SVG(RP_ICONS[t.icon], 18)}</button>`).join('');
|
|
182
182
|
return `<div class="rp-bar">${seg}${tools ? `<div class="rp-tls">${tools}</div>` : ''}</div>`;
|
|
183
183
|
}
|