create-pmos 0.430.0 → 0.431.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/changelog.json +12 -0
- package/workspace/guide/home.md +2 -2
- package/workspace/guide/programs.md +2 -2
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/bd-span.js +17 -14
- package/workspace/public/pm/stage-line.js +7 -5
- package/workspace/test-lists/milestone-label.json +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.431.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.431.0",
|
|
37
|
+
"at": "2026-10-28T01:37:46.171Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1075,
|
|
42
|
+
"t": "A milestone on the timeline says its own name and date (hotfix)",
|
|
43
|
+
"s": "A milestone on the Board timeline says its own name and date."
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
35
47
|
{
|
|
36
48
|
"v": "0.430.0",
|
|
37
49
|
"at": "2026-10-28T00:05:38.060Z",
|
|
@@ -259,18 +271,6 @@
|
|
|
259
271
|
"s": "Agents finish the work they were asked to do"
|
|
260
272
|
}
|
|
261
273
|
]
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"v": "0.411.0",
|
|
265
|
-
"at": "2026-10-25T04:42:12.945Z",
|
|
266
|
-
"f": 2,
|
|
267
|
-
"prs": [
|
|
268
|
-
{
|
|
269
|
-
"n": 1042,
|
|
270
|
-
"t": "Stage card, chat progress line, asks, goal setup, Mentions, session names, outside files",
|
|
271
|
-
"s": "Stage card, chat progress line, asks, goal setup, Mentions, session names, outside files"
|
|
272
|
-
}
|
|
273
|
-
]
|
|
274
274
|
}
|
|
275
275
|
]
|
|
276
276
|
}
|
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-28T01:37:43Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-28T01:37:43Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-28T01:37:43Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.431.0",
|
|
4
|
+
"at": "2026-10-28T01:37:46.171Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1075,
|
|
9
|
+
"t": "A milestone on the timeline says its own name and date (hotfix)",
|
|
10
|
+
"s": "A milestone on the Board timeline says its own name and date."
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"v": "0.430.0",
|
|
4
16
|
"at": "2026-10-28T00:05:38.060Z",
|
package/workspace/guide/home.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "Home (/premium.html) and the designed features"
|
|
4
4
|
description: "Home in the Agreed design: the list grouped by product, the Viewer, the place menu, New for you, Search, and the initiative, meeting, report, Board and Insights features designed after it."
|
|
5
|
-
timestamp: 2026-10-
|
|
5
|
+
timestamp: 2026-10-28
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Home
|
|
@@ -51,7 +51,7 @@ Press an initiative's name in the list, or open `?ini=<id>`. The list stays as i
|
|
|
51
51
|
|
|
52
52
|
- The page's header shows the lane and the anchor, the name, **New session** (+), ⋯, Open wide and Close.
|
|
53
53
|
- The stage card shows the stage, **N of M done** for its tasks, the days in the stage (for example "9 of ~7 days", amber when over the usual time) and → for the next stage. → turns blue when every task of the stage is done.
|
|
54
|
-
- Under the header is one line for the whole initiative. Each stage is a part of the line, on its own dates. Done stages are grey, the current stage is blue, later stages are light, and a stage with no dated task is dashed. The ◇ marks are the milestone tasks, with the name above and the date below. The end ◇ is the end date. A thin tick is Today.
|
|
54
|
+
- Under the header is one line for the whole initiative. Each stage is a part of the line, on its own dates. Done stages are grey, the current stage is blue, later stages are light, and a stage with no dated task is dashed. The ◇ marks are the milestone tasks, with the name above and the date below. The end ◇ is the end date. When a milestone task in the last milestone stage stands for the end, the end ◇ sits on that task's own date and shows it. A thin tick is Today.
|
|
55
55
|
- Press a part to show that stage in **Tasks**. Press **N of M done** to do the same. Press a ◇ to open the milestone task in **Tasks**. Milestones a few days apart merge into one ◇ with a count. Press it to list them.
|
|
56
56
|
- The line also shows what the Board's timeline shows: » for a skipped stage, a dotted gap and ⏸ for a hold (press ⏸ to set or change the return date), a hairline for 2 weeks or more with no activity (press it; ahead of Today, + adds a task in the gap), hatching past the end date, a dashed Jira forecast, a thin line under it for a saved plan, and "after <initiative>" when it waits on another initiative.
|
|
57
57
|
- A cancelled, done or archived initiative leaves Home, and so do the next steps that were for it.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "Programs on the Board: All products, groupings and the program panel"
|
|
4
4
|
description: "A program groups initiatives across products. How it shows on the Board (stage track, Kanban, timeline and List), the All products mode, the By product grouping, the program panel and the side panel width."
|
|
5
|
-
timestamp: 2026-10-
|
|
5
|
+
timestamp: 2026-10-28
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Programs on the Board
|
|
@@ -23,7 +23,7 @@ A cancelled or archived initiative leaves its program's views: the band, the pro
|
|
|
23
23
|
- The **timeline** draws a program row that brackets its initiatives' bars, on every span. Program milestones are diamonds. Milestones that are close together merge into one diamond with a count.
|
|
24
24
|
- On the timeline, a **product's head row** also shows milestones. Nothing is added by hand: the row shows every milestone of the product's initiatives, which are each milestone task and each initiative's end diamond (its Deliver or Evaluate date). The diamonds are the same as on the initiative rows: open, filled when done, orange when late. Diamonds that are close together merge into one diamond with a count and the date range under it. Press it to see a list with the milestone, its initiative and the date. Press a line to open that initiative. Hold the pointer on a single diamond to see its milestone and initiative. A thin line goes from the first start to the last end of the product's initiatives. When the product is folded, the row stays the same, so it is a summary of the product. On a phone the diamonds have no dates; tap the row to see all the milestones in date order. A product inside a program has no such row, because the program row shows its milestones.
|
|
25
25
|
- On the timeline, an initiative row shows only its **pinned** milestones. By default that is its last milestone. Press a diamond to see every milestone of the initiative, with how many are on the timeline. Press the pin beside a milestone to show it or to hide it. To see every milestone or none, open **Filter** and pick **Milestones on the timeline: Pinned**, **All** or **None**. The Board keeps your pick. From a terminal: `pmos task set <task> --pin`, `--no-pin`, or `--pin-default` to go back to the default.
|
|
26
|
-
- The label at the end of an initiative row says what lands and when. When a milestone task is in the last milestone stage, or is on the end date, or is in the Deliver stage, the label shows its name and its own date, and the end date of the initiative shows when you hold the pointer on the label. Otherwise the label is **Deliver** (or **Evaluate**) and the end date. Press that end diamond: the card has the same words as the label, then the milestones of the initiative.
|
|
26
|
+
- The label at the end of an initiative row says what lands and when. When a milestone task is in the last milestone stage, or is on the end date, or is in the Deliver stage, or is so close to the end date that its diamond would sit on the end diamond, the label shows its name and its own date, and the end date of the initiative shows when you hold the pointer on the label. Otherwise the label is **Deliver** (or **Evaluate**) and the end date. Press that end diamond: the card has the same words as the label, then the milestones of the initiative.
|
|
27
27
|
- **List** has a Product column and a Program column. Press a column header to sort by it.
|
|
28
28
|
- **New** opens a menu: **New initiative** or **New program**.
|
|
29
29
|
- A new program shows at once, before any initiative joins it. A program with no open initiative shows on its own product's Board and on All products, with "No initiatives yet" or "No open initiatives". Press its name, then **⋯** and **Move an initiative in**. That menu lists open initiatives only, grouped by product, with the program's own product first, wherever you open the program (Home, another product's Board or All products). An initiative joins in its own product.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.431.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.431.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* the hairline and » only; its row sheet lists them. A gap never changes the row's dot or risk.
|
|
29
29
|
* Calmer timeline (feedback batch 13 item 4, A: XcalmA1Desk, A4Dark, A3Phone, A2Folded, A5Milestones): say it once, few marks, quiet rows.
|
|
30
30
|
* · One label per bar end: what lands, then when ("Tender award Nov 3"; the year only when it is not this year). The name is the end milestone's,
|
|
31
|
-
* else Deliver or Evaluate. The date turns amber at risk and orange late; the rest (days over, the forecast, a slip, a clash) is its hover.
|
|
31
|
+
* else a milestone close enough to merge with the end ◇, else Deliver or Evaluate. The date turns amber at risk and orange late; the rest (days over, the forecast, a slip, a clash) is its hover.
|
|
32
32
|
* With no room at the right edge the label sits before the ◇, on a card chip. No date under a ◇ and no second date.
|
|
33
33
|
* · Marks: the bar (done dark, to do light), a 2 px hairline for any gap or hold (a hold's hairline opens the hold card), one ◇ (filled done,
|
|
34
34
|
* orange late), the dashed Jira forecast, Today. The dotted hold, ⏸, the amber tint, the blue ◆ and the hatched out-of-window band are gone.
|
|
@@ -200,7 +200,7 @@ function qBar(r, X, now, phone, fmt, pxPct, ms = {}) {
|
|
|
200
200
|
const risk = r.status === 'at risk' ? 'risk' : r.status === 'on hold' ? 'q' : '';
|
|
201
201
|
let out = tm.html + depHtml(r, X, phone), clash = null;
|
|
202
202
|
if (s && e) {
|
|
203
|
-
const g = gapsHtml(r, X, now, phone, fmt, pxPct || 0, s, e, tone, note);
|
|
203
|
+
const g = gapsHtml(r, X, now, phone, fmt, pxPct || 0, s, e, tone, note, et ? { name: et.name, d: day(et.date) } : null);
|
|
204
204
|
out += g.html; clash = g.clash;
|
|
205
205
|
const over = r.over && now > e, late = fc && fc > e, hover = [];
|
|
206
206
|
if (over) hover.push(r.overDays + ' ' + (r.overDays === 1 ? 'day' : 'days') + ' over');
|
|
@@ -260,7 +260,7 @@ export function holdWords(x, now) {
|
|
|
260
260
|
}
|
|
261
261
|
/** The plan bar cut by its holds and its plain gaps: the pieces (the done part fills them in order and skips the gaps), each hold's dotted line and ⏸,
|
|
262
262
|
* and the return date where the bar starts again. → { html, clash } — clash: the words when the return date falls after the end ◇. */
|
|
263
|
-
function gapsHtml(r, X, now, phone, fmt, pxPct, s, e, tone, note = '') {
|
|
263
|
+
function gapsHtml(r, X, now, phone, fmt, pxPct, s, e, tone, note = '', lands = null) {
|
|
264
264
|
const wide = (a, b) => !pxPct || (X(b) - X(a)) * pxPct >= MIN_PX;
|
|
265
265
|
// a resumed hold narrower than 8 px closes up; a hold still running always shows, so its ⏸ is there to press
|
|
266
266
|
const H = holdSpans(r, now), shown = H.filter((x) => x.kind !== 'past' || wide(x.a, x.b));
|
|
@@ -317,8 +317,9 @@ function gapsHtml(r, X, now, phone, fmt, pxPct, s, e, tone, note = '') {
|
|
|
317
317
|
const late = x.kind === 'over' ? ' late' : '', l = X(x.a), w = X(x.b) - l, words = holdWords(x, now) + (x.kind === 'none' ? '. Set a return date' : '. Open the hold');
|
|
318
318
|
html += `<button type="button" class="tg-ng ho${late}" data-hold="${esc(r.key)}" data-i="${x.i}" style="left:${P(l)};width:${P(w)}" aria-label="${esc(words)}" title="${esc(holdWords(x, now))}" aria-haspopup="dialog"></button>`;
|
|
319
319
|
}
|
|
320
|
-
|
|
321
|
-
const
|
|
320
|
+
// the end ◇'s own name and date when a milestone task is it (the timeline-label hotfix: never a stage name for a milestone)
|
|
321
|
+
const ob = H.find((x) => x.kind === 'open' && x.b > (lands ? lands.d : e));
|
|
322
|
+
const clash = ob ? (lands ? lands.name : r.track && r.track.k >= 6 ? 'Evaluate' : 'Deliver') + ' is before the return, ' + md(ob.b) : null;
|
|
322
323
|
return { html, clash };
|
|
323
324
|
}
|
|
324
325
|
const iso = (d) => d.getFullYear() + '-' + String(d.getMonth() + 1).padStart(2, '0') + '-' + String(d.getDate()).padStart(2, '0');
|
|
@@ -329,14 +330,16 @@ const lastMs = (r) => { const S = (r.wfStages || []).filter((x) => x && x.milest
|
|
|
329
330
|
const msStage = (r, m) => { if (!m.sec) return ''; const st = (r.wfStages || []).find((x) => x.key === m.sec); return st ? (st.milestone ? st.name : '') : /^(deliver|evaluate)$/i.test(m.sec) ? m.sec.replace(/^./, (c) => c.toUpperCase()) : ''; };
|
|
330
331
|
/** The milestone task the bar's end ◇ stands for, or null. The end ◇ is the workflow's last ◆ stage (Evaluate on Product feature): the latest
|
|
331
332
|
* milestone task in that stage IS it, else one on the end's own day, else the latest task in any ◆ stage (Deliver: batch 14 item 1, so a
|
|
332
|
-
* "rolled out" task in Deliver names the row's end)
|
|
333
|
-
*
|
|
334
|
-
|
|
333
|
+
* "rolled out" task in Deliver names the row's end), else the latest one close enough to the end to merge with its ◇ (`reach` days, the
|
|
334
|
+
* zoom's ~40 px: the timeline-label hotfix, "[Tender] 12.0 Award contract" on Nov 2 sat under the end ◇ labelled "Deliver Nov 4"; one mark says
|
|
335
|
+
* the milestone's own name and date). It takes that task's name, date and done, and is not drawn twice. A task outside the ◆ stages and
|
|
336
|
+
* away from the end keeps its own ◇, and the plain end ◇ says Deliver or Evaluate. M: the row's dated milestones. */
|
|
337
|
+
function endTask(r, M, reach = 0) {
|
|
335
338
|
const e = day(r.end); if (!e || !M.length) return null;
|
|
336
339
|
const S = M.slice().sort((a, b) => day(a.date) - day(b.date));
|
|
337
340
|
const last = lastMs(r), inLast = S.filter((m) => m.sec && m.sec.toLowerCase() === last);
|
|
338
341
|
const inMs = S.filter((m) => msStage(r, m));
|
|
339
|
-
const end = inLast.length ? inLast[inLast.length - 1] : S.find((m) => +day(m.date) === +e) || inMs[inMs.length - 1];
|
|
342
|
+
const end = inLast.length ? inLast[inLast.length - 1] : S.find((m) => +day(m.date) === +e) || inMs[inMs.length - 1] || S.filter((m) => Math.abs(day(m.date) - e) <= reach * 864e5).pop();
|
|
340
343
|
return end ? { ...end, stage: msStage(r, end) } : null;
|
|
341
344
|
}
|
|
342
345
|
/** One ◇ per milestone task the Filter shows (batch 13 item 4, XcalmA5Milestones; pm/bd-pins.js shownMs: the pinned ones, by default the last),
|
|
@@ -346,7 +349,7 @@ function endTask(r, M) {
|
|
|
346
349
|
function taskMarks(r, X, now, phone, pxPct, ms) {
|
|
347
350
|
const M = (r.milestones || []).filter((m) => day(m.date));
|
|
348
351
|
if (!M.length) return { html: '', end: null };
|
|
349
|
-
const end = endTask(r, M), show = new Set(shownMs(r, ms.mode || 'pinned').map((m) => m.id));
|
|
352
|
+
const end = endTask(r, M, ms.reach || 0), show = new Set(shownMs(r, ms.mode || 'pinned').map((m) => m.id));
|
|
350
353
|
const L = M.filter((m) => (!end || m.id !== end.id) && show.has(m.id)).map((m) => ({ ...m, late: msLate(m, now), stage: msStage(r, m) }))
|
|
351
354
|
.filter((m) => { const x = X(day(m.date)); return x > 0 && x < 100; });
|
|
352
355
|
const C = mergeClose(L, Math.max(1, ms.reach || 7));
|
|
@@ -366,10 +369,10 @@ function taskMarks(r, X, now, phone, pxPct, ms) {
|
|
|
366
369
|
* late. Close ◇s merge into one counted ◇ (the rows' reach, about 40 px) with the date range under it; pressing it lists them, each line opening
|
|
367
370
|
* its initiative. A thin line runs from the first start to the last end. A phone draws the ◇s alone; a tap on the lane lists them in a sheet. */
|
|
368
371
|
/** A product's milestones, by date: [{ id, name, date, done, late, row }]. */
|
|
369
|
-
export function laneMilestones(rows, now) {
|
|
372
|
+
export function laneMilestones(rows, now, reach = 0) {
|
|
370
373
|
const out = [];
|
|
371
374
|
for (const r of rows || []) {
|
|
372
|
-
const M = (r.milestones || []).filter((m) => day(m.date)), s = day(r.start), e = day(r.end), et = endTask(r, M);
|
|
375
|
+
const M = (r.milestones || []).filter((m) => day(m.date)), s = day(r.start), e = day(r.end), et = endTask(r, M, reach);
|
|
373
376
|
for (const m of M) if (!et || m.id !== et.id) out.push({ id: m.id, name: m.name, date: m.date, done: !!m.done, late: msLate(m, now), row: r });
|
|
374
377
|
if (!s || !e) continue;
|
|
375
378
|
const ob = openBack(r, now), late = (r.over && now > e) || (ob && ob > e) || (et && msLate(et, now));
|
|
@@ -401,14 +404,14 @@ function offDots(rows, now) {
|
|
|
401
404
|
/** A folded group's track (XcalmA2Folded): the roll-up line, the counted ◇s and the end date. Open, a group draws nothing (its rows say it). */
|
|
402
405
|
function rollUp(rows, sp, X, W, o, ms, pxPct, now) {
|
|
403
406
|
if (!sp || sp.hi <= W.from || sp.lo >= W.to) return '';
|
|
404
|
-
const L = laneMilestones(rows, now);
|
|
407
|
+
const L = laneMilestones(rows, now, ms.reach);
|
|
405
408
|
const end = o.phone ? '' : `<span class="tg-endl" style="left:${P(X(sp.hi))}" title="${esc('Last end ' + md(sp.hi) + ', ' + sp.hi.getFullYear())}"><b>${esc(my(sp.hi))}</b></span>`;
|
|
406
409
|
return progLine({ rows }, sp, X, now) + laneMarks(L, X, o.phone, pxPct, ms) + end;
|
|
407
410
|
}
|
|
408
411
|
/** The product's head row on the timeline: the name cell (tile, name, goal dots, count when folded, the fold) and the lane. Open or folded it
|
|
409
412
|
* looks the same: folded, it is the product's summary. */
|
|
410
413
|
function laneRow(g, X, W, ov, o, ms, pxPct, now) {
|
|
411
|
-
const shut = o.folded(g.key), sp = progSpan(g), L = shut ? laneMilestones(g.rows, now) : [];
|
|
414
|
+
const shut = o.folded(g.key), sp = progSpan(g), L = shut ? laneMilestones(g.rows, now, ms.reach) : [];
|
|
412
415
|
const tr = shut ? rollUp(g.rows, sp, X, W, o, ms, pxPct, now) : '', cell = o.prodCell(g, shut ? offDots(g.rows, now) : '');
|
|
413
416
|
if (o.phone) return `<div class="tgq-r tg-lane${shut ? ' closed' : ''}" data-lane="${esc(g.key)}"><div class="tgq-n tg-lnn">${cell}</div><div class="tg-p"${L.length ? ` data-lane-ms="${laneData(L)}" data-lane-name="${esc(g.name)}"` : ''}>${ov}${tr}</div></div>`;
|
|
414
417
|
return `<div class="tg-r tg-lane${shut ? ' closed' : ''}" role="row" data-lane="${esc(g.key)}"><div class="tg-n tg-lnn" role="rowheader">${cell}</div><div class="tg-p" role="cell">${ov}${tr}</div></div>`;
|
|
@@ -226,8 +226,8 @@ export function lineOf(r, o = {}) {
|
|
|
226
226
|
});
|
|
227
227
|
const skips = skipsOf(parts, P, B);
|
|
228
228
|
|
|
229
|
-
// 8 the ◇s: the end ◇ is the committed end (a milestone task on that day, or the latest one in the workflow's last ◆ stage, IS it
|
|
230
|
-
// others merge when they are within NEAR % of each other
|
|
229
|
+
// 8 the ◇s: the end ◇ is the committed end (a milestone task on that day, or the latest one in the workflow's last ◆ stage, IS it, at the
|
|
230
|
+
// task's own date and with its own date under it: the timeline-label hotfix, as the Board); the others merge when they are within NEAR % of each other
|
|
231
231
|
const lastMs = (list.filter((s) => s.ms).slice(-1)[0] || {}).key;
|
|
232
232
|
const inLast = lastMs ? MS.filter((m) => m.sec === lastMs) : [];
|
|
233
233
|
const endTask = E && !draft ? (MS.filter((m) => +m.d === +E).slice(-1)[0] || inLast.slice(-1)[0] || null) : null;
|
|
@@ -238,8 +238,9 @@ export function lineOf(r, o = {}) {
|
|
|
238
238
|
name: c.n > 1 ? plural(c.n, 'milestone', 'milestones') : c.first.name, date: md(day(c.date), t), done: c.done, late: c.late, dash: !!draft }));
|
|
239
239
|
const ms = C.slice();
|
|
240
240
|
if (E && !draft) {
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
const ED = endTask ? endTask.d : E;
|
|
242
|
+
ms.push({ x: X(ED), n: 1, end: true, atEnd: +ED === +E, items: endTask ? [{ id: endTask.id, name: endTask.name, date: md(ED, t), done: endTask.done, late: endTask.late, ago: endTask.ago }] : [],
|
|
243
|
+
name: endTask ? endTask.name : '', date: md(ED, t), done: finished || !!(endTask && endTask.done), late: !finished && (over || !!clash || !!(endTask && endTask.late)) });
|
|
243
244
|
} else if (draft && E) ms.push({ x: X(E), n: 1, end: true, items: [], name: '', date: md(E, t), done: false, late: false, dash: true });
|
|
244
245
|
ms.sort((p, q) => p.x - q.x);
|
|
245
246
|
// the names, right to left (rule 3): centred on the ◇; one that would run into the next name aligns its right edge to its own ◇; one
|
|
@@ -277,7 +278,8 @@ export function lineOf(r, o = {}) {
|
|
|
277
278
|
const endTxt = end ? [end.date, end.late, end.words, end.slip].filter(Boolean).join(' · ') : '';
|
|
278
279
|
let lim = 100 - (endTxt ? wOf(endTxt) * 0.6 : 0);
|
|
279
280
|
for (let i = ms.length - 1; i >= 0; i--) {
|
|
280
|
-
|
|
281
|
+
// past its end: the end ◇ stands left of the corner, its date under it; a milestone before the end says its own date
|
|
282
|
+
const m = ms[i]; if (m.end && m.atEnd !== false && !(over && !clash && !finished)) continue;
|
|
281
283
|
const w = wOf(m.date) * 0.6;
|
|
282
284
|
if (m.x + w / 2 <= lim) { m.showDate = true; lim = m.x - w / 2; }
|
|
283
285
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "The timeline-label hotfix: a milestone on the timeline says its own name and date (the Board row's end ◇ and label, the product lane, the hold clash, the initiative's stage line).",
|
|
3
|
+
"modules": ["milestone-label.test.js"],
|
|
4
|
+
"seconds": { "milestone-label.test.js": 2 }
|
|
5
|
+
}
|