create-pmos 0.834.0 → 0.835.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 +43 -32
- 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 +42 -12
- package/workspace/guide/layout.md +1 -1
- package/workspace/guide/programs.md +1 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-popup.css +1 -1
- package/workspace/public/pm/cozy-popup.js +7 -5
- package/workspace/public/pm/pop-split.js +17 -0
- package/workspace/public/pm/readonly.js +2 -0
- package/workspace/test-lists/pop-split.json +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.835.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,45 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.835.0",
|
|
38
|
+
"at": "2026-11-25T15:25:47.605Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 2043,
|
|
43
|
+
"t": "Drag the split between the work and the chat, remembered (job #2019)",
|
|
44
|
+
"s": "Drag the split between the work and the chat, remembered (job #2019)",
|
|
45
|
+
"k": "new",
|
|
46
|
+
"h": "Drag the split between the work and the chat, remembered (job #2019)",
|
|
47
|
+
"try": {
|
|
48
|
+
"steps": [
|
|
49
|
+
"From Work, open an initiative",
|
|
50
|
+
"Show the chat with the round chat button at the top right of the popup, then drag the handle between the work and the chat",
|
|
51
|
+
"Close and open the initiative again: the split stays; double-click the handle to put it back"
|
|
52
|
+
],
|
|
53
|
+
"see": "The handle moves the split, the work never gets narrower than 640 px and the chat never narrower than 320 px, the split comes back the same next time, and a double-click returns it to the default",
|
|
54
|
+
"open": "/premium-board.html"
|
|
55
|
+
},
|
|
56
|
+
"i": "tb-chat-split-handle"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"n": 2040,
|
|
60
|
+
"t": "Work's Print or PDF is a view control on the read-only copy",
|
|
61
|
+
"s": "Work's Print or PDF is a view control on the read-only copy",
|
|
62
|
+
"k": "fix",
|
|
63
|
+
"h": "Work's Print or PDF is a view control on the read-only copy",
|
|
64
|
+
"try": {
|
|
65
|
+
"steps": [
|
|
66
|
+
"Open a shared read-only copy of Work and press the print icon beside Choose columns"
|
|
67
|
+
],
|
|
68
|
+
"see": "The roadmap prints as a clean page, and the read-only copy still shows no write control",
|
|
69
|
+
"open": "/premium-board.html"
|
|
70
|
+
},
|
|
71
|
+
"i": "print-pdf"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
36
75
|
{
|
|
37
76
|
"v": "0.834.0",
|
|
38
77
|
"at": "2026-11-25T15:04:32.499Z",
|
|
@@ -43,6 +82,7 @@
|
|
|
43
82
|
"t": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
44
83
|
"s": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
45
84
|
"k": "new",
|
|
85
|
+
"i": "story-map",
|
|
46
86
|
"h": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
47
87
|
"try": {
|
|
48
88
|
"steps": [
|
|
@@ -52,24 +92,14 @@
|
|
|
52
92
|
],
|
|
53
93
|
"see": "Steps of the user's journey run left to right with tasks under each. The dashed line marks Release 1, and its count follows each move. After Keep, the tasks show in the initiative's Work breakdown,…",
|
|
54
94
|
"open": "/premium-board.html"
|
|
55
|
-
}
|
|
56
|
-
"i": "story-map"
|
|
95
|
+
}
|
|
57
96
|
},
|
|
58
97
|
{
|
|
59
98
|
"n": 2034,
|
|
60
99
|
"t": "Drag a task bar, an end or a milestone on the Gantt to change its dates, with Undo (job #2014)",
|
|
61
100
|
"s": "Drag a task bar, an end or a milestone on the Gantt to change its dates, with Undo (job #2014)",
|
|
62
101
|
"k": "new",
|
|
63
|
-
"i": "timeline-bar-drag"
|
|
64
|
-
"try": {
|
|
65
|
-
"steps": [
|
|
66
|
-
"Open Work, open an initiative and choose Gantt under ⋯; point at a task bar: grips show at both ends",
|
|
67
|
-
"Drag its right end two days later and read the tip, then let go",
|
|
68
|
-
"Press Undo in the toast"
|
|
69
|
-
],
|
|
70
|
-
"see": "Dragging the right end moves only the due day, the tip names the new dates, the toast says Dates saved with Undo, and Undo puts the old due day back",
|
|
71
|
-
"open": "/premium-board.html"
|
|
72
|
-
}
|
|
102
|
+
"i": "timeline-bar-drag"
|
|
73
103
|
}
|
|
74
104
|
]
|
|
75
105
|
},
|
|
@@ -974,25 +1004,6 @@
|
|
|
974
1004
|
"k": "new"
|
|
975
1005
|
}
|
|
976
1006
|
]
|
|
977
|
-
},
|
|
978
|
-
{
|
|
979
|
-
"v": "0.806.0",
|
|
980
|
-
"at": "2026-11-25T05:20:35.133Z",
|
|
981
|
-
"f": 4,
|
|
982
|
-
"prs": [
|
|
983
|
-
{
|
|
984
|
-
"n": 1846,
|
|
985
|
-
"t": "No merge without a done test, and the Checker hands back the missing assert (A531, A532)",
|
|
986
|
-
"s": "No merge without a done test, and the Checker hands back the missing assert (A531, A532)",
|
|
987
|
-
"k": "new"
|
|
988
|
-
},
|
|
989
|
-
{
|
|
990
|
-
"n": 1847,
|
|
991
|
-
"t": "Steering pack — one page per program, decisions marked into the journal (job #1842, A108)",
|
|
992
|
-
"s": "Steering pack — one page per program, decisions marked into the journal (job #1842, A108)",
|
|
993
|
-
"k": "new"
|
|
994
|
-
}
|
|
995
|
-
]
|
|
996
1007
|
}
|
|
997
1008
|
]
|
|
998
1009
|
}
|
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-25T15:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T15:25:43Z"}
|
|
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-25T15:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T15:25:43Z"}
|
|
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-25T15:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-25T15:25:43Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,43 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.835.0",
|
|
4
|
+
"at": "2026-11-25T15:25:47.605Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 2043,
|
|
9
|
+
"t": "Drag the split between the work and the chat, remembered (job #2019)",
|
|
10
|
+
"s": "Drag the split between the work and the chat, remembered (job #2019)",
|
|
11
|
+
"k": "new",
|
|
12
|
+
"h": "Drag the split between the work and the chat, remembered (job #2019)",
|
|
13
|
+
"try": {
|
|
14
|
+
"steps": [
|
|
15
|
+
"From Work, open an initiative",
|
|
16
|
+
"Show the chat with the round chat button at the top right of the popup, then drag the handle between the work and the chat",
|
|
17
|
+
"Close and open the initiative again: the split stays; double-click the handle to put it back"
|
|
18
|
+
],
|
|
19
|
+
"see": "The handle moves the split, the work never gets narrower than 640 px and the chat never narrower than 320 px, the split comes back the same next time, and a double-click returns it to the default",
|
|
20
|
+
"open": "/premium-board.html"
|
|
21
|
+
},
|
|
22
|
+
"i": "tb-chat-split-handle"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"n": 2040,
|
|
26
|
+
"t": "Work's Print or PDF is a view control on the read-only copy",
|
|
27
|
+
"s": "Work's Print or PDF is a view control on the read-only copy",
|
|
28
|
+
"k": "fix",
|
|
29
|
+
"h": "Work's Print or PDF is a view control on the read-only copy",
|
|
30
|
+
"try": {
|
|
31
|
+
"steps": [
|
|
32
|
+
"Open a shared read-only copy of Work and press the print icon beside Choose columns"
|
|
33
|
+
],
|
|
34
|
+
"see": "The roadmap prints as a clean page, and the read-only copy still shows no write control",
|
|
35
|
+
"open": "/premium-board.html"
|
|
36
|
+
},
|
|
37
|
+
"i": "print-pdf"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
2
41
|
{
|
|
3
42
|
"v": "0.834.0",
|
|
4
43
|
"at": "2026-11-25T15:04:32.499Z",
|
|
@@ -9,6 +48,7 @@
|
|
|
9
48
|
"t": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
10
49
|
"s": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
11
50
|
"k": "new",
|
|
51
|
+
"i": "story-map",
|
|
12
52
|
"h": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
13
53
|
"try": {
|
|
14
54
|
"steps": [
|
|
@@ -18,24 +58,14 @@
|
|
|
18
58
|
],
|
|
19
59
|
"see": "Steps of the user's journey run left to right with tasks under each. The dashed line marks Release 1, and its count follows each move. After Keep, the tasks show in the initiative's Work breakdown,…",
|
|
20
60
|
"open": "/premium-board.html"
|
|
21
|
-
}
|
|
22
|
-
"i": "story-map"
|
|
61
|
+
}
|
|
23
62
|
},
|
|
24
63
|
{
|
|
25
64
|
"n": 2034,
|
|
26
65
|
"t": "Drag a task bar, an end or a milestone on the Gantt to change its dates, with Undo (job #2014)",
|
|
27
66
|
"s": "Drag a task bar, an end or a milestone on the Gantt to change its dates, with Undo (job #2014)",
|
|
28
67
|
"k": "new",
|
|
29
|
-
"i": "timeline-bar-drag"
|
|
30
|
-
"try": {
|
|
31
|
-
"steps": [
|
|
32
|
-
"Open Work, open an initiative and choose Gantt under ⋯; point at a task bar: grips show at both ends",
|
|
33
|
-
"Drag its right end two days later and read the tip, then let go",
|
|
34
|
-
"Press Undo in the toast"
|
|
35
|
-
],
|
|
36
|
-
"see": "Dragging the right end moves only the due day, the tip names the new dates, the toast says Dates saved with Undo, and Undo puts the old due day back",
|
|
37
|
-
"open": "/premium-board.html"
|
|
38
|
-
}
|
|
68
|
+
"i": "timeline-bar-drag"
|
|
39
69
|
}
|
|
40
70
|
]
|
|
41
71
|
},
|
|
@@ -172,7 +172,7 @@ Every task opens in the same task detail, from every place: Work and its Backlog
|
|
|
172
172
|
|
|
173
173
|
On a computer, an initiative you open from Today, Work or Intelligence opens in one popup over the page. The work is on the left and the chat about the same work is on the right. A thin dimmed edge of the page shows around it. Escape, × or a press on the edge closes it.
|
|
174
174
|
|
|
175
|
-
- Drag the
|
|
175
|
+
- Drag the handle between the two sides to change their widths. The work keeps at least 640 px and the chat at least 320 px. PMOS keeps the split on this computer; double-click the handle (or press Home on it) to put it back.
|
|
176
176
|
- The hide icon in the chat's top bar hides the chat, and the work takes the full width. **Ask PMOS** brings the chat back.
|
|
177
177
|
- While the chat shows, the work's side column folds into one-line rows on top: on an initiative, **Where it stands**, **The case** and **Details** each show their name and first line. Press a row to open it. Nothing is hidden, and when you hide the chat the parts go back side by side. A page's side column follows the same rule.
|
|
178
178
|
- When you open one thing from another inside the popup, the path and ← show at the top of the work.
|
|
@@ -202,7 +202,7 @@ The tab is not in the read-only Work. A reader sees no Shared tab.
|
|
|
202
202
|
|
|
203
203
|
**On a computer, a copy published from this version draws Work, one view:** Initiative, Stage, Next milestone, Date and the bar. The top line shows the board's name, a **Read-only copy** pill, "Shared by" with the first name of the person who shared it, the date of the copy and when the link ends. Then come find, tune, **Get PMOS** and **Open in my PMOS**.
|
|
204
204
|
|
|
205
|
-
- A reader can sort, change the span, hide the timeline, fold a group, open the closed rows, search, and use the tune panel (Filter and Sort only, for this visit only). Press a bar to see its stage card.
|
|
205
|
+
- A reader can sort, change the span, hide the timeline, fold a group, open the closed rows, search, and use the tune panel (Filter and Sort only, for this visit only). Press a bar to see its stage card. The print icon beside tune prints the list as one clean page or saves it as a PDF. It changes nothing.
|
|
206
206
|
- Press a row to open the popup, read-only: Overview (Details shows only the facts the copy holds), Work breakdown, and Artefacts by name, kind and version. There is no chat, no ✦ proposal, no ✓ ✕, no menu and no Undo.
|
|
207
207
|
- People show by first name only. An agent shows as PMOS.
|
|
208
208
|
- A copy holds only the keys on a written list (`lib/board-pack-keys.json`). It never holds emails, paths, web addresses, other products' names, PMOS's working state (asks, proposals, who set a stage, tickets, averages) or the computer's account name. In a task's name, another project's ticket key reads "a ticket".
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.835.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.835.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
background: var(--cz-card); box-shadow: 0 40px 100px -30px rgba(20, 24, 32, .6), 0 0 0 1px var(--cz-hair); }
|
|
7
7
|
.cz-pop-card:focus { outline: none; }
|
|
8
8
|
/* the left side: the page's Viewer, lifted in (cozy-viewer.js popInst) */
|
|
9
|
-
.cz-pop-l { flex: 1 1 auto; min-width:
|
|
9
|
+
.cz-pop-l { flex: 1 1 auto; min-width: 640px; display: flex; min-height: 0; }
|
|
10
10
|
.cz-pop .cz-vw.cz-vw-pop { position: static !important; flex: 1 1 auto !important; width: auto !important; max-width: none !important; height: auto !important;
|
|
11
11
|
margin: 0 !important; transform: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
|
|
12
12
|
.cz-pop .cz-vw.cz-vw-pop > .cz-vw-grip { display: none; }
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* One way to open work: a popup that covers almost the whole page, with a thin dimmed edge of the page around it. The thing is on the left, in
|
|
5
5
|
* the page's own Viewer (cozy-viewer.js lifts #czViewer into the popup, so every page's selectors still find it). Ask PMOS is on the right,
|
|
6
6
|
* already about that thing. Esc, × or a press on the edge closes it. The phone keeps today's layout (cozy-viewer.js never pops on a phone).
|
|
7
|
-
* The grip between the two sides resizes them: each side keeps a smallest width (the work
|
|
7
|
+
* The grip between the two sides resizes them: each side keeps a smallest width (the work 640 px, the chat 320 px; pop-split.js), and PMOS remembers the
|
|
8
8
|
* chat's width (localStorage 'cz-pop-chat'). Double-click or Home resets it; ← and → move it 24 px. The chat's top bar hides the chat, and the
|
|
9
9
|
* work takes the full width; "Ask PMOS" at the top right brings it back.
|
|
10
10
|
* Ask PMOS is hidden by default (popup round 3 point 11): the thing takes the whole popup. The chat shows by itself only when it was open on
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
* openChat() the chat icon. openCos(target) the chief-of-staff chat (search's "Ask PMOS: …"). chatTo(target) changes the chat.
|
|
29
29
|
* Reads GET /api/sessions while it shows (every 6 s). Writes only on a press: End (after its Undo moment). The look is cozy-popup.css. */
|
|
30
30
|
import * as VW from './cozy-viewer.js';
|
|
31
|
+
import { MIN_WORK, MIN_CHAT, DEF_CHAT, chatWidth, remembered } from './pop-split.js';
|
|
32
|
+
import { noteUse as noteSplit } from './use-log.js'; // tb-chat-split-handle (job 2019): the work keeps 640 px, the chat 320 px
|
|
31
33
|
import { pmGet, pmPost } from './http.js';
|
|
32
34
|
import { sessionRows, pickSession, recent, nextKey } from './pop-sessions.js';
|
|
33
35
|
|
|
@@ -40,7 +42,7 @@ const I = {
|
|
|
40
42
|
side: 'M3.5 5h17v14h-17zM12 5v14', more: 'M5 12h.01M12 12h.01M19 12h.01', pen: 'M4 20h4L19 9l-4-4L4 16zM13.5 6.5l4 4',
|
|
41
43
|
};
|
|
42
44
|
const CLAUDE = { key: 'claude', name: 'PMOS', initial: 'P' };
|
|
43
|
-
const
|
|
45
|
+
const DAY_MS = 864e5, POLL = 6000, UNDO = 6000, CHOOSER = 5;
|
|
44
46
|
const store = {
|
|
45
47
|
get(k) { try { return localStorage.getItem(k); } catch { return null; } },
|
|
46
48
|
set(k, v) { try { if (v == null) localStorage.removeItem(k); else localStorage.setItem(k, String(v)); } catch { /* a private window */ } },
|
|
@@ -108,7 +110,7 @@ function frame() {
|
|
|
108
110
|
function width(px) {
|
|
109
111
|
if (!S.card) return;
|
|
110
112
|
const room = innerWidth - 40; // the card's inset is 20 px a side (cozy-popup.css), so its width is known before its sheet has loaded
|
|
111
|
-
const w =
|
|
113
|
+
const w = chatWidth(px, room);
|
|
112
114
|
S.w = w; S.card.style.setProperty('--pop-chat', w + 'px');
|
|
113
115
|
const g = S.el.querySelector('.cz-pop-grip'); g.setAttribute('aria-valuenow', String(w)); g.setAttribute('aria-valuemin', String(MIN_CHAT)); g.setAttribute('aria-valuemax', String(Math.max(MIN_CHAT, room - MIN_WORK - 1)));
|
|
114
116
|
}
|
|
@@ -118,7 +120,7 @@ function grip(g) {
|
|
|
118
120
|
e.preventDefault(); g.setPointerCapture(e.pointerId); document.body.classList.add('cz-pop-drag');
|
|
119
121
|
const right = S.card.getBoundingClientRect().right;
|
|
120
122
|
const mv = (ev) => width(right - ev.clientX);
|
|
121
|
-
const up = () => { g.removeEventListener('pointermove', mv); g.removeEventListener('pointerup', up); g.removeEventListener('pointercancel', up); document.body.classList.remove('cz-pop-drag'); store.set('cz-pop-chat', S.w); };
|
|
123
|
+
const up = () => { g.removeEventListener('pointermove', mv); g.removeEventListener('pointerup', up); g.removeEventListener('pointercancel', up); document.body.classList.remove('cz-pop-drag'); store.set('cz-pop-chat', S.w); noteSplit('popSplit'); console.info('[pop-split] chat ' + S.w + ' px'); };
|
|
122
124
|
g.addEventListener('pointermove', mv); g.addEventListener('pointerup', up); g.addEventListener('pointercancel', up);
|
|
123
125
|
});
|
|
124
126
|
g.addEventListener('dblclick', () => { store.set('cz-pop-chat', null); width(DEF_CHAT); });
|
|
@@ -185,7 +187,7 @@ function show(pop) {
|
|
|
185
187
|
const p = pop && typeof pop === 'object' ? pop : {};
|
|
186
188
|
S.about = p.session ? (p.session.ini ? { id: p.session.ini, kind: 'initiative', title: p.session.work, ws: p.session.ws } : null) : p.id ? { id: p.id, kind: p.kind || 'initiative', title: p.title || '', ws: p.ws, ...(p.path ? { path: p.path } : {}) } : null;
|
|
187
189
|
S.base = S.about; S.views = new Map(); S.bind = S.base;
|
|
188
|
-
width(
|
|
190
|
+
width(remembered(store.get('cz-pop-chat')));
|
|
189
191
|
// the chat shows when it was asked for (the rail's chat icon, a session row, search's Ask PMOS), else when it was recently open on this item
|
|
190
192
|
S.userSet = false;
|
|
191
193
|
chatOn(!!(p.session || p.target || p.chat || !S.about || recentOn(S.about)));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* pm/pop-split.js — how the popup shares its width between the work and the chat (job #2019, tb-chat-split-handle; board TbChatOpen on
|
|
2
|
+
* Exploring 3, page balanced: "can resize to the comfortable width for both chat and the panel on the left").
|
|
3
|
+
*
|
|
4
|
+
* The grip between the two sides (cozy-popup.js) moves the split. The work keeps at least 640 px and the chat at least 320 px. PMOS remembers
|
|
5
|
+
* the chat's width on this computer (localStorage 'cz-pop-chat'); a double-click or Home resets it to 460 px.
|
|
6
|
+
* chatWidth(px, room) PURE → the chat's width for a wanted px in a popup room px wide (the room less the work's least width, never under
|
|
7
|
+
* the chat's least width: when the window is too narrow for both, the chat keeps its 320 px).
|
|
8
|
+
* remembered(v) PURE → the stored width as a number, or the default when nothing usable is stored. */
|
|
9
|
+
export const MIN_WORK = 640, MIN_CHAT = 320, DEF_CHAT = 460;
|
|
10
|
+
export function chatWidth(px, room) {
|
|
11
|
+
const want = Math.round(Number(px) || DEF_CHAT), most = Math.round(Number(room) || 0) - MIN_WORK - 1;
|
|
12
|
+
return Math.max(MIN_CHAT, Math.min(want, most));
|
|
13
|
+
}
|
|
14
|
+
export function remembered(v) {
|
|
15
|
+
const n = parseInt(String(v == null ? '' : v), 10);
|
|
16
|
+
return n > 0 ? n : DEF_CHAT;
|
|
17
|
+
}
|
|
@@ -39,6 +39,8 @@ export const VIEW_CONTROLS = [
|
|
|
39
39
|
// Choose columns (the copy's filter and sort), the timeline switch in it, the Next milestones line's +N marks
|
|
40
40
|
'[data-wkopen]', '[data-wknav]', '[data-wkmenu]', '.wk-menu [data-wktlsw]', '[data-wkdl="on"]', '[data-wkdl="back"]', '[data-wkdl="fit"]',
|
|
41
41
|
'#bdFind', '#roFind', '#bdFilter', '.wk-menu [data-wkf]', '.wk-menu [data-wkmore]', '.wk-menu [data-wksortp]', '.wk-menu [data-wksortx]', '.wk-menu [data-wkreset]',
|
|
42
|
+
// Print or PDF on Work's list (print-pdf, A379): it prints what the reader already sees and writes nothing
|
|
43
|
+
'[data-wkprint]',
|
|
42
44
|
// the popup of a row, read only (Part A 4): its close and its edge, Details, a stage's fold, the done and far folds
|
|
43
45
|
// its path and ← back to the page it came from (the design-system popup, #1432: "Work ›" and "Back to Work") only navigate
|
|
44
46
|
'.cz-pop [data-pop="close"]', '.cz-pop [data-cz-vw-path]', '.cz-pop [data-cz-vw="back"]', '.pw [data-pw-details]', '.pw [data-pw-fold]', '.pw [data-pw-more]', '.pw [data-pw-grip]', '.pw [data-pw-done]', '.pw [data-pw-far]', '.pw [data-pw-tl]', '.pw [data-pw-span]', '.hi-pop [data-sp]',
|