create-pmos 0.789.0 → 0.790.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 +14 -14
- package/payload/KIT-VERSION +1 -1
- package/payload/design-system/ui/components/bundle.css +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 +13 -0
- package/workspace/design-system/ui/components/bundle.css +1 -1
- package/workspace/guide/layout.md +3 -3
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-viewer-download-test.js +1 -1
- package/workspace/public/pm/cozy-board.css +3 -0
- package/workspace/public/pm/komorebi.css +1 -1
- package/workspace/public/pm/premium-vw-copies.js +17 -10
- package/workspace/public/pm/premium-vw-copy.css +7 -0
- package/workspace/public/pm/premium-vw-doc.css +13 -1
- package/workspace/public/pm/premium-vw-doc.js +1 -1
- package/workspace/public/pm/premium-vw-file.js +21 -9
- package/workspace/public/pm/premium-vw-guide.css +2 -1
- package/workspace/public/pm/premium-vw-guide.js +1 -1
- package/workspace/public/pm/premium-vw-notepad.css +1 -1
- package/workspace/public/premium-board.html +1 -1
- package/workspace/public/premium-library.html +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.790.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": {
|
|
@@ -33,6 +33,19 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.790.0",
|
|
38
|
+
"at": "2026-11-24T18:34:00.454Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1797,
|
|
43
|
+
"t": "Copies, shared links and the notepad read in the Reading layout; Work and Library on pm-layout-open (A334)",
|
|
44
|
+
"s": "Copies, shared links and the notepad read in the Reading layout; Work and Library on pm-layout-open (A334)",
|
|
45
|
+
"k": "new"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
36
49
|
{
|
|
37
50
|
"v": "0.789.0",
|
|
38
51
|
"at": "2026-11-24T18:21:37.096Z",
|
|
@@ -450,19 +463,6 @@
|
|
|
450
463
|
"k": "fix"
|
|
451
464
|
}
|
|
452
465
|
]
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
"v": "0.770.0",
|
|
456
|
-
"at": "2026-11-24T09:01:51.310Z",
|
|
457
|
-
"f": 4,
|
|
458
|
-
"prs": [
|
|
459
|
-
{
|
|
460
|
-
"n": 1733,
|
|
461
|
-
"t": "Keep try steps when a PR Story has no Title line",
|
|
462
|
-
"s": "Keep try steps when a PR Story has no Title line",
|
|
463
|
-
"k": "fix"
|
|
464
|
-
}
|
|
465
|
-
]
|
|
466
466
|
}
|
|
467
467
|
]
|
|
468
468
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -138,7 +138,7 @@ body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font-s
|
|
|
138
138
|
.pm-layout-side,.pm-layout-open,.pm-layout-reading{display:grid;gap:var(--space-16);align-items:start}
|
|
139
139
|
.pm-layout-side{grid-template-columns:minmax(0,1fr) var(--width-side)}
|
|
140
140
|
.pm-layout-side>.pm-side,.pm-layout-reading>.pm-contents{position:sticky;top:0}
|
|
141
|
-
.pm-layout-open{grid-template-columns:minmax(0,1fr)}
|
|
141
|
+
.pm-layout-open{grid-template-columns:minmax(0,1fr);align-content:start}
|
|
142
142
|
.pm-layout-open:has(>.pm-item){grid-template-columns:minmax(0,1fr) var(--width-item)}
|
|
143
143
|
.pm-layout-open>.pm-item,.pm-layout-popup{background:var(--card);border-radius:var(--radius-panel);box-shadow:var(--raise);padding:var(--space-24)}
|
|
144
144
|
.pm-layout-popup{box-shadow:var(--lift);padding:var(--space-24) var(--space-32)}
|
|
@@ -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-24T18:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T18:33:55Z"}
|
|
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-24T18:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T18:33:55Z"}
|
|
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-24T18:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T18:33:55Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.790.0",
|
|
4
|
+
"at": "2026-11-24T18:34:00.454Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1797,
|
|
9
|
+
"t": "Copies, shared links and the notepad read in the Reading layout; Work and Library on pm-layout-open (A334)",
|
|
10
|
+
"s": "Copies, shared links and the notepad read in the Reading layout; Work and Library on pm-layout-open (A334)",
|
|
11
|
+
"k": "new"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.789.0",
|
|
4
17
|
"at": "2026-11-24T18:21:37.096Z",
|
|
@@ -138,7 +138,7 @@ body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font-s
|
|
|
138
138
|
.pm-layout-side,.pm-layout-open,.pm-layout-reading{display:grid;gap:var(--space-16);align-items:start}
|
|
139
139
|
.pm-layout-side{grid-template-columns:minmax(0,1fr) var(--width-side)}
|
|
140
140
|
.pm-layout-side>.pm-side,.pm-layout-reading>.pm-contents{position:sticky;top:0}
|
|
141
|
-
.pm-layout-open{grid-template-columns:minmax(0,1fr)}
|
|
141
|
+
.pm-layout-open{grid-template-columns:minmax(0,1fr);align-content:start}
|
|
142
142
|
.pm-layout-open:has(>.pm-item){grid-template-columns:minmax(0,1fr) var(--width-item)}
|
|
143
143
|
.pm-layout-open>.pm-item,.pm-layout-popup{background:var(--card);border-radius:var(--radius-panel);box-shadow:var(--raise);padding:var(--space-24)}
|
|
144
144
|
.pm-layout-popup{box-shadow:var(--lift);padding:var(--space-24) var(--space-32)}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "Layout and first run: the places, the navigation, the Viewer, the launcher and Adler"
|
|
4
4
|
description: "The places, the navigation at the left, the Viewer, the keys and the phone; the first run; when features appear; the PMOS app; and Adler."
|
|
5
|
-
timestamp: 2026-11-
|
|
5
|
+
timestamp: 2026-11-24
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Layout and first run
|
|
@@ -139,10 +139,10 @@ A document opened in the Viewer (a doc, spec, brief, report, weekly update, meet
|
|
|
139
139
|
- The title, then one line that says who drafted it (✦ when PMOS did), who checked it, for whom, the version and how long it takes to read. **Properties** opens the document's other fields.
|
|
140
140
|
- **In short**: the answer and the ask, from the document's In short, Summary or TL;DR section.
|
|
141
141
|
- One section for each heading. Press a heading to fold it. Each document keeps the sections you folded, the next time you open it.
|
|
142
|
-
- **Contents** at the left lists the sections and marks the one you are reading as you scroll. Press one to go to it.
|
|
142
|
+
- **Contents** at the left lists the sections and marks the one you are reading as you scroll. Press one to go to it. There is no Contents when the window is narrower than 1100 px, when the Viewer is narrower than 900 px, or on a phone.
|
|
143
143
|
- Edit, Markdown, Health, Links, Copies, the report's Present, Print and Download, the Edit log and Proposals are where they were. An agent's edit still opens with **Keep** and **Undo all**.
|
|
144
144
|
|
|
145
|
-
This guide's pages and a Markdown file opened from a chat read the same way; a file keeps **Download** and **Share** at the top. Other kinds move to this view one at a time. Slides, PDFs and prototypes keep the stage, and a task, ticket or event keeps the task detail.
|
|
145
|
+
This guide's pages and a Markdown file opened from a chat read the same way; a file keeps **Download** and **Share** at the top. A Google Doc or Confluence copy reads the same way too, with its status and **Check again**, **Use its version** or **Read again** above the title. A shared link to a Markdown file, and a printed one, read the same way: Contents at the left on a wide screen and sections that fold, with no comments and no chat. Other kinds move to this view one at a time. Slides, PDFs and prototypes keep the stage, and a task, ticket or event keeps the task detail.
|
|
146
146
|
|
|
147
147
|
### What you type is kept
|
|
148
148
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.790.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.790.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -54,7 +54,7 @@ const SHOTS = process.env.PMOS_SHOTS || '';
|
|
|
54
54
|
ok('W1 a file still reading, missing or unreadable offers nothing', !M.downloadsOf({ loading: true }).length && !M.downloadsOf({ reason: 'missing' }).length && !M.downloadsOf({ err: 'x' }).length);
|
|
55
55
|
const h = M.printSrc({ name: 'r.html', kind: 'html', text: '<!doctype html><p>x</p>' }), m = M.printSrc({ name: 'n.md', kind: 'markdown', text: '# Notes\n\nThe **rate** is 38%.' });
|
|
56
56
|
ok('W2 the print page keeps the CSP first and prints itself on load', h.startsWith('<!doctype html><meta http-equiv="Content-Security-Policy"') && /addEventListener\("load"[\s\S]*print\(\)/.test(h), h.slice(0, 200));
|
|
57
|
-
ok('W2 markdown prints as a page of its words', /<h1
|
|
57
|
+
ok('W2 markdown prints as a page of its words', /<h1[^>]*>Notes<\/h1>/.test(m) && /<strong>rate<\/strong>/.test(m) && m.includes(M.FRAME_CSP), m.slice(0, 300));
|
|
58
58
|
ok('W1 the title row of a read file carries the download icon', /data-fdl/.test(M.fileHtml({ name: 'n.md', kind: 'markdown', text: '# N', rel: 'n.md' })) && !/data-fdl/.test(M.fileHtml({ loading: true })));
|
|
59
59
|
}
|
|
60
60
|
const exe = findBrowser();
|
|
@@ -27,6 +27,8 @@ body.bd-page .dock, body.bd-page .sky, body.bd-page .hero, body.bd-page .rail {
|
|
|
27
27
|
/* the panel (AgBoard .panel): no page header; it starts at the top */
|
|
28
28
|
body.bd-page main.bd-main { position: relative; max-width: none; margin: var(--space-16); padding: 22px 28px 20px; min-height: calc(100vh - 32px); box-sizing: border-box; font-family: var(--cz-sans); font-size: var(--fs-body); color: var(--cz-ink);
|
|
29
29
|
background: var(--cz-card); border-radius: 28px; box-shadow: 0 30px 70px -36px rgba(42,46,53,.28); display: flex; flex-direction: column; gap: 14px; line-height: var(--lh-body); }
|
|
30
|
+
/* Work sits on the system's pm-layout-open (reading-layouts, A334): its grid and its gap token win over the panel's own column */
|
|
31
|
+
body.bd-page main.bd-main.pm-layout-open { display: grid; gap: var(--space-16); }
|
|
30
32
|
.bd-page main.bd-main * { box-sizing: border-box; }
|
|
31
33
|
|
|
32
34
|
/* ── the toolbar (AgBoard .hd .tools) ── */
|
|
@@ -622,6 +624,7 @@ span.tg-end { left: var(--tl-x); cursor: default; } /* a shared board's milest
|
|
|
622
624
|
/* ── phone (AgBoardPhone, AgBoardPhoneSheet, AgBoardTimelinePhone): a one-line top bar, cards, and a bottom sheet ── */
|
|
623
625
|
@media (max-width: 720px) {
|
|
624
626
|
body.bd-page main.bd-main { margin: 0; border-radius: 0; min-height: 100vh; padding: var(--space-16) var(--space-16) 110px; box-shadow: none; background: transparent; gap: 10px; }
|
|
627
|
+
body.bd-page main.bd-main.pm-layout-open { gap: var(--space-8); }
|
|
625
628
|
.bd-hd { gap: 2px; min-height: 44px; }
|
|
626
629
|
.bd-tools { gap: 0; margin-left: auto; }
|
|
627
630
|
.bd-hide-s, .bd-views, .bd-spw, .bd-lgdw, #chSprint, .bd-page #pvBell, .bd-page #moreBtn, .bd-page .tools-top { display: none !important; }
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
.pm-ds .pm-layout-side, .pm-ds .pm-layout-open, .pm-ds .pm-layout-reading{display:grid;gap:var(--space-16);align-items:start}
|
|
150
150
|
.pm-ds .pm-layout-side{grid-template-columns:minmax(0,1fr) var(--width-side)}
|
|
151
151
|
.pm-ds .pm-layout-side>.pm-side, .pm-ds .pm-layout-reading>.pm-contents{position:sticky;top:0}
|
|
152
|
-
.pm-ds .pm-layout-open{grid-template-columns:minmax(0,1fr)}
|
|
152
|
+
.pm-ds .pm-layout-open{grid-template-columns:minmax(0,1fr);align-content:start}
|
|
153
153
|
.pm-ds .pm-layout-open:has(>.pm-item){grid-template-columns:minmax(0,1fr) var(--width-item)}
|
|
154
154
|
.pm-ds .pm-layout-open>.pm-item, .pm-ds .pm-layout-popup{background:var(--card);border-radius:var(--radius-panel);box-shadow:var(--raise);padding:var(--space-24)}
|
|
155
155
|
.pm-ds .pm-layout-popup{box-shadow:var(--lift);padding:var(--space-24) var(--space-32)}
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
* copyModel(link, text) · readModel(answer) the pure models (premium-vw-copy.test.js) */
|
|
10
10
|
import { vwOpen, vwStyle } from './premium-viewer.js';
|
|
11
11
|
import { pmGet, pmPost } from './http.js';
|
|
12
|
-
import {
|
|
13
|
-
import * as SB from './state-blocks.js';
|
|
12
|
+
import { copyKindOf } from './premium-doc-edit.js';
|
|
13
|
+
import * as SB from './state-blocks.js';
|
|
14
|
+
import { readMinutes } from './premium-vw-doc-model.js';
|
|
15
|
+
import { readingPageHtml, wireReading } from './reading-view.js'; // the copy's text reads in the Reading layout (reading-layouts, A334) // the empty, loading and error states every block has (Komorebi State)
|
|
14
16
|
|
|
15
17
|
const TOOL = { google: 'Google Docs', confluence: 'Confluence', 'google-slides': 'Google Slides', 'google-sheets': 'Google Sheets' };
|
|
16
18
|
const COPY = { google: 'the Google Doc', confluence: 'the Confluence page', 'google-slides': 'the slides', 'google-sheets': 'the sheet' };
|
|
@@ -53,12 +55,16 @@ export function readModel(a, now) {
|
|
|
53
55
|
|
|
54
56
|
const ICON = (k) => `<span class="cpv-lg" aria-hidden="true">${k === 'confluence' ? 'C' : 'G'}</span>`;
|
|
55
57
|
const ext = (url, tool) => (url ? `<a class="dmcta alt" href="${esc(url)}" target="_blank" rel="noopener noreferrer">Open in ${esc(tool)}</a>` : '');
|
|
56
|
-
|
|
58
|
+
/* The text in the Reading layout (reading-layouts, A334): the status, the why and the buttons sit above the title in the reading column; a
|
|
59
|
+
* dimmed PMOS version dims the text only, never the buttons. */
|
|
60
|
+
const page = (text, dim, o) => `<div class="cpv-page cpv-rd vwdoc rdw pm-reads${dim ? ' dim' : ''}">` + readingPageHtml(text, {
|
|
61
|
+
path: 'copy:' + o.key, title: o.title, above: `<div class="cpv">${o.top}</div>`,
|
|
62
|
+
meta: () => `<p class="rd-meta cfby">${esc(o.tool)} · ${readMinutes(text)} min read</p>` }) + '</div>';
|
|
57
63
|
|
|
58
64
|
/** Open one page in the viewer. With `path`, it is a copy linked to that PMOS file; without, a page PMOS only has the address of. */
|
|
59
65
|
export function openCopy(o) {
|
|
60
66
|
if (!o || !o.url) return null;
|
|
61
|
-
vwStyle('copy');
|
|
67
|
+
vwStyle('doc'); vwStyle('copy');
|
|
62
68
|
const kind = o.kind || copyKindOf(o.url) || 'google';
|
|
63
69
|
const id = 'copy:' + (o.path ? o.path + '|' + kind : o.url);
|
|
64
70
|
const S = { o: { ...o, kind }, model: null, read: null, err: '', wait: null, poll: null, busy: false };
|
|
@@ -66,7 +72,7 @@ export function openCopy(o) {
|
|
|
66
72
|
let pane = null;
|
|
67
73
|
const tok = String(Date.now()) + Math.random();
|
|
68
74
|
const live = () => !!(pane && pane.isConnected && pane.dataset.cpTok === tok);
|
|
69
|
-
const draw = () => { if (live()) pane.innerHTML = html(); };
|
|
75
|
+
const draw = () => { if (live()) { pane.innerHTML = html(); wireReading(pane, pane, 'copy:' + id); } };
|
|
70
76
|
function html() {
|
|
71
77
|
const tool = TOOL[kind] || 'the tool', t = esc(o.title || S.model && S.model.title || tool);
|
|
72
78
|
if (S.err) return `<div class="cpv"><div class="cpv-bar">${ICON(kind)}<div><b>${t}</b><small>${esc(tool)}</small></div></div><p class="note">${esc(S.err)}</p><div class="cpv-acts">${ext(o.url, tool)}</div></div>`;
|
|
@@ -74,16 +80,17 @@ export function openCopy(o) {
|
|
|
74
80
|
const m = S.model; if (!m) return `<div class="cpv"><p class="note">Reading the copy and the PMOS file.</p></div>`;
|
|
75
81
|
const acts = S.wait ? `<button type="button" class="dmcta alt" data-cp="undo">Undo</button><span class="note">Using the version in ${esc(TOOL[kind])} in five seconds.</span>`
|
|
76
82
|
: `${m.use && !m.syncing ? `<button type="button" class="dmcta" data-cp="use">Use the ${esc(TOOL[kind])} version</button>` : ''}<button type="button" class="dmcta alt" data-cp="check"${S.busy ? ' disabled' : ''}>${S.busy ? 'Checking' : 'Check again'}</button>${ext(m.url || o.url, m.tool)}`;
|
|
77
|
-
|
|
78
|
-
+ `<p class="note cpv-why">${esc(m.syncing ? 'A session is writing the copy\'s text into the PMOS file.' : m.why)} File: <code>${esc(o.path)}</code></p><div class="cpv-acts">${acts}</div
|
|
79
|
-
|
|
83
|
+
const top = `<div class="cpv-bar ${m.tone}">${ICON(kind)}<div><b>${esc(m.head)}</b><small>${esc(m.meta)}</small></div><span class="chp ${m.tone}"><i></i>${esc(m.syncing ? 'Updating' : m.chip)}</span></div>`
|
|
84
|
+
+ `<p class="note cpv-why">${esc(m.syncing ? 'A session is writing the copy\'s text into the PMOS file.' : m.why)} File: <code>${esc(o.path)}</code></p><div class="cpv-acts">${acts}</div>`;
|
|
85
|
+
return m.text == null ? `<div class="cpv">${top}<p class="note">The PMOS file could not be read.</p></div>` : page(m.text, m.dim, { key: id, title: o.title || m.title, tool: m.tool, top });
|
|
80
86
|
}
|
|
81
87
|
const r = S.read || { state: 'loading' }, where = o.where ? ' · ' + esc(o.where) : '';
|
|
82
88
|
if (r.state === 'loading') return `<div class="cpv"><p class="note">Reading what PMOS holds for this page.</p></div>`;
|
|
83
89
|
if (r.state === 'read') {
|
|
84
|
-
|
|
90
|
+
const top = `<div class="cpv-bar">${ICON(kind)}<div><b>Read ${esc(r.at)} by ${esc(r.by)}</b><small>${esc(tool)}${r.revision ? ' · revision ' + esc(r.revision) : ''} · view only${where}</small></div><span class="chp"><i></i>Read</span></div>`
|
|
85
91
|
+ `<p class="note cpv-why">This is the text as it was when it was read. Edits made in ${esc(tool)} after that show after you read it again.</p>`
|
|
86
|
-
+ `<div class="cpv-acts"><button type="button" class="dmcta alt" data-cp="read"${S.busy ? ' disabled' : ''}>Read again</button>${ext(o.url, tool)}</div
|
|
92
|
+
+ `<div class="cpv-acts"><button type="button" class="dmcta alt" data-cp="read"${S.busy ? ' disabled' : ''}>Read again</button>${ext(o.url, tool)}</div>`;
|
|
93
|
+
return page(r.text, false, { key: id, title: r.title || o.title || tool, tool, top });
|
|
87
94
|
}
|
|
88
95
|
const head = `<div class="cpv-bar">${ICON(kind)}<div><b>${t}</b><small>${esc(tool)}${where}</small></div><span class="chp"><i></i>${r.state === 'reading' ? 'Reading' : 'Link only'}</span></div>`;
|
|
89
96
|
if (r.state === 'reading') return `<div class="cpv">${head}<p class="note">A session is reading the page with your ${esc(tool)} connector${r.since ? ' (started ' + esc(r.since) + ')' : ''}. The text shows here when it is done.</p><div class="cpv-acts">${ext(o.url, tool)}</div></div>`;
|
|
@@ -16,8 +16,15 @@
|
|
|
16
16
|
.cpv-acts .dmcta{border-radius:var(--radius-sm);text-decoration:none}
|
|
17
17
|
.cpv-page{padding:18px 22px;border:1px solid var(--hair);border-radius:8px;background:var(--card-solid)}
|
|
18
18
|
.cpv-page.dim{opacity:.62}
|
|
19
|
+
/* The text in the Reading layout (reading-layouts, A334): no card of its own; the status and buttons sit in the reading column, and a dimmed
|
|
20
|
+
PMOS version dims the words only. */
|
|
21
|
+
.cpv-page.cpv-rd{padding:0;border:0;background:none}
|
|
22
|
+
.cpv-page.cpv-rd.dim{opacity:1}
|
|
23
|
+
.cpv-page.cpv-rd.dim .rd-hd,.cpv-page.cpv-rd.dim .rd-doc{opacity:.62}
|
|
24
|
+
.cpv-rd .cpv{max-width:none}
|
|
19
25
|
@media (max-width:700px){
|
|
20
26
|
.cpv-bar{flex-wrap:wrap}
|
|
21
27
|
.cpv-acts .dmcta{min-height:44px}
|
|
22
28
|
.cpv-page{padding:14px}
|
|
29
|
+
.cpv-page.cpv-rd{padding:0}
|
|
23
30
|
}
|
|
@@ -318,8 +318,20 @@ iframe.vwprint{position:fixed;right:0;bottom:0;width:1px;height:1px;border:0;opa
|
|
|
318
318
|
.rd-cm p{margin:0}
|
|
319
319
|
.rd-q{color:var(--muted)}
|
|
320
320
|
@media (max-width: 720px){ .rd-sb{padding-left:0} .rd-short{padding:var(--space-12) var(--space-16)} }
|
|
321
|
+
/* A reader in a panel follows its own width, not the window's: the host (.pm-reads) is the container. Contents goes under 900 px, the margin
|
|
322
|
+
under 640 px. The window rules of pm-layout-reading (komorebi.css) still hold. */
|
|
323
|
+
.pm-reads{container:reading/inline-size}
|
|
324
|
+
@container reading (max-width: 900px){
|
|
325
|
+
.pm-ds .pm-layout-reading.rd{grid-template:"head head" auto "main margin" 1fr/minmax(0,var(--doc-measure)) var(--width-margin)}
|
|
326
|
+
.pm-ds .pm-layout-reading.rd:not(:has(>.pm-margin)){grid-template:"head" auto "main" 1fr/minmax(0,var(--doc-measure))}
|
|
327
|
+
.pm-ds .pm-layout-reading.rd>.pm-contents{display:none}
|
|
328
|
+
}
|
|
329
|
+
@container reading (max-width: 640px){
|
|
330
|
+
.pm-ds .pm-layout-reading.rd>.pm-margin{display:none}
|
|
331
|
+
.pm-ds .pm-layout-reading.rd,.pm-ds .pm-layout-reading.rd:not(:has(>.pm-margin)){grid-template:"head" auto "main" 1fr/minmax(0,1fr)}
|
|
332
|
+
}
|
|
321
333
|
/* A page with no Contents (one section or none) gives its column back: the column stays at the reading measure, centred. */
|
|
322
|
-
@
|
|
334
|
+
@container reading (min-width: 901px){
|
|
323
335
|
.pm-ds .pm-layout-reading.rd:not(:has(>.pm-contents)){grid-template:"head head" auto "main margin" 1fr/minmax(0,var(--doc-measure)) var(--width-margin)}
|
|
324
336
|
.pm-ds .pm-layout-reading.rd:not(:has(>.pm-contents)):not(:has(>.pm-margin)){grid-template:"head" auto "main" 1fr/minmax(0,var(--doc-measure))}
|
|
325
337
|
}
|
|
@@ -327,7 +327,7 @@ function makePage(d, ctx) {
|
|
|
327
327
|
if (!el || !el.isConnected) return;
|
|
328
328
|
const keepScroll = el.scrollTop;
|
|
329
329
|
const reading = P.mode === 'read' && !ctx.host && P.text != null && !P.err && !openProp();
|
|
330
|
-
el.innerHTML = `<div class="vwdoc${reading ? ' rdw' : ''}">${pageHtml()}</div>`;
|
|
330
|
+
el.innerHTML = `<div class="vwdoc${reading ? ' rdw pm-reads' : ''}">${pageHtml()}</div>`;
|
|
331
331
|
el.scrollTop = keepScroll;
|
|
332
332
|
if (reading) wireReading(el, el, d.path); else if (P.mode === 'read') tocOf();
|
|
333
333
|
if (P.mode === 'edit') startEdit();
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* A share icon beside it opens the share popover (premium-vw-share.js: Send a copy on a phone, a public link with a password and an end date, open links).
|
|
9
9
|
* openChatFile(path, { session, ws }) -> the tab's pane */
|
|
10
10
|
import { vwOpen, vwStyle } from './premium-viewer.js';
|
|
11
|
-
import {
|
|
11
|
+
import { pageHead, readMinutes } from './premium-vw-doc-model.js';
|
|
12
12
|
import { needsReader, drawPdf } from './premium-vw-pdf.js';
|
|
13
13
|
import { readingPageHtml, wireReading } from './reading-view.js'; // a markdown file reads in the Reading layout (reading-layouts)
|
|
14
14
|
|
|
@@ -61,14 +61,26 @@ export function pageSrc(f, print = false) {
|
|
|
61
61
|
if (isHtml(f)) return framedSrc(String(f.text || '') + go);
|
|
62
62
|
const title = f.kind === 'markdown' ? pageHead(f.text).title || f.name : f.name;
|
|
63
63
|
let body;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
// a plain document: the browser's own
|
|
69
|
-
const css = ':root{color-scheme:light}body{font:16px/1.6 -apple-system,"Segoe UI",system-ui,sans-serif;max-width:
|
|
64
|
+
// A markdown file is drawn in the Reading layout (reading-layouts, A334): the title, In short, a section per heading that folds, and
|
|
65
|
+
// Contents at the left on a wide screen. A shared link and a printed page are the same page: no comments, no chat, nothing that runs.
|
|
66
|
+
if (f.kind === 'markdown') body = readingPageHtml(f.text, { title: pageHead(f.text).title || f.name });
|
|
67
|
+
else body = `<h1>${esc(title)}</h1><pre>${esc(f.text)}</pre>`;
|
|
68
|
+
// a plain document: the browser's own colours, black on white, no app colours (the frame cannot load the app's stylesheets)
|
|
69
|
+
const css = ':root{color-scheme:light}body{font:16px/1.6 -apple-system,"Segoe UI",system-ui,sans-serif;max-width:1000px;margin:32px auto;padding:0 24px}'
|
|
70
70
|
+ 'table{border-collapse:collapse;width:100%}th,td{border:1px solid;padding:5px 9px;text-align:left;vertical-align:top}'
|
|
71
|
-
+ 'pre,code{font:14px ui-monospace,Menlo,monospace;white-space:pre-wrap}img{max-width:100%}@page{margin:18mm}'
|
|
71
|
+
+ 'pre,code{font:14px ui-monospace,Menlo,monospace;white-space:pre-wrap}img{max-width:100%}@page{margin:18mm}'
|
|
72
|
+
+ '.pm-layout-reading{display:grid;grid-template-columns:180px minmax(0,640px);gap:24px 40px;justify-content:center;align-items:start}'
|
|
73
|
+
+ '.pm-layout-reading:not(:has(>.pm-contents)){grid-template-columns:minmax(0,640px)}'
|
|
74
|
+
+ '.pm-contents{position:sticky;top:24px;display:flex;flex-direction:column;gap:6px;line-height:1.4}'
|
|
75
|
+
+ '.pm-contents a{color:inherit;opacity:.7;text-decoration:none}.pm-contents a:hover{opacity:1}'
|
|
76
|
+
+ '.rd-lab{margin:0 0 4px;letter-spacing:.06em;text-transform:uppercase;opacity:.65}'
|
|
77
|
+
+ '.rd-t{margin:0 0 16px;line-height:1.2}.rd-hd{margin:0 0 8px}'
|
|
78
|
+
+ '.rd-short{margin:0 0 16px;padding:16px 24px;border-radius:12px;background:rgba(0,0,0,.05)}.rd-short p:last-child{margin-bottom:0}'
|
|
79
|
+
+ '.rd-sec{border-bottom:1px solid rgba(0,0,0,.12)}.rd-sec>summary{display:flex;align-items:center;gap:8px;padding:12px 0;cursor:pointer;list-style:none}'
|
|
80
|
+
+ '.rd-sec>summary::-webkit-details-marker{display:none}.rd-sec>summary::before{content:"\\203A";width:16px;opacity:.6}'
|
|
81
|
+
+ '.rd-sec[open]>summary::before{transform:rotate(90deg)}.rd-sec>summary h2{margin:0}.rd-sb{padding:0 0 16px 24px}'
|
|
82
|
+
+ '@media (max-width:900px){.pm-layout-reading{grid-template-columns:minmax(0,1fr)}.pm-contents{display:none}.rd-sb{padding-left:0}}'
|
|
83
|
+
+ '@media print{.pm-layout-reading{display:block}.pm-contents{display:none}.rd-sec>summary::before{content:none}.rd-sb{padding-left:0}}';
|
|
72
84
|
return framedSrc(`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>${esc(String(title || 'Document').replace(/\.[A-Za-z0-9]+$/, ''))}</title><style>${css}</style></head><body>${body}${go}</body></html>`);
|
|
73
85
|
}
|
|
74
86
|
/** The page a PDF is printed from, as the srcdoc of a sandboxed frame. Pure. */
|
|
@@ -111,7 +123,7 @@ export function fileHtml(f, view = 'page') {
|
|
|
111
123
|
if (f.kind === 'markdown') {
|
|
112
124
|
// the Reading layout (reading-layouts, A334): a text file reads like every document; Download and Share sit in the head row
|
|
113
125
|
const h = pageHead(f.text);
|
|
114
|
-
return `<div class="vwdoc rdw">` + readingPageHtml(f.text, {
|
|
126
|
+
return `<div class="vwdoc rdw pm-reads">` + readingPageHtml(f.text, {
|
|
115
127
|
path: 'file:' + (f.abs || f.rel || f.path), title: h.title || f.name, head: `<span class="gap"></span>${actsHtml(f)}`,
|
|
116
128
|
meta: () => `<p class="rd-meta cfby">Read-only · ${readMinutes(f.text)} min read</p>`,
|
|
117
129
|
extraHead: h.labels.length ? `<div class="cflb">${h.labels.map((l) => `<span>${esc(l)}</span>`).join('')}</div>` : '',
|
|
@@ -39,11 +39,12 @@
|
|
|
39
39
|
.gd-railon .gd-rail{display:flex;position:absolute;z-index:3;top:64px;left:0;right:0;width:auto;max-height:70vh;padding:var(--space-12);border:1px solid var(--hair);border-radius:14px;background:var(--card-solid);box-shadow:var(--card-shadow)}
|
|
40
40
|
}
|
|
41
41
|
/* The Reading layout (reading-layouts, A334): the page reads like every document; the page rail opens over it from the list icon at every
|
|
42
|
-
width, and the section chips stand in for Contents where Contents is hidden (under 1100 px). */
|
|
42
|
+
width, and the section chips stand in for Contents where Contents is hidden (the reader under 900 px, or the window under 1100 px). */
|
|
43
43
|
.gd-railable{display:block}
|
|
44
44
|
.gd-railable .gd-tog{display:flex}
|
|
45
45
|
.gd-railable>.gd-rail{display:none}
|
|
46
46
|
.gd-railable.gd-railon>.gd-rail{display:flex;position:absolute;z-index:3;top:var(--space-48);left:0;width:var(--width-margin);max-height:70vh;padding:var(--space-12);border:1px solid var(--line);border-radius:var(--radius-card);background:var(--card);box-shadow:var(--lift)}
|
|
47
47
|
.gd .gd-secs{display:none}
|
|
48
48
|
@media (max-width: 1100px){ .gd .gd-secs{display:flex} }
|
|
49
|
+
@container reading (max-width: 900px){ .gd .gd-secs{display:flex} }
|
|
49
50
|
@media (max-width: 720px){ .gd-railable.gd-railon>.gd-rail{right:0;width:auto} }
|
|
@@ -67,7 +67,7 @@ export function guideHtml(name, text, groups = TOC, folded = []) {
|
|
|
67
67
|
const more = R.contents.length > CHIPS ? `<button type="button" class="gd-chip gd-more" data-gd-more>${R.contents.length - CHIPS} more</button>` : '';
|
|
68
68
|
const chips = R.contents.length > 1 ? `<div class="gd-secs" role="group" aria-label="On this page">${R.contents.map(chip).join('')}${more}</div>` : '';
|
|
69
69
|
const home = name === 'index' ? '' : '<span class="gap"></span><a href="#guide:index">Start here</a>';
|
|
70
|
-
return `<div class="vwdoc gd rdw"><div class="gd-wrap gd-railable">${railHtml(name, groups || [], folded)}`
|
|
70
|
+
return `<div class="vwdoc gd rdw pm-reads"><div class="gd-wrap gd-railable">${railHtml(name, groups || [], folded)}`
|
|
71
71
|
+ readingPageHtml(t, {
|
|
72
72
|
path: 'guide:' + name, title: h.title || name, empty: 'This page has no text yet.',
|
|
73
73
|
head: `<div class="vwacts gd-tog"><button type="button" class="vwib" data-gd-toc aria-label="Guide pages" title="Guide pages" aria-expanded="false">${TOC_ICON}</button></div><span class="gap"></span>`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* premium-vw-notepad.css — Notes in the premium viewer (premium-notes.js; initiative premium-chat-attach N1-N7). Loaded once by vwStyle('notepad').
|
|
2
2
|
* Sizes are the console's six steps only (var(--fs-1..6)), weights 400/500/600, the page's own tokens otherwise. Checked by premium-console-type.test.js. */
|
|
3
3
|
.p-out>.obody.vw:not([hidden]):has(>.ntpad){flex:1;min-height:0;display:flex!important;flex-direction:column} /* the notepad fills the pane: the note scrolls, its foot stays */
|
|
4
|
-
.ntpad{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;max-width:
|
|
4
|
+
.ntpad{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;max-width:var(--doc-measure,640px);margin:0 auto;position:relative} /* the Reading column (reading-layouts, A334): a note is typed into, so it takes the reading measure but no folds or Contents */
|
|
5
5
|
.nth{display:flex;align-items:center;gap:var(--space-8);padding:2px 0 10px;border-bottom:1px solid var(--hair)}
|
|
6
6
|
.nth .gap{flex:1}
|
|
7
7
|
.ntsw{display:inline-flex;align-items:center;gap:var(--space-4);min-width:0;max-width:60%;min-height:34px;padding:0 6px;margin-left:-6px;border:0;border-radius:var(--radius-sm);background:none;color:var(--ink);font:var(--fw-strong) var(--fs-row)/var(--lh-row) var(--sans);cursor:pointer}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<body class="cz bd-page pm-ds">
|
|
36
36
|
<!-- The Board has no dialog, dock, toast or hero of the old shell: pm/premium-shell.js binds to a detached copy when #dlg is absent. Its panels
|
|
37
37
|
are the side panel below (initiative premium-agreed-design). -->
|
|
38
|
-
<main class="stage cz-panel bd-main" id="stage">
|
|
38
|
+
<main class="stage cz-panel bd-main pm-layout-open" id="stage">
|
|
39
39
|
<h1 class="vh">Work</h1>
|
|
40
40
|
<!-- the toolbar: seven controls (UI grill U2, 8 Nov), the same on a phone and a desktop: the product picker, the View chip (the four views; in
|
|
41
41
|
it the span and the Columns of the timeline, and Shared with me), the pill of what needs a look with its (i) (the legend, the sprints and
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
(group heads, folds, the meaning passages). The open item: a Detail block (pm-field). The chips and their menus are the shared picker
|
|
26
26
|
(pm/cozy-pick.css), the same as the product, program and project chip. -->
|
|
27
27
|
<body class="cz pm-ds lb-page">
|
|
28
|
-
<main class="stage cz-panel lb" id="stage">
|
|
28
|
+
<main class="stage cz-panel lb pm-layout-open" id="stage">
|
|
29
29
|
<h1 class="vh">Library</h1>
|
|
30
30
|
<div class="lb-bar">
|
|
31
31
|
<nav class="pm-path" aria-label="Path"><b>Library</b></nav>
|