create-pmos 0.857.0 → 0.859.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 +38 -107
- package/payload/KIT-VERSION +2 -2
- 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/payload/state/log.md +1 -1
- package/workspace/changelog.json +37 -20
- package/workspace/guide/layout.md +3 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/bd-pop-ds.js +5 -2
- package/workspace/public/pm/bd-work-ds.css +11 -0
- package/workspace/public/pm/cozy-ev.css +7 -0
- package/workspace/public/pm/cozy-nav.js +3 -1
- package/workspace/public/pm/cozy-pop-work.js +1 -0
- package/workspace/public/pm/ini-detail.css +9 -2
- package/workspace/public/pm/ini-detail.js +2 -1
- package/workspace/public/pm/readonly.js +2 -0
- package/workspace/public/pm/ref-toggle.js +55 -0
- package/workspace/public/premium-board.html +3 -0
- package/workspace/test-lists/fold-by-default.json +9 -0
- package/workspace/test-lists/work-tabs-covered.json +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.859.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,41 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.859.0",
|
|
38
|
+
"at": "2026-11-26T00:00:04.789Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 2070,
|
|
43
|
+
"t": "Reference cards hidden behind one icon on Work and the initiative page",
|
|
44
|
+
"s": "Reference cards hidden behind one icon on Work and the initiative page",
|
|
45
|
+
"k": "new",
|
|
46
|
+
"i": "fold-by-default"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"v": "0.858.0",
|
|
52
|
+
"at": "2026-11-25T23:40:07.513Z",
|
|
53
|
+
"f": 4,
|
|
54
|
+
"prs": [
|
|
55
|
+
{
|
|
56
|
+
"n": 2068,
|
|
57
|
+
"t": "Huddle on an initiative, slice 1 (question, ideas, dots, Decision or Task)",
|
|
58
|
+
"s": "Huddle on an initiative, slice 1 (question, ideas, dots, Decision or Task)",
|
|
59
|
+
"k": "new",
|
|
60
|
+
"i": "huddle-brainstorm"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"n": 2069,
|
|
64
|
+
"t": "The product chips scroll instead of covering the Work tabs",
|
|
65
|
+
"s": "The product chips scroll instead of covering the Work tabs",
|
|
66
|
+
"k": "fix",
|
|
67
|
+
"i": "work-tabs-covered"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
36
71
|
{
|
|
37
72
|
"v": "0.857.0",
|
|
38
73
|
"at": "2026-11-25T23:14:27.545Z",
|
|
@@ -43,32 +78,14 @@
|
|
|
43
78
|
"t": "Today fills the width 2 : 1",
|
|
44
79
|
"s": "Today fills the width 2 : 1",
|
|
45
80
|
"k": "new",
|
|
46
|
-
"i": "today-balanced-width"
|
|
47
|
-
"try": {
|
|
48
|
-
"steps": [
|
|
49
|
-
"Open Today on a wide screen (1600 px or more)",
|
|
50
|
-
"See Your move and the log on the left two thirds and the agenda on the right third, with no empty right half",
|
|
51
|
-
"Make the window narrower than 1100 px and see one column"
|
|
52
|
-
],
|
|
53
|
-
"see": "Today fills the width 2 : 1 at any wide size. Nothing is cut. Work and the other pages are unchanged until their own release.",
|
|
54
|
-
"open": "/today.html"
|
|
55
|
-
}
|
|
81
|
+
"i": "today-balanced-width"
|
|
56
82
|
},
|
|
57
83
|
{
|
|
58
84
|
"n": 2068,
|
|
59
85
|
"t": "Huddle on an initiative, slice 1 (question, ideas, dots, Decision or Task)",
|
|
60
86
|
"s": "Huddle on an initiative, slice 1 (question, ideas, dots, Decision or Task)",
|
|
61
87
|
"k": "new",
|
|
62
|
-
"i": "huddle-brainstorm"
|
|
63
|
-
"try": {
|
|
64
|
-
"steps": [
|
|
65
|
-
"Open Work and open an initiative in Triage, Discover or Plan",
|
|
66
|
-
"Press ✓ on the ✦ row 'Huddle on it with the team?'",
|
|
67
|
-
"Type three ideas, put a dot on two"
|
|
68
|
-
],
|
|
69
|
-
"see": "The Huddle opens beside the item with the question and the facts PMOS found. Each typed idea is a card. Dots count on each card. Decision writes one line to the decision journal; Tasks adds a task…",
|
|
70
|
-
"open": "/premium-board.html"
|
|
71
|
-
}
|
|
88
|
+
"i": "huddle-brainstorm"
|
|
72
89
|
}
|
|
73
90
|
]
|
|
74
91
|
},
|
|
@@ -704,92 +721,6 @@
|
|
|
704
721
|
}
|
|
705
722
|
}
|
|
706
723
|
]
|
|
707
|
-
},
|
|
708
|
-
{
|
|
709
|
-
"v": "0.834.0",
|
|
710
|
-
"at": "2026-11-25T15:04:32.499Z",
|
|
711
|
-
"f": 4,
|
|
712
|
-
"prs": [
|
|
713
|
-
{
|
|
714
|
-
"n": 1954,
|
|
715
|
-
"t": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
716
|
-
"s": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
717
|
-
"k": "new",
|
|
718
|
-
"i": "story-map",
|
|
719
|
-
"h": "A new bet's story map with the Release 1 line (job #1892, A419)",
|
|
720
|
-
"try": {
|
|
721
|
-
"steps": [
|
|
722
|
-
"Open Work and open a new initiative that has no tasks yet",
|
|
723
|
-
"Under Story map press ✦ to let PMOS draft it, then ✓ to keep the draft",
|
|
724
|
-
"Press a task below the dashed line to move it into Release 1, then press ✓ Keep the map"
|
|
725
|
-
],
|
|
726
|
-
"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,…",
|
|
727
|
-
"open": "/premium-board.html"
|
|
728
|
-
}
|
|
729
|
-
},
|
|
730
|
-
{
|
|
731
|
-
"n": 2034,
|
|
732
|
-
"t": "Drag a task bar, an end or a milestone on the Gantt to change its dates, with Undo (job #2014)",
|
|
733
|
-
"s": "Drag a task bar, an end or a milestone on the Gantt to change its dates, with Undo (job #2014)",
|
|
734
|
-
"k": "new",
|
|
735
|
-
"i": "timeline-bar-drag"
|
|
736
|
-
}
|
|
737
|
-
]
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
"v": "0.833.0",
|
|
741
|
-
"at": "2026-11-25T14:46:14.436Z",
|
|
742
|
-
"f": 4,
|
|
743
|
-
"prs": [
|
|
744
|
-
{
|
|
745
|
-
"n": 2036,
|
|
746
|
-
"t": "A pressed task offers Rehearse a change too (Checker A1, job #1989)",
|
|
747
|
-
"s": "A pressed task offers Rehearse a change too (Checker A1, job #1989)",
|
|
748
|
-
"k": "fix",
|
|
749
|
-
"i": "surface-ask-card",
|
|
750
|
-
"h": "A pressed task offers Rehearse a change too (Checker A1, job #1989)",
|
|
751
|
-
"try": {
|
|
752
|
-
"steps": [
|
|
753
|
-
"Open Work",
|
|
754
|
-
"Open an initiative and right-click one of its tasks",
|
|
755
|
-
"On the Ask card, press Rehearse a change"
|
|
756
|
-
],
|
|
757
|
-
"see": "The Ask card's \"What PMOS can do\" line lists Why this work exists, Task descriptions and Rehearse a change. Rehearse a change asks /rehearse <task> in the card's chat.",
|
|
758
|
-
"open": "/premium-board.html"
|
|
759
|
-
}
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"n": 2029,
|
|
763
|
-
"t": "Each initiative on Work names its key result; Strategy and Positioning name their OKR period",
|
|
764
|
-
"s": "Each initiative on Work names its key result; Strategy and Positioning name their OKR period",
|
|
765
|
-
"k": "new",
|
|
766
|
-
"i": "tb-work-kr"
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
"n": 2021,
|
|
770
|
-
"t": "With the chat open, the side column folds into one-line rows (job #2017)",
|
|
771
|
-
"s": "With the chat open, the side column folds into one-line rows (job #2017)",
|
|
772
|
-
"k": "new",
|
|
773
|
-
"i": "tb-chat-open-fold",
|
|
774
|
-
"h": "With the chat open, the side column folds into one-line rows (job #2017)",
|
|
775
|
-
"try": {
|
|
776
|
-
"steps": [
|
|
777
|
-
"From Work, open an initiative",
|
|
778
|
-
"Show the chat with the round chat button at the top right of the popup, then read the Overview: Where it stands, The case and Details are…",
|
|
779
|
-
"Press a row to open it; hide the chat and the three parts sit side by side again"
|
|
780
|
-
],
|
|
781
|
-
"see": "With the chat beside the work, the side column folds into one-line rows above the main content and is never hidden. Without the chat, the page looks as before",
|
|
782
|
-
"open": "/premium-board.html"
|
|
783
|
-
}
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
"n": 2032,
|
|
787
|
-
"t": "Next milestones on the product, program and initiative pages (job #2020)",
|
|
788
|
-
"s": "Next milestones on the product, program and initiative pages (job #2020)",
|
|
789
|
-
"k": "new",
|
|
790
|
-
"i": "milestone-strip-pages"
|
|
791
|
-
}
|
|
792
|
-
]
|
|
793
724
|
}
|
|
794
725
|
]
|
|
795
726
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
kernel-source: pmos@
|
|
2
|
-
assembled: 2026-11-
|
|
1
|
+
kernel-source: pmos@642e72f70
|
|
2
|
+
assembled: 2026-11-26
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-26T00:00:01Z"}
|
|
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-26T00:00:01Z"}
|
|
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-26T00:00:01Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/payload/state/log.md
CHANGED
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,39 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.859.0",
|
|
4
|
+
"at": "2026-11-26T00:00:04.789Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 2070,
|
|
9
|
+
"t": "Reference cards hidden behind one icon on Work and the initiative page",
|
|
10
|
+
"s": "Reference cards hidden behind one icon on Work and the initiative page",
|
|
11
|
+
"k": "new",
|
|
12
|
+
"i": "fold-by-default"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"v": "0.858.0",
|
|
18
|
+
"at": "2026-11-25T23:40:07.513Z",
|
|
19
|
+
"f": 4,
|
|
20
|
+
"prs": [
|
|
21
|
+
{
|
|
22
|
+
"n": 2068,
|
|
23
|
+
"t": "Huddle on an initiative, slice 1 (question, ideas, dots, Decision or Task)",
|
|
24
|
+
"s": "Huddle on an initiative, slice 1 (question, ideas, dots, Decision or Task)",
|
|
25
|
+
"k": "new",
|
|
26
|
+
"i": "huddle-brainstorm"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"n": 2069,
|
|
30
|
+
"t": "The product chips scroll instead of covering the Work tabs",
|
|
31
|
+
"s": "The product chips scroll instead of covering the Work tabs",
|
|
32
|
+
"k": "fix",
|
|
33
|
+
"i": "work-tabs-covered"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
2
37
|
{
|
|
3
38
|
"v": "0.857.0",
|
|
4
39
|
"at": "2026-11-25T23:14:27.545Z",
|
|
@@ -9,32 +44,14 @@
|
|
|
9
44
|
"t": "Today fills the width 2 : 1",
|
|
10
45
|
"s": "Today fills the width 2 : 1",
|
|
11
46
|
"k": "new",
|
|
12
|
-
"i": "today-balanced-width"
|
|
13
|
-
"try": {
|
|
14
|
-
"steps": [
|
|
15
|
-
"Open Today on a wide screen (1600 px or more)",
|
|
16
|
-
"See Your move and the log on the left two thirds and the agenda on the right third, with no empty right half",
|
|
17
|
-
"Make the window narrower than 1100 px and see one column"
|
|
18
|
-
],
|
|
19
|
-
"see": "Today fills the width 2 : 1 at any wide size. Nothing is cut. Work and the other pages are unchanged until their own release.",
|
|
20
|
-
"open": "/today.html"
|
|
21
|
-
}
|
|
47
|
+
"i": "today-balanced-width"
|
|
22
48
|
},
|
|
23
49
|
{
|
|
24
50
|
"n": 2068,
|
|
25
51
|
"t": "Huddle on an initiative, slice 1 (question, ideas, dots, Decision or Task)",
|
|
26
52
|
"s": "Huddle on an initiative, slice 1 (question, ideas, dots, Decision or Task)",
|
|
27
53
|
"k": "new",
|
|
28
|
-
"i": "huddle-brainstorm"
|
|
29
|
-
"try": {
|
|
30
|
-
"steps": [
|
|
31
|
-
"Open Work and open an initiative in Triage, Discover or Plan",
|
|
32
|
-
"Press ✓ on the ✦ row 'Huddle on it with the team?'",
|
|
33
|
-
"Type three ideas, put a dot on two"
|
|
34
|
-
],
|
|
35
|
-
"see": "The Huddle opens beside the item with the question and the facts PMOS found. Each typed idea is a card. Dots count on each card. Decision writes one line to the decision journal; Tasks adds a task…",
|
|
36
|
-
"open": "/premium-board.html"
|
|
37
|
-
}
|
|
54
|
+
"i": "huddle-brainstorm"
|
|
38
55
|
}
|
|
39
56
|
]
|
|
40
57
|
},
|
|
@@ -100,10 +100,12 @@ On a phone, PMOS opens on Today. It is one page with no boxes: **Where it stands
|
|
|
100
100
|
|
|
101
101
|
## Work
|
|
102
102
|
|
|
103
|
-
On a computer, Work is built from the parts of the PMOS design system. The top line shows the path (**Work ›** and the product; press the product to switch it), the tabs **Initiatives**, **Backlog** and **This sprint**, then Ask PMOS, Search, New initiative and More. Ask PMOS (the chat bubble, on a computer) opens a chat about the product shown, in the one popup; with several products it opens Ask PMOS about the page. A program's own chat is the chat bubble in its popup.
|
|
103
|
+
On a computer, Work is built from the parts of the PMOS design system. The top line shows the path (**Work ›** and the product; press the product to switch it; with many products their chips scroll sideways and never cover the tabs), the tabs **Initiatives**, **Backlog** and **This sprint**, then Ask PMOS, Search, New initiative and More. Ask PMOS (the chat bubble, on a computer) opens a chat about the product shown, in the one popup; with several products it opens Ask PMOS about the page. A program's own chat is the chat bubble in its popup.
|
|
104
104
|
|
|
105
105
|
**Fold a big card.** **Strategy**, **Where it stands** and **North Star** each have a chevron at the right of their head. Press it to fold the card to its head line; **Where it stands** keeps its first sentence. When PMOS has a suggestion in a folded card, a small **✦ 1** shows beside the head; press it to open the card. PMOS keeps each fold for you, per page and per card, on every device you use. Press the chevron again to open the card.
|
|
106
106
|
|
|
107
|
+
**Reference cards are hidden behind one icon.** On Work › Initiatives, the product's reference cards (**Strategy**, **Principles**, **One-person areas**, **Segments**, **Roadmap for others**, **Code** and the other product cards) are not on the page. Press the small layers icon at the top right, above the list, to show them, and press it again to hide them. A blue dot on the icon means PMOS has a suggestion inside. **Line**, **Backlog**, **This sprint** and the other work tabs never show them. On an initiative, **Next milestones**, **Stages**, **Details** and **People** are hidden the same way; the icon sits at the right of the numbers strip at the top. PMOS keeps each choice for you on every device. When PMOS could not check an initiative, one quiet line says so with **Try again**; point at the line to read why.
|
|
108
|
+
|
|
107
109
|
**Initiatives** has three blocks:
|
|
108
110
|
|
|
109
111
|
- **Where it stands.** One paragraph that says what is happening and why it matters: an initiative past its milestone, with the cause from the record (a Jira ticket that is blocked, a step that waits on you), an initiative that sat in a stage with no dates and for how long, and the next decision point. Press a name to open the initiative. Under it, PMOS shows one suggestion from its open proposals, with **Why**, **PMOS will** (the exact steps), **What changes** and **Based on** (the sources). The pencil opens the initiative so you can change the proposal first, ✓ does it (with Undo), and ✕ drops it. When nothing needs saying, the block does not show.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.859.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.859.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -98,8 +98,11 @@ function standsParts(W, r, o = {}) {
|
|
|
98
98
|
const s = (W.suggests || [])[0], more = Math.max(0, (W.suggests || []).length - 1) + (W.more || 0);
|
|
99
99
|
const sug = o.ro ? '' : sugHtml(s) + (more ? `<p class="pwd-moresug"><button type="button" class="pw-lk" data-pw-props>${esc(plural(more, 'more suggestion', 'more suggestions'))}</button></p>` : '');
|
|
100
100
|
// the grill run the chat said started: one line while it runs, and one line with the reason when it failed (never silence)
|
|
101
|
-
|
|
102
|
-
const
|
|
101
|
+
// a failed run is one quiet line and Try again; the full reason sits on the line's title, never in red on the page (fold-by-default, 26 Nov)
|
|
102
|
+
const gr = r && r.props && r.props.grillRun, g = gr ? runStateLine(gr) : '';
|
|
103
|
+
const grill = !g ? '' : gr.state === 'failed'
|
|
104
|
+
? `<p class="pwd-grun pm-meta" role="status" title="${esc(g)}">PMOS could not check this just now.${o.ro ? '' : ' <button type="button" class="pw-lk" data-pw-ask="grill this">Try again</button>'}</p>`
|
|
105
|
+
: `<p class="pwd-grun pm-meta" role="status">${esc(g)}</p>`;
|
|
103
106
|
return { say, next, sug, grill, n: o.ro ? 0 : (s && s.say ? 1 : 0) + more };
|
|
104
107
|
}
|
|
105
108
|
export function standsHtml(W, r, o = {}) {
|
|
@@ -11,6 +11,9 @@ body.bd-page.wk-on .wk-path, body.bd-page.bk-on .wk-path { display: flex; min-wi
|
|
|
11
11
|
body.bd-page.wk-on .wk-path > span, body.bd-page.wk-on .wk-path > .pm-ic, body.bd-page.bk-on .wk-path > span, body.bd-page.bk-on .wk-path > .pm-ic { display: inline-flex; }
|
|
12
12
|
.wk-path > .pm-ic { color: var(--muted); }
|
|
13
13
|
body.bd-page.wk-on .bd-hd > .bk-sw, body.bd-page.bk-on .bd-hd > .bk-sw { justify-self: center; }
|
|
14
|
+
/* the product chips shrink and scroll inside the left column, so they never cover the Work tabs (11 products overflowed onto Initiatives and Line) */
|
|
15
|
+
body.bd-page.wk-on .wk-path .bd-pickw, body.bd-page.bk-on .wk-path .bd-pickw { min-width: 0; }
|
|
16
|
+
body.bd-page.wk-on .wk-path .psw, body.bd-page.bk-on .wk-path .psw { flex: 0 1 auto; min-width: 0; }
|
|
14
17
|
body.bd-page.wk-on .bd-hd .bd-tools, body.bd-page.bk-on .bd-hd .bd-tools { justify-self: end; margin-left: 0; }
|
|
15
18
|
/* Choose columns lives in the Initiatives block now (WorkDS); the toolbar keeps Search, New and More */
|
|
16
19
|
body.bd-page.wk-on:not(.bk-on) [id="bdFilter"] { display: none; }
|
|
@@ -276,3 +279,11 @@ body.bd-page.bk-on [id="bkBody"] { display: flex; flex-direction: column; gap: v
|
|
|
276
279
|
.wk-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
277
280
|
.wk-strip .wk-sc { border-left: 0; border-top: 1px solid var(--line); }
|
|
278
281
|
}
|
|
282
|
+
/* The product's reference cards are hidden until the toolbar icon shows them (pm/ref-toggle.js, fold-by-default, Wawan 26 Nov). Line,
|
|
283
|
+
* Backlog, This sprint and the other work tabs never show them, and hide the icon. */
|
|
284
|
+
html:not(.pm-ref-work) body.bd-page :is(#cStrat, #cPrin, #cKnow, #cVers, #cSeg, #cSw, #cSkills, #cWelcome, #cRoadFor, #cCode),
|
|
285
|
+
body.bd-page.bk-on :is(#cStrat, #cPrin, #cKnow, #cVers, #cSeg, #cSw, #cSkills, #cWelcome, #cRoadFor, #cCode), body.bd-page.bk-on .wk-ref-ph { display: none !important; }
|
|
286
|
+
/* the icon sits on its own row, right-aligned, above the cards: Work's header holds five actions at most (five-action-cap) */
|
|
287
|
+
.wk-ref-ph { display: none; margin: 0; justify-content: flex-end; }
|
|
288
|
+
body.bd-page.wk-on .wk-ref-ph { display: flex; }
|
|
289
|
+
@media (max-width: 760px) { .wk-ref-ph .pm-ref { min-width: 44px; min-height: 44px; } }
|
|
@@ -577,3 +577,10 @@ body.pm-focus .cz-pop-card { inset: 0; border-radius: 0; }
|
|
|
577
577
|
.pm-folded > :not([data-fold-head]):not([data-fold-one]) { display: none !important; }
|
|
578
578
|
.pm-folded > [data-fold-one] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; color: var(--muted); }
|
|
579
579
|
.pm-fold-sug { border: 0; cursor: pointer; display: inline-flex; align-items: center; padding: var(--space-4) var(--space-8); border-radius: var(--radius-pill); background: var(--blue-tint); color: var(--blue); font: inherit; font-size: var(--fs-badge); font-weight: var(--fw-strong); }
|
|
580
|
+
|
|
581
|
+
/* ── reference cards behind one icon (pm/ref-toggle.js, initiative fold-by-default): pressed, the icon is blue on a blue tint; while the
|
|
582
|
+
* group is hidden, a blue dot says a suggestion waits inside. Tokens only. ── */
|
|
583
|
+
.pm-ref { position: relative; }
|
|
584
|
+
.pm-ref[aria-pressed="true"] { background: var(--blue-tint); color: var(--blue); }
|
|
585
|
+
.pm-ref-dot { position: absolute; top: var(--space-4); right: var(--space-4); width: var(--space-8); height: var(--space-8); border-radius: var(--radius-pill); background: var(--blue); }
|
|
586
|
+
.pm-ref-dot[hidden] { display: none; }
|
|
@@ -49,7 +49,8 @@ import { startUseLog } from './use-log.js'; // bet A466: every page mounts the
|
|
|
49
49
|
import { startActionKeys } from './action-keys.js'; // bet A477: y o s p z act on the item under the pointer, ? lists the keys
|
|
50
50
|
import { startGlossary } from './glossary.js'; // bet A386: a product's own words show their meaning on hover (a long press on a phone)
|
|
51
51
|
import { startFocusMode } from './focus-mode.js'; // bet A335: f shows only the item under the pointer and its chat; f again puts the page back
|
|
52
|
-
import { startCardFold } from './card-fold.js';
|
|
52
|
+
import { startCardFold } from './card-fold.js';
|
|
53
|
+
import { startRefToggle } from './ref-toggle.js'; // fold-by-default: reference cards hidden behind one icon, kept per person // card-fold: Strategy, Where it stands and North Star fold to one line, kept per person
|
|
53
54
|
|
|
54
55
|
/* The six places (slice 1). A place shows once it has an href: Events, Library and Routine get theirs when their slice ships. Until then
|
|
55
56
|
* Today is today.html (slice 5; Home before it), Work is the Board and Goals is premium-goals.html (slice 9; Intelligence before it); the keys stay the pages' own (home, board, insights). */
|
|
@@ -211,6 +212,7 @@ export function mountNav(here, doc = document, opts = {}) {
|
|
|
211
212
|
startActionKeys(doc);
|
|
212
213
|
startFocusMode(doc);
|
|
213
214
|
startCardFold(doc);
|
|
215
|
+
startRefToggle(doc);
|
|
214
216
|
startGlossary(doc);
|
|
215
217
|
const fab = w.querySelector('#czFab'), menu = w.querySelector('#czMenu'), scrim = w.querySelector('#czScrim');
|
|
216
218
|
const draw = () => {
|
|
@@ -977,6 +977,7 @@ export function wire(body, h0, x0) {
|
|
|
977
977
|
if ('pwSpan' in d) { spanMenu(b, redraw); return; }
|
|
978
978
|
if (d.pwTune) { tuneMenu(b, d.pwTune, redraw); return; }
|
|
979
979
|
if ('pwBig' in d) { big(c, x, h); return; }
|
|
980
|
+
if (d.pwAsk) { toAsk(d.pwAsk, h); return; } // a failed refresh's Try again: the words go to Ask PMOS
|
|
980
981
|
if (d.pwKeep && /^merge:/.test(d.pwKeep)) { const m = mergeOf(W.artefacts); if (m) toAsk(m.ask, h); return; }
|
|
981
982
|
if (d.pwDrop && /^merge:/.test(d.pwDrop)) { const dd = dropped(); dd.add(d.pwDrop); store.set(DROP, [...dd].slice(-200)); redraw(); return; }
|
|
982
983
|
if (d.pwSug && /^merge:/.test(d.pwSug)) { const m = mergeOf(W.artefacts); if (m) toAsk(m.ask, h); return; }
|
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
.idt-s .pwd-ovp + .pwd-ovp { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--space-12); }
|
|
9
9
|
|
|
10
10
|
/* the four numbers */
|
|
11
|
-
|
|
12
|
-
.idt-
|
|
11
|
+
/* the numbers are one thin strip across the page, above both columns (.pm-ds .pm-block would make it a column) */
|
|
12
|
+
.pm-ds .pm-block.idt-stats, .idt-stats { display: grid; flex: 1 1 auto; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; }
|
|
13
|
+
.idt-n { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8) var(--space-16); min-width: 0; }
|
|
13
14
|
.idt-n + .idt-n { border-left: 1px solid var(--line); }
|
|
14
15
|
.idt-n > b { font-size: var(--fs-section); font-weight: var(--fw-strong); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
15
16
|
.idt-n.warn > b { color: var(--alert); }
|
|
@@ -36,3 +37,9 @@ button.idt-v:focus-visible { outline: none; box-shadow: var(--glow); }
|
|
|
36
37
|
.idt-n:nth-child(n + 3) { border-top: 1px solid var(--line); }
|
|
37
38
|
.idt-n:nth-child(2n) { border-left: 1px solid var(--line); }
|
|
38
39
|
}
|
|
40
|
+
|
|
41
|
+
/* the numbers strip and the icon that shows the initiative's details, one row above both columns */
|
|
42
|
+
.idt-top { align-items: center; gap: var(--space-8); margin-bottom: var(--space-16); }
|
|
43
|
+
.idt-top > .sp { flex: 1; }
|
|
44
|
+
/* Next milestones, Stages, Details and People are hidden until the icon shows them (pm/ref-toggle.js, fold-by-default) */
|
|
45
|
+
html:not(.pm-ref-ini) .idt-page :is(.ms-strip, .pwd-stages, .idt-det, .sm-block) { display: none !important; }
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Zero is silence: a field with no value draws no row, and a number with no value draws no cell. A value that can change is a press
|
|
11
11
|
* (data-pw-fact, the popup's own handler); a Jira epic opens in Jira. No inline style. */
|
|
12
12
|
import { dayText } from './bd-pop-ds.js';
|
|
13
|
+
import * as RT from './ref-toggle.js'; // the icon that shows or hides Next milestones, Stages, Details and People (fold-by-default)
|
|
13
14
|
|
|
14
15
|
const CSS = new URL('./ini-detail.css', import.meta.url).href;
|
|
15
16
|
if (typeof document !== 'undefined' && document.head && !document.querySelector(`link[href="${CSS}"]`)) {
|
|
@@ -113,5 +114,5 @@ export function msLabel(rows) {
|
|
|
113
114
|
|
|
114
115
|
/** The two columns: the numbers on top of the main column; the side column on the right (below the main one on a narrow window). */
|
|
115
116
|
export function pageHtml(p) {
|
|
116
|
-
return `<div class="pw pwd">${p.top || ''}<div class="idt-g"><div class="pwd-main idt-m">${p.
|
|
117
|
+
return `<div class="pw pwd idt-page">${p.top || ''}<div class="pm-row idt-top">${p.stats || '<span class="sp"></span>'}${RT.btnHtml('ini', RT.shown('ini'))}</div><div class="idt-g"><div class="pwd-main idt-m">${p.main || ''}</div>${p.side ? `<aside class="idt-s" aria-label="Overview and details">${p.side}</aside>` : ''}</div></div>`;
|
|
117
118
|
}
|
|
@@ -19,6 +19,8 @@ export const RO = !!PACK;
|
|
|
19
19
|
export const VIEW_CONTROLS = [
|
|
20
20
|
// the big cards' fold (pm/card-fold.js): Strategy, Where it stands and North Star fold to their head line, and the ✦ count opens one
|
|
21
21
|
'[data-card-fold]', '[data-card-fold-sug]',
|
|
22
|
+
// the reference cards' show / hide icon (pm/ref-toggle.js, fold-by-default): it only shows or hides what is already on the page
|
|
23
|
+
'[data-ref-toggle]',
|
|
22
24
|
// the Timeline: the span, the legend behind (i), a column's sort, back to today, the edge tab that scrolls to a bar off the view, the Deliveries lane, the folds, an initiative's name (opens its viewer)
|
|
23
25
|
'#bdLgdBtn', '.tg-chd', '.tg-tback', '.tg-edge', '.dl-fb', '.dl-dn', '.dl-e[aria-label*="press to open"]', '.bd-fold', '.bd-prdb', 'label.tg-n', 'button.tg-n.ini2',
|
|
24
26
|
// the stage track: the switch between it and the Timeline (the two views a publisher shares), an initiative's name, the Monitor and Evaluate fold
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* pm/ref-toggle.js — reference cards are hidden until the person shows them (initiative fold-by-default; Wawan 2026-11-26: "completely
|
|
2
|
+
* hidden and only show small icon … to unhide and hide it"; boards TbFoldWork, TbFoldWorkOpen, TbFoldIni, TbHideIniOn on Exploring 3).
|
|
3
|
+
* One small icon per page shows or hides the whole group; the choice is kept per person on every device (pmos.board.* follows the person).
|
|
4
|
+
*
|
|
5
|
+
* GROUPS { work: Work › Initiatives' product cards, ini: an initiative's Next milestones, Stages, Details and People }
|
|
6
|
+
* key(g) 'pmos.board.ref.<g>'
|
|
7
|
+
* shown(g, store) true once the person showed the group ('1'); hidden by default
|
|
8
|
+
* btnHtml(g, on, dot) the icon: aria-pressed, "Show …" / "Hide …", a dot when PMOS has a suggestion inside the hidden group
|
|
9
|
+
* startRefToggle(doc) called once by the menu (pm/cozy-nav.js), which every page mounts: sets html.pm-ref-<g> and keeps every icon true
|
|
10
|
+
* The CSS that hides the groups is in pm/bd-work-ds.css (work) and pm/ini-detail.css (ini). Pure until startRefToggle: Node can import it. */
|
|
11
|
+
export const GROUPS = Object.freeze({
|
|
12
|
+
work: { label: 'product details', sel: '#cStrat, #cPrin, #cKnow, #cVers, #cSeg, #cSw, #cSkills, #cWelcome, #cRoadFor, #cCode' },
|
|
13
|
+
ini: { label: 'initiative details', sel: '.idt-page .ms-strip, .idt-page .pwd-stages, .idt-page .idt-det, .idt-page .sm-block' },
|
|
14
|
+
});
|
|
15
|
+
const LAYERS = '<path d="M12 3l9 5-9 5-9-5z"/><path d="M3 13l9 5 9-5"/>';
|
|
16
|
+
export const key = (g) => 'pmos.board.ref.' + g;
|
|
17
|
+
const ls = () => { try { return typeof localStorage !== 'undefined' ? localStorage : null; } catch { return null; } };
|
|
18
|
+
export function shown(g, store = ls()) { try { return !!store && store.getItem(key(g)) === '1'; } catch { return false; } }
|
|
19
|
+
const name = (g, on) => (on ? 'Hide ' : 'Show ') + GROUPS[g].label;
|
|
20
|
+
export function btnHtml(g, on = false, dot = false) {
|
|
21
|
+
return `<button type="button" class="pm-btn ghost pm-ref" data-ref-toggle="${g}" aria-pressed="${on}" aria-label="${name(g, on)}" title="${name(g, on)}">`
|
|
22
|
+
+ `<svg class="pm-ic" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true">${LAYERS}</svg><i class="pm-ref-dot"${dot && !on ? '' : ' hidden'}></i></button>`;
|
|
23
|
+
}
|
|
24
|
+
/** Every icon on the page says the group's state, and its dot shows while a ✦ waits inside the hidden group. */
|
|
25
|
+
export function sync(doc) {
|
|
26
|
+
const store = ls();
|
|
27
|
+
for (const g of Object.keys(GROUPS)) {
|
|
28
|
+
const on = shown(g, store);
|
|
29
|
+
doc.documentElement.classList.toggle('pm-ref-' + g, on);
|
|
30
|
+
const bs = doc.querySelectorAll(`[data-ref-toggle="${g}"]`); if (!bs.length) continue;
|
|
31
|
+
const dot = !on && [...doc.querySelectorAll(GROUPS[g].sel)].some((s) => !!s.querySelector('.pm-sug'));
|
|
32
|
+
bs.forEach((b) => {
|
|
33
|
+
if (b.getAttribute('aria-pressed') !== String(on)) { b.setAttribute('aria-pressed', String(on)); b.setAttribute('aria-label', name(g, on)); b.setAttribute('title', name(g, on)); }
|
|
34
|
+
const d = b.querySelector('.pm-ref-dot'); if (d && d.hidden !== !dot) d.hidden = !dot;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
let started = false;
|
|
39
|
+
export function startRefToggle(doc = typeof document !== 'undefined' ? document : null) {
|
|
40
|
+
if (started || !doc || !doc.body) return false;
|
|
41
|
+
started = true;
|
|
42
|
+
const win = doc.defaultView;
|
|
43
|
+
let queued = false;
|
|
44
|
+
const later = () => { if (queued) return; queued = true; const run = () => { queued = false; try { sync(doc); } catch { /* the page keeps its last state */ } }; if (win && win.requestAnimationFrame) win.requestAnimationFrame(run); else setTimeout(run, 16); };
|
|
45
|
+
if (win) doc.defaultView.addEventListener('click', (e) => { // capture on the window, as card-fold and focus mode do; the icons are real buttons
|
|
46
|
+
const b = e.target && e.target.closest && e.target.closest('[data-ref-toggle]'); if (!b) return;
|
|
47
|
+
const g = b.dataset.refToggle; if (!GROUPS[g]) return;
|
|
48
|
+
e.preventDefault(); e.stopPropagation();
|
|
49
|
+
const store = ls(); try { if (store) store.setItem(key(g), shown(g, store) ? '0' : '1'); } catch { /* a private window keeps it for this page only */ }
|
|
50
|
+
sync(doc);
|
|
51
|
+
}, true);
|
|
52
|
+
if (win && win.MutationObserver) new win.MutationObserver(later).observe(doc.body, { childList: true, subtree: true });
|
|
53
|
+
sync(doc);
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
@@ -61,6 +61,9 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
63
63
|
|
|
64
|
+
<!-- the product's reference cards (Strategy to Code) are hidden until this icon shows them (pm/ref-toggle.js, fold-by-default). Work's header holds
|
|
65
|
+
five actions at most (five-action-cap), so the icon sits on its own quiet row, right-aligned, above the cards -->
|
|
66
|
+
<p class="wk-ref-ph"><button type="button" class="pm-btn ghost pm-ref" data-ref-toggle="work" aria-pressed="false" aria-label="Show product details" title="Show product details"><svg class="pm-ic" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l9 5-9 5-9-5z"/><path d="M3 13l9 5 9-5"/></svg><i class="pm-ref-dot" hidden></i></button></p>
|
|
64
67
|
<!-- the product's strategy in five lines (pm/bd-strategy.js, bet A458): above the initiatives on a Board that shows one product -->
|
|
65
68
|
<section class="bd-sec" id="cStrat" aria-label="Strategy" hidden></section>
|
|
66
69
|
<!-- the product's principles drafted from its decisions (pm/bd-principles.js, bet A352): below the strategy, one product only -->
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Reference cards start folded (initiative fold-by-default, done test planning/done-tests/fold-by-default.md D2-D5): page modules and sheets read as text. No server, network or browser.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"fold-by-default.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"fold-by-default.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "The product chips never cover the Work tabs (incident work-tabs-covered, done test planning/done-tests/work-tabs-covered.md C1): bd-work-ds.css read as text. No server, network or browser.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"work-tabs-covered.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"work-tabs-covered.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|