create-pmos 0.457.0 → 0.458.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.
Files changed (37) hide show
  1. package/package.json +14 -14
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/briefing-premium-adddoc-test.js +1 -1
  7. package/workspace/briefing-premium-board-test.js +17 -17
  8. package/workspace/briefing-premium-initiative-test.js +8 -10
  9. package/workspace/changelog.json +13 -0
  10. package/workspace/guide/adler.md +1 -1
  11. package/workspace/guide/initiatives-screen.md +12 -2
  12. package/workspace/ini-workflow-test.js +5 -9
  13. package/workspace/metric-drafts-ui-test.js +11 -9
  14. package/workspace/package-lock.json +2 -2
  15. package/workspace/package.json +1 -1
  16. package/workspace/premium-board-actions-test.js +3 -3
  17. package/workspace/premium-vw-backlog-test.js +1 -1
  18. package/workspace/premium-vw-item-test.js +1 -1
  19. package/workspace/premium-vw-jira-test.js +1 -1
  20. package/workspace/program-panel-test.js +2 -2
  21. package/workspace/public/pm/ini-about.js +145 -0
  22. package/workspace/public/pm/ini-tasks.js +6 -34
  23. package/workspace/public/pm/ini-view-model.js +12 -2
  24. package/workspace/public/pm/ini-view.css +180 -143
  25. package/workspace/public/pm/ini-view.js +137 -145
  26. package/workspace/public/pm/metric-drafts.js +8 -2
  27. package/workspace/public/pm/mission.js +159 -135
  28. package/workspace/public/pm/stage-line.js +4 -1
  29. package/workspace/split-merge-ui-test.js +1 -1
  30. package/workspace/stage-card-tasks-test.js +2 -2
  31. package/workspace/stage-card-test.js +48 -51
  32. package/workspace/task-links-test.js +8 -9
  33. package/workspace/task-press-test.js +2 -2
  34. package/workspace/task-views-test.js +15 -76
  35. package/workspace/test-lists/initiative-mission-control.json +5 -0
  36. package/workspace/test-lists/mission.json +7 -3
  37. package/workspace/tk-tasks-test.js +3 -3
@@ -1,45 +1,32 @@
1
- /* pm/mission.js — the initiative as a mission (feedback batch 18 item 1, agreed A; canvas In development: XvpL5Rocket, XvpL6RocketDark,
2
- * XvpE1States, XvpE2Stages, XvpE3TapMs, XvpD1Desktop; the art is mission() in next18/viewer-on-phone-gen/gen_rocket3.py, ported here). It
3
- * replaces the stage card's one line in the ONE initiative view (pm/ini-view.js): one picture of the whole initiative, 100 px tall.
1
+ /* pm/mission.js — the initiative as a mission (feedback batch 18 item 1; redrawn as a trajectory in initiative-mission-control, R3 and R4). It
2
+ * is the telemetry card's picture in the ONE initiative view (pm/ini-view.js), from the stage line's model (pm/stage-line.js lineOf).
4
3
  *
5
- * missionOf(L) → the model, from the stage line's model (pm/stage-line.js lineOf): every place is a % of the same line, so the
6
- * picture and the line never disagree. Pure.
7
- * missionSvg(M, o) → the SVG. o: { tap (the milestones are presses: a 44 px hit area each) }. Colours are classes (ini-view.css
8
- * names the --mi-* tokens of cozy.css): no colour is written here.
9
- * crowded(points, gap) → the ids of the points closer than gap to another one: those are drawn without a press (the tap on the picture
10
- * opens the list in place instead).
4
+ * missionOf(L) → the model: every place is a % of the same line, so the picture and the line never disagree. Pure.
5
+ * trajGeom(M, w, h) → the axis and the path for a picture w × h px: X(p) maps a place on the line to a pixel, the path runs along the
6
+ * ground until lift-off (the middle of Build) and rises to the planet at the release. Pure.
7
+ * trajSvg(M, o) → the SVG. o: { w, h (the picture's size in px), tap (the milestones are presses: a 44 px hit area each), today (the
8
+ * date to say under Today) }. Colours are classes (ini-view.css names the --mi-* tokens of cozy.css).
9
+ * mergeClose(pts, gap) → the milestones closer than gap px to a neighbour, merged into one counted diamond. Pure.
11
10
  *
12
- * THE STORY (xvpA):
13
- * the ground strip is the stages, on their plan dates: done green, now blue, late orange, on hold grey, dashed with no dates; Today ticks
14
- * on it. Small flags are the early milestones (gold when passed, grey ahead, orange when late).
15
- * Discover: a telescope near the left scans for the target planet, which is a "?" until Discover is done.
16
- * Plan to Build: the rocket is a dashed blueprint on the pad at the start of Build; through the first half of Build it is built from the
17
- * bottom up (a clip) with sparks. Past Build 50% it lifts off and flies a curve to the planet.
18
- * The release milestone (the first one named launch, release, rollout or deploy): it lands on the planet and plants a flag. With no such
19
- * milestone the planet stands at the end of Deliver; with no Build stage it lifts off at the start of the stage the release falls in.
20
- * The stages say what happened and the dates how far along it is: the rocket stays a blueprint until Build runs, flies once Build is done,
21
- * and lands only when the release milestone is done (with none, when Deliver is done).
22
- * Monitor: a dish at the right edge listens, with waves; the last milestone ("Did it work?") lights it green.
11
+ * THE STORY, left to right in time (the same as the mission before it, now on a real axis):
12
+ * Discover: Adler stands at the telescope (only while Discover is open and Settings > Adler > How much is Full) and scans for the target
13
+ * planet, which is a "?" in glass until Discover is done. Plan to Build: the rocket is a faded blueprint on the pad, built from the bottom
14
+ * up in the first half of Build, with sparks (none on hold). Past Build 50% it lifts off and flies the curve to the planet at the release
15
+ * milestone (the first one named launch, release, rollout or deploy; else the end of Deliver), smaller as it goes. It lands with a flag.
16
+ * Monitor: the dish at the right listens with waves; the last milestone ("Did it work?") lights its lamp green with a gold star.
17
+ * The stages are the path's colours: done green, the current one thicker and blue (orange when late, grey on hold); a dot ends each done
18
+ * stage; the month marks run along the bottom. Milestones are diamonds on the path's upper side. Today is the rocket, or a dot on the
19
+ * ground before lift-off and after landing.
23
20
  * Motion (draw-in, sparks, scan, twinkle, waves) is CSS; all of it stops under reduced motion and Settings > Adler > Motion: Still.
24
21
  *
25
22
  * THE ART (Wawan, 2026-10-29, the blue Adler's PNG set): the telescope, the planet, the rocket and the dish are PNGs of pm/adler/05_space and
26
- * 03_growth_activity, placed by cozy-adler.js put() by each picture's solid pixels. The rocket is rocket_idle on the pad (a faded blueprint,
27
- * then built from the bottom up by a clip), rocket_flying in flight (turned to the curve), rocket_idle again when it has landed or the work is
28
- * on hold; the sky has clouds, the lift-off is rocket_liftoff, a landing and a heard "Did it work?" sparkle; and on a festival (Settings > Adler
29
- * > Dress for the day) the sky takes the day's things (cozy-adler.js festive()). The telescope is the PNG with Adler at it, so it stands only while
30
- * Discover is open (the scene's one Adler, and only with Settings > Adler > How much: Full). The ground, the stage strip, the flags, the pad, the trail and the stars stay drawn, in the --mi-* tokens. */
23
+ * 03_growth_activity, placed by cozy-adler.js put() by each picture's solid pixels. */
31
24
  import { put, prefs, festive } from './cozy-adler.js';
