create-pmos 0.418.0 → 0.419.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 +13 -13
- 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/board-programs-test.js +15 -1
- package/workspace/briefing-premium-board-test.js +2 -2
- package/workspace/changelog.json +12 -0
- package/workspace/guide/briefing-premium.md +2 -2
- package/workspace/lib/board-cli.js +1 -1
- package/workspace/lib/coredoc-cli.js +2 -0
- package/workspace/lib/initiative-chat.js +2 -0
- package/workspace/lib/routes-boards.js +20 -2
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/bd-scroll.js +4 -4
- package/workspace/public/pm/bd-span.js +12 -9
- package/workspace/public/pm/cozy-board.css +1 -1
- package/workspace/public/pm/premium-board.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.419.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -32,6 +32,18 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.419.0",
|
|
37
|
+
"at": "2026-10-26T03:21:59.105Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1055,
|
|
42
|
+
"t": "Eighth testing feedback batch",
|
|
43
|
+
"s": "Eighth testing feedback batch"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
35
47
|
{
|
|
36
48
|
"v": "0.418.0",
|
|
37
49
|
"at": "2026-10-26T01:29:44.041Z",
|
|
@@ -264,18 +276,6 @@
|
|
|
264
276
|
"s": "Testing fixes from the iPhone run of create-pmos 0.399.0"
|
|
265
277
|
}
|
|
266
278
|
]
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"v": "0.399.0",
|
|
270
|
-
"at": "2026-10-23T08:35:27.575Z",
|
|
271
|
-
"f": 2,
|
|
272
|
-
"prs": [
|
|
273
|
-
{
|
|
274
|
-
"n": 1019,
|
|
275
|
-
"t": "Build the uncovered features from the canvas review",
|
|
276
|
-
"s": "Build the uncovered features from the canvas review"
|
|
277
|
-
}
|
|
278
|
-
]
|
|
279
279
|
}
|
|
280
280
|
]
|
|
281
281
|
}
|
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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-26T03:21: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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-26T03:21: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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-26T03:21:55Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -159,6 +159,18 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
159
159
|
ok('T the program row comes first, with its title and products and a thin span over its initiatives\' dates', /tg-pg/.test(t.first) && /Project Ascent/.test(t.title) && /2 products/.test(t.title) && t.span, JSON.stringify(t));
|
|
160
160
|
ok('T three milestones within a week merge into one counted diamond labelled "Pilot live +2 · Nov 18–21"', t.clu.length === 1 && /^3\|3 program milestones from Nov 18 to 21: Pilot live, Pilot users invited, Support ready/.test(t.clu[0]) && t.lab.includes('Pilot live +2 · Nov 18–21'), JSON.stringify(t));
|
|
161
161
|
ok('T the program\'s initiatives sit under it as one-line rows: a status dot and the name', t.kids.join() === 'Descope feature parity,Legacy IdP sunset' && t.oneLine, JSON.stringify(t));
|
|
162
|
+
const nd = await p.evaluate(async () => {
|
|
163
|
+
const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 26);
|
|
164
|
+
const a = { key: 'board:a', id: 'a', title: 'Dated one', start: '2026-10-01', end: '2026-11-20', track: { key: 'build' } };
|
|
165
|
+
const b = { key: 'board:b', id: 'b', title: 'Mobile OTP login', start: null, end: null, track: { key: 'discover' } };
|
|
166
|
+
const c = { key: 'board:c', id: 'c', title: 'Loose undated', start: null, end: null, track: { key: 'discover' } };
|
|
167
|
+
const groups = [{ kind: 'program', key: 'p', program: { id: 'p', title: 'IDPF', products: [] }, products: [{ name: 'X', rows: [b] }], rows: [b] }, { kind: 'product', key: 'x', rows: [a, c] }];
|
|
168
|
+
const T = S.timelineHtml([a, b, c], { jira: null }, 'quarter', { now, groups });
|
|
169
|
+
const d = document.createElement('div'); d.innerHTML = T.html;
|
|
170
|
+
const row = [...d.querySelectorAll('.tg-r[data-row]')].find((r) => /Mobile OTP login/.test(r.textContent));
|
|
171
|
+
return { member: !!row, nd: row ? (row.querySelector('.tg-nd') || {}).textContent : '', loose: [...d.querySelectorAll('.tg-r[data-row]')].some((r) => /Loose undated/.test(r.textContent)), none: T.none.length };
|
|
172
|
+
});
|
|
173
|
+
ok('T an undated initiative in a program keeps its row under the program and says "No dates"; an undated one outside a program is named in the foot only (batch 8 item 4)', nd.member && nd.nd === 'No dates' && !nd.loose && nd.none === 2, JSON.stringify(nd));
|
|
162
174
|
ok('T a legend in the chip row names done, planned, the program milestone, Deliver or Evaluate and today', /Done in Jira/.test(t.lgd) && /Planned/.test(t.lgd) && /Program milestone/.test(t.lgd) && /Deliver or Evaluate/.test(t.lgd) && /Today/.test(t.lgd), t.lgd);
|
|
163
175
|
await p.click('#ibBody .tg-pg .tg-pgo');
|
|
164
176
|
// the program opens in the floating Viewer (shell A), which sits over the right of the timeline; close it before the next press
|
|
@@ -195,6 +207,8 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
195
207
|
await p.click('#bdSpans [data-sp="half"]'); await p.waitForTimeout(250);
|
|
196
208
|
g = await geo();
|
|
197
209
|
ok('S switching span keeps the date in the middle in the middle', g.span === 'half' && Math.abs(g.mid - mid) < 3 * DAY, JSON.stringify({ mid: new Date(mid), now: new Date(g.mid) }));
|
|
210
|
+
// the Monitor and Evaluate rows (batch 8 item 2) widen the range, so the middle can hold today: scroll back to the end, away from today
|
|
211
|
+
await p.evaluate(() => { const sc = document.querySelector('#ibBody .tg-sc'); sc.scrollLeft = sc.scrollWidth; }); await p.waitForTimeout(300);
|
|
198
212
|
await p.click('#ibBody .tg-tback'); await p.waitForTimeout(800);
|
|
199
213
|
g = await geo();
|
|
200
214
|
ok('S the Today button scrolls back to today, a quarter of the way in, and hides', Math.abs(g.at - 0.25) < 0.03 && !g.back.length, JSON.stringify(g));
|
|
@@ -226,7 +240,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
226
240
|
// the phone (TsCPhone, TsCPhoneSpan): the timeline is a view; the span buttons become one picker beside the product picker
|
|
227
241
|
const { ctx, page: p, errors } = await open({ view: 'time', w: 390, h: 844, store: { 'pmos.board.pview': 'time', 'pmos.board.span': 'quarter' } });
|
|
228
242
|
const ph = await p.evaluate(() => ({ spans: !document.querySelector('#bdSpans').hidden, pick: (document.querySelector('#bdSpanBtn') || {}).textContent || '', rows: [...document.querySelectorAll('#ibBody .tgq-r .tgq-n b')].map((b) => b.textContent), names: document.querySelectorAll('#ibBody .tgq-r[data-row] .tgq-n').length }));
|
|
229
|
-
ok('S phone: one span picker beside the product, no span row; each row carries its name above its bar', !ph.spans && ph.pick === 'Quarter' && ph.names ===
|
|
243
|
+
ok('S phone: one span picker beside the product, no span row; each row carries its name above its bar, Monitor and Evaluate rows too (batch 8 item 2)', !ph.spans && ph.pick === 'Quarter' && ph.names === 3 && ph.rows.includes('Legacy IdP sunset') && ph.rows.includes('Inline login for eShop checkout'), JSON.stringify(ph));
|
|
230
244
|
await p.click('#bdSpanBtn'); await p.click('#bdSpanMenu [data-spick="year"]'); await p.waitForTimeout(200);
|
|
231
245
|
ok('S phone: the picker changes the span', await p.evaluate(() => document.querySelector('#ibBody .tg-s').dataset.span === 'year' && document.querySelector('#bdSpanBtn').textContent === 'Year' && localStorage.getItem('pmos.board.span') === 'year'));
|
|
232
246
|
await p.evaluate(() => { const sc = document.querySelector('#ibBody .tg-sc'); sc.scrollLeft = sc.scrollWidth; }); await p.waitForTimeout(200);
|
|
@@ -324,8 +324,8 @@ const IVREAD = () => {
|
|
|
324
324
|
* timeline spans C: TsAllSpans); the scroll itself is checked in board-programs-test.js (T) */
|
|
325
325
|
await view(p, 'time');
|
|
326
326
|
const tl = await p.evaluate(() => ({ spans: [...document.querySelectorAll('#bdSpans button')].map((b) => b.textContent + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join(), shown: !document.querySelector('#bdSpans').hidden, rows: [...document.querySelectorAll('#ibBody .tg-r .tg-n.ini2 b')].map((b) => b.textContent), bars: document.querySelectorAll('#ibBody .tg-bar').length, none: (document.querySelector('.tg-none') || {}).textContent || '', ask: (document.querySelector('#askDates') || {}).href || '', hid: (document.querySelector('.tg-hid') || {}).textContent || '', lgd: (document.querySelector('.tg-lgd') || {}).textContent || '', today: (document.querySelector('#ibBody .tg-tpill') || {}).textContent === 'Today' }));
|
|
327
|
-
ok('B6 the timeline has six spans and starts on Quarter, one row per initiative with dates; the others are named, with an ask to propose dates', tl.shown && tl.spans === 'Sprint,Quarter*,Half,Year,2 yr,5 yr' && tl.rows.length === 3 && tl.bars === 3 && /^
|
|
328
|
-
ok('B6 Monitor and Evaluate
|
|
327
|
+
ok('B6 the timeline has six spans and starts on Quarter, one row per initiative with dates; the others are named, with an ask to propose dates', tl.shown && tl.spans === 'Sprint,Quarter*,Half,Year,2 yr,5 yr' && tl.rows.length === 3 && tl.bars === 3 && /^4 have no dates: Usage-based billing, Audit log export, Refund reason codes, Docs search/.test(tl.none) && /\/premium\.html\?ask=board%3Aw1&q=Propose/.test(tl.ask), JSON.stringify(tl));
|
|
328
|
+
ok('B6 Monitor and Evaluate show on the Quarter, with no hidden count in the footer (batch 8 item 2); the legend (PgTimeline: done, planned, the Jira forecast, Deliver or Evaluate, today) and Today are drawn', tl.hid === '' && /Done in Jira/.test(tl.lgd) && /Planned/.test(tl.lgd) && /Jira forecast/.test(tl.lgd) && /Deliver or Evaluate/.test(tl.lgd) && /Today/.test(tl.lgd) && tl.today, JSON.stringify(tl));
|
|
329
329
|
ok('B6 the spans help popover went with the theme grouping (TsCGrill): the first head is a plain "Initiative"', await p.evaluate(() => !document.querySelector('#popRules') && !document.querySelector('#ibBody [data-rules]') && /^Initiative/.test(document.querySelector('#ibBody .tg-h .tg-n').textContent)));
|
|
330
330
|
await p.click('#ibBody .tg-n[data-key="board:partner-rate-limits"]');
|
|
331
331
|
/* re-pointed (the one view, item 3): the timeline opens the same initiative in the Viewer as every other view. The stage card names the step
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.419.0",
|
|
4
|
+
"at": "2026-10-26T03:21:59.105Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1055,
|
|
9
|
+
"t": "Eighth testing feedback batch",
|
|
10
|
+
"s": "Eighth testing feedback batch"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"v": "0.418.0",
|
|
4
16
|
"at": "2026-10-26T01:29:44.041Z",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "The premium Briefing (/premium.html)"
|
|
4
4
|
description: "The Briefing page at /premium.html: the hero sentence, What you need to do, Today, the dock, and what each one reads from the repository."
|
|
5
|
-
timestamp: 2026-10-
|
|
5
|
+
timestamp: 2026-10-26
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# The premium Briefing
|
|
@@ -324,7 +324,7 @@ Board is the fourth place on the rail, after Chat, at `/premium-board.html`. It
|
|
|
324
324
|
- **The view chip** in the Initiatives head says which view is shown (List, By stage or Timeline); press it to pick another.
|
|
325
325
|
- **List** shows the late and at-risk initiatives first, then the board's now view, up to 100 loaded and 25 on screen at a time. A row shows the owner and lane, a status chip when it is not on track, how far through the workflow it is (and "derived" when the workflow engine placed it), a progress bar only when a record holds progress, and the planned finish only when an end date was set ("Not planned" otherwise). "Do this first" appears only when the first row is late.
|
|
326
326
|
- **By stage** has one column for each stage of the board's workflow with the board's own count and its first five initiatives.
|
|
327
|
-
- **List** and **Timeline** show ten tasks a page with Previous and Next; **By stage** shows six cards a column with Show more. **Timeline** draws a bar for each initiative that has
|
|
327
|
+
- **List** and **Timeline** show ten tasks a page with Previous and Next; **By stage** shows six cards a column with Show more. **Timeline** draws a bar for each initiative that has dates, with the days left or over, and counts the rest. A bar runs from the earliest start to the latest due date of the initiative's breakdown items and its tasks. Every stage shows, Monitor and Evaluate too. Under a program, every initiative of the program has a row; one with no dates says **No dates** beside today. With no dates on record it says so and draws nothing.
|
|
328
328
|
- **Sprint** appears when an agent session has read Jira for the board. Otherwise it says there is none. Press it to open the sprint's facts, with the sprint as a board in a second tab: **To do**, **In progress** and **Done** columns from the last Jira read, with the dates, the days left and the points. The sprint goal is the one the Jira status check writes from the sprint's tickets, as on the console's Sprints tab, with its summary; Jira's own goal shows under it only as a reference (**In Jira: "…"**). Until the check has written one, the tab says **No goal yet**. The active and next sprints are buttons at the top. The closed sprints are behind **Past sprints**, which is shut until you press it. Press any card to open its ticket in another tab. A ticket that is on no initiative of this board shows what the sprint read holds (title, status, points and its Jira link). The board is read only: Jira owns each ticket's status and sprint, so you move tickets in Jira. Tickets with no sprint are not in this read. **Coming up** shows the next release, from the releases ledger.
|
|
329
329
|
- **Open the backlog** is in the Sprint dialog and on its sprint tab. It opens the board's Jira backlog in a tab beside the dialog: the open sprints (active, then next) and then **Backlog**, the tickets in no sprint and not done. A row shows the key, title, status, points and initiative, and why a blocked ticket is blocked. **All**, **Blocked** and **Bugs** filter it (Bugs appears only when the Jira read holds the issue type). A row opens its ticket. The list holds only the tickets the board's initiatives pushed to Jira or hold under their epics, in key order: the Jira read has no rank, assignee or capacity. You move and rank tickets in Jira. With no Jira read, the tab says so.
|
|
330
330
|
- **Next release** shows the next release that carries an initiative of this board, the one planned after it, and the three latest past releases (**Released** when accepted, else **Past**). It reads the release records (`releases/releases.jsonl`, written from the console's Releases view); Jira fix versions alone do not make a release. With no release planned it says so and still lists the past ones. With none at all it says "No release is on record for this board, past or planned."
|
|
@@ -25,7 +25,7 @@ const USAGE = [
|
|
|
25
25
|
' pmos board --mine your own items',
|
|
26
26
|
' pmos board --init <initiative> one initiative',
|
|
27
27
|
' pmos board --json the answer of GET /api/board, for scripts',
|
|
28
|
-
'Done shows the last 14 days.
|
|
28
|
+
'Done shows the last 14 days. Breakdown items only: tasks are in `pmos task list <initiative>`, and they also set the initiative\'s bar on the Board timeline.',
|
|
29
29
|
];
|
|
30
30
|
const BOOL = new Set(['json', 'mine', 'help']);
|
|
31
31
|
const VALUE = new Set(['init', 'root']);
|
|
@@ -23,6 +23,8 @@ const USAGE = [
|
|
|
23
23
|
' pmos coredoc write --scope <portfolio|board:<id>|initiative:<id>> --key <key> --file <path|->',
|
|
24
24
|
' Write ONE draft of a core document (the markdown from the file, or standard input with -). It waits for the PM, who issues it.',
|
|
25
25
|
' Keys: ' + CD.LEVELS.map((l) => `${l}: ${CD.SETS[l].filter(CD.storable).map((x) => x.key).join(', ')}`).join(' · '),
|
|
26
|
+
' A workflow stage\'s document (the stage cards on the initiative page) is initiative key wf-<stage key>, for example wf-technical-poc; `pmos workflow of <initiative>` lists the stage keys.',
|
|
27
|
+
' Only this command fills a card. A file written elsewhere in the repository (planning/prd/…) is not linked to any card.',
|
|
26
28
|
' every command: [--json] [--root <dir>]. Nothing is sent.',
|
|
27
29
|
];
|
|
28
30
|
const BOOL = new Set(['json', 'help']);
|
|
@@ -42,6 +42,8 @@ function rule(info, id) {
|
|
|
42
42
|
'There is one kind of task: the ones the PM sees in the initiative\'s Tasks section. The stage card\'s To finish entries and the older breakdown items are tasks too. '
|
|
43
43
|
+ 'A task\'s state is To do, In progress, Done, Won\'t do or Archived. The Tasks section groups the tasks under the stages of this initiative\'s workflow: a task\'s group is its place in the breakdown, never its state. When the PM asks to add, close, group or change a task, '
|
|
44
44
|
+ `do it yourself, never send the PM to the Board: \`pmos task add ${ini} "<title>" [--stage <stage>] [--due YYYY-MM-DD]\` adds one, \`pmos task list ${ini}\` names them all, \`pmos task state <task> [<task> …] --to "<state>" --why "<what shows it>"\` sets their state and \`pmos task set <task> [<task> …] --stage <stage>|none\` groups them (it also takes --due, --start, --owner, --notes; none clears a date). \`pmos task remove <task> [<task> …]\` deletes a task added by mistake when the PM asks; work that stopped is Archived instead. Never use \`pmos item add\` for new work, and never change tasks to move the initiative.`,
|
|
45
|
+
'The Board timeline draws one bar per initiative, from the earliest start to the latest due of its tasks. An initiative with no dated task has no bar. Every stage shows there, Monitor and Evaluate included. Use these rules when the PM asks why an initiative is not on the timeline.',
|
|
46
|
+
`A stage's document fills its card only through \`pmos coredoc write --scope initiative:${ini} --key wf-<stage key> --file <path>\` (the stage keys are in \`pmos workflow of ${ini}\`). It is a draft the PM issues on the page. A file written under planning/ is not linked to a card.`,
|
|
45
47
|
);
|
|
46
48
|
return out;
|
|
47
49
|
}
|
|
@@ -331,13 +331,31 @@ const wfRowFields = (x) => {
|
|
|
331
331
|
};
|
|
332
332
|
};
|
|
333
333
|
|
|
334
|
+
/** The span of an initiative's own tasks: the earliest start (or due) to the latest due (or start). Won't do and Archived
|
|
335
|
+
* tasks leave it out. null when no task has a date. Feedback batch 8 item 1: a bar drew only from breakdown items, so an initiative
|
|
336
|
+
* planned as dated tasks had no bar on the timeline. */
|
|
337
|
+
function taskSpanOf(folded, id) {
|
|
338
|
+
let start = null, end = null;
|
|
339
|
+
for (const t of (folded && folded.tasks ? folded.tasks.values() : [])) {
|
|
340
|
+
if (!t || t.initiative !== id || t.state === "Won't do" || t.state === 'Archived') continue;
|
|
341
|
+
const a = t.start || t.due, z = t.due || t.start;
|
|
342
|
+
if (!a) continue;
|
|
343
|
+
if (!start || a < start) start = a;
|
|
344
|
+
if (!end || z > end) end = z;
|
|
345
|
+
}
|
|
346
|
+
return start ? { start: String(start).slice(0, 10), end: String(end).slice(0, 10) } : null;
|
|
347
|
+
}
|
|
348
|
+
const minDay = (a, b) => (!a ? b || null : !b ? a : a < b ? a : b);
|
|
349
|
+
const maxDay = (a, b) => (!a ? b || null : !b ? a : a > b ? a : b);
|
|
350
|
+
|
|
334
351
|
function boardRow(board, base, folded, lib) {
|
|
335
352
|
const s = B.stageOf(board, base.id, base.reading, folded);
|
|
353
|
+
const ts = taskSpanOf(folded, base.id); // the bar covers the breakdown items and the tasks
|
|
336
354
|
const wf = B.workflowOf(board, base.id, folded);
|
|
337
355
|
const cat = B.catOf({ workflow: wf }, s.stage);
|
|
338
356
|
const row = {
|
|
339
357
|
id: base.id, title: base.title, lane: base.lane, stage: s.stage, cat, owner: base.owner, anchor: base.anchor,
|
|
340
|
-
horizon: base.horizon, status: base.status, start: base.start, end: base.end, progress: base.progress, warnings: [],
|
|
358
|
+
horizon: base.horizon, status: base.status, start: ts ? minDay(base.start, ts.start) : base.start, end: ts ? maxDay(base.end, ts.end) : base.end, progress: base.progress, warnings: [],
|
|
341
359
|
rank: base.rank, health: B.isActive(base) ? base.health : null, updated: base.updated, reading: base.reading, stageSource: s.source, lifecycle: base.lifecycle,
|
|
342
360
|
stopped: base.stopped || null, archived: archivedOf(folded, base.id),
|
|
343
361
|
template: B.templateOf(board, base.id, folded), workflow: wf.map((x) => ({ name: x.name, cat: x.cat })),
|
|
@@ -1469,4 +1487,4 @@ function meetingBoards(ctx) {
|
|
|
1469
1487
|
return { list, detail };
|
|
1470
1488
|
}
|
|
1471
1489
|
|
|
1472
|
-
module.exports = { prefixes: ['/api/boards'], handle, move, switchWorkflow, taskState, taskAdd, taskEdit, taskDelete, taskRestore, initiativeWorkflow, seedInitiative, stageTasks, itemsOf, boardIndex, appendScanAsk, scanDeclineSignal, createAndPlace, ledgerFile, append, frameFor, boardIdOf, meetingBoards, boardsOf, baseRows, boardRow, workflowRowOf, foldOf, portfolio, SELF_REFUSAL, NO_STATE };
|
|
1490
|
+
module.exports = { prefixes: ['/api/boards'], handle, move, switchWorkflow, taskState, taskAdd, taskEdit, taskDelete, taskRestore, initiativeWorkflow, seedInitiative, stageTasks, itemsOf, boardIndex, appendScanAsk, scanDeclineSignal, createAndPlace, ledgerFile, append, frameFor, boardIdOf, meetingBoards, boardsOf, baseRows, boardRow, taskSpanOf, workflowRowOf, foldOf, portfolio, SELF_REFUSAL, NO_STATE };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.419.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.419.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
|
@@ -110,10 +110,10 @@ function update() {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
/** Scroll a stretch of the track into view: centred, or its near end in view when it is wider than the screen. */
|
|
113
|
-
function bring(a, b, side) {
|
|
113
|
+
function bring(a, b, side, smooth = true) {
|
|
114
114
|
const v = view();
|
|
115
|
-
if (b - a < v.w * 0.9) scrollToX((a + b) / 2 - v.w / 2,
|
|
116
|
-
else scrollToX(side === 'l' ? b - v.w * 0.85 : a - v.w * 0.15,
|
|
115
|
+
if (b - a < v.w * 0.9) scrollToX((a + b) / 2 - v.w / 2, smooth);
|
|
116
|
+
else scrollToX(side === 'l' ? b - v.w * 0.85 : a - v.w * 0.15, smooth);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
function onClick(e) {
|
|
@@ -156,7 +156,7 @@ export function reveal(key) {
|
|
|
156
156
|
const p = row.querySelector('.tg-p[data-a]');
|
|
157
157
|
if (p && !cur.fixed) {
|
|
158
158
|
const a = (+p.dataset.a / 100) * cur.tw, b = (+p.dataset.b / 100) * cur.tw, v = view();
|
|
159
|
-
if (b < v.l || a > v.l + v.w) bring(a, b, b < v.l ? 'l' : 'r');
|
|
159
|
+
if (b < v.l || a > v.l + v.w) bring(a, b, b < v.l ? 'l' : 'r', false); // at once: Find opens the initiative next, and the redraw keeps the scroll it reads
|
|
160
160
|
}
|
|
161
161
|
row.scrollIntoView({ block: 'nearest' });
|
|
162
162
|
row.classList.remove('tint'); void row.offsetWidth; row.classList.add('tint');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* the Jira forecast.
|
|
4
4
|
* · Quarter, Half, Year, 2 yr and 5 yr draw the same rows: programs first, then products, one row per initiative, the plan bar with its done
|
|
5
5
|
* part, the days over, the Jira forecast and the ◇ Deliver or Evaluate date. Only the scale changes: weeks (Quarter), months (Half and
|
|
6
|
-
* Year), quarters (2 yr) and years (5 yr). On 2 yr and 5 yr a date reads "Nov ’26". Monitor and Evaluate
|
|
6
|
+
* Year), quarters (2 yr) and years (5 yr). On 2 yr and 5 yr a date reads "Nov ’26". Every stage shows, Monitor and Evaluate too (feedback batch 8 item 2).
|
|
7
7
|
* · From Quarter on the timeline is wider than the screen and scrolls sideways (pm/bd-scroll.js wires it): it runs from one column before the
|
|
8
8
|
* first date on record to one column after the last, with the ends shaded. A screen shows seven weeks, six months, twelve months, eight
|
|
9
9
|
* quarters or five years (a phone three, three, four, four and two).
|
|
@@ -75,7 +75,6 @@ const P = (x) => x.toFixed(2) + '%';
|
|
|
75
75
|
const doneOf = (r) => { const p = r.track && r.track.prog; return p ? Math.max(0, Math.min(100, (p.done / Math.max(1, p.total)) * 100)) : 0; };
|
|
76
76
|
const toneOf = (r) => (r.late ? 'late' : r.status === 'at risk' ? 'risk' : r.track && r.track.you ? 'you' : r.status === 'on track' ? 'ok' : 'q');
|
|
77
77
|
const dated = (r) => day(r.start) || day(r.end) || (r.track && day(r.track.forecast));
|
|
78
|
-
const hidden = (r) => r.track && (r.track.key === 'monitor' || r.track.key === 'evaluate');
|
|
79
78
|
/** Done work leaves no edge tab (TsCGrill 5): the initiative is past Deliver, or every part it counts is done. */
|
|
80
79
|
const isDone = (r) => !!(r.track && (r.track.k >= 6 || (r.track.prog && r.track.prog.total > 0 && r.track.prog.done >= r.track.prog.total)));
|
|
81
80
|
/** The first and last mark of a row: the plan, the forecast, and today while it is over. */
|
|
@@ -156,10 +155,10 @@ function datesOf(list, M, o) {
|
|
|
156
155
|
return ds.filter(Boolean);
|
|
157
156
|
}
|
|
158
157
|
|
|
159
|
-
/** Every span from Quarter on, and Sprint on a phone. o: { now, phone, sel, status(r) → { tone, text },
|
|
158
|
+
/** Every span from Quarter on, and Sprint on a phone. o: { now, phone, sel, status(r) → { tone, text }, askHref, trackPx } */
|
|
160
159
|
function scaled(rows, M, o) {
|
|
161
160
|
const now = o.now, sprint = M.jira && M.jira.sprint, rel = M.jira && M.jira.release, sp = o.span === 'sprint' ? 'sprint' : SCALE[o.span] ? o.span : 'quarter';
|
|
162
|
-
const
|
|
161
|
+
const list = rows.filter(dated), none = rows.filter((r) => !dated(r));
|
|
163
162
|
const W = windowOf(sp, now, o.phone, sprint, datesOf(list, M, o)), X = pctOf(W);
|
|
164
163
|
const long = W.unit === 'q' || W.unit === 'y', fmt = long ? my : md;
|
|
165
164
|
// one screen shows W.cols columns; the track is as many screens wide as the window holds (pm/bd-scroll.js measures it again on screen)
|
|
@@ -168,6 +167,8 @@ function scaled(rows, M, o) {
|
|
|
168
167
|
const reach = Math.max(W.fixed ? 1 : 2, Math.round(120 / pxDay)); // program milestones closer than ~120 px merge (TsCGrill 9)
|
|
169
168
|
const ov = overlay(W, X, now, sprint, rel);
|
|
170
169
|
const ra = rel && day(rel.iso), sa = sprint && day(sprint.start), sb = sprint && day(sprint.end);
|
|
170
|
+
// an undated program member's track says so beside today, where the view opens
|
|
171
|
+
const ND = `<span class="tg-nd" style="left:${P(Math.min(90, Math.max(0, X(now))))}">No dates</span>`;
|
|
171
172
|
const askBtn = none.length ? `<a class="bd-chip tg-ask" id="askDates" href="${esc(o.askHref(none))}">${SV('M4 5h16v11h-9l-5 4v-4H4z')}Ask to propose dates</a>` : '';
|
|
172
173
|
const ticks = W.ticks.map((k) => `<span style="left:${P(X(k.at))}" data-y="${k.y}" data-base="${esc(k.base)}"${k.plain ? ' data-plain' : ''}><b>${esc(k.label)}</b><small>${esc(k.sub)}</small></span>`).join('');
|
|
173
174
|
const tn = now > W.from && now < W.to ? X(now) : null;
|
|
@@ -175,12 +176,14 @@ function scaled(rows, M, o) {
|
|
|
175
176
|
const back = `<button type="button" class="tg-tback" data-today hidden aria-label="Back to today">${SV(CHL)}<span>Today</span>${SV(CHR)}</button>`;
|
|
176
177
|
const attrs = `data-span="${sp}" data-from="${+W.from}" data-to="${+W.to}" data-ratio="${W.fixed ? 1 : ratio.toFixed(5)}" data-now="${+now}"${W.fixed ? ' data-fixed' : ''}`;
|
|
177
178
|
const style = `--tw:${Math.round(tpx * (W.fixed ? 1 : ratio))}px`;
|
|
178
|
-
|
|
179
|
+
// a program keeps its undated initiatives as rows that say "No dates" (feedback batch 8 item 4: initiatives just moved into a program
|
|
180
|
+
// were missing under it); a product group keeps only the dated ones, and the foot names the rest
|
|
181
|
+
const G = o.groups ? o.groups.map((g) => (g.kind === 'program' ? { ...g, products: g.products.filter((x) => x.rows.length) } : { ...g, rows: g.rows.filter((r) => list.includes(r)) })).filter((g) => g.rows.length || g.kind === 'program') : null;
|
|
179
182
|
const empty = '<p class="tg-empty">No initiative on screen has a date on record.</p>';
|
|
180
183
|
const ext = (r) => { const x = extentOf(r, now); return x ? ` data-a="${X(x.a).toFixed(3)}" data-b="${X(x.b).toFixed(3)}"` : ''; };
|
|
181
184
|
if (o.phone) {
|
|
182
185
|
// TsCPhone: each row carries its name above its bar; the name stays at the left while you swipe
|
|
183
|
-
const one = (r) => `<div class="tgq-r${o.sel === r.key ? ' sel' : ''}" data-row="${esc(r.key)}"><button type="button" class="tgq-n ini2" data-key="${esc(r.key)}" aria-label="${esc(r.title + ', ' + o.status(r).text)}"><i class="cz-dot ${toneOf(r)}" aria-hidden="true"></i><b>${esc(r.title)}</b></button><div class="tg-p"${ext(r)}>${ov}${qBar(r, X, now, true, fmt)
|
|
186
|
+
const one = (r) => `<div class="tgq-r${o.sel === r.key ? ' sel' : ''}" data-row="${esc(r.key)}"><button type="button" class="tgq-n ini2" data-key="${esc(r.key)}" aria-label="${esc(r.title + ', ' + o.status(r).text)}"><i class="cz-dot ${toneOf(r)}" aria-hidden="true"></i><b>${esc(r.title)}</b></button><div class="tg-p"${ext(r)}>${ov}${dated(r) ? qBar(r, X, now, true, fmt) + edgeTabs(r, X, now, true) : ND}</div></div>`;
|
|
184
187
|
const body = G ? G.map((g) => {
|
|
185
188
|
if (g.kind !== 'program') return o.prodHtml(g) + (o.folded(g.key) ? '' : g.rows.map(one).join(''));
|
|
186
189
|
const st = o.progState(g.program), s2 = progSpan(g);
|
|
@@ -194,7 +197,7 @@ function scaled(rows, M, o) {
|
|
|
194
197
|
const head = `<div class="tg-r tg-h"><div class="tg-n"><b>Initiative</b>${back}</div><div class="tg-p">${ticks}${pill}</div></div>`;
|
|
195
198
|
// one line per initiative (PgTimeline): its status dot and its name; the owner and the step stay in the row's title for a pointer and a reader
|
|
196
199
|
const one = (r, cls) => { const s = o.status(r), sub = [r.owner, r.track ? r.track.label : r.stage, s.text].filter(Boolean).join(' · ');
|
|
197
|
-
return `<div class="tg-r${cls || ''}${o.sel === r.key ? ' sel' : ''}" data-row="${esc(r.key)}"><button type="button" class="tg-n ini2" data-key="${esc(r.key)}" title="${esc(sub)}" aria-label="${esc(r.title + ', ' + sub)}"><i class="cz-dot ${toneOf(r)}${toneOf(r) === 'you' ? ' m-info' : toneOf(r) === 'late' || toneOf(r) === 'risk' ? ' m-warn' : ''}" aria-hidden="true"></i><b>${r.inProgram && o.memberIcon ? o.memberIcon(r.inProgram) : ''}${esc(r.title)}</b></button><div class="tg-p"${ext(r)}>${ov}${qBar(r, X, now, false, fmt)
|
|
200
|
+
return `<div class="tg-r${cls || ''}${o.sel === r.key ? ' sel' : ''}" data-row="${esc(r.key)}"><button type="button" class="tg-n ini2" data-key="${esc(r.key)}" title="${esc(sub)}" aria-label="${esc(r.title + ', ' + sub)}"><i class="cz-dot ${toneOf(r)}${toneOf(r) === 'you' ? ' m-info' : toneOf(r) === 'late' || toneOf(r) === 'risk' ? ' m-warn' : ''}" aria-hidden="true"></i><b>${r.inProgram && o.memberIcon ? o.memberIcon(r.inProgram) : ''}${esc(r.title)}</b></button><div class="tg-p"${ext(r)}>${ov}${dated(r) ? qBar(r, X, now, false, fmt) + edgeTabs(r, X, now, false) : ND}</div></div>`; };
|
|
198
201
|
// programs first, then the product (PgTimeline): the program's row brackets its initiatives' bars and draws its milestones as diamonds
|
|
199
202
|
const body = G ? G.map((g) => {
|
|
200
203
|
if (g.kind !== 'program') return o.prodHtml(g) + (o.folded(g.key) ? '' : g.rows.map((r) => one(r, ' tg-gr')).join(''));
|
|
@@ -204,7 +207,7 @@ function scaled(rows, M, o) {
|
|
|
204
207
|
// the sprint band and the release keep their labels under the axis on Quarter, where a week is wide enough to read them
|
|
205
208
|
const axl = sp === 'quarter' ? `${sa && sb && sb > W.from && sa < W.to ? `<span class="tg-axl sb" style="left:${P(X(sa))}">Jira ${esc(sprint.name.toLowerCase())} · ${esc(md(sa))} – ${esc(md(sb))}</span>` : ''}${ra && ra > W.from && ra < W.to ? `<span class="tg-axl rl" style="left:${P(X(ra))}">${SV(FLAG)}${esc(rel.name)} · ${esc(md(ra))}</span>` : ''}` : '';
|
|
206
209
|
const axis = axl ? `<div class="tg-ax"><span class="tg-n"></span><div class="tg-p">${axl}</div></div>` : '';
|
|
207
|
-
const foot = none.length
|
|
210
|
+
const foot = none.length ? `<div class="tg-ft">${none.length ? `<span class="tg-none"><b>${none.length} ${none.length === 1 ? 'has' : 'have'} no dates:</b> <span>${esc(none.slice(0, 4).map((r) => r.title).join(', '))}${none.length > 4 ? ' and ' + (none.length - 4) + ' more' : ''}</span>${askBtn}</span>` : '<span></span>'}</div>` : '';
|
|
208
211
|
return { html: `<div class="tg tg-q tg-s" ${attrs}><div class="tg-scw"><div class="tg-sc" tabindex="0" role="group" aria-label="Timeline" style="${style}"><div class="tg-in">${head}<div class="tg-body">${body || empty}</div>${axis}</div></div><i class="tg-fade l" aria-hidden="true"></i><i class="tg-fade r" aria-hidden="true"></i></div>${foot}</div>`, none };
|
|
209
212
|
}
|
|
210
213
|
|
|
@@ -299,7 +302,7 @@ function sprintSpan(rows, M, o) {
|
|
|
299
302
|
|
|
300
303
|
/** The timeline's markup for the rows on screen. → { html, none: [rows with no dates] } */
|
|
301
304
|
export function timelineHtml(rows, M, span, o = {}) {
|
|
302
|
-
const opt = { now: new Date(), phone: false, sel: null, status: () => ({ tone: 'q', text: '' }),
|
|
305
|
+
const opt = { now: new Date(), phone: false, sel: null, status: () => ({ tone: 'q', text: '' }), askHref: () => '#', prodHtml: () => '', subHtml: () => '', folded: () => false, progState: () => ({ milestones: [], state: '' }), ...o };
|
|
303
306
|
opt.span = span;
|
|
304
307
|
if (span === 'sprint' && !opt.phone) return sprintSpan(rows, M, opt);
|
|
305
308
|
return scaled(rows, M, opt);
|
|
@@ -388,7 +388,7 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
388
388
|
.tg-none { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--cz-ink3); font-weight: 600; }
|
|
389
389
|
.tg-none b { color: var(--cz-ink2); font-weight: 800; }
|
|
390
390
|
.tg-none .bd-chip { font-weight: 700; }
|
|
391
|
-
.tg-
|
|
391
|
+
.tg-nd { position: absolute; margin-left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--cz-ink3); }
|
|
392
392
|
.tg-empty { margin: 0; padding: 18px 14px; font-size: 13px; color: var(--cz-ink3); }
|
|
393
393
|
/* every span from Quarter on scrolls sideways (pm/bd-scroll.js): the track is --tw wide, the name column stays pinned, the scrollbar shows on
|
|
394
394
|
hover only and the fades show only on the side where there is more (TsCGrill 13, 14) */
|
|
@@ -383,7 +383,7 @@ function drawTrack(L) {
|
|
|
383
383
|
function drawTime(L) {
|
|
384
384
|
const S = M.steps || [], phone = PHONE.matches, bw = $('#ibBody').clientWidth || innerWidth;
|
|
385
385
|
const T = timelineHtml(L, M, span, { groups: groups(L), progState, folded: PG.folded, prodHtml: (g) => PG.prodHtml(g, 'tg-prd'), subHtml: (n) => PG.subHtml(n, 'tg-psb'), progTile: () => PG.progTile(), productsOf: PG.productsOf,
|
|
386
|
-
foldBtn: (g) => PG.foldBtn(g.key, g.program.title), memberIcon: (id) => PG.memberIcon(PGS, id), sel: peek && peek.kind !== 'acts' ? peek.key : null, status: statusOf,
|
|
386
|
+
foldBtn: (g) => PG.foldBtn(g.key, g.program.title), memberIcon: (id) => PG.memberIcon(PGS, id), sel: peek && peek.kind !== 'acts' ? peek.key : null, status: statusOf, phone, trackPx: bw - 2 - (phone ? 0 : matchMedia('(max-width: 980px)').matches ? 180 : 250), avatar: (n) => V.avatar(n, 'sm'),
|
|
387
387
|
askHref: (none) => askHref(null, 'Propose start and end dates for ' + none.map((r) => r.title).join(', ')) });
|
|
388
388
|
return T.html;
|
|
389
389
|
}
|