create-pmos 0.421.0 → 0.422.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/scripts/anchor-resolve.js +93 -15
- package/payload/state/discoveries.md +1 -1
- package/workspace/board-programs-test.js +59 -3
- package/workspace/briefing-premium-board-test.js +1 -1
- package/workspace/changelog.json +12 -0
- package/workspace/fixtures/report-api/draft.json +2 -1
- package/workspace/guide/briefing-premium.md +1 -0
- package/workspace/guide/home.md +5 -2
- package/workspace/guide/programs.md +4 -3
- package/workspace/home-other-product-test.js +55 -0
- package/workspace/lib/board-premium.js +18 -4
- package/workspace/lib/doc-live-root.js +37 -0
- package/workspace/lib/engine/anchor-resolve.js +93 -15
- package/workspace/lib/engine/boards.js +7 -2
- package/workspace/lib/engine/intake.js +1 -1
- package/workspace/lib/hold-spans.js +24 -10
- package/workspace/lib/kg.js +1 -1
- package/workspace/lib/report-draft.js +3 -0
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-board-premium.js +6 -0
- package/workspace/lib/routes-boards.js +48 -9
- package/workspace/lib/routes-doc-sheet.js +29 -1
- package/workspace/lib/routes-programs.js +44 -5
- package/workspace/lib/routes-task-plans.js +333 -0
- package/workspace/lib/task-cli.js +16 -9
- package/workspace/lib/task-items.js +1 -1
- package/workspace/lib/task-plans.js +232 -0
- package/workspace/lib/vendor/scripts/anchor-resolve.js +93 -15
- package/workspace/lib/vendor/scripts/intake.js +1 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-vw-doc-test.js +26 -3
- package/workspace/program-leave-test.js +203 -0
- package/workspace/public/pm/bd-acts.js +5 -2
- package/workspace/public/pm/bd-ini-panel.js +20 -7
- package/workspace/public/pm/bd-prog-panel.js +22 -7
- package/workspace/public/pm/bd-span.js +175 -25
- package/workspace/public/pm/cozy-board.css +80 -0
- package/workspace/public/pm/cozy-home.css +3 -0
- package/workspace/public/pm/doc-follow.js +36 -0
- package/workspace/public/pm/home-app.js +38 -7
- package/workspace/public/pm/home-ini.js +11 -2
- package/workspace/public/pm/home-list.js +2 -2
- package/workspace/public/pm/home-today.js +3 -1
- package/workspace/public/pm/ini-tasks.js +81 -16
- package/workspace/public/pm/ini-versions.js +343 -0
- package/workspace/public/pm/ini-view-model.js +27 -41
- package/workspace/public/pm/ini-view.css +82 -0
- package/workspace/public/pm/ini-view.js +17 -10
- package/workspace/public/pm/premium-board.js +109 -18
- package/workspace/public/pm/premium-report-read.js +20 -1
- package/workspace/public/pm/premium-shell.js +29 -4
- package/workspace/public/pm/premium-vw-doc.js +46 -11
- package/workspace/public/pm/prog-move.js +69 -0
- package/workspace/public/pm/task-card.css +3 -0
- package/workspace/public/pm/task-card.js +10 -3
- package/workspace/task-milestones-test.js +176 -0
- package/workspace/task-plans-test.js +175 -0
- package/workspace/task-views-test.js +2 -2
- package/workspace/test-lists/program-leave.json +6 -0
- package/workspace/test-lists/task-milestones.json +6 -0
- package/workspace/test-lists/task-plans.json +6 -0
- package/workspace/test-lists/viewer-live-file.json +9 -0
- package/workspace/timeline-holds-test.js +61 -4
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
* H hard cases: no return date (dotted to today, the rest faded, the date field open), passed (late colour), two holds, return after Deliver
|
|
11
11
|
* E the edge tab ahead names the return date · N a hold narrower than 8 px closes up (5 yr) · G the program line is dotted where all members wait
|
|
12
12
|
* M the phone keeps the ⏸ only
|
|
13
|
+
* X no activity (batch 11 item 13; XgapA1Board, XgapAHard, XgapA3Phone, XgapAGrill): a plain gap is a hairline with its words, split at today; a hold
|
|
14
|
+
* wins for its dates; » for a skipped stage between two dated ones (on the gap, or at the joint), none at the ends; a narrow » goes to the bar's
|
|
15
|
+
* title; a future gap's press offers + New task with its dates; the legend keys only while drawn; the phone sheet lists the gap and the skip
|
|
13
16
|
* SHOTS_8=<dir>: the timeline at 1440 and 390, light and dark, and the ⏸ menu, into <dir>. */
|
|
14
17
|
const path = require('path');
|
|
15
18
|
const { spawn } = require('child_process');
|
|
@@ -36,7 +39,8 @@ const held = (from, back, reason) => ({ status: 'on hold', stopped: { state: 'on
|
|
|
36
39
|
const ROWS = [
|
|
37
40
|
F.row('email-otp', 'Email OTP (passwordless login)', { stage: 'Build', start: '2026-07-01', end: '2027-06-15', progress: 30, holds: [{ from: '2026-10-12', to: null, back: '2027-03-01', reason: 'Waits on the SMS vendor contract' }], ...held('2026-10-12', '2027-03-01', 'Waits on the SMS vendor contract') }),
|
|
38
41
|
F.row('passkey', 'Passkey sign-in', { owner: 'Lee', start: '2026-08-15', end: '2027-02-10', progress: 45 }),
|
|
39
|
-
F.row('recovery-codes', 'Recovery codes', { owner: 'Dara', start: '2026-09-01', end: '2027-03-20', progress: 40, gaps: [{ from: '2026-10-20', to: '2027-01-10' }]
|
|
42
|
+
F.row('recovery-codes', 'Recovery codes', { owner: 'Dara', start: '2026-09-01', end: '2027-03-20', progress: 40, gaps: [{ from: '2026-10-20', to: '2027-01-10', before: 'discover', after: 'build' }],
|
|
43
|
+
warnings: ['Skipped Plan'], stageSpans: [{ stage: 'discover', start: '2026-09-01', due: '2026-10-20' }, { stage: 'build', start: '2027-01-10', due: '2027-03-20' }] }),
|
|
40
44
|
F.row('no-return', 'On hold, no return date', { start: '2026-06-01', end: '2027-04-01', progress: 20, holds: [{ from: '2026-09-01', to: null, back: null, reason: '' }], ...held('2026-09-01', null) }),
|
|
41
45
|
F.row('passed', 'Return date passed', { start: '2026-05-01', end: '2027-02-01', progress: 30, holds: [{ from: '2026-08-10', to: null, back: '2026-10-05', reason: 'Waits on budget' }], ...held('2026-08-10', '2026-10-05', 'Waits on budget') }),
|
|
42
46
|
F.row('two-holds', 'Resumed, two holds', { start: '2026-03-01', end: '2027-03-01', progress: 40, holds: [{ from: '2026-04-01', to: '2026-05-01', back: null, reason: '' }, { from: '2026-06-10', to: '2026-07-01', back: null, reason: '' }] }),
|
|
@@ -83,6 +87,7 @@ const ROWS = [
|
|
|
83
87
|
hl: [...r.querySelectorAll('.tg-hl')].map((x) => x.className + '|' + x.textContent),
|
|
84
88
|
end: (r.querySelector('.tg-end') || {}).className || '', lab: [...r.querySelectorAll('.tg-lab')].map((x) => x.textContent),
|
|
85
89
|
tabs: [...r.querySelectorAll('.tg-edge')].map((b) => b.dataset.edge + ':' + b.textContent.trim()),
|
|
90
|
+
ng: [...r.querySelectorAll('.tg-ng')].map((b) => ({ tag: b.tagName, label: b.getAttribute('aria-label') || '', sk: !!b.querySelector('.tg-sk') })),
|
|
86
91
|
};
|
|
87
92
|
}, title);
|
|
88
93
|
|
|
@@ -95,11 +100,13 @@ const ROWS = [
|
|
|
95
100
|
ok('A the gap runs from the hold to the return date, where the bar starts again under the return date', otp && Math.abs(otp.gaps[0].l - (otp.bars[0].l + otp.bars[0].w)) < 0.2 && Math.abs(otp.bars[1].l - (otp.gaps[0].l + otp.gaps[0].w)) < 0.2 && otp.hl.join() === 'tg-hl|Mar 1', JSON.stringify(otp));
|
|
96
101
|
ok('A the done part fills the pieces in order and skips the gap: the first piece fills before the second starts', otp && otp.bars[0].done > 0 && (otp.bars[0].done === 100 || otp.bars[1].done === 0), JSON.stringify(otp && otp.bars));
|
|
97
102
|
const rc = await rowOf(p, 'Recovery codes');
|
|
98
|
-
ok('A a plain gap
|
|
103
|
+
ok('A a plain gap in the dated work breaks the bar with a hairline, not a hold\'s dotted line: no ⏸, no label (batch 11 item 13)', rc && rc.bars.length === 2 && !rc.gaps.length && !rc.pz.length && !rc.hl.length
|
|
104
|
+
&& rc.ng.length === 1 && rc.ng[0].tag === 'BUTTON' && rc.ng[0].label === 'Nothing planned, Oct 21 to Jan 9 · 12 wk. Plan skipped' && rc.ng[0].sk, JSON.stringify(rc));
|
|
99
105
|
const pk = await rowOf(p, 'Passkey sign-in');
|
|
100
106
|
ok('A a row with no hold and no gap keeps one whole bar', pk && pk.bars.length === 1 && !/x[lr]/.test(pk.bars[0].cls), JSON.stringify(pk));
|
|
101
107
|
const lg = await p.evaluate(() => (document.querySelector('#bdChipset .tg-lgd') || {}).textContent || '');
|
|
102
|
-
ok('L the legend names "On hold" while a hold is drawn', /
|
|
108
|
+
ok('L the legend names "On hold" while a hold is drawn', /To do\s*On hold/.test(lg), lg);
|
|
109
|
+
ok('X the legend names "No activity" and "Skipped" while they are drawn', /On hold\s*No activity\s*Skipped\s*Jira forecast/.test(lg), lg);
|
|
103
110
|
|
|
104
111
|
const nr = await rowOf(p, 'On hold, no return date');
|
|
105
112
|
ok('H no return date: dotted to today, "no return date" at today, the rest of the plan faded', nr && nr.gaps.length === 1 && nr.hl.join() === 'tg-hl|no return date' && nr.bars.length === 2 && /fd/.test(nr.bars[1].cls) && !/fd/.test(nr.bars[0].cls)
|
|
@@ -141,7 +148,7 @@ const ROWS = [
|
|
|
141
148
|
{
|
|
142
149
|
const { ctx, page: p } = await open({ rows: ROWS.filter((r) => !r.holds) });
|
|
143
150
|
const lg = await p.evaluate(() => (document.querySelector('#bdChipset .tg-lgd') || {}).textContent || '');
|
|
144
|
-
ok('L with no hold drawn, no "On hold" in the legend (zero is silence)', /
|
|
151
|
+
ok('L with no hold drawn, no "On hold" in the legend (zero is silence)', /To do/.test(lg) && !/On hold/.test(lg), lg);
|
|
145
152
|
await ctx.close();
|
|
146
153
|
}
|
|
147
154
|
|
|
@@ -179,6 +186,50 @@ const ROWS = [
|
|
|
179
186
|
await ctx.close();
|
|
180
187
|
}
|
|
181
188
|
|
|
189
|
+
/* X no activity, through the engine (batch 11 item 13): words split at today, a hold wins, » placement, ends not drawn, a narrow » to the title */
|
|
190
|
+
{
|
|
191
|
+
const { ctx, page: p, errors } = await open();
|
|
192
|
+
const r = await p.evaluate(async () => {
|
|
193
|
+
const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 17), d = document.createElement('div');
|
|
194
|
+
const draw = (row, sp = 'year', o = {}) => { d.innerHTML = S.timelineHtml([{ key: 'board:x', id: 'x', title: 'X', track: { key: 'build', k: 4 }, ...row }], { jira: null }, sp, { now, trackPx: 1100, ...o }).html;
|
|
195
|
+
return { ng: [...d.querySelectorAll('.tg-ng')].map((b) => ({ tag: b.tagName, label: b.getAttribute('aria-label') || '', sk: !!b.querySelector('.tg-sk'), ahead: b.dataset.ahead === '1' })),
|
|
196
|
+
sk: [...d.querySelectorAll('.tg-sk.on')].map((x) => x.getAttribute('aria-label') || ''), bars: [...d.querySelectorAll('.tg-bar')].map((b) => b.getAttribute('title')), gaps: d.querySelectorAll('.tg-gap').length }; };
|
|
197
|
+
const base = { start: '2026-07-20', end: '2027-02-26' };
|
|
198
|
+
const across = draw({ ...base, gaps: [{ from: '2026-10-01', to: '2026-11-29' }] });
|
|
199
|
+
const past = draw({ ...base, gaps: [{ from: '2026-09-19', to: '2026-10-17' }] });
|
|
200
|
+
const held = draw({ ...base, gaps: [{ from: '2026-09-01', to: '2026-12-01' }], holds: [{ from: '2026-09-01', to: '2026-12-01', back: null, reason: '' }] });
|
|
201
|
+
// Recovery codes (XgapA1Board): Discover, then no activity, then Build; Plan skipped with its reason; Prioritize was done in the gap too
|
|
202
|
+
const SKP = { track: { key: 'build', k: 4, skipped: [2, 3], skipWhy: [{ stage: 'plan', why: 'The security review fixed the scope' }, { stage: 'prioritize', why: '' }] },
|
|
203
|
+
stageSpans: [{ stage: 'discover', start: '2026-07-20', due: '2026-09-18' }, { stage: 'build', start: '2026-10-19', due: '2027-02-26' }] };
|
|
204
|
+
const onGap = draw({ ...base, ...SKP, gaps: [{ from: '2026-09-18', to: '2026-10-19', before: 'discover', after: 'build' }] });
|
|
205
|
+
const joint = draw({ ...base, ...SKP, stageSpans: [{ stage: 'discover', start: '2026-07-20', due: '2026-10-19' }, { stage: 'build', start: '2026-10-19', due: '2027-02-26' }], gaps: [] });
|
|
206
|
+
const ends = draw({ ...base, track: { key: 'build', k: 4, skipped: [0], skipWhy: [] }, stageSpans: [{ stage: 'discover', start: '2026-07-20', due: '2026-09-18' }, { stage: 'build', start: '2026-10-19', due: '2027-02-26' }], gaps: [] });
|
|
207
|
+
const narrow = draw({ ...base, ...SKP, gaps: [{ from: '2026-09-18', to: '2026-10-19', before: 'discover', after: 'build' }] }, 'y5');
|
|
208
|
+
const keys = S.gapKeys([{ ...base, ...SKP, gaps: [{ from: '2026-09-18', to: '2026-10-19' }] }]), none = S.gapKeys([{ ...base }]);
|
|
209
|
+
const lg = S.legendHtml(false, false, keys);
|
|
210
|
+
return { across, past, held, onGap, joint, ends, narrow, keys, none, lg };
|
|
211
|
+
});
|
|
212
|
+
ok('X a gap across today says both: no activity up to yesterday, nothing planned from today', r.across.ng.length === 1 && r.across.ng[0].label === 'No activity, Oct 2 to Oct 16 · 2 wk. Nothing planned, Oct 17 to Nov 28 · 6 wk' && r.across.ng[0].ahead, JSON.stringify(r.across));
|
|
213
|
+
ok('X a past gap says "No activity" and offers no New task', r.past.ng[0].label === 'No activity, Sep 20 to Oct 16 · 4 wk' && !r.past.ng[0].ahead, JSON.stringify(r.past));
|
|
214
|
+
ok('X a hold over the same days wins: its dotted line, no hairline', r.held.gaps === 1 && r.held.ng.length === 0, JSON.stringify(r.held));
|
|
215
|
+
ok('X a skipped stage between two dated ones is one » on the gap; its words name each skip with its reason', r.onGap.ng.length === 1 && r.onGap.ng[0].sk && !r.onGap.sk.length
|
|
216
|
+
&& r.onGap.ng[0].label === 'No activity, Sep 19 to Oct 16 · 4 wk. Nothing planned, Oct 17 to Oct 18 · 2 days. Plan skipped: the security review fixed the scope. Prioritize skipped', JSON.stringify(r.onGap));
|
|
217
|
+
ok('X no gap between the two stages: the » sits on the bar at the joint', r.joint.ng.length === 0 && r.joint.sk.length === 1 && /^Plan skipped: the security review fixed the scope\. Prioritize skipped$/.test(r.joint.sk[0]), JSON.stringify(r.joint));
|
|
218
|
+
ok('X a skip before the first dated stage is not drawn', r.ends.ng.length === 0 && r.ends.sk.length === 0, JSON.stringify(r.ends));
|
|
219
|
+
ok('X on 5 yr the gap is under 24 px: no », its words go to the bar\'s title', r.narrow.ng.every((g) => !g.sk) && r.narrow.bars.some((t) => /Plan skipped: the security review fixed the scope/.test(t)), JSON.stringify(r.narrow));
|
|
220
|
+
ok('X the legend keys No activity and Skipped only while one is drawn', r.keys.gap && r.keys.skip && !r.none.gap && !r.none.skip && /No activity/.test(r.lg) && /Skipped/.test(r.lg), JSON.stringify([r.keys, r.none]));
|
|
221
|
+
// the press: a future gap's card with its words and + New task with its dates
|
|
222
|
+
await p.click('#ibBody [data-row="board:recovery-codes"] .tg-ng');
|
|
223
|
+
const card = await p.evaluate(() => { const c = document.querySelector('.tg-gpc'); return c ? { words: [...c.querySelectorAll('p')].map((x) => x.textContent), add: (c.querySelector('.gp-add') || {}).getAttribute && c.querySelector('.gp-add').getAttribute('aria-label') } : null; });
|
|
224
|
+
ok('X a future gap opens a card with its words and + New task with the gap\'s dates', card && card.words.join('|') === 'Nothing planned, Oct 21 to Jan 9 · 12 wk|Plan skipped' && card.add === 'New task, Oct 21 to Jan 9', JSON.stringify(card));
|
|
225
|
+
await shot(p, 'timeline-gap-card-1440');
|
|
226
|
+
await p.click('.tg-gpc .gp-add'); await p.waitForTimeout(400);
|
|
227
|
+
const add = await p.evaluate(() => { const f = document.querySelector('#ivAddTask'); return f ? f.placeholder : null; });
|
|
228
|
+
ok('X + opens the initiative with New task ready, the gap\'s dates named', add === 'A task for Recovery codes, Oct 21 to Jan 9', String(add));
|
|
229
|
+
ok('X the gap press threw nothing', !errors.length, errors.join('\n'));
|
|
230
|
+
await ctx.close();
|
|
231
|
+
}
|
|
232
|
+
|
|
182
233
|
/* M the phone: ⏸ only, no dates beside it */
|
|
183
234
|
{
|
|
184
235
|
const { ctx, page: p, errors } = await open({ w: 390, h: 844 });
|
|
@@ -189,6 +240,12 @@ const ROWS = [
|
|
|
189
240
|
const sh = await p.evaluate(() => { const h = document.querySelector('#bdPop'); return { sheet: h.classList.contains('sheet'), h4: (h.querySelector('h4') || {}).textContent }; });
|
|
190
241
|
ok('M on a phone the ⏸ press opens the same menu as a sheet', sh.sheet && sh.h4 === 'On hold · 4½ months', JSON.stringify(sh));
|
|
191
242
|
await shot(p, 'timeline-holds-menu-390');
|
|
243
|
+
const ng = await p.evaluate(() => [...document.querySelectorAll('#ibBody .tg-ng')].map((x) => x.tagName));
|
|
244
|
+
ok('X the phone draws the hairline with no words and no press', ng.length >= 1 && ng.every((t) => t === 'SPAN'), JSON.stringify(ng));
|
|
245
|
+
await p.keyboard.press('Escape'); await p.waitForTimeout(200);
|
|
246
|
+
await p.click('#ibBody .tgq-r[data-row="board:recovery-codes"] > .tg-p', { position: { x: 200, y: 10 } });
|
|
247
|
+
const sh2 = await p.evaluate(() => { const s = document.querySelector('.tg-msp.sh'); return s ? [...s.querySelectorAll('.o')].map((x) => x.textContent.trim()) : null; });
|
|
248
|
+
ok('X tapping the row on a phone opens its sheet, which lists the gap', sh2 && sh2.some((t) => /^Nothing planned · 12 wk/.test(t)), JSON.stringify(sh2));
|
|
192
249
|
ok('the phone timeline threw nothing', !errors.length, errors.join('\n'));
|
|
193
250
|
await ctx.close();
|
|
194
251
|
}
|