32
25
 
33
- export const W = 340, H = 100;
34
- const GY = 78; // the ground line
35
- export const PX = W - 62, PY = 27; // the target planet, near the right end, high in the sky (Wawan 12:27: far enough to fly to)
36
- const DX = W - 16; // the dish, at the right edge
37
- const TX = 30; // the telescope, near the left end
38
- export const HIT = 44; // a press's square, in px (the picture draws about 1 px a unit)
39
- export const NEAR = 24; // two presses closer than this are one press on the picture
26
+ export const HIT = 44; // a press's square, in px
27
+ export const NEAR = 20; // two milestones closer than this many px are one counted diamond
40
28
  export const RELEASE_RE = /\b(launch(es|ed)?|releas(e|es|ed)|roll[- ]?outs?|deploy(s|ed|ment)?)\b/i;
41
29
 
42
- const X = (p) => +(6 + (Math.max(0, Math.min(100, p)) * (W - 12)) / 100).toFixed(1);
43
30
  const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
44
31
  const f1 = (n) => (+n).toFixed(1);
45
32
  const clamp = (v, a, b) => Math.max(a, Math.min(b, v));
@@ -104,134 +91,171 @@ export function missionOf(L) {
104
91
  flags.push({ x: m.x, n: items.length, items, name: items.length > 1 ? items.length + ' milestones' : items[0].name, date: items.length > 1 ? '' : items[0].date,
105
92
  done: items.every((it) => it.done), late: items.some((it) => it.late) });
106
93
  });
107
- return { empty, hold, late, finished, t, today: !empty && !heard && L.today != null ? L.today : null, parts, flags, found, phase, frac, fly, landed, heard,
94
+ return { empty, hold, late, finished, t, months: L.months || [], today: !empty && !heard && L.today != null ? L.today : null, parts, flags, found, phase, frac, fly, landed, heard,
108
95
  listening: landed && !heard, pad: bA, lift, rx,
109
96
  planet: rel ? { id: rel.item.id || '', name: rel.item.name, date: rel.item.date || '', done: !!rel.item.done, late: !!rel.item.late } : null,
110
97
  dish: evalItem ? { id: evalItem.id || '', name: evalItem.name, date: evalItem.date || '', done: !!evalItem.done, late: !!evalItem.late } : null };
111
98
  }
112
99
 
