create-pmos 0.422.0 → 0.424.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 +25 -25
- package/payload/KIT-VERSION +2 -2
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/payload/state/log.md +1 -1
- package/workspace/board-programs-test.js +28 -0
- package/workspace/briefing-premium-adddoc-test.js +1 -1
- package/workspace/briefing-premium-board-test.js +12 -10
- package/workspace/briefing-premium-initiative-test.js +30 -38
- package/workspace/briefing-premium-products-test.js +16 -3
- package/workspace/changelog.json +24 -0
- package/workspace/guide/briefing-premium.md +1 -1
- package/workspace/guide/claude-proposes.md +37 -0
- package/workspace/guide/home.md +9 -2
- package/workspace/guide/index.md +1 -0
- package/workspace/guide/programs.md +1 -0
- package/workspace/guide/workflows.md +5 -1
- package/workspace/home-pill-test.js +138 -0
- package/workspace/ini-workflow-test.js +4 -4
- package/workspace/lib/board-premium.js +3 -2
- package/workspace/lib/custom-docs.js +65 -3
- package/workspace/lib/engine/boards.js +25 -2
- package/workspace/lib/headless.js +14 -1
- package/workspace/lib/initiative-writer.js +63 -1
- package/workspace/lib/plan-items.js +36 -5
- package/workspace/lib/pmos-verbs.js +3 -0
- package/workspace/lib/programs.js +11 -3
- package/workspace/lib/proposal-runs.js +148 -0
- package/workspace/lib/proposals.js +370 -0
- package/workspace/lib/propose-cli.js +96 -0
- package/workspace/lib/route-modules.js +2 -0
- package/workspace/lib/routes-board-premium.js +33 -0
- package/workspace/lib/routes-boards.js +50 -10
- package/workspace/lib/routes-initiatives.js +12 -0
- package/workspace/lib/routes-proposals.js +325 -0
- package/workspace/lib/routes-task-links.js +336 -0
- package/workspace/lib/split-merge-suggest.js +162 -0
- package/workspace/lib/split-merge.js +379 -0
- package/workspace/lib/task-cli.js +58 -5
- package/workspace/lib/task-items.js +14 -2
- package/workspace/lib/task-links.js +422 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +4 -4
- package/workspace/premium-core-doc-issue-test.js +2 -2
- package/workspace/premium-vw-backlog-test.js +3 -3
- package/workspace/premium-vw-item-test.js +3 -3
- package/workspace/premium-vw-jira-test.js +6 -6
- package/workspace/product-lane-test.js +165 -0
- package/workspace/program-panel-test.js +1 -1
- package/workspace/public/pm/bd-asks.js +3 -0
- package/workspace/public/pm/bd-ini-panel.js +16 -6
- package/workspace/public/pm/bd-prog.js +6 -1
- package/workspace/public/pm/bd-span.js +69 -15
- package/workspace/public/pm/bd-views.js +3 -2
- package/workspace/public/pm/cozy-board.css +10 -0
- package/workspace/public/pm/cozy-today.css +23 -0
- package/workspace/public/pm/cozy-viewer.js +14 -3
- package/workspace/public/pm/cozy-vw-shell.css +8 -0
- package/workspace/public/pm/home-app.js +45 -14
- package/workspace/public/pm/home-ini-model.js +0 -34
- package/workspace/public/pm/home-ini.js +72 -204
- package/workspace/public/pm/home-task.js +2 -1
- package/workspace/public/pm/home-today.js +66 -16
- package/workspace/public/pm/ini-groups.js +253 -0
- package/workspace/public/pm/ini-links.js +519 -0
- package/workspace/public/pm/ini-props.js +218 -0
- package/workspace/public/pm/ini-tasks.js +58 -22
- package/workspace/public/pm/ini-versions.js +14 -9
- package/workspace/public/pm/ini-view-model.js +93 -4
- package/workspace/public/pm/ini-view.css +306 -18
- package/workspace/public/pm/ini-view.js +161 -36
- package/workspace/public/pm/premium-board.js +54 -6
- package/workspace/public/pm/premium-vw-item.js +2 -1
- package/workspace/public/pm/split-merge.css +77 -0
- package/workspace/public/pm/split-merge.js +265 -0
- package/workspace/public/pm/stage-line.js +414 -0
- package/workspace/public/pm/task-card.css +13 -0
- package/workspace/public/pm/task-card.js +42 -5
- package/workspace/public/pm/wf-page.css +2 -0
- package/workspace/public/pm/wf-page.js +2 -0
- package/workspace/public/pm/wf-stage.js +2 -1
- package/workspace/server.js +52 -3
- package/workspace/skills/initiative-propose.skill +45 -0
- package/workspace/split-merge-ui-test.js +175 -0
- package/workspace/stage-card-test.js +13 -12
- package/workspace/task-card-test.js +3 -2
- package/workspace/task-delete-test.js +126 -0
- package/workspace/task-links-test.js +239 -0
- package/workspace/task-milestones-test.js +1 -1
- package/workspace/task-plans-test.js +6 -0
- package/workspace/task-views-test.js +1 -1
- package/workspace/test-lists/bd-ini-panel.json +8 -2
- package/workspace/test-lists/claude-proposes.json +5 -0
- package/workspace/test-lists/home-sessions-pill.json +6 -0
- package/workspace/test-lists/product-lane.json +6 -0
- package/workspace/test-lists/split-merge.json +15 -0
- package/workspace/test-lists/task-delete.json +5 -0
- package/workspace/test-lists/task-links.json +6 -0
- package/workspace/tk-tasks-test.js +186 -57
- package/workspace/workflows-setup-test.js +4 -3
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
/* task-links-test.js — links between tasks on the real pages (feedback batch 11 item 15; canvas In development, row "Task dependencies":
|
|
4
|
+
* DepA1Timeline, DepA2Drag, DepA3Joint, DepA4Move, DepA5List, DepA6Risk, DepA7Phone, DepA8Suggest, DepA9Adjust). Serves the real Board page
|
|
5
|
+
* from the real server; GET /api/board-premium answers fixtures/board-premium-facts.js with tasks, decorated by lib/task-links.js from a
|
|
6
|
+
* ledger of links, a quiet move and Claude's proposal. The page's clock is the fixture's (17 Oct 2026). The writes are answered here.
|
|
7
|
+
* H the Tasks header: count, the grey ✦ (quiet moves), the late count, in that order; the link proposals moved under the initiative's
|
|
8
|
+
* one blue ✦ after its title (feedback batch 12 items 2 and 3, lib/proposals.js)
|
|
9
|
+
* T the Timeline: lines hidden but the orange one; dots on linked ends; the orange start edge; the small blue ✦; hover draws the links;
|
|
10
|
+
* the legend's "Waits on" and the foot text
|
|
11
|
+
* J a joint: the type segment, lag ±, unlink and the sentence; a type posts /link
|
|
12
|
+
* S the ✦ after the title opens "Claude proposes N" with the link proposal: ✓ posts /api/proposals/keep; the moved list says "Was", Undo all, the quiet switch, and marks them seen
|
|
13
|
+
* D drags: a dot onto another bar's start posts /link fs; a linked bar's move posts /move
|
|
14
|
+
* L List and Kanban: the link icon, the first task it waits on; a press opens Waits on / Then with a search
|
|
15
|
+
* P a phone: a tap on a linked bar opens Waits on / Then as a bottom sheet
|
|
16
|
+
* SHOTS=<dir> writes the screenshots there. */
|
|
17
|
+
const path = require('path');
|
|
18
|
+
const fs = require('fs');
|
|
19
|
+
const { spawn } = require('child_process');
|
|
20
|
+
const { findBrowser } = require('./lib/find-browser');
|
|
21
|
+
const T = require('./test-run').configure({ name: 'task-links-ui' });
|
|
22
|
+
const BP = require('./lib/board-premium.js');
|
|
23
|
+
const F = require('./fixtures/board-premium-facts.js');
|
|
24
|
+
const TL = require('./lib/task-links.js');
|
|
25
|
+
const PR = require('./lib/proposals.js');
|
|
26
|
+
|
|
27
|
+
const BASE = T.BASE;
|
|
28
|
+
const SHOTS = process.env.SHOTS || '';
|
|
29
|
+
const results = [];
|
|
30
|
+
const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + extra : ''}`); };
|
|
31
|
+
let srv = null; let browser = null;
|
|
32
|
+
const finish = async (code) => {
|
|
33
|
+
if (browser) await browser.close().catch(() => {});
|
|
34
|
+
if (srv) { try { srv.kill('SIGKILL'); } catch { /* gone */ } }
|
|
35
|
+
T.killTmux();
|
|
36
|
+
const bad = results.filter((x) => !x.cond).length;
|
|
37
|
+
console.log(`\n${results.length - bad}/${results.length} task-links-ui assertions passed`);
|
|
38
|
+
process.exit(code !== undefined ? code : (bad ? 1 : 0));
|
|
39
|
+
};
|
|
40
|
+
process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
41
|
+
|
|
42
|
+
/* the initiative: the spec is late, the API waits on it, the load test waits on the API; the pilot starts the day after the load test ends */
|
|
43
|
+
const INI = 'partner-rate-limits';
|
|
44
|
+
const task = (uid, title, start, end, status = 'To do') => ({ src: 'pmos', kind: 'Task', ini: INI, uid, title, status, owner: 'Lee', start, end });
|
|
45
|
+
const ITEMS = [
|
|
46
|
+
task('task-a', 'Draft the limits spec', '2026-10-05', '2026-10-15', 'In progress'),
|
|
47
|
+
task('task-b', 'Ship the limits API', '2026-10-21', '2026-11-13'),
|
|
48
|
+
task('task-c', 'Load test at 3x peak', '2026-11-16', '2026-11-20'),
|
|
49
|
+
task('task-f', 'Pilot with 3 partners', '2026-11-23', '2026-11-27'),
|
|
50
|
+
task('task-e', 'Partner FAQ', '2026-10-26', '2026-10-30'),
|
|
51
|
+
];
|
|
52
|
+
const LINES = [
|
|
53
|
+
{ at: '2026-10-12T09:00:00Z', kind: 'link', board: 'w1', ini: INI, from: 'task-a', to: 'task-b', type: 'fs', lag: 0, source: 'you' },
|
|
54
|
+
{ at: '2026-10-12T09:01:00Z', kind: 'link', board: 'w1', ini: INI, from: 'task-b', to: 'task-c', type: 'fs', lag: 0, source: 'chat' },
|
|
55
|
+
{ at: '2026-10-17T08:00:00Z', kind: 'moved', board: 'w1', ini: INI, batch: 'b-1', via: 'quiet', moves: [{ task: 'task-c', title: 'Load test at 3x peak', from: { start: '2026-11-12', due: '2026-11-18' }, to: { start: '2026-11-16', due: '2026-11-20' }, why: 'waits on Ship the limits API' }] },
|
|
56
|
+
];
|
|
57
|
+
function model() {
|
|
58
|
+
const m = BP.build(F.facts({ items: ITEMS.map((x) => ({ ...x })) }));
|
|
59
|
+
for (const r of m.rows) if (r.id === INI) { r.start = '2026-10-05'; r.end = '2026-12-15'; }
|
|
60
|
+
const LF = TL.fold(LINES);
|
|
61
|
+
TL.decorate(m.rows, LF, ITEMS, { today: '2026-10-17' });
|
|
62
|
+
PR.decorate(m.rows, PR.fold([]), ITEMS, { today: '2026-10-17', links: () => TL.linksOf(LF), settle: TL.settle });
|
|
63
|
+
return m;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
(async () => {
|
|
67
|
+
const exe = findBrowser();
|
|
68
|
+
if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the suite cannot run'); return finish(1); }
|
|
69
|
+
let chromium;
|
|
70
|
+
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
71
|
+
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
72
|
+
await T.waitForServer(BASE);
|
|
73
|
+
browser = await chromium.launch({ executablePath: exe });
|
|
74
|
+
const shot = async (page, name, sel) => { if (!SHOTS) return; fs.mkdirSync(SHOTS, { recursive: true }); const p = path.join(SHOTS, name + '.png'); if (sel) await page.locator(sel).first().screenshot({ path: p }); else await page.screenshot({ path: p }); };
|
|
75
|
+
|
|
76
|
+
const open = async (o = {}) => {
|
|
77
|
+
const ctx = await browser.newContext({ viewport: { width: o.w || 1440, height: o.h || 900 } });
|
|
78
|
+
const page = await ctx.newPage();
|
|
79
|
+
const errors = [], posts = [];
|
|
80
|
+
page.on('pageerror', (e) => errors.push(String((e && e.stack) || e)));
|
|
81
|
+
await page.clock.setFixedTime(new Date(F.NOW));
|
|
82
|
+
await page.route('**/api/board-premium*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, state: 'ready', model: model(), as_of: Date.now() }) }));
|
|
83
|
+
await page.route('**/api/board-trail*', (r) => r.fulfill({ status: 500, contentType: 'application/json', body: JSON.stringify({ ok: false, error: 'not in this check' }) }));
|
|
84
|
+
await page.route('**/api/boards/items*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, items: ITEMS.concat([{ src: 'pmos', kind: 'Task', ini: 'usage-billing', uid: 'task-x', title: 'Metering service', start: '2026-11-02', end: '2026-12-18', status: 'To do' }]) }) }));
|
|
85
|
+
await page.route('**/api/task-links/**', (r) => {
|
|
86
|
+
const u = new URL(r.request().url()), body = r.request().method() === 'POST' ? r.request().postDataJSON() : null;
|
|
87
|
+
if (body) posts.push({ route: u.pathname.replace('/api/task-links', ''), body });
|
|
88
|
+
const ans = { ok: true, moved: [], cant: [], linked: [], batch: 'b-x' };
|
|
89
|
+
r.fulfill({ contentType: 'application/json', body: JSON.stringify(ans) });
|
|
90
|
+
});
|
|
91
|
+
await page.route('**/api/proposals**', (r) => {
|
|
92
|
+
const u = new URL(r.request().url()), body = r.request().method() === 'POST' ? r.request().postDataJSON() : null;
|
|
93
|
+
if (body) posts.push({ route: u.pathname, body });
|
|
94
|
+
r.fulfill({ contentType: 'application/json', body: JSON.stringify(body ? { ok: true, batch: 'pk-x', said: 'Kept 1 link.', props: null } : { ok: true, props: null, found: null }) });
|
|
95
|
+
});
|
|
96
|
+
await page.addInitScript(([s]) => { try { if (!sessionStorage.getItem('set')) { sessionStorage.setItem('set', '1'); for (const [k, v] of Object.entries(s)) localStorage.setItem(k, v); } } catch { /* none */ } },
|
|
97
|
+
[{ 'pmos.board.view': 'time', 'pmos.board.span': 'half', 'pmos.tasks.view': o.view || 'timeline', 'pmos.tasks.zoom': 'week' }]);
|
|
98
|
+
await page.goto(BASE + '/premium-board.html?ws=w1&board=w1');
|
|
99
|
+
await page.waitForSelector('#ibBody [data-key]', { timeout: 15000 });
|
|
100
|
+
await page.waitForTimeout(400);
|
|
101
|
+
await page.locator(`[data-key="board:${INI}"]`).first().click();
|
|
102
|
+
await page.waitForSelector('#czViewer .iv-th', { timeout: 8000 });
|
|
103
|
+
await page.waitForTimeout(400);
|
|
104
|
+
return { ctx, page, errors, posts };
|
|
105
|
+
};
|
|
106
|
+
const bar = (uid) => `#czViewer [data-ivt-bar="${uid}"]`;
|
|
107
|
+
|
|
108
|
+
{
|
|
109
|
+
const { ctx, page, errors, posts } = await open();
|
|
110
|
+
// ── H: the header
|
|
111
|
+
const H = await page.evaluate(() => {
|
|
112
|
+
const h = document.querySelector('#czViewer .iv-th');
|
|
113
|
+
const chip = document.querySelector('#czViewer .cz-vw-hd [data-cz-vw="chip"]');
|
|
114
|
+
return { order: [...h.children].map((n) => (n.classList.contains('n') ? 'count' : n.dataset.lkChip || n.className.split(' ')[0])).filter((x) => /count|prop|moved|late|vs-/.test(x)),
|
|
115
|
+
prop: chip ? chip.textContent : '', moved: (h.querySelector('[data-lk-chip="moved"]') || {}).textContent || '', late: (h.querySelector('[data-lk-chip="late"]') || {}).textContent || '' };
|
|
116
|
+
});
|
|
117
|
+
ok('H1 the header: count, then the grey ✦ and the late count, in that order; no blue ✦ in Tasks', H.order.slice(0, 3).join(',') === 'count,moved,late', JSON.stringify(H));
|
|
118
|
+
ok('H2 the counts: the ✦ after the title holds 2 (the late spec\'s dates, the pilot\'s link), 1 quiet move, 2 tasks after a late one', H.prop.trim() === '2' && H.moved.trim() === '1' && H.late.trim() === '2', JSON.stringify(H));
|
|
119
|
+
|
|
120
|
+
// ── T: the Timeline
|
|
121
|
+
const T0 = await page.evaluate(() => {
|
|
122
|
+
const v = document.querySelector('#czViewer'), b = (u) => v.querySelector(`[data-ivt-bar="${u}"]`);
|
|
123
|
+
return { lines: [...v.querySelectorAll('.lk-sv path.lk-ln')].map((p) => p.getAttribute('class')), dotsB: b('task-b').querySelectorAll('.lk-dt.on').length, dotsE: b('task-e').querySelectorAll('.lk-dt.on').length,
|
|
124
|
+
edge: ['task-b', 'task-c', 'task-a'].map((u) => !!b(u).querySelector('.lk-le')), star: !!b('task-c').querySelector('.lk-mv'), legend: (v.querySelector('.ivt-lg') || {}).textContent || '',
|
|
125
|
+
label: b('task-b').getAttribute('aria-label') };
|
|
126
|
+
});
|
|
127
|
+
ok('T1 by default only the late link draws (orange); the others stay hidden', T0.lines.length === 1 && /\bor\b/.test(T0.lines[0]), JSON.stringify(T0.lines));
|
|
128
|
+
ok('T2 a linked bar shows a grey dot at each linked end; an unlinked one shows none', T0.dotsB === 2 && T0.dotsE === 0, JSON.stringify(T0));
|
|
129
|
+
ok('T3 the tasks after the late one carry the orange start edge; the late task keeps its date and no edge', T0.edge.join() === 'true,true,false', JSON.stringify(T0.edge));
|
|
130
|
+
ok('T4 the quietly moved task carries the small blue ✦', T0.star, JSON.stringify(T0));
|
|
131
|
+
ok('T5 the legend says "Waits on" and the foot names the dot', /Waits on/.test(T0.legend) && /a dot to link it/.test(T0.legend), T0.legend);
|
|
132
|
+
ok('T6 the bar\'s label says what it waits on', /waits on Draft the limits spec/.test(T0.label), T0.label);
|
|
133
|
+
await shot(page, 'DepBuild1Timeline', '#czViewer');
|
|
134
|
+
await page.hover(bar('task-b'));
|
|
135
|
+
await page.waitForTimeout(150);
|
|
136
|
+
const T1 = await page.evaluate(() => ({ lines: [...document.querySelectorAll('#czViewer .lk-sv path.lk-ln')].map((p) => p.getAttribute('class')), joints: document.querySelectorAll('#czViewer .lk-jt').length }));
|
|
137
|
+
ok('T7 hovering a bar draws its links (dark), each with a joint', T1.lines.length === 2 && T1.lines.some((c) => /sel/.test(c)) && T1.joints === 2, JSON.stringify(T1));
|
|
138
|
+
await shot(page, 'DepBuild2Hover', '#czViewer .ivt');
|
|
139
|
+
|
|
140
|
+
// ── J: a joint
|
|
141
|
+
await page.locator('#czViewer .lk-jt[data-lk-joint="task-b>task-c"]').click({ force: true });
|
|
142
|
+
await page.waitForSelector('.lk-pop .lk-jc', { timeout: 4000 });
|
|
143
|
+
const J = await page.evaluate(() => { const m = document.querySelector('.lk-pop .lk-jc'); return { seg: m.querySelectorAll('[data-lk-type]').length, on: (m.querySelector('[data-lk-type].on') || {}).dataset.lkType, lag: !!m.querySelector('[data-lk-lag="1"]'), un: !!m.querySelector('[data-lk-unlink]'), say: (m.querySelector('.lk-say') || {}).textContent || '' }; });
|
|
144
|
+
ok('J1 the joint: four types (finish → start on), lag ±, unlink, and the link in one sentence', J.seg === 4 && J.on === 'fs' && J.lag && J.un && /Load test at 3x peak starts when Ship the limits API finishes/.test(J.say), JSON.stringify(J));
|
|
145
|
+
await shot(page, 'DepBuild3Joint');
|
|
146
|
+
await page.locator('.lk-pop [data-lk-type="ss"]').click();
|
|
147
|
+
await page.waitForTimeout(300);
|
|
148
|
+
const pl = posts.filter((p) => p.route === '/link');
|
|
149
|
+
ok('J2 a type posts /link with it', pl.length === 1 && pl[0].body.type === 'ss' && pl[0].body.from === 'task-b' && pl[0].body.to === 'task-c', JSON.stringify(posts));
|
|
150
|
+
|
|
151
|
+
// ── S: the chips' lists
|
|
152
|
+
await page.locator('#czViewer .cz-vw-hd [data-cz-vw="chip"]').click();
|
|
153
|
+
await page.waitForSelector('#czViewer .pp [data-pp^="lk:"]', { timeout: 4000 });
|
|
154
|
+
const S1 = await page.evaluate(() => { const m = document.querySelector('#czViewer .pp [data-pp^="lk:"]'); return { title: document.querySelector('#czVwTitle').textContent, text: m.textContent, yes: m.querySelectorAll('[data-pp-keep]').length, no: m.querySelectorAll('[data-pp-droplk]').length }; });
|
|
155
|
+
ok('S1 the ✦ opens "Claude proposes 2": the link proposal sits under Links with ✓ and ✕', /Claude proposes 2/.test(S1.title) && S1.yes === 1 && S1.no === 1 && /Pilot with 3 partners waits on Load test at 3x peak/.test(S1.text), JSON.stringify(S1));
|
|
156
|
+
await shot(page, 'DepBuild4Proposals');
|
|
157
|
+
await page.locator('#czViewer .pp [data-pp^="lk:"] [data-pp-keep]').click();
|
|
158
|
+
await page.waitForTimeout(400);
|
|
159
|
+
const acc = posts.filter((p) => p.route === '/api/proposals/keep');
|
|
160
|
+
ok('S2 ✓ posts /api/proposals/keep with that proposal', acc.length === 1 && acc[0].body.initiative === 'partner-rate-limits' && acc[0].body.ids.length === 1 && /^lk:/.test(acc[0].body.ids[0]), JSON.stringify(acc));
|
|
161
|
+
await page.waitForSelector('#czViewer .iv-th', { timeout: 4000 });
|
|
162
|
+
await page.locator('#czViewer [data-lk-chip="moved"]').click();
|
|
163
|
+
await page.waitForSelector('.lk-pop .lk-m', { timeout: 4000 });
|
|
164
|
+
const S3 = await page.evaluate(() => { const m = document.querySelector('.lk-pop .lk-m'); return { text: m.textContent, undo: !!m.querySelector('[data-lk-undoall]'), sw: !!m.querySelector('[data-lk-quiet][aria-checked="true"]') }; });
|
|
165
|
+
ok('S3 the grey ✦ lists the move with its new date, "Was …" and why; Undo all; the quiet switch is on', /Load test at 3x peak/.test(S3.text) && /Was Nov 12 → 18/.test(S3.text) && /Waits on Ship the limits API/.test(S3.text) && S3.undo && S3.sw, JSON.stringify(S3));
|
|
166
|
+
await shot(page, 'DepBuild5Moved');
|
|
167
|
+
ok('S4 opening it marks the moves seen', posts.some((p) => p.route === '/seen' && p.body.initiative === 'partner-rate-limits'), JSON.stringify(posts.map((p) => p.route)));
|
|
168
|
+
await page.keyboard.press('Escape');
|
|
169
|
+
|
|
170
|
+
// ── D: drags
|
|
171
|
+
await page.locator(bar('task-f')).scrollIntoViewIfNeeded(); // ← from the ✦'s Viewer draws the initiative again from its top
|
|
172
|
+
const c = await page.locator(bar('task-c')).boundingBox(), f = await page.locator(bar('task-f')).boundingBox();
|
|
173
|
+
await page.mouse.move(c.x + c.width / 2, c.y + c.height / 2);
|
|
174
|
+
await page.waitForTimeout(100);
|
|
175
|
+
const dot = await page.locator(bar('task-c') + ' .lk-dt.r').boundingBox();
|
|
176
|
+
await page.mouse.move(dot.x + dot.width / 2, dot.y + dot.height / 2);
|
|
177
|
+
await page.mouse.down();
|
|
178
|
+
await page.mouse.move(f.x + 6, f.y + f.height / 2, { steps: 6 });
|
|
179
|
+
await page.waitForTimeout(100);
|
|
180
|
+
const tip = await page.evaluate(() => (document.querySelector('#czViewer .lk-tip') || {}).textContent || '');
|
|
181
|
+
ok('D1 dragging a dot onto another bar\'s start names the link: finish → start, which waits on which', /Finish → start/.test(tip) && /Pilot with 3 partners waits on Load test at 3x peak/.test(tip), tip);
|
|
182
|
+
await shot(page, 'DepBuild6Drag', '#czViewer .ivt');
|
|
183
|
+
await page.mouse.up();
|
|
184
|
+
await page.waitForTimeout(400);
|
|
185
|
+
const ln = posts.filter((p) => p.route === '/link');
|
|
186
|
+
ok('D2 letting go posts /link task-c → task-f, finish → start, and no date picker opens', ln.length === 2 && ln[1].body.from === 'task-c' && ln[1].body.to === 'task-f' && ln[1].body.type === 'fs' && !(await page.$('.tkc.ivq:not(.lk-pop)')), JSON.stringify(ln));
|
|
187
|
+
// bring the bar into view, and out from under the sticky names
|
|
188
|
+
await page.locator(bar('task-b')).scrollIntoViewIfNeeded();
|
|
189
|
+
await page.evaluate(() => { const sc = document.querySelector('#czViewer .ivt-sc'), n = document.querySelector('#czViewer .ivt-n'), x = document.querySelector('#czViewer [data-ivt-bar="task-b"]'); sc.scrollLeft += x.getBoundingClientRect().left - n.getBoundingClientRect().right - 40; });
|
|
190
|
+
await page.waitForTimeout(100);
|
|
191
|
+
const b = await page.locator(bar('task-b')).boundingBox();
|
|
192
|
+
await page.mouse.move(b.x + 30, b.y + b.height / 2);
|
|
193
|
+
await page.mouse.down();
|
|
194
|
+
await page.mouse.move(b.x + 100, b.y + b.height / 2, { steps: 6 });
|
|
195
|
+
await page.mouse.up();
|
|
196
|
+
await page.waitForTimeout(400);
|
|
197
|
+
const mv = posts.filter((p) => p.route === '/move');
|
|
198
|
+
ok('D3 moving a linked bar posts /move (what waits follows, with Undo)', mv.length === 1 && mv[0].body.task === 'task-b' && mv[0].body.start > '2026-10-21', JSON.stringify(mv));
|
|
199
|
+
ok('D4 no page error', errors.length === 0, errors.join(' | '));
|
|
200
|
+
await ctx.close();
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// ── L: the List and Kanban
|
|
204
|
+
for (const view of ['list', 'kanban']) {
|
|
205
|
+
const { ctx, page, errors } = await open({ view });
|
|
206
|
+
if (view === 'kanban') { await page.locator('#czViewer [data-iv-kstage]').click(); await page.locator('.tkc.ivq [data-ivq-i="1"]').click(); await page.waitForTimeout(300); }
|
|
207
|
+
const m = await page.evaluate(() => [...document.querySelectorAll('#czViewer .lk-mt')].map((x) => x.textContent.trim()));
|
|
208
|
+
ok(`L1 ${view}: the link icon and the first task it waits on`, m.includes('Draft the limits spec') && m.includes('Ship the limits API'), JSON.stringify(m));
|
|
209
|
+
await page.locator('#czViewer .lk-mt[data-lk-meta="task-c"]').first().click();
|
|
210
|
+
await page.waitForSelector('.lk-pop .lk-wt', { timeout: 4000 });
|
|
211
|
+
const W = await page.evaluate(() => { const m = document.querySelector('.lk-pop .lk-wt'); return { text: m.textContent, find: !!m.querySelector('[data-lk-find]') }; });
|
|
212
|
+
ok(`L2 ${view}: a press opens Waits on / Then with a search`, /Waits on/.test(W.text) && /Ship the limits API/.test(W.text) && W.find, JSON.stringify(W));
|
|
213
|
+
if (view === 'list') {
|
|
214
|
+
await page.locator('.lk-pop [data-lk-find]').fill('meter');
|
|
215
|
+
await page.waitForSelector('.lk-pop [data-lk-pick]', { timeout: 4000 });
|
|
216
|
+
const r = await page.locator('.lk-pop [data-lk-pick]').first().textContent();
|
|
217
|
+
ok('L3 the search finds a task in another initiative and says so', /Metering service/.test(r) && /Another initiative/.test(r), r);
|
|
218
|
+
await shot(page, 'DepBuild7List');
|
|
219
|
+
}
|
|
220
|
+
ok(`L4 ${view}: no page error`, errors.length === 0, errors.join(' | '));
|
|
221
|
+
await ctx.close();
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// ── P: a phone
|
|
225
|
+
{
|
|
226
|
+
const { ctx, page, errors } = await open({ w: 390, h: 844 });
|
|
227
|
+
await page.locator(bar('task-b')).first().click();
|
|
228
|
+
await page.waitForSelector('.lk-pop.sheet', { timeout: 4000 });
|
|
229
|
+
const P = await page.evaluate(() => { const s = document.querySelector('.lk-pop.sheet'), r = s.getBoundingClientRect(); return { bottom: Math.round(r.bottom), w: Math.round(r.width), text: s.textContent, dates: !!s.querySelector('[data-lk-dates]'), lines: document.querySelectorAll('#czViewer .lk-sv path.lk-ln').length, scroll: document.documentElement.scrollWidth }; });
|
|
230
|
+
ok('P1 a tap on a linked bar draws its links and opens Waits on / Then as a bottom sheet, with its dates one row down', P.bottom === 844 && P.w === 390 && /Waits on/.test(P.text) && /Then/.test(P.text) && P.dates && P.lines >= 2 && P.scroll <= 390, JSON.stringify(P));
|
|
231
|
+
await shot(page, 'DepBuild8Phone');
|
|
232
|
+
await page.locator('.lk-pop [data-lk-dates]').click();
|
|
233
|
+
await page.waitForTimeout(300);
|
|
234
|
+
ok('P2 "Change the dates" opens the date picker', !!(await page.$('.tkc.ivq .tkc-pop')), '');
|
|
235
|
+
ok('P3 no page error', errors.length === 0, errors.join(' | '));
|
|
236
|
+
await ctx.close();
|
|
237
|
+
}
|
|
238
|
+
finish();
|
|
239
|
+
})().catch((e) => { console.error(e); finish(1); });
|
|
@@ -144,7 +144,7 @@ const ITEMS = [
|
|
|
144
144
|
ok('F a milestone with no due date asks for it in a dashed chip', by('Support FAQ').ask === 'Set the due date', JSON.stringify(by('Support FAQ')));
|
|
145
145
|
await p.click('.iv-tr:has(.iv-tt:text-is("Ship the article summaries API")) .iv-car');
|
|
146
146
|
const pick = await p.evaluate(() => { const b = document.querySelector('.ivq-st .ivq-ms'); return b ? { lbl: b.getAttribute('aria-label'), tip: b.getAttribute('title'), pressed: b.getAttribute('aria-pressed'), vr: document.querySelectorAll('.ivq-st .vr').length, text: b.textContent } : null; });
|
|
147
|
-
ok('F the status picker holds ◇ after a divider, icon only, its tooltip says what it does', pick && pick.lbl === 'Make it a milestone' && pick.pressed === 'false' && pick.vr ===
|
|
147
|
+
ok('F the status picker holds ◇ after a divider, icon only, its tooltip says what it does', pick && pick.lbl === 'Make it a milestone' && pick.pressed === 'false' && pick.vr === 3 && pick.text === '' && /due date shows as ◇ on the Board and the timeline/.test(pick.tip), JSON.stringify(pick));
|
|
148
148
|
await shot(p, 'milestones-picker-1440');
|
|
149
149
|
await p.click('.ivq-st .ivq-ms'); await p.waitForTimeout(300);
|
|
150
150
|
ok('F pressing ◇ writes milestone true for that task', posts.length === 1 && posts[0].task === 'task-api' && posts[0].milestone === true, JSON.stringify(posts));
|
|
@@ -167,6 +167,12 @@ function model() {
|
|
|
167
167
|
await page.waitForSelector('.vs-pop.sheet', { timeout: 4000 });
|
|
168
168
|
const P = await page.evaluate(() => { const r = document.querySelector('.vs-pop.sheet').getBoundingClientRect(); return { bottom: Math.round(r.bottom), w: Math.round(r.width), scroll: document.documentElement.scrollWidth }; });
|
|
169
169
|
ok('P1 on a phone the menu is a bottom sheet the width of the screen; no sideways scroll', P.bottom === 844 && P.w === 390 && P.scroll <= 390, JSON.stringify(P));
|
|
170
|
+
// batch 11 item 20: the 390 px Tasks header holds the group icon, the view switch, + and a draft's Make live, all in the Viewer
|
|
171
|
+
await page.locator('.vs-pop [data-vs-show="draft-c1"]').click();
|
|
172
|
+
await page.waitForSelector('#czViewer [data-vs-live]', { timeout: 4000 });
|
|
173
|
+
const H = await page.evaluate(() => { const v = document.querySelector('#czViewer'), b = v.querySelector('.cz-vw-body').getBoundingClientRect(), h = v.querySelector('.iv-th'); const ins = (s) => { const e = h.querySelector(s); if (!e) return 'none'; const r = e.getBoundingClientRect(); return r.width > 0 && r.left >= b.left && r.right <= b.right + 0.5 ? 'in' : 'out'; }; return { by: ins('[data-ig-by]'), view: ins('.ivx-seg'), seal: ins('[data-vs-live]'), add: h.querySelector('[data-iv-add]') ? ins('[data-iv-add]') : 'in', head: h.scrollWidth - Math.round(h.getBoundingClientRect().width), scroll: document.documentElement.scrollWidth }; });
|
|
174
|
+
ok('P3 on a phone the Tasks header fits the group icon, the view switch, + and Make live', H.by === 'in' && H.view === 'in' && H.seal === 'in' && H.add === 'in' && H.head <= 1 && H.scroll <= 390, JSON.stringify(H));
|
|
175
|
+
await shot(page, 'PvaBuild6PhoneDraft', '#czViewer .iv-th');
|
|
170
176
|
ok('P2 no page error', errors.length === 0, errors.join(' | '));
|
|
171
177
|
await shot(page, 'PvaBuild5Phone');
|
|
172
178
|
await ctx.close();
|
|
@@ -143,7 +143,7 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
|
|
|
143
143
|
});
|
|
144
144
|
ok('V4 Timeline keeps the List\'s stage groups, one per stage (batch 11 item 5)', tl.groups.join('|') === 'Triage|Discover|Plan|Prioritize|Build|Deliver|Monitor|Evaluate', JSON.stringify(tl.groups));
|
|
145
145
|
ok('V4 bars by start and due: in progress light blue, late amber; a due day only is a circle; no dates is a dashed date press', /ivt-b/.test(tl.a) && / pr/.test(tl.a) && /ivt-d/.test(tl.b) && /ivt-b lt/.test(tl.c) && tl.ghost, JSON.stringify(tl));
|
|
146
|
-
ok('V4 Weeks is the first zoom; it opens on today, the Today line in view; the legend sits under it', tl.zoom === 'Weeks' && tl.seen && /To do.*In progress.*Late.*Due only.*Jira
|
|
146
|
+
ok('V4 Weeks is the first zoom; it opens on today, the Today line in view; the legend sits under it', tl.zoom === 'Weeks' && tl.seen && /To do.*In progress.*Late.*Due only.*Jira/.test(tl.lg), JSON.stringify(tl));
|
|
147
147
|
ok('V4 an archived task shows nowhere in Timeline', !tl.arch);
|
|
148
148
|
await shot(p, 'timeline-1440');
|
|
149
149
|
await p.click('#czViewer [data-iv-zoom]');
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_comment": "feedback batch 6 items 1 and 3 (OvIniA): ONE initiative view on the Board, Home and the phone. The node suite is pure (ini-view-model.js); the browser half is in briefing-premium-board-test.js (the Board's panel) and stage-card-test.js (Home's page).",
|
|
3
|
-
"modules": [
|
|
4
|
-
|
|
3
|
+
"modules": [
|
|
4
|
+
"ini-view-model.test.js",
|
|
5
|
+
"stage-line.test.js"
|
|
6
|
+
],
|
|
7
|
+
"seconds": {
|
|
8
|
+
"ini-view-model.test.js": 1,
|
|
9
|
+
"stage-line.test.js": 1
|
|
10
|
+
}
|
|
5
11
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Feedback batch 12 items 2, 3 and 4, Claude proposes: an initiative's one blue ✦ (Found elsewhere, Dates, Looks done, Names, Links), the background runs that file them and `pmos propose` (lib/proposals.js, lib/routes-proposals.js, lib/proposal-runs.js, lib/propose-cli.js, pm/ini-props.js). The modules suite folds pure, drives the runs with fake parts and then serves a scratch server. The Board's ✦ and its Viewer are driven in task-links-test.js.",
|
|
3
|
+
"modules": ["proposals.test.js"],
|
|
4
|
+
"seconds": { "proposals.test.js": 10 }
|
|
5
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Feedback batch 12 item 6 (agreed A, 2026-10-26; canvas HsA1Desk, HsA2Phone, HsA3Sheet): an initiative's sessions, next steps and today's meetings sit in a pill on its Home row instead of nesting under it. The panel suite holds the pure checks too and serves the real page.",
|
|
3
|
+
"modules": [],
|
|
4
|
+
"panels": ["home-pill-test.js"],
|
|
5
|
+
"seconds": { "home-pill-test.js": 25 }
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Feedback batch 11 item 17, milestones on the product lane: a product's head row on the Board timeline rolls up every milestone of its initiatives. The panels suite drives the Board in a browser.",
|
|
3
|
+
"modules": [],
|
|
4
|
+
"panels": ["product-lane-test.js"],
|
|
5
|
+
"seconds": { "product-lane-test.js": 30 }
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "feedback batch 11 item 14 (option A grilled): split one initiative in two, or merge two, with one Undo; Claude suggests from the tasks (the dot, the card with ✕ ✎ ✓), the split editor and the merge check on the Board and Home (canvas XsmA1Suggest, XsmA1Menu, XsmA2Split, XsmA3SplitDone, XsmA5MergeCheck, XsmA7Closed).",
|
|
3
|
+
"modules": [
|
|
4
|
+
"split-merge-suggest.test.js",
|
|
5
|
+
"split-merge.test.js"
|
|
6
|
+
],
|
|
7
|
+
"seconds": {
|
|
8
|
+
"split-merge-suggest.test.js": 1,
|
|
9
|
+
"split-merge.test.js": 40,
|
|
10
|
+
"split-merge-ui-test.js": 60
|
|
11
|
+
},
|
|
12
|
+
"panels": [
|
|
13
|
+
"split-merge-ui-test.js"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Feedback batch 11 item 16, a Delete for every PMOS task (breakdown items too, never a Jira ticket): the trash in the status picker, with Undo. The panels suite drives the Board's initiative panel in a browser.",
|
|
3
|
+
"panels": ["task-delete-test.js"],
|
|
4
|
+
"seconds": { "task-delete-test.js": 25 }
|
|
5
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Feedback batch 11 item 15, task dependencies: links between tasks, Claude's proposals, the quiet moves, Needs you (lib/task-links.js, lib/routes-task-links.js, pm/ini-links.js). The modules suite folds pure and then serves a scratch server; the panels suite drives the Board's Viewer in a browser.",
|
|
3
|
+
"modules": ["task-links.test.js"],
|
|
4
|
+
"panels": ["task-links-test.js"],
|
|
5
|
+
"seconds": { "task-links.test.js": 8, "task-links-test.js": 45 }
|
|
6
|
+
}
|