create-pmos 0.732.0 → 0.733.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 +32 -14
- package/payload/KIT-VERSION +1 -1
- package/payload/okf/core/concepts/frontmatter-format.md +2 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/board-columns-test.js +6 -5
- package/workspace/board-deliveries-test.js +8 -7
- package/workspace/board-programs-test.js +6 -12
- package/workspace/briefing-premium-board-test.js +3 -3
- package/workspace/calm-timeline-test.js +5 -10
- package/workspace/changelog.json +31 -0
- package/workspace/guide/agent-capabilities.md +1 -0
- package/workspace/guide/cli.md +10 -1
- package/workspace/guide/layout.md +4 -4
- package/workspace/lib/pmos-verbs.js +3 -0
- package/workspace/lib/press-release-cli.js +108 -0
- package/workspace/lib/press-release.js +186 -0
- package/workspace/milestone-pins-test.js +4 -7
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/product-lane-test.js +5 -11
- package/workspace/program-leave-test.js +1 -1
- package/workspace/public/pm/bd-deliveries.js +7 -0
- package/workspace/public/pm/bd-phone-line.js +29 -0
- package/workspace/public/pm/bd-views.js +6 -3
- package/workspace/public/pm/bd-work-ds.css +16 -0
- package/workspace/public/pm/cozy-goals.css +3 -10
- package/workspace/public/pm/cozy-pop-work.js +1 -1
- package/workspace/public/pm/goals-ds.js +1 -1
- package/workspace/public/pm/premium-board.js +4 -3
- package/workspace/public/pm/premium-goals.js +14 -34
- package/workspace/public/premium-goals.html +0 -1
- package/workspace/task-delete-test.js +1 -1
- package/workspace/task-milestones-test.js +4 -8
- package/workspace/test-lists/phone-initiative-lines.json +6 -0
- package/workspace/test-lists/press-release.json +9 -0
- package/workspace/timeline-holds-test.js +5 -16
|
@@ -80,7 +80,7 @@ const ITEMS = [
|
|
|
80
80
|
await page.route('**/api/boards/tasks/edit', (r) => { posts.push(JSON.parse(r.request().postData() || '{}')); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, from: { milestone: false } }) }); });
|
|
81
81
|
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 */ } }, [{ 'pmos.board.view': 'time', 'pmos.board.pview': 'time', 'pmos.board.span': o.span || 'year', 'pmos.tasks.view': o.tasksView || 'list', 'pmos.tasks.zoom': 'month', 'pmos.board.msMode': o.mode || 'all' }]);
|
|
82
82
|
await page.goto(BASE + '/premium-board.html?ws=w1&board=w1');
|
|
83
|
-
await page.waitForSelector('#ibBody [data-row]', { timeout: 15000 });
|
|
83
|
+
await page.waitForSelector('#ibBody [data-row], #ibBody .bd-lrow[data-key]', { timeout: 15000 });
|
|
84
84
|
await page.waitForTimeout(500);
|
|
85
85
|
return { ctx, page, errors, posts };
|
|
86
86
|
};
|
|
@@ -176,15 +176,11 @@ const ITEMS = [
|
|
|
176
176
|
await ctx.close();
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
/* P — the phone */
|
|
179
|
+
/* P — the phone has no Gantt (board PhIniB, initiative phone-initiative-lines): a stored Timeline opens the List, each row with its own line */
|
|
180
180
|
{
|
|
181
181
|
const { ctx, page: p, errors } = await open({ w: 390, h: 844, phone: true });
|
|
182
|
-
const
|
|
183
|
-
ok('P the phone draws the
|
|
184
|
-
await p.click('#ibBody .tgq-r[data-row="board:scarlet"] > .tg-p', { position: { x: 300, y: 10 } });
|
|
185
|
-
const sh = await p.evaluate(() => { const m = document.querySelector('.tg-msp.sh'); return m ? { h: (m.querySelector('.h') || {}).textContent, rows: [...m.querySelectorAll('[data-ms-open]')].map((b) => b.textContent) } : null; });
|
|
186
|
-
ok('P a tap on the row opens a sheet with its milestones, the end one too', sh && sh.h === 'Scarlet — ST What’s The News' && sh.rows.join('|') === 'Pilot with 2 newsroomsDec 11|Feature deliveredJan 29|KPI evaluatedMar 31', JSON.stringify(sh));
|
|
187
|
-
await shot(p, 'milestones-phone-390');
|
|
182
|
+
const ph = await p.evaluate(() => ({ tg: document.querySelectorAll('#ibBody .tg, #ibBody .tgq-r').length, rows: document.querySelectorAll('#ibBody .bd-lrow.ini2').length, scroll: document.documentElement.scrollWidth <= innerWidth + 1 }));
|
|
183
|
+
ok('P the phone draws no timeline: the List, with no sideways page scroll', ph.tg === 0 && ph.rows >= 1 && ph.scroll, JSON.stringify(ph));
|
|
188
184
|
ok('the phone threw nothing', !errors.length, errors.join('\n'));
|
|
189
185
|
await ctx.close();
|
|
190
186
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "initiative press-release-faq (bet A362): pmos press-release, a one-page press release and FAQ drafted from a bet's record (pure, node, scratch folders, model stand-in).",
|
|
3
|
+
"modules": [
|
|
4
|
+
"test/press-release.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"test/press-release.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -73,7 +73,7 @@ const ROWS = [
|
|
|
73
73
|
await page.route('**/api/lifecycle', (r) => { posts.push(JSON.parse(r.request().postData() || '{}')); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true }) }); });
|
|
74
74
|
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 */ } }, [{ 'pmos.board.tlcols': '[]', 'pmos.board.view': 'time', 'pmos.board.pview': 'time', 'pmos.board.span': o.span || 'year' }]);
|
|
75
75
|
await page.goto(BASE + '/premium-board.html?ws=w1&board=w1');
|
|
76
|
-
await page.waitForSelector('#ibBody [data-row]', { timeout: 15000 });
|
|
76
|
+
await page.waitForSelector('#ibBody [data-row], #ibBody .bd-lrow[data-key]', { timeout: 15000 });
|
|
77
77
|
await page.waitForTimeout(500);
|
|
78
78
|
return { ctx, page, errors, posts };
|
|
79
79
|
};
|
|
@@ -234,23 +234,12 @@ const ROWS = [
|
|
|
234
234
|
await ctx.close();
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
/* M the phone:
|
|
237
|
+
/* M — the phone has no Gantt (board PhIniB, initiative phone-initiative-lines): a stored Timeline opens the List, each row with its own line */
|
|
238
238
|
{
|
|
239
239
|
const { ctx, page: p, errors } = await open({ w: 390, h: 844 });
|
|
240
|
-
const
|
|
241
|
-
ok('M the phone
|
|
242
|
-
|
|
243
|
-
await p.click('#ibBody [data-row="board:email-otp"] .tg-ng.ho');
|
|
244
|
-
const sh = await p.evaluate(() => { const h = document.querySelector('#bdPop'); return { sheet: h.classList.contains('sheet'), h4: (h.querySelector('h4') || {}).textContent }; });
|
|
245
|
-
ok('M on a phone the hold\'s press opens the same menu as a sheet', sh.sheet && sh.h4 === 'On hold · 4½ months', JSON.stringify(sh));
|
|
246
|
-
await shot(p, 'timeline-holds-menu-390');
|
|
247
|
-
const ng = await p.evaluate(() => [...document.querySelectorAll('#ibBody .tg-ng:not(.ho)')].map((x) => x.tagName));
|
|
248
|
-
ok('X the phone draws the hairline with no words and no press', ng.length >= 1 && ng.every((t) => t === 'SPAN'), JSON.stringify(ng));
|
|
249
|
-
await p.keyboard.press('Escape'); await p.waitForTimeout(200);
|
|
250
|
-
await p.click('#ibBody .tgq-r[data-row="board:recovery-codes"] > .tg-p', { position: { x: 200, y: 10 } });
|
|
251
|
-
const sh2 = await p.evaluate(() => { const s = document.querySelector('.tg-msp.sh'); return s ? [...s.querySelectorAll('.o')].map((x) => x.textContent.trim()) : null; });
|
|
252
|
-
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));
|
|
253
|
-
ok('the phone timeline threw nothing', !errors.length, errors.join('\n'));
|
|
240
|
+
const ph = await p.evaluate(() => ({ tg: document.querySelectorAll('#ibBody .tg, #ibBody .tgq-r').length, rows: document.querySelectorAll('#ibBody .bd-lrow.ini2').length, scroll: document.documentElement.scrollWidth <= innerWidth + 1 }));
|
|
241
|
+
ok('M the phone draws no timeline: the List, with no sideways page scroll', ph.tg === 0 && ph.rows >= 1 && ph.scroll, JSON.stringify(ph));
|
|
242
|
+
ok('the phone threw nothing', !errors.length, errors.join('\n'));
|
|
254
243
|
await ctx.close();
|
|
255
244
|
}
|
|
256
245
|
if (shots) {
|