113
- /** The presses' centres, in the picture's units: the flags, the planet and the dish. → [{ key, x, y }] */
114
- export function pointsOf(M) {
115
- if (!M) return [];
116
- const out = M.flags.map((f, i) => ({ key: 'f' + i, x: X(f.x) + 3, y: GY - 4 }));
117
- if (M.planet) out.push({ key: 'planet', x: PX, y: PY });
118
- if (M.dish) out.push({ key: 'dish', x: DX - 2, y: GY - 12 });
119
- return out;
100
+ /* ── the axis and the path ── */
101
+ const EX = 1.5; // the curve's steepness: low and flat at lift-off, rising to the planet
102
+ /** The axis and the path of a picture w × h px. A phone (w < 620) draws a smaller planet and a lower path. */
103
+ export function trajGeom(M, w, h) {
104
+ const ph = w < 620, pw = ph ? 54 : 72;
105
+ const xs = 26, room = ph ? 36 : 56, xEnd = w - room;
106
+ const lift = M ? M.lift : 50, rx0 = M ? M.rx : 100, rx = Math.max(lift + 1, Math.min(100, rx0));
107
+ // the planet stands at the release in time, kept right of the title and left of the dish
108
+ const xLin = xs + ((xEnd - xs) * rx) / 100;
109
+ const pcx = clamp(xLin, w * 0.58, w - (ph ? w * 0.05 : w * 0.025) - pw / 2);
110
+ const pcy = ph ? h * 0.34 + 27 : h * 0.1 + pw / 2;
111
+ const xl = pcx - (ph ? 24 : 34); // where the rocket lands: the planet's lower left
112
+ const yb = h - (ph ? 34 : 36), ye = pcy + (ph ? 20 : 24), base = h - 16;
113
+ const X = (p) => (p <= rx ? xs + ((xl - xs) * p) / rx : rx >= 100 ? xl : xl + ((xEnd - xl) * (p - rx)) / (100 - rx));
114
+ const u = (p) => clamp((p - lift) / (rx - lift), 0, 1);
115
+ const Y = (p) => (p <= lift ? yb : p <= rx ? yb - (yb - ye) * Math.pow(u(p), EX) : yb);
116
+ /** The path's place at p. A place past the release is back on the ground (Monitor is ground work). */
117
+ const pos = (p) => [X(p), Y(p)];
118
+ /** The path's direction at p, in degrees (0 = right, negative = up). */
119
+ const ang = (p) => { const a = clamp(p - 0.5, 0, 100), b = clamp(p + 0.5, 0, 100), [x0, y0] = pos(a), [x1, y1] = pos(b); return (Math.atan2(y1 - y0, x1 - x0) * 180) / Math.PI; };
120
+ return { w, h, ph, pw, xs, xl, xEnd, yb, ye, base, pcx, pcy, lift, rx, X, Y, pos, ang, dx: w - room / 2 - 2 };
120
121
  }
121
- /** The keys of the points closer than gap to another point. */
122
- export function crowded(points, gap = NEAR) {
123
- const out = new Set();
124
- for (let i = 0; i < points.length; i++) for (let j = i + 1; j < points.length; j++) {
125
- if (Math.hypot(points[i].x - points[j].x, points[i].y - points[j].y) < gap) { out.add(points[i].key); out.add(points[j].key); }
122
+ /** The milestones closer than gap px to the one before, merged into one: { x (px), y, n, items, done, late, at (the % of the line) }. The input is sorted by x. */
123
+ export function mergeClose(pts, gap = NEAR) {
124
+ const out = [];
125
+ for (const p of pts) {
126
+ const g = out[out.length - 1];
127
+ if (g && p.x - g.x < gap) { g.n += p.n; g.items = g.items.concat(p.items); g.done = g.done && p.done; g.late = g.late || p.late; g.x = (g.x * (g.n - p.n) + p.x * p.n) / g.n; g.at = (g.at + p.at) / 2; }
128
+ else out.push({ ...p, items: p.items.slice() });
126
129
  }
127
130
  return out;
128
131
  }
129
132
 
130
133
  let seq = 0;
131
134
  /** The press around one drawn milestone: a 44 px square, the words for a reader, the task it opens. */
132
- function press(inner, it, x, y, o, key, hold) {
133
- if (!o.tap || !it || !it.id || hold.has(key)) return `<g aria-hidden="true">${inner}</g>`;
135
+ function press(inner, it, x, y, o, w) {
136
+ if (!o.tap || !it || !it.id) return `<g aria-hidden="true">${inner}</g>`;
134
137
  const words = it.name + (it.date ? ', ' + it.date : '') + (it.late ? ', late' : it.done ? ', done' : '');
135
- return `<g class="mi-ms" role="button" tabindex="0" data-mi-ms="${esc(it.id)}" data-mi-tip="${esc(it.name)}" data-mi-date="${esc(it.date || '')}" data-mi-x="${f1((x / W) * 100)}" aria-label="${esc('Milestone ' + words + '. Open its task')}">`
138
+ return `<g class="mi-ms" role="button" tabindex="0" data-mi-ms="${esc(it.id)}" data-mi-tip="${esc(it.name)}" data-mi-date="${esc(it.date || '')}" data-mi-x="${f1((x / w) * 100)}" aria-label="${esc('Milestone ' + words + '. Open its task')}">`
136
139
  + `<rect x="${f1(x - HIT / 2)}" y="${f1(y - HIT / 2)}" width="${HIT}" height="${HIT}" fill="transparent"/>${inner}</g>`;
137
140
  }
138
141
 
139
- /** The SVG of the mission. */
140
- export function missionSvg(M, o = {}) {
142
+ /** The SVG of the mission, w × h px. */
143
+ export function trajSvg(M, o = {}) {
141
144
  if (!M) return '';
142
- const id = 'mi' + (++seq).toString(36);
143
- const crowd = crowded(pointsOf(M));
145
+ const w = Math.round(o.w || 640), h = Math.round(o.h || 200), g = trajGeom(M, w, h), { X, Y, pos, yb, ye, base, xs, xl, xEnd, pcx, pcy, pw, ph } = g;
146
+ const id = 'mi' + (++seq).toString(36), RH = ph ? 30 : 36;
147
+ const tc = clamp(M.t, 0, 100), X0 = X(tc); // the flown part ends at X0: its wash fades out there
148
+ const running = !M.empty && !M.landed && M.phase !== 'landed';
144
149
  let s = `<defs><linearGradient id="${id}k" x1="0" y1="0" x2="0" y2="1"><stop offset="0" class="mi-s0"/><stop offset="1" class="mi-s1"/></linearGradient>`
145
- + `<linearGradient id="${id}x" x1="0" x2="1"><stop offset="0" class="mi-t0"/><stop offset="1" class="mi-t1"/></linearGradient></defs>`;
146
- s += `<rect x="0" y="0" width="${W}" height="${H}" fill="url(#${id}k)"/>`; // the corners are the box's (ini-view.css .iv-mi)
150
+ + `<linearGradient id="${id}g" x1="0" y1="0" x2="0" y2="1"><stop offset="0" class="mi-gs0"/><stop offset="1" class="mi-gs1"/></linearGradient>`
151
+ + `<linearGradient id="${id}a" x1="0" y1="0" x2="0" y2="1"><stop offset="0" class="mi-as0"/><stop offset="1" class="mi-as1"/></linearGradient>`
152
+ + `<linearGradient id="${id}f" gradientUnits="userSpaceOnUse" x1="${f1(X0 - 70)}" y1="0" x2="${f1(X0)}" y2="0"><stop offset="0" class="mi-mk0"/><stop offset="1" class="mi-mk1"/></linearGradient>`
153
+ + `<mask id="${id}m" maskUnits="userSpaceOnUse" x="0" y="0" width="${w}" height="${h}" mask-type="alpha"><rect class="mi-mkf" x="0" y="0" width="${f1(Math.max(0, X0 - 70))}" height="${h}"/><rect x="${f1(Math.max(0, X0 - 70))}" y="0" width="72" height="${h}" fill="url(#${id}f)"/></mask></defs>`;
154
+ s += `<rect x="0" y="0" width="${w}" height="${h}" fill="url(#${id}k)"/>`; // the corners are the card's (ini-view.css .iv-tel)
147
155
  // the stars
148
- [[30, 12, 1], [84, 26, 0.8], [124, 9, 1.2], [160, 30, 0.9], [250, 12, 1], [292, 30, 0.8], [W - 26, 8, 1]].forEach(([x, y, r], k) => {
149
- s += `<circle class="mi-tw mi-star mi-d${k}" transform-origin="${x} ${y}" cx="${x}" cy="${y}" r="${r}"/>`;
150
- });
151
- // clouds drift in the sky; on a festival the sky takes the day's things instead (never on bad news: the charm comes off)
152
- const fest = M.late ? null : festive(W, H);
153
- if (!fest) s += `<g class="mi-cloud" aria-hidden="true">${put('cloud_medium', 62, 24, 34, { op: 0.9 })}</g><g class="mi-cloud mi-d3" aria-hidden="true">${put('cloud_small', 132, 40, 24, { op: 0.8 })}</g>`;
154
- if (fest) s += `<g class="mi-fest" aria-label="${esc('Dressed for ' + fest.name)}" role="img">${fest.back}</g>`;
155
- // the target planet
156
- const planet = `<g class="${M.found ? '' : 'mi-seek'}" transform-origin="${PX} ${PY}">`
157
- + (M.found ? put('planet_cloud', PX, PY, 36, { cls: 'mi-art' })
158
- : put('planet_glass', PX, PY, 36, { op: 0.5, cls: 'mi-art' }) + `<text x="${PX}" y="${PY + 4}" text-anchor="middle" class="mi-qm">?</text>`) + '</g>';
159
- s += press(planet, M.planet, PX, PY, o, 'planet', crowd);
160
- // the ground and the stage strip
161
- s += `<path d="M0 ${H} L0 ${GY - 2} Q60 ${GY - 5} 130 ${GY - 2} T${W} ${GY - 3} L${W} ${H}Z" class="mi-gr"/>`;
162
- for (const p of M.parts) {
163
- const x = X(p.l), w = Math.max(X(p.l + p.w) - x - 2, 3);
164
- s += p.dash || M.empty ? `<rect x="${f1(x + 1)}" y="${GY + 4}" width="${f1(w)}" height="6" rx="3" fill="none" class="mi-dsh ${p.cls}" stroke-dasharray="2 2"/>`
165
- : `<rect x="${f1(x + 1)}" y="${GY + 4}" width="${f1(w)}" height="6" rx="3" class="mi-st ${p.cls}"/>`;
166
- }
167
- // the small flags
168
- M.flags.forEach((f, i) => {
169
- const x = X(f.x);
170
- const inner = `<rect x="${f1(x - 0.7)}" y="${GY - 8}" width="1.4" height="12" class="mi-pole"/><path d="M${f1(x + 0.7)} ${GY - 8} L${f1(x + 7)} ${GY - 6} L${f1(x + 0.7)} ${GY - 4}Z" class="mi-fl ${f.late ? 'late' : f.done ? 'dn' : 'q'}"/>`;
171
- s += press(inner, f.n === 1 ? f.items[0] : null, x + 3, GY - 4, o, 'f' + i, crowd);
156
+ [[.05, .08, 1], [.12, .22, .8], [.19, .06, 1.2], [.27, .3, .9], [.46, .07, 1], [.52, .32, .8], [.66, .05, 1], [.78, .26, .9], [.9, .08, .8]].forEach(([fx, fy, r], k) => {
157
+ const x = f1(w * fx), y = f1(h * fy); s += `<circle class="mi-tw mi-star mi-d${k % 7}" transform-origin="${x} ${y}" cx="${x}" cy="${y}" r="${r}"/>`;
172
158
  });
173
- // Discover: the telescope looks for the planet
174
- const still = M.hold || M.empty;
159
+ // clouds drift; on a festival the sky takes the day's things instead (never on bad news: the charm comes off)
160
+ const fest = M.late ? null : festive(w, h);
161
+ if (!fest) s += `<g class="mi-cloud" aria-hidden="true">${put('cloud_medium', w * (ph ? 0.72 : 0.62), h * (ph ? 0.6 : 0.44), ph ? 52 : 76, { op: 0.9 })}</g><g class="mi-cloud mi-d3" aria-hidden="true">${put('cloud_small', w * (ph ? 0.34 : 0.4), h * (ph ? 0.6 : 0.52), ph ? 34 : 50, { op: 0.75 })}</g>`;
162
+ else s += `<g class="mi-fest" aria-label="${esc('Dressed for ' + fest.name)}" role="img">${fest.back}</g>`;
163
+ // the ground: a soft hill, then the scale on it
164
+ s += `<rect x="0" y="${f1(h - 70)}" width="${w}" height="70" fill="url(#${id}g)" aria-hidden="true"/>`;
165
+ s += `<line class="mi-bl" x1="${xs}" y1="${base}" x2="${f1(xEnd)}" y2="${base}"/>`;
166
+ const months = M.empty ? [] : M.months || [];
167
+ months.forEach((m, i) => { const x = f1(X(m.x)); s += `<line class="mi-bl" x1="${x}" y1="${base}" x2="${x}" y2="${base + 4}"/>` + (!ph || i % 2 === 1 ? `<text class="mi-tx" x="${x}" y="${base + 14}" text-anchor="middle">${esc(m.m)}</text>` : ''); });
168
+ // the whole path, dotted: the ground to lift-off, the curve to the planet, the ground to the end
169
+ const L = g.lift, R = g.rx;
170
+ // a stretch of the path; one that starts at the release is on the ground again (Monitor is ground work), not a drop from the planet
171
+ const pl = (a, b) => { const n = Math.max(2, Math.ceil((b - a) * 1.4)); return Array.from({ length: n + 1 }, (_, i) => { const p = a + ((b - a) * i) / n; return (i ? 'L' : 'M') + f1(X(p)) + ' ' + f1(a >= R ? yb : Y(p)); }).join(' '); };
172
+ s += `<g class="mi-fut" aria-hidden="true"><path d="${pl(0, L)}"/><path d="${pl(L, R)}"/>${R < 100 ? `<path d="${pl(R, 100)}"/>` : ''}</g>`;
173
+ // Discover: the telescope looks for the planet (only with Adler's Full setting, and only while Discover is open)
175
174
  const seeking = !M.found && !M.hold;
176
- if (!M.found && prefs()['adler.amount'] === 'full') s += `<g aria-hidden="true"><g class="${seeking ? 'mi-scan' : ''}" transform-origin="${TX} ${GY}">${put('telescope', TX, GY + 1, 36, { ay: 1 })}</g></g>`;
177
- if (seeking && !M.empty) s += `<line class="mi-beam" x1="${TX + 15}" y1="${GY - 25}" x2="${PX - 12}" y2="${PY + 4}" stroke-width="1.2" stroke-dasharray="2 5" aria-hidden="true"/>`;
178
- // Plan to Build: the pad at the start of Build; the rocket is a blueprint, then built from the bottom up; past Build 50% it flies
179
- // the pad stands in the middle, as the telescope stands left and the dish right (Wawan 12:26): the props keep their places, only the
180
- // stages under them follow the dates
181
- const bx = W / 2;
182
- const late = M.late ? 'mi-lt' : ''; // an orange glow round the rocket (the PNG's own colours stay)
183
- s += `<g aria-hidden="true"><rect x="${f1(bx - 12)}" y="${GY - 1}" width="24" height="3" rx="1.5" class="mi-pad"/>`
184
- + `<path d="M${f1(bx - 14)} ${GY} L${f1(bx - 14)} ${GY - 34} M${f1(bx - 14)} ${GY - 26} L${f1(bx - 6)} ${GY - 26} M${f1(bx - 14)} ${GY - 14} L${f1(bx - 6)} ${GY - 14}" fill="none" class="mi-padl" stroke-width="1.2"/></g>`;
175
+ if (!M.found && prefs()['adler.amount'] === 'full') {
176
+ if (seeking && !M.empty) s += `<line class="mi-beam" x1="${xs + 22}" y1="${yb - 30}" x2="${f1(pcx - 14)}" y2="${f1(pcy + 6)}" stroke-width="1.3" stroke-dasharray="2 5" aria-hidden="true"/>`;
177
+ s += `<g aria-hidden="true"><g class="${seeking ? 'mi-scan' : ''}" transform-origin="${xs + 10} ${yb}">${put('telescope', xs + 12, yb + 1, 44, { ay: 1 })}</g></g>`;
178
+ }
179
+ // the flown part: each stage in its own colour; the area under it is a soft wash
180
+ const segs = [];
181
+ const cut = (a, b) => { const out = []; let x = a; for (const k of [L, R]) if (x < k && b > k) { out.push([x, k]); x = k; } out.push([x, b]); return out; };
182
+ const colOf = (c) => (c === 'dn' ? 'dn' : c === 'late' ? 'late' : c === 'hold' ? 'hold' : 'nw');
183
+ if (!M.empty && tc > 0) {
184
+ for (const p of M.parts) {
185
+ if (p.cls === 'q') continue;
186
+ const a = p.l, b = Math.min(p.l + p.w, tc); if (b <= a) continue;
187
+ for (const [u, v] of cut(a, b)) segs.push({ u, v, c: colOf(p.cls) });
188
+ }
189
+ // the wash under the flown part: under the path while it climbs; once it has landed, along the ground only (a finished arc leaves no cliff)
190
+ const area = tc > R ? [`M${f1(X(0))} ${f1(yb)} L${f1(X(tc))} ${f1(yb)} L${f1(X(tc))} ${base} L${f1(X(0))} ${base}Z`]
191
+ : cut(0, tc).map(([u, v]) => pl(u, v) + ` L${f1(X(v))} ${base} L${f1(X(u))} ${base}Z`);
192
+ s += `<g aria-hidden="true"><path class="mi-ar" fill="url(#${id}a)" mask="url(#${id}m)" d="${area.join(' ')}"/>`
193
+ + segs.map((q) => `<path class="mi-pt ${q.c}${q.c === 'nw' && !M.hold ? ' glow' : ''}" d="${pl(q.u, q.v)}"/>`).join('') + '</g>';
194
+ // a dot ends each done stage
195
+ s += '<g aria-hidden="true">' + M.parts.filter((p) => p.cls === 'dn' && p.l + p.w < 99.5 && p.l + p.w <= tc).map((p) => { const [x, y] = pos(p.l + p.w); return `<circle class="mi-nd" cx="${f1(x)}" cy="${f1(y)}" r="5"/>`; }).join('') + '</g>';
196
+ }
197
+ s += `<circle class="mi-nd${M.empty ? ' q' : ''}" cx="${f1(X(0))}" cy="${f1(Y(0))}" r="5" aria-hidden="true"/>`;
198
+ // the milestones: diamonds on the path's upper side, merged when close
199
+ const nrm = (p) => { const a = g.ang(p) * Math.PI / 180; return [Math.sin(a), -Math.cos(a)]; };
200
+ const pts = (M.empty ? [] : M.flags).map((f) => { const [x, y] = pos(f.x), [nx, ny] = nrm(f.x); return { x: x + nx * 15, y: y + ny * 15, n: f.n, items: f.items, done: f.done, late: f.late, at: f.x }; }).sort((p, q) => p.x - q.x);
201
+ for (const m of mergeClose(pts)) {
202
+ const one = m.n === 1 ? m.items[0] : null, sz = m.n > 1 ? 7 : 4.5;
203
+ const inner = `<rect class="mi-dm ${m.late ? 'late' : m.done ? 'dn' : 'q'}" x="${f1(m.x - sz)}" y="${f1(m.y - sz)}" width="${sz * 2}" height="${sz * 2}" rx="2.5" transform="rotate(45 ${f1(m.x)} ${f1(m.y)})"/>` + (m.n > 1 ? `<text class="mi-ct" x="${f1(m.x)}" y="${f1(m.y + 3.5)}" text-anchor="middle">${m.n}</text>` : '');
204
+ s += press(inner, one, m.x, m.y, o, w);
205
+ }
206
+ // the target planet at the release: a "?" in glass until Discover is done; late, it glows orange
207
+ const planet = `<g class="${M.found ? '' : 'mi-seek'}${M.late ? ' mi-pl-late' : ''}" transform-origin="${f1(pcx)} ${f1(pcy)}">`
208
+ + (M.found ? put('planet_cloud', pcx, pcy, pw, { cls: 'mi-art' }) : put('planet_glass', pcx, pcy, pw, { op: 0.5, cls: 'mi-art' }) + `<text class="mi-qm" x="${f1(pcx)}" y="${f1(pcy + 5)}" text-anchor="middle">?</text>`) + '</g>';
209
+ s += press(planet, M.planet, pcx, pcy, o, w);
210
+ // the pad, where lift-off happens, and the rocket on it
211
+ const px = X(L), late = M.late ? 'mi-lt' : '';
212
+ s += `<g aria-hidden="true"><rect class="mi-pad" x="${f1(px - 13)}" y="${f1(yb + 1)}" width="26" height="3" rx="1.5"/><path class="mi-padl" d="M${f1(px - 15)} ${yb} v-30 M${f1(px - 15)} ${yb - 22} h8 M${f1(px - 15)} ${yb - 11} h8" fill="none" stroke-width="1.2"/></g>`;
213
+ // the label is lifted until it clears every diamond and the pad
214
+ const marks = pts.length ? mergeClose(pts).map((m) => [m.x, m.y]) : [];
215
+ const todayLabel = (x, y) => {
216
+ if (!o.today) return '';
217
+ const cx = clamp(x, 50, w - 80);
218
+ let ly = y;
219
+ for (let k = 0; k < 4 && marks.concat([[px, yb - 18]]).some(([mx, my]) => Math.abs(mx - cx) < 52 && ly - 12 < my + 9 && ly + 5 > my - 9); k++) ly -= 18;
220
+ return `<text class="mi-tx now${M.late ? ' late' : ''}" x="${f1(cx)}" y="${f1(ly)}" text-anchor="middle">Today · ${esc(o.today)}</text>`;
221
+ };
185
222
  if (M.phase === 'pad' || M.phase === 'build') {
186
- let b = `<g transform="translate(${f1(bx)} ${GY - 1})" role="img" aria-label="${esc(M.phase === 'pad' ? 'The rocket, a blueprint on the pad' : 'The rocket, ' + Math.round(M.frac * 100) + '% built')}">`;
187
- b += put('rocket_idle', 0, 2, 0, { h: 34, ay: 1, op: M.frac === 0 ? 0.5 : 0.35, cls: 'mi-bp' });
188
- if (M.frac > 0) {
189
- const h = 34 * M.frac;
190
- b += `<clipPath id="${id}b"><rect x="-16" y="${f1(2 - h)}" width="32" height="${f1(h)}"/></clipPath><g clip-path="url(#${id}b)" class="${late}">${put('rocket_idle', 0, 2, 0, { h: 34, ay: 1 })}</g>`;
191
- if (!still) for (let k = 0; k < 3; k++) b += `<circle class="mi-spark mi-k${k}" cx="${-6 + k * 6}" cy="${f1(2 - h)}" r="1.1"/>`;
223
+ const label = M.phase === 'pad' ? 'The rocket, a blueprint on the pad' : 'The rocket, ' + Math.round(M.frac * 100) + '% built';
224
+ let b = `<g transform="translate(${f1(px)} ${f1(yb - 1)})" role="img" aria-label="${esc(label)}">`;
225
+ b += put('rocket_idle', 0, 2, 0, { h: RH, ay: 1, op: M.empty ? 0.4 : M.frac === 0 ? 0.5 : 0.35, cls: 'mi-bp' });
226
+ if (M.frac > 0 && !M.empty) {
227
+ const hh = RH * M.frac;
228
+ b += `<clipPath id="${id}b"><rect x="${-RH / 2}" y="${f1(2 - hh)}" width="${RH}" height="${f1(hh)}"/></clipPath><g clip-path="url(#${id}b)" class="${late}">${put('rocket_idle', 0, 2, 0, { h: RH, ay: 1 })}</g>`;
229
+ if (!M.hold) for (let k = 0; k < 3; k++) b += `<circle class="mi-spark mi-k${k}" cx="${-6 + k * 6}" cy="${f1(2 - hh)}" r="1.2"/>`;
192
230
  }
193
231
  s += b + '</g>';
232
+ if (M.hold) s += `<g class="mi-pz" transform="translate(${f1(px + 14)} ${f1(yb - 30)})" role="img" aria-label="On hold"><rect width="3" height="10" rx="1.2"/><rect x="6" width="3" height="10" rx="1.2"/></g>`;
233
+ if (M.today != null && !M.empty) { const [tx, ty] = pos(tc); s += `<g role="img" aria-label="Today"><circle class="mi-now ${M.hold ? 'hold' : M.late ? 'late' : ''}" cx="${f1(tx)}" cy="${f1(ty)}" r="5.5"/></g>` + todayLabel(tx, yb - 20); }
194
234
  } else {
195
- s += `<g class="mi-puff" aria-hidden="true">${put('cloud_small', bx - 7, GY - 2, 14)}${put('cloud_small', bx + 7, GY - 3, 12)}</g>`;
196
- const p0 = [bx, GY - 20], c1 = [bx + 10, 4], p1 = [PX - 12, PY - 9]; // it comes down onto the planet's upper left
197
- const bz = (u) => [(1 - u) ** 2 * p0[0] + 2 * (1 - u) * u * c1[0] + u * u * p1[0], (1 - u) ** 2 * p0[1] + 2 * (1 - u) * u * c1[1] + u * u * p1[1]];
198
- const all = Array.from({ length: 41 }, (_, i) => bz(i / 40)), pts = Array.from({ length: 41 }, (_, i) => bz((i / 40) * M.fly));
199
- let len = 0; for (let i = 0; i < 40; i++) len += Math.hypot(pts[i + 1][0] - pts[i][0], pts[i + 1][1] - pts[i][1]);
200
- const d = (P) => 'M' + P.map(([x, y]) => f1(x) + ' ' + f1(y)).join(' L');
201
- if (!M.landed) s += `<path d="${d(all)}" fill="none" class="mi-path" stroke-width="1.4" stroke-dasharray="1.5 5" aria-hidden="true"/>`;
202
- s += `<path class="mi-vn" d="${d(pts)}" fill="none" stroke="url(#${id}x)" stroke-width="${M.landed ? 2.4 : 3}" stroke-linecap="round" opacity="${M.landed ? 0.45 : 1}" pathLength="100" aria-hidden="true"/>`;
203
- // the farther it flies the smaller it looks (Wawan 12:27); rocket_flying points about 38 degrees right of up, so it turns by the rest
204
- let art;
205
- if (M.landed) art = put('rocket_idle', PX - 5, PY - 11, 0, { h: 14, ay: 1, rot: -12 });
206
- else {
207
- const [rx, ry] = pts[40], a = (Math.atan2(pts[40][1] - pts[38][1], pts[40][0] - pts[38][0]) * 180) / Math.PI + 90;
208
- art = M.hold ? put('rocket_idle', rx, ry, 0, { h: 24 - 10 * M.fly, rot: +a.toFixed(1) }) : M.fly < 0.12 ? put('rocket_liftoff', bx, GY + 2, 0, { h: 46, ay: 1 }) : put('rocket_flying', rx, ry, 30 - 14 * M.fly, { rot: +(a - 38).toFixed(1) });
235
+ s += `<g class="mi-puff" aria-hidden="true">${put('cloud_small', px - 8, yb - 2, 14)}${put('cloud_small', px + 8, yb - 3, 12)}</g>`;
236
+ if (M.landed) {
237
+ const lx = xl - 4, ly = Y(100 > R ? R : 100) - 12;
238
+ s += `<g role="img" aria-label="Landed at the release">${put('rocket_idle', lx, ly + 12, 0, { h: 28, ay: 1 })}</g>`
239
+ + `<g aria-hidden="true"><rect class="mi-pole" x="${f1(lx + 12)}" y="${f1(ly - 18)}" width="1.4" height="18"/><path class="mi-flag" d="M${f1(lx + 13.4)} ${f1(ly - 18)} l9 3 l-9 3z"/></g>`;
240
+ if (M.listening || M.heard) s += `<g class="mi-tw mi-d1" transform-origin="${f1(lx - 14)} ${f1(ly - 14)}" aria-hidden="true">${put('gold_sparkles', lx - 14, ly - 14, 14)}</g>`;
241
+ if (M.today != null) { const [tx, ty] = pos(tc); s += `<circle class="mi-now" cx="${f1(tx)}" cy="${f1(ty)}" r="5.5" aria-hidden="true"/>` + todayLabel(tx, yb - 20); }
242
+ } else {
243
+ const fly = M.fly, p = L + fly * (R - L), [rxp, ryp] = pos(p), a = g.ang(p), sz = 44 - 14 * fly;
244
+ let art;
245
+ if (M.hold) art = put('rocket_idle', rxp, ryp, 0, { h: 28, ay: 0.8 });
246
+ else if (fly < 0.12) art = put('rocket_liftoff', px, yb + 2, 0, { h: 46, ay: 1 });
247
+ else art = put('rocket_flying', rxp, ryp, sz, { rot: +(a + 90 - 38).toFixed(1) });
248
+ s += `<g class="${M.hold ? '' : 'mi-rk'}" role="img" aria-label="${M.hold ? 'On hold in flight' : M.late ? 'Flying, late' : 'Flying to the release'}"><g class="${late}">${art}</g></g>`;
249
+ if (M.hold) s += `<g class="mi-pz" transform="translate(${f1(rxp + 12)} ${f1(ryp - 26)})" role="img" aria-label="On hold"><rect width="3" height="10" rx="1.2"/><rect x="6" width="3" height="10" rx="1.2"/></g>`;
250
+ const below = ryp + 34 < base - 2;
251
+ s += todayLabel(rxp, below ? ryp + 34 : ryp - 30, !below);
209
252
  }
210
- s += `<g class="${M.landed ? '' : 'mi-rk'}" role="img" aria-label="${M.landed ? 'Landed at the release' : 'Flying to the release'}"><g class="${late}">${art}</g></g>`;
211
- if (M.landed) s += `<g class="mi-tw mi-d1" transform-origin="${PX - 14} ${PY - 16}" aria-hidden="true">${put('gold_sparkles', PX - 14, PY - 16, 14)}</g>`;
212
- if (M.landed) s += `<g aria-hidden="true"><rect x="${PX + 5}" y="${PY - 20}" width="1.4" height="9" class="mi-pole"/><path class="mi-flag" transform-origin="${PX + 6} ${PY - 19}" d="M${PX + 6.4} ${PY - 20} L${PX + 14} ${PY - 17.5} L${PX + 6.4} ${PY - 15}Z"/></g>`;
213
253
  }
214
254
  // Monitor: the dish listens; the last milestone lights it green
215
- const dpx = DX - 4; // the dish's foot; its feed (the lamp) is at 83% across and 16% down its solid pixels
216
- let dish = put('satellite_dish', dpx, GY + 1, 0, { h: 28, ay: 1 })
217
- + `<circle cx="${f1(dpx + 7.2)}" cy="${f1(GY - 22.5)}" r="2" class="mi-lamp ${M.heard ? 'on' : M.listening ? 'ls' : ''}"/>`;
218
- if (M.listening && !M.hold) for (let k = 0; k < 3; k++) dish += `<path class="mi-wave mi-k${k}" d="M${DX - 18 - k * 7} ${GY - 26 - k * 3} q-4 4 0 8" fill="none" stroke-width="1.3" stroke-linecap="round"/>`;
219
- if (M.heard) dish += `<g class="mi-tw mi-d2" transform-origin="${f1(dpx - 2)} ${GY - 34}">${put('gold_star', dpx - 2, GY - 34, 9)}</g>`;
220
- s += press(dish, M.dish, DX - 2, GY - 12, o, 'dish', crowd);
221
- // Today
222
- if (M.today != null) {
223
- const xt = X(M.today);
224
- s += `<g role="img" aria-label="Today"><circle class="mi-glow" cx="${xt}" cy="${GY + 7}" r="5"/><line x1="${xt}" y1="${GY + 1}" x2="${xt}" y2="${GY + 13}" class="mi-td" stroke-width="2" stroke-linecap="round"/></g>`;
225
- }
226
- if (M.hold) {
227
- const xt = X(M.t > 100 ? 100 : M.t);
228
- s += `<g transform="translate(${f1(xt + 6)} ${GY - 12})" class="mi-pz" role="img" aria-label="On hold"><rect x="0" y="0" width="2" height="7" rx="1"/><rect x="4" y="0" width="2" height="7" rx="1"/></g>`;
229
- }
230
- return `<svg class="mi-svg" viewBox="0 0 ${W} ${H}" width="100%" preserveAspectRatio="xMidYMid meet" role="group" aria-label="${esc(o.label || 'The initiative as a mission: its stages and milestones')}">${s}</svg>`;
231
- }
232
-
233
- /** The current stage's name under the strip (the desktop's two columns): its place, as a % of the picture. → { name, x, late } | null */
234
- export function nowName(M) {
235
- const p = M && M.parts.find((q) => q.cls === 'nw' || q.cls === 'late' || q.cls === 'hold');
236
- return p ? { name: p.name, x: +((X(p.l + p.w / 2) / W) * 100).toFixed(2), late: p.cls === 'late' } : null;
255
+ const dx = g.dx;
256
+ let dish = put('satellite_dish', dx, yb + 1, 0, { h: 30, ay: 1 }) + `<circle class="mi-lamp ${M.heard ? 'on' : M.listening ? 'ls' : ''}" cx="${f1(dx + 7.5)}" cy="${f1(yb - 23.5)}" r="2.2"/>`;
257
+ if (M.listening && !M.hold) for (let k = 0; k < 3; k++) dish += `<path class="mi-wave mi-k${k}" d="M${f1(dx - 22 - k * 7)} ${f1(yb - 30 - k * 3)} q-4 4 0 8" fill="none" stroke-width="1.4" stroke-linecap="round"/>`;
258
+ if (M.heard) dish += `<g class="mi-tw mi-d2" transform-origin="${f1(dx - 6)} ${f1(yb - 40)}">${put('gold_star', dx - 6, yb - 40, 10)}</g>`;
259
+ s += press(dish, M.dish, dx, yb - 12, o, w);
260
+ return `<svg class="mi-svg" viewBox="0 0 ${w} ${h}" width="${w}" height="${h}" preserveAspectRatio="xMidYMid slice" role="group" aria-label="${esc(o.label || 'The initiative as a mission: its stages and milestones')}">${s}</svg>`;
237
261
  }
@@ -286,7 +286,10 @@ export function lineOf(r, o = {}) {
286
286
  }
287
287
  }
288
288
  const tx = !ended && t >= D0 && t <= D1 ? X(t) : null;
289
- return { ...base, chip, empty: false, cal: openHold && openHold.kind === 'none' && !ended ? 'back' : null, holdAt: openHold ? openHold.i : null,
289
+ // the month marks for the mission's time axis (R3 of initiative-mission-control): the first of each month inside the stretch, on the line's own map
290
+ const months = [];
291
+ for (let d = new Date(D0.getFullYear(), D0.getMonth() + 1, 1); d < D1; d = new Date(d.getFullYear(), d.getMonth() + 1, 1)) { const x = X(d); if (x > 1.5 && x < 98.5) months.push({ m: MON[d.getMonth()], x }); }
292
+ return { ...base, chip, empty: false, months, span: { a: iso(D0), b: iso(D1) }, cal: openHold && openHold.kind === 'none' && !ended ? 'back' : null, holdAt: openHold ? openHold.i : null,
290
293
  parts: P.map((p, k) => ({ key: p.key, name: p.name, cls: p.cls, l: B[k], w: B[k + 1] - B[k], dash: !p.dated })),
291
294
  pieces, holds, gaps, skips, ms, today: tx,
292
295
  over: over ? { l: X(E), w: Math.max(0.4, X(t) - X(E)) } : null,
@@ -89,7 +89,7 @@ const shot = (p, name) => (SHOTS ? p.screenshot({ path: path.join(SHOTS, name) }
89
89
  if (!(await p.evaluate(() => !!document.querySelector('#ibBody .sm-dot')))) return finish(1);
90
90
  const key = await p.evaluate(() => { const d = document.querySelector('#ibBody .sm-dot'); const b = d && d.closest('[data-key]'); return b ? b.dataset.key : null; });
91
91
  await p.click(`#ibBody [data-key="${key}"]`);
92
- const card = await until(() => p.evaluate(() => { const c = document.querySelector('#czViewer .sm-card'); return c ? { title: c.querySelector('.sm-h b').textContent, btns: [...c.querySelectorAll('[data-sm]')].map((b) => b.getAttribute('aria-label')), after: !!c.closest('.iv-cl') && !!(c.previousElementSibling && c.previousElementSibling.classList.contains('iv-card')) } : null; }));
92
+ const card = await until(() => p.evaluate(() => { const c = document.querySelector('#czViewer .sm-card'); return c ? { title: c.querySelector('.sm-h b').textContent, btns: [...c.querySelectorAll('[data-sm]')].map((b) => b.getAttribute('aria-label')), after: !!c.closest('.iv-cl') && !!(c.previousElementSibling && c.previousElementSibling.classList.contains('iv-mc')) } : null; }));
93
93
  ok('B the card under the summary: the spark title and ✕ Not now, ✎ Change it first, ✓ Split as suggested', card && /^Split off .+\?$/.test(card.title) && card.btns.join('|') === 'Not now|Change it first|Split as suggested' && card.after, JSON.stringify(card));
94
94
  await shot(p, 'board-suggest.png');
95
95
  await p.click('#czViewer [data-sm="edit"]');
@@ -304,7 +304,7 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
304
304
  await A.ctx.close();
305
305
 
306
306
  /* ── the Board's panel, desktop ── */
307
- const B = await open({ where: 'board', w: 1440, h: 900 }), q = B.page;
307
+ const B = await open({ where: 'board', w: 1440, h: 1600 }), q = B.page;
308
308
  await q.hover('#czViewer .iv-tr[data-iv-r="task-b1"]');
309
309
  const R10 = await q.evaluate(() => { const r = document.querySelector('#czViewer .iv-tr[data-iv-r="task-b1"]'), g = r.querySelector('.iv-grip'); return { grip: !!g && getComputedStyle(g).opacity === '1', dates: r.querySelector('.iv-dc').textContent.replace(/\s+/g, ' ').trim(), av: !!r.querySelector('.iv-rav') }; });
310
310
  ok('S10 desktop: a row shows start – due at the right and the owner\'s face; on hover the grip shows', R10.grip && R10.dates === 'Oct 30 – Nov 6' && R10.av, JSON.stringify(R10));
@@ -354,7 +354,7 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
354
354
  await B.ctx.close();
355
355
 
356
356
  /* S12 the Timeline and Kanban */
357
- const C = await open({ where: 'board', w: 1440, h: 900, view: 'timeline' }), c = C.page;
357
+ const C = await open({ where: 'board', w: 1440, h: 1600, view: 'timeline' }), c = C.page;
358
358
  await c.evaluate(() => { const b = [...document.querySelectorAll('#czViewer .ivt-gh')].find((x) => /Deliver/.test(x.textContent) && x.getAttribute('aria-expanded') === 'false'); if (b) b.click(); });
359
359
  const T12 = await until(() => c.evaluate(() => { const d = document.querySelector('#czViewer .ivt [data-ivt-bar="task-d1"]'); return d ? { cls: d.className, one: d.dataset.one, label: (document.querySelector('#czViewer .ivt-ms.lb b') || {}).textContent } : null; }));
360
360
  ok('S12 Timeline: a milestone is its ◇ on its date with no bar, the date beside it', T12 && /\bivt-d\b/.test(T12.cls) && /\bms\b/.test(T12.cls) && !/ivt-b/.test(T12.cls) && T12.label === 'Nov 14', JSON.stringify(T12));