create-pmos 0.804.0 → 0.805.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 +30 -40
- package/payload/KIT-VERSION +1 -1
- package/payload/design-system/ui/pages.md +7 -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/workspace/changelog.json +29 -10
- package/workspace/design-system/ui/pages.md +7 -2
- package/workspace/guide/layout.md +4 -3
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-pop-work.js +3 -3
- package/workspace/public/pm/pop-cap.js +11 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.805.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,34 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.805.0",
|
|
38
|
+
"at": "2026-11-25T04:31:28.431Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1835,
|
|
43
|
+
"t": "Name the pages that keep their own layouts",
|
|
44
|
+
"s": "Name the pages that keep their own layouts",
|
|
45
|
+
"k": "x"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"n": 1827,
|
|
49
|
+
"t": "⋯ Change holds what the popup's four leave off (job #1821, A498)",
|
|
50
|
+
"s": "⋯ Change holds what the popup's four leave off (job #1821, A498)",
|
|
51
|
+
"k": "fix",
|
|
52
|
+
"try": {
|
|
53
|
+
"steps": [
|
|
54
|
+
"On Work, open an initiative's popup and pick two tasks.",
|
|
55
|
+
"Open ⋯ (More actions) and look at its first group.",
|
|
56
|
+
"Press Esc to clear the pick and open ⋯ again."
|
|
57
|
+
],
|
|
58
|
+
"see": "With the default four (Add, Who, Set the date, Stage) on the toolbar, ⋯ has no Change group. If your four leave out Who, Set the date or Stage, ⋯ starts with Change holding them while tasks are…",
|
|
59
|
+
"open": "/premium-board.html"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
36
64
|
{
|
|
37
65
|
"v": "0.804.0",
|
|
38
66
|
"at": "2026-11-25T02:16:07.854Z",
|
|
@@ -48,16 +76,7 @@
|
|
|
48
76
|
"n": 1830,
|
|
49
77
|
"t": "A grill the chat said started always lands or says why",
|
|
50
78
|
"s": "A grill the chat said started always lands or says why",
|
|
51
|
-
"k": "fix"
|
|
52
|
-
"try": {
|
|
53
|
-
"steps": [
|
|
54
|
-
"Open Work and open an initiative.",
|
|
55
|
-
"In its chat, write 'grill this'.",
|
|
56
|
-
"Look at Overview and the ✦."
|
|
57
|
-
],
|
|
58
|
-
"see": "Overview and the ✦ say 'PMOS is grilling this now' while it runs; then the findings show under ✦ ('PMOS grilled it'), or one line says why it could not grill.",
|
|
59
|
-
"open": "/premium-board.html"
|
|
60
|
-
}
|
|
79
|
+
"k": "fix"
|
|
61
80
|
}
|
|
62
81
|
]
|
|
63
82
|
},
|
|
@@ -421,35 +440,6 @@
|
|
|
421
440
|
}
|
|
422
441
|
}
|
|
423
442
|
]
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
"v": "0.783.0",
|
|
427
|
-
"at": "2026-11-24T16:37:58.744Z",
|
|
428
|
-
"f": 4,
|
|
429
|
-
"prs": [
|
|
430
|
-
{
|
|
431
|
-
"n": 1778,
|
|
432
|
-
"t": "Name the catalog and draft routes outside routes-*, so d86-seams check 7 passes",
|
|
433
|
-
"s": "Name the catalog and draft routes outside routes-*, so d86-seams check 7 passes",
|
|
434
|
-
"k": "fix"
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
"n": 1780,
|
|
438
|
-
"t": "One-tap reason when work rolls to the next sprint",
|
|
439
|
-
"s": "One-tap reason when work rolls to the next sprint",
|
|
440
|
-
"k": "new",
|
|
441
|
-
"h": "One-tap reason when work rolls to the next sprint",
|
|
442
|
-
"try": {
|
|
443
|
-
"steps": [
|
|
444
|
-
"Open Work, then a product's Backlog, and press This sprint",
|
|
445
|
-
"Press the sprint name and pick the last closed sprint",
|
|
446
|
-
"Under Carried to, press one reason on a ticket, such as Blocked"
|
|
447
|
-
],
|
|
448
|
-
"see": "The ticket shows Blocked with a clear button, and the Carried to block above counts it: 1 blocked, and one fewer not said yet.",
|
|
449
|
-
"open": "/premium-board.html"
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
]
|
|
453
443
|
}
|
|
454
444
|
]
|
|
455
445
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "PMOS design system: pages and their blocks"
|
|
4
4
|
description: "Every workspace page with its layout and the blocks it is built from."
|
|
5
|
-
timestamp: 2026-11-
|
|
5
|
+
timestamp: 2026-11-25
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Pages and their blocks
|
|
@@ -24,7 +24,8 @@ Every workspace page, with its layout and the blocks it is built from. Each layo
|
|
|
24
24
|
| Routine | Main + open item | Detail, List, Summary |
|
|
25
25
|
| Workflows | Main + open item | List, Detail |
|
|
26
26
|
| Viewer · item | Main + open item | Navigation, Detail, Summary, List |
|
|
27
|
-
| Viewer · docs, specs, briefs,
|
|
27
|
+
| Viewer · docs, specs, briefs, weekly updates, guides, notes, notepad, copies, text files | Reading | Document, Summary |
|
|
28
|
+
| Viewer · reports, meeting notes | their own views | Document, Summary |
|
|
28
29
|
| Viewer · slides, PDF, prototype | Stage | Navigation, Stage |
|
|
29
30
|
| Meeting recording | Single column | Stage, Summary, List |
|
|
30
31
|
| Meeting buddy | Single column | Summary |
|
|
@@ -32,3 +33,7 @@ Every workspace page, with its layout and the blocks it is built from. Each layo
|
|
|
32
33
|
| Welcome | Single column | Settings, Summary |
|
|
33
34
|
| Search | slide-over | List |
|
|
34
35
|
| Shared link | Reading (no comments, no chat) | Document, Table |
|
|
36
|
+
|
|
37
|
+
**Which pages carry the classes.** Work, Library and Routine are on `pm-layout-open`, and Events is on `pm-layout-side`. Each one tunes the layout with its own widths, so it looks as it did before it moved.
|
|
38
|
+
|
|
39
|
+
**Own shells.** Today, Settings and Meeting recording keep their own layouts. Today and Settings put their column at the left, and `pm-layout-side` puts it at the right. Meeting recording fills the screen. Goals and Intelligence move later. Backlog is a view in Work, Workflows is a section of Settings, and Welcome shows only on the first run.
|
|
@@ -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-25T04:31:25Z"}
|
|
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-25T04:31:25Z"}
|
|
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-25T04:31:25Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.805.0",
|
|
4
|
+
"at": "2026-11-25T04:31:28.431Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1835,
|
|
9
|
+
"t": "Name the pages that keep their own layouts",
|
|
10
|
+
"s": "Name the pages that keep their own layouts",
|
|
11
|
+
"k": "x"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"n": 1827,
|
|
15
|
+
"t": "⋯ Change holds what the popup's four leave off (job #1821, A498)",
|
|
16
|
+
"s": "⋯ Change holds what the popup's four leave off (job #1821, A498)",
|
|
17
|
+
"k": "fix",
|
|
18
|
+
"try": {
|
|
19
|
+
"steps": [
|
|
20
|
+
"On Work, open an initiative's popup and pick two tasks.",
|
|
21
|
+
"Open ⋯ (More actions) and look at its first group.",
|
|
22
|
+
"Press Esc to clear the pick and open ⋯ again."
|
|
23
|
+
],
|
|
24
|
+
"see": "With the default four (Add, Who, Set the date, Stage) on the toolbar, ⋯ has no Change group. If your four leave out Who, Set the date or Stage, ⋯ starts with Change holding them while tasks are…",
|
|
25
|
+
"open": "/premium-board.html"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
2
30
|
{
|
|
3
31
|
"v": "0.804.0",
|
|
4
32
|
"at": "2026-11-25T02:16:07.854Z",
|
|
@@ -14,16 +42,7 @@
|
|
|
14
42
|
"n": 1830,
|
|
15
43
|
"t": "A grill the chat said started always lands or says why",
|
|
16
44
|
"s": "A grill the chat said started always lands or says why",
|
|
17
|
-
"k": "fix"
|
|
18
|
-
"try": {
|
|
19
|
-
"steps": [
|
|
20
|
-
"Open Work and open an initiative.",
|
|
21
|
-
"In its chat, write 'grill this'.",
|
|
22
|
-
"Look at Overview and the ✦."
|
|
23
|
-
],
|
|
24
|
-
"see": "Overview and the ✦ say 'PMOS is grilling this now' while it runs; then the findings show under ✦ ('PMOS grilled it'), or one line says why it could not grill.",
|
|
25
|
-
"open": "/premium-board.html"
|
|
26
|
-
}
|
|
45
|
+
"k": "fix"
|
|
27
46
|
}
|
|
28
47
|
]
|
|
29
48
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "PMOS design system: pages and their blocks"
|
|
4
4
|
description: "Every workspace page with its layout and the blocks it is built from."
|
|
5
|
-
timestamp: 2026-11-
|
|
5
|
+
timestamp: 2026-11-25
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Pages and their blocks
|
|
@@ -24,7 +24,8 @@ Every workspace page, with its layout and the blocks it is built from. Each layo
|
|
|
24
24
|
| Routine | Main + open item | Detail, List, Summary |
|
|
25
25
|
| Workflows | Main + open item | List, Detail |
|
|
26
26
|
| Viewer · item | Main + open item | Navigation, Detail, Summary, List |
|
|
27
|
-
| Viewer · docs, specs, briefs,
|
|
27
|
+
| Viewer · docs, specs, briefs, weekly updates, guides, notes, notepad, copies, text files | Reading | Document, Summary |
|
|
28
|
+
| Viewer · reports, meeting notes | their own views | Document, Summary |
|
|
28
29
|
| Viewer · slides, PDF, prototype | Stage | Navigation, Stage |
|
|
29
30
|
| Meeting recording | Single column | Stage, Summary, List |
|
|
30
31
|
| Meeting buddy | Single column | Summary |
|
|
@@ -32,3 +33,7 @@ Every workspace page, with its layout and the blocks it is built from. Each layo
|
|
|
32
33
|
| Welcome | Single column | Settings, Summary |
|
|
33
34
|
| Search | slide-over | List |
|
|
34
35
|
| Shared link | Reading (no comments, no chat) | Document, Table |
|
|
36
|
+
|
|
37
|
+
**Which pages carry the classes.** Work, Library and Routine are on `pm-layout-open`, and Events is on `pm-layout-side`. Each one tunes the layout with its own widths, so it looks as it did before it moved.
|
|
38
|
+
|
|
39
|
+
**Own shells.** Today, Settings and Meeting recording keep their own layouts. Today and Settings put their column at the left, and `pm-layout-side` puts it at the right. Meeting recording fills the screen. Goals and Intelligence move later. Backlog is a view in Work, Workflows is a section of Settings, and Welcome shows only on the first run.
|
|
@@ -27,7 +27,7 @@ The workspace has one stylesheet for each part: `pm/brand.css`, `pm/charts.css`,
|
|
|
27
27
|
|
|
28
28
|
These pages are on the UI system: the meeting buddy, the recording tab, the audience tab, the extension's capture popup and the Welcome page. On a moved page, `pm/ds-bridge.css` points the old colour names at the system's colours, so the parts that other modules draw there follow the system too. While a screen is shared, the recording tab's stage uses the Dark theme.
|
|
29
29
|
|
|
30
|
-
**Five page layouts.** Every page is one of five layouts in `ui/`: Single column (`pm-layout-single`), Main + side (`pm-layout-side`), Main + open item (`pm-layout-open`), Full popup (`pm-layout-popup`) and Reading (`pm-layout-reading`). A page picks one and fills its slots with blocks. Gaps, widths and corners come from the system's tokens, so a change to a layout or a token reaches every page that uses it. The chat is always the slide-over, never a slot. On a phone every layout is one column. `ui/pages.md` says which page uses which layout; pages move onto them one at a time. Work, Library and Routine use Main + open item, and Events uses Main + side. A page can tune a layout with its own widths, for example the Events list stops at 1100 px, so a page looks the same after it moves.
|
|
30
|
+
**Five page layouts.** Every page is one of five layouts in `ui/`: Single column (`pm-layout-single`), Main + side (`pm-layout-side`), Main + open item (`pm-layout-open`), Full popup (`pm-layout-popup`) and Reading (`pm-layout-reading`). A page picks one and fills its slots with blocks. Gaps, widths and corners come from the system's tokens, so a change to a layout or a token reaches every page that uses it. The chat is always the slide-over, never a slot. On a phone every layout is one column. `ui/pages.md` says which page uses which layout; pages move onto them one at a time. Work, Library and Routine use Main + open item, and Events uses Main + side. A page can tune a layout with its own widths, for example the Events list stops at 1100 px, so a page looks the same after it moves. Today, Settings and Meeting recording keep their own layouts: Today and Settings have their column at the left, and Meeting recording fills the screen.
|
|
31
31
|
|
|
32
32
|
Every block has three states, and one part of the UI system draws all three (`State` in `ui/components/`). The Viewer uses it for every tab:
|
|
33
33
|
|
|
@@ -225,9 +225,10 @@ The initiative popup shows five actions at most: **Ask PMOS** in the header and
|
|
|
225
225
|
- **Add** goes to the List and puts the cursor in the add box.
|
|
226
226
|
- **Who**, **Set the date** and **Stage** change the selected tasks. If no task is selected, the line "Pick the tasks to change · Esc to stop" shows. Click the tasks, then press the line's button, for example **Who for 2 tasks**. Press Esc to stop.
|
|
227
227
|
|
|
228
|
-
Every other action is in the header's **⋯** menu, in
|
|
228
|
+
Every other action is in the header's **⋯** menu, in these groups:
|
|
229
229
|
|
|
230
|
-
- **
|
|
230
|
+
- **Change**: **Who**, **Set the date** or **Stage**, when your four leave one of them out. This group is first, and it shows only while tasks are selected.
|
|
231
|
+
- **Plan**: **Add a task or milestone** when your four leave it out, **Move the dates** (with no task selected, it moves every open task), **Set the epic**, **Sprint**, **Priority**, **Under a parent** and **Mark them done**. Most of these show only while tasks are selected.
|
|
231
232
|
- **View**: **List** or **Gantt**, and in the Gantt **Columns**, **Span of the timeline** and **The whole popup**. **Source** and **Every part** are here too.
|
|
232
233
|
- **Jira**: **Status in Jira**, when one Jira ticket is selected.
|
|
233
234
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.805.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.805.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -1320,7 +1320,7 @@ async function capGo(btn, act, c, h, x) {
|
|
|
1320
1320
|
return dateMenu(btn, ids[0], c, h, x);
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
|
-
/** ⋯ under the cap (PopupCapDS): Plan, View and Jira, with a head line each; an action that does not apply is not there (CAP.moreGroups). A
|
|
1323
|
+
/** ⋯ under the cap (PopupCapDS): Change (what the toolbar's four leave off), Plan, View and Jira, with a head line each; an action that does not apply is not there (CAP.moreGroups). A
|
|
1324
1324
|
* phone has no View group: it has no Gantt. */
|
|
1325
1325
|
function capItems(body, hh) {
|
|
1326
1326
|
if (RO || !body || !body.__pwcur || !body.querySelector || !body.querySelector('.pw') || body.querySelector('[data-pw-level]')) return [];
|
|
@@ -1330,11 +1330,11 @@ function capItems(body, hh) {
|
|
|
1330
1330
|
const picked = all.filter((q) => q.kind === 'task' && S.sel.has(String(q.uid))), one = picked.length === 1 ? picked[0] : null;
|
|
1331
1331
|
const epics = (c.r.epics || []).filter(Boolean), cnt = WT.sourceCounts(stagesOf(c.r, c.v, { ...o, today: c.W.today }, S), epics);
|
|
1332
1332
|
const gantt = store.get(VIEW, 'list') === 'gantt';
|
|
1333
|
-
const G = CAP.moreGroups({ picked: picked.length > 0, one: !!one, oneJira: !!(one && one.jira && !one.jsub), allJira: picked.length > 0 && WT.allJira(all, S.sel),
|
|
1333
|
+
const G = CAP.moreGroups({ bar: fourIds(), picked: picked.length > 0, one: !!one, oneJira: !!(one && one.jira && !one.jsub), allJira: picked.length > 0 && WT.allJira(all, S.sel),
|
|
1334
1334
|
oneOpen: !!(one && !one.done && !one.jira), view: gantt ? 'gantt' : 'list', src: !!PD.sourceHtml(cnt, S.src || 'all'), tl: cols().tl }).filter((g) => desk || g.group !== 'View');
|
|
1335
1335
|
const run = async (act, a) => {
|
|
1336
1336
|
noteUse('pop-' + act);
|
|
1337
|
-
if (act === 'shift') return capPress(a,
|
|
1337
|
+
if (act === 'shift' || act === 'add' || act === 'who' || act === 'date' || act === 'stage') return capPress(a, act, c, h, x, redraw); // Change and a left-off Add
|
|
1338
1338
|
if (act === 'epic' || act === 'parent' || act === 'done') return bulkPress(a, act, c, h, x);
|
|
1339
1339
|
if (act === 'sprint' && one) return sprintMenu(a, String(one.uid), c, h, x);
|
|
1340
1340
|
if (act === 'prio' && one) return prioMenu(a, String(one.uid), c, h, x);
|
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
* its presses; pm/use-log.js notes each press as `pop-<action>`.
|
|
4
4
|
*
|
|
5
5
|
* THE CAP Ask PMOS (in the popup's header) and the four actions of the toolbar: five. Back and Close move you; they are not actions.
|
|
6
|
-
* The ⋯ (More actions) holds the rest, grouped Plan, View and Jira. Keys (Ctrl K, the action keys) still reach every action.
|
|
6
|
+
* The ⋯ (More actions) holds the rest, grouped Change, Plan, View and Jira. Keys (Ctrl K, the action keys) still reach every action.
|
|
7
7
|
* ACTIONS the toolbar's candidates: add, who, date, stage, shift, epic. DEFAULT: add, who, date, stage.
|
|
8
8
|
* four(counts, span) → the four ids: the ones used most in the last 30 days; while there are fewer than 30 days of use, DEFAULT
|
|
9
9
|
* due(saved, now) → true when the four are worked out again: none saved, or saved a week or more ago
|
|
10
10
|
* toolbarHtml(ids, o) → the toolbar: the four icon buttons (data-pw-act). o: { picked, jiraPicked }
|
|
11
11
|
* pickLineHtml(act, n) → the line while picking: "Pick the tasks to change · Esc to stop", then "Who for 2 tasks" with its button
|
|
12
12
|
* moreGroups(o) → [{ group, items: [{ act, label, icon }] }] for ⋯. Plan and Jira only while rows are picked (Move the
|
|
13
|
-
* dates always: with nothing picked it moves every open task); View always. o: { picked, one, oneJira,
|
|
14
|
-
* allJira, oneOpen, view, src, tl }. An action that does not apply is not there.
|
|
13
|
+
* dates always: with nothing picked it moves every open task); View always. o: { bar, picked, one, oneJira,
|
|
14
|
+
* allJira, oneOpen, view, src, tl }. An action that does not apply is not there. bar (the toolbar's ids,
|
|
15
|
+
* default DEFAULT): Who, Set the date or Stage left off it go in a first group, Change, while rows are
|
|
16
|
+
* picked; a left-off Add is first in Plan. Toolbar plus ⋯ never loses an action.
|
|
15
17
|
* countActions(html) → the visible actions a block's markup holds (data-pw-act and the old head tools); the guard test fails above
|
|
16
18
|
* five with the header's Ask PMOS
|
|
17
19
|
* ROW_MAX → a row's hover shows at most three: Who, Date, More
|
|
@@ -79,7 +81,11 @@ export function pickLineHtml(act, n) {
|
|
|
79
81
|
/** The ⋯ groups. Zero is silence: an action that does not apply is left out, and so is a group with nothing in it. */
|
|
80
82
|
export function moreGroups(o = {}) {
|
|
81
83
|
const it = (act, label, icon) => ({ act, label, icon });
|
|
82
|
-
|
|
84
|
+
// ⋯ holds every action the toolbar leaves off (Checker flag after #1809): a four from the use log can leave out Who, Set the date or
|
|
85
|
+
// Stage; they go in a first group, Change, shown only while rows are picked, like Plan. A left-out Add is first in Plan at all times.
|
|
86
|
+
const bar = Array.isArray(o.bar) ? o.bar : DEFAULT, off = (k) => !bar.includes(k);
|
|
87
|
+
const change = o.picked ? ['who', 'date', 'stage'].filter(off).map((k) => it(k, ACTIONS[k].label, ACTIONS[k].icon)) : [];
|
|
88
|
+
const plan = [...(off('add') ? [it('add', ACTIONS.add.label, IC.plus)] : []), it('shift', o.picked ? 'Move the dates' : 'Move the dates of every open task', IC.shift)];
|
|
83
89
|
if (o.picked) {
|
|
84
90
|
if (o.allJira) plan.push(it('epic', 'Set the epic', IC.epic));
|
|
85
91
|
if (o.one && o.oneOpen) plan.push(it('sprint', 'Sprint', IC.sprint), it('prio', 'Priority', IC.flag));
|
|
@@ -90,7 +96,7 @@ export function moreGroups(o = {}) {
|
|
|
90
96
|
if (o.src) view.push(it('src', 'Source', IC.src));
|
|
91
97
|
view.push(it('parts', 'Every part', IC.parts));
|
|
92
98
|
const jira = o.picked && o.one && o.oneJira ? [it('jira', 'Status in Jira', IC.jira)] : [];
|
|
93
|
-
return [{ group: 'Plan', items: plan }, { group: 'View', items: view }, { group: 'Jira', items: jira }].filter((g) => g.items.length);
|
|
99
|
+
return [{ group: 'Change', items: change }, { group: 'Plan', items: plan }, { group: 'View', items: view }, { group: 'Jira', items: jira }].filter((g) => g.items.length);
|
|
94
100
|
}
|
|
95
101
|
export const iconOf = (d, w = 14) => SV(d, w);
|
|
96
102
|
|