create-pmos 0.736.0 → 0.737.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 +26 -20
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +25 -0
- package/workspace/guide/home.md +1 -0
- package/workspace/guide/layout.md +10 -3
- package/workspace/lib/use-log.js +26 -4
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/action-keys.js +1 -1
- package/workspace/public/pm/bd-pop-ds.css +18 -0
- package/workspace/public/pm/bd-pop-ds.js +33 -3
- package/workspace/public/pm/cozy-day-pick.css +0 -1
- package/workspace/public/pm/cozy-ev.css +9 -0
- package/workspace/public/pm/cozy-nav.js +2 -0
- package/workspace/public/pm/cozy-pop-work.js +16 -13
- package/workspace/public/pm/focus-mode.js +161 -0
- package/workspace/public/pm/ini-tasks.js +8 -18
- package/workspace/public/pm/range-pick.css +50 -0
- package/workspace/public/pm/range-pick.js +155 -0
- package/workspace/public/pm/task-card.css +2 -19
- package/workspace/public/pm/task-card.js +16 -36
- package/workspace/stage-card-tasks-test.js +11 -11
- package/workspace/task-card-test.js +17 -10
- package/workspace/task-views-test.js +7 -5
- package/workspace/test-lists/focus-mode.json +9 -0
- package/workspace/test-lists/range-pick.json +5 -0
|
@@ -207,13 +207,13 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
|
|
|
207
207
|
/* S5 the date chips: a phone's picker is a bottom sheet; Start opens on the start */
|
|
208
208
|
await until(() => p.evaluate(() => !!document.querySelector('#czViewer .iv-ed [data-f="start"]')));
|
|
209
209
|
await p.click('#czViewer .iv-ed [data-f="start"]');
|
|
210
|
-
const dp = await until(() => p.evaluate(() => { const q = document.querySelector('.tkc.ivq.sheet .tkc-dp'); if (!q) return null; const r = q.getBoundingClientRect();
|
|
211
|
-
ok('S5 Start opens the task card\'s picker on the start day, as a bottom sheet on a phone', dp && dp.on === '
|
|
210
|
+
const dp = await until(() => p.evaluate(() => { const q = document.querySelector('.tkc.ivq.sheet .tkc-dp'); if (!q) return null; const r = q.getBoundingClientRect(); const on = q.querySelector('[data-rp-end].on'); return { on: on ? on.dataset.rpEnd + '|' + on.querySelector('.rp-in').value : '', bottom: Math.round(innerHeight - r.bottom), head: (q.querySelector('.ivd-h b') || {}).textContent, sub: (q.querySelector('.ivd-s') || {}).textContent }; }));
|
|
211
|
+
ok('S5 Start opens the task card\'s picker on the start day, as a bottom sheet on a phone', dp && dp.on === 'start|30 Oct 2026' && dp.bottom <= 1 && dp.head === 'Dates' && /Brief support/.test(dp.sub || ''), JSON.stringify(dp));
|
|
212
212
|
await shot(p, 'S5-dates-390');
|
|
213
|
-
await p.click('.tkc.ivq [data-
|
|
213
|
+
await p.click('.tkc.ivq .rp-g [data-rp-day="2026-10-28"]');
|
|
214
214
|
const ds = await until(() => { const x = lastPost(A, '/api/boards/tasks/edit'); return x && x.body.start === '2026-10-28' ? x : null; });
|
|
215
|
-
const dueNext = await until(() => p.evaluate(() => (document.querySelector('.tkc.ivq [data-
|
|
216
|
-
ok('S5 a start picked saves at once, and the next tap is the due day', !!ds &&
|
|
215
|
+
const dueNext = await until(() => p.evaluate(() => ((document.querySelector('.tkc.ivq [data-rp-end].on') || {}).dataset || {}).rpEnd));
|
|
216
|
+
ok('S5 a start picked saves at once, and the next tap is the due day', !!ds && dueNext === 'due', JSON.stringify({ ds, dueNext }));
|
|
217
217
|
await p.click('.tkc.ivq [data-ivd-x]');
|
|
218
218
|
|
|
219
219
|
/* S6 ⋯ */
|
|
@@ -251,10 +251,10 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
|
|
|
251
251
|
// settle, or its late scroll event closes the picker the click just opened (a scroll outside the picker closes it)
|
|
252
252
|
await p.$eval('#czViewer .iv-ed .iv-edd', (n) => n.scrollIntoView({ block: 'center' })); await p.evaluate(() => new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r))));
|
|
253
253
|
await p.click('#czViewer .iv-ed .iv-edd');
|
|
254
|
-
const op7 = await until(() => p.evaluate(() => { const q = document.querySelector('.tkc.ivq .tkc-dp'); return q ? {
|
|
255
|
-
ok('S7 its picker is one date: "◇ Date", no Start and Due
|
|
254
|
+
const op7 = await until(() => p.evaluate(() => { const q = document.querySelector('.tkc.ivq .tkc-dp'); return q ? { ends: q.querySelectorAll('[data-rp-end]').length, one: !!q.querySelector('.rp.one'), head: (q.querySelector('.ivd-h b') || {}).textContent, sub: (q.querySelector('.ivd-s') || {}).textContent } : null; }));
|
|
255
|
+
ok('S7 its picker is one date: "◇ Date", no Start and Due', op7 && op7.ends === 1 && op7.one && op7.head === 'Date' && /one date: the milestone/.test(op7.sub || ''), JSON.stringify(op7));
|
|
256
256
|
await shot(p, 'S7-milestone-390');
|
|
257
|
-
await p.click('.tkc.ivq [data-
|
|
257
|
+
await p.click('.tkc.ivq .rp-g [data-rp-day="2026-11-13"]');
|
|
258
258
|
const m7 = await until(() => { const x = lastPost(A, '/api/boards/tasks/edit'); return x && x.body.due === '2026-11-13' ? x : null; });
|
|
259
259
|
ok('S7 a day picked saves the due day only, and the picker closes', m7 && m7.body.start == null && await until(() => p.evaluate(() => !document.querySelector('.tkc.ivq')), 2000), JSON.stringify(m7));
|
|
260
260
|
await p.keyboard.press('Escape');
|
|
@@ -285,7 +285,7 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
|
|
|
285
285
|
await shot(p, 'S9-jira-390');
|
|
286
286
|
await p.click('#czViewer .iv-ed [data-f="due"]');
|
|
287
287
|
await until(() => p.evaluate(() => !!document.querySelector('.tkc.ivq .tkc-dp')));
|
|
288
|
-
await p.click('.tkc.ivq [data-
|
|
288
|
+
await p.click('.tkc.ivq .rp-g [data-rp-day="2026-11-09"]');
|
|
289
289
|
const jd = await until(() => { const x = lastPost(A, '/api/boards/tasks/edit'); return x && x.body.task === 'task-b2' ? x : null; });
|
|
290
290
|
ok('S9 its due day saves to the task, kept in PMOS', jd && jd.body.due === '2026-11-09', JSON.stringify(jd));
|
|
291
291
|
await until(() => p.evaluate(() => !!document.querySelector('#czViewer .iv-ed [data-iv-more]')));
|
|
@@ -375,8 +375,8 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
|
|
|
375
375
|
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; }));
|
|
376
376
|
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));
|
|
377
377
|
await c.click('#czViewer .ivt [data-ivt-bar="task-d1"]');
|
|
378
|
-
const p12 = await until(() => c.evaluate(() => { const q = document.querySelector('.tkc.ivq .tkc-dp'); return q ? {
|
|
379
|
-
ok('S12 its press opens the one-date picker', p12 && p12.
|
|
378
|
+
const p12 = await until(() => c.evaluate(() => { const q = document.querySelector('.tkc.ivq .tkc-dp'); return q ? { ends: q.querySelectorAll('[data-rp-end]').length, one: !!q.querySelector('.rp.one') } : null; }));
|
|
379
|
+
ok('S12 its press opens the one-date picker', p12 && p12.ends === 1 && p12.one, JSON.stringify(p12));
|
|
380
380
|
await c.keyboard.press('Escape');
|
|
381
381
|
await shot(c, 'S12-timeline-1440');
|
|
382
382
|
const dms = await c.evaluate(() => { const d = document.querySelector('#czViewer .ivt [data-ivt-bar="task-d1"]').getBoundingClientRect(); return { x: d.left + d.width / 2, y: d.top + d.height / 2 }; });
|
|
@@ -82,8 +82,8 @@ async function pure() {
|
|
|
82
82
|
&& C.dueLine({ start: '2026-09-28', due: '2026-10-10' }, now).text === 'Sep 28 → Oct 10' && C.dueLine({}, now).none);
|
|
83
83
|
ok('P3 late text: "1 day late", "Today", nothing when closed', C.dueLine({ due: '2026-10-24', status: 'To do' }, now).lateText === '1 day late' && C.dueLine({ due: '2026-10-25', status: 'To do' }, now).lateText === 'Today' && C.dueLine({ due: '2026-10-01', status: "Won't do" }, now).lateText === '');
|
|
84
84
|
const dp = C.cardHtml({ ...t, due: '2026-10-10' }, { now, open: 'dates' });
|
|
85
|
-
ok('P4 the picker opens under the due button: Start and Due, Today/Tomorrow/Fri
|
|
86
|
-
&&
|
|
85
|
+
ok('P4 the picker opens under the due button: Start and Due on one calendar, Today/Tomorrow/Fri, the month, the range as one band, No date', /class="anc"><button type="button" class="due-b[^"]*open"[^]*<div class="tkc-pop tkc-dp"/.test(dp) && /data-rp-end="start"><small>Start<\/small><input[^>]*value="8 Oct 2026"/.test(dp)
|
|
86
|
+
&& /data-rp-end="due"><small>Due<\/small><input[^>]*value="10 Oct 2026"/.test(dp) && />Tomorrow</.test(dp) && /October 2026/.test(dp) && /class="rp-d rg"[^>]*><span>9</.test(dp) && /class="rp-d a be" data-rp-day="2026-10-10"/.test(dp) && /data-rp-clear>No date</.test(dp), dp.slice(dp.indexOf('tkc-dp'), dp.indexOf('tkc-dp') + 900));
|
|
87
87
|
ok('P5 the check box: half for In progress, a press marks it done; Done marks it not done; a Jira ticket\'s is not a press', C.checkOf(t).state === 'prog' && C.checkOf(t).label === 'Mark done'
|
|
88
88
|
&& C.checkOf({ ...t, status: 'Done' }).label === 'Mark not done' && C.checkOf({ ...t, jira: { key: 'CIAM-214' } }).disabled === true);
|
|
89
89
|
const TV = await mod('tk-view.js');
|
|
@@ -208,15 +208,22 @@ async function pure() {
|
|
|
208
208
|
await until(async () => (await view(p)).on === 'To do');
|
|
209
209
|
// dates
|
|
210
210
|
await p.click(C + ' [data-tkc="dates"]');
|
|
211
|
-
const dp = await until(() => p.evaluate((c) => { const pop = document.querySelector(c + ' .tkc-dp'), b = document.querySelector(c + ' .due-b'); if (!pop || !b) return null; const r = pop.getBoundingClientRect(), br = b.getBoundingClientRect(); return { under: r.top >= br.bottom - 1 && Math.abs(r.left - br.left) < 4,
|
|
212
|
-
ok('D4 a tap on the due line opens the picker right under it, on
|
|
211
|
+
const dp = await until(() => p.evaluate((c) => { const pop = document.querySelector(c + ' .tkc-dp'), b = document.querySelector(c + ' .due-b'); if (!pop || !b) return null; const r = pop.getBoundingClientRect(), br = b.getBoundingClientRect(); return { under: r.top >= br.bottom - 1 && Math.abs(r.left - br.left) < 4, start: pop.querySelector('[data-rp-end="start"]').classList.contains('on') }; }, C));
|
|
212
|
+
ok('D4 a tap on the due line opens the picker right under it, on Start (the first tap sets the start)', dp && dp.under && dp.start, JSON.stringify(dp));
|
|
213
213
|
await shot(p, 'task-dates-1440', '#czViewer');
|
|
214
|
-
await p.click(C + ' .tkc-dp [data-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
await p.click(C + '
|
|
219
|
-
|
|
214
|
+
await p.click(C + ' .tkc-dp [data-rp-end="due"]');
|
|
215
|
+
await p.click(C + ' .tkc-dp .rp-g [data-rp-day="2026-10-29"]');
|
|
216
|
+
ok('D4 with Due picked, a day saves the due date at once (tasks/edit) with Undo, and the picker closes', await until(async () => /Oct 20 → 29/.test((await view(p)).due)) && last(A, '/api/boards/tasks/edit').body.due === '2026-10-29'
|
|
217
|
+
&& await until(() => p.evaluate((c) => !document.querySelector(c + ' .tkc-dp'), C)));
|
|
218
|
+
await p.click(C + ' [data-tkc="dates"]');
|
|
219
|
+
await until(() => p.evaluate((c) => !!document.querySelector(c + ' .tkc-dp'), C));
|
|
220
|
+
await p.click(C + ' .tkc-dp .rp-g [data-rp-day="2026-10-31"]');
|
|
221
|
+
ok('D4 the first tap: a start after the due day moves the due day with it, and the due day is next', await until(() => { const b = last(A, '/api/boards/tasks/edit').body; return b.start === '2026-10-31' && b.due === '2026-10-31'; })
|
|
222
|
+
&& await until(() => p.evaluate((c) => { const e = document.querySelector(c + ' .tkc-dp [data-rp-end="due"]'); return !!e && e.classList.contains('on'); }, C)), JSON.stringify(last(A, '/api/boards/tasks/edit')));
|
|
223
|
+
await p.click(C + ' .tkc-dp .rp-g [data-rp-day="2026-11-01"]');
|
|
224
|
+
ok('D4 the second tap sets the due day and closes the picker', await until(() => last(A, '/api/boards/tasks/edit').body.due === '2026-11-01') && await until(() => p.evaluate((c) => !document.querySelector(c + ' .tkc-dp'), C)));
|
|
225
|
+
await p.click(C + ' [data-tkc="dates"]');
|
|
226
|
+
await until(() => p.evaluate((c) => !!document.querySelector(c + ' .tkc-dp'), C));
|
|
220
227
|
await p.mouse.click(5, 5);
|
|
221
228
|
ok('D4 a press outside closes the picker', await until(() => p.evaluate((c) => !document.querySelector(c + ' .tkc-dp'), C)));
|
|
222
229
|
// owner
|
|
@@ -168,11 +168,12 @@ const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', {
|
|
|
168
168
|
const dbtn = await p.evaluate(() => { const b = document.querySelector('#czViewer .iv-tr [data-iv-date="task-c"]'); const n = document.querySelector('#czViewer .iv-tr [data-iv-date="task-d"]'); return { t: b && b.textContent, w: b && b.classList.contains('w'), none: n && getComputedStyle(n).opacity, nl: n && n.getAttribute('aria-label') }; });
|
|
169
169
|
ok('V3 the dates in a row are a press, amber when late; an undated row shows none (batch 18 item 16: zero is silence, its open row sets them)', dbtn.t === 'Oct 8 – Oct 10' && dbtn.w && dbtn.none == null, JSON.stringify(dbtn));
|
|
170
170
|
await p.click('#czViewer .iv-tr [data-iv-date="task-c"]');
|
|
171
|
-
const dp = await until(() => p.evaluate(() => { const q = document.querySelector('.tkc.ivq .tkc-dp'); if (!q) return null; return { two: [...q.querySelectorAll('[data-
|
|
172
|
-
ok('V3 the start and due picker opens
|
|
173
|
-
await p.click('.tkc.ivq .tkc-dp [data-
|
|
171
|
+
const dp = await until(() => p.evaluate(() => { const q = document.querySelector('.tkc.ivq .tkc-dp'); if (!q) return null; return { two: [...q.querySelectorAll('[data-rp-end]')].map((b) => b.dataset.rpEnd + ' ' + b.querySelector('.rp-in').value).join('|'), on: (q.querySelector('[data-rp-end].on') || {}).dataset.rpEnd, band: q.querySelectorAll('.rp-g .rp-d.rg').length }; }));
|
|
172
|
+
ok('V3 the start and due picker opens on one calendar, on Start, the days between as a band', dp && dp.two === 'start 8 Oct 2026|due 10 Oct 2026' && dp.on === 'start' && dp.band === 1, JSON.stringify(dp));
|
|
173
|
+
await p.click('.tkc.ivq .tkc-dp [data-rp-end="due"]');
|
|
174
|
+
await p.click('.tkc.ivq .tkc-dp .rp-g [data-rp-day="2026-10-24"]');
|
|
174
175
|
const dd = await until(() => { const x = lastPost(A, '/api/boards/tasks/edit'); return x && x.body.task === 'task-c' ? x : null; });
|
|
175
|
-
ok('V3 a day picked there saves the due day at once', dd && dd.body.due === '2026-10-24' && dd.body.start == null, JSON.stringify(dd));
|
|
176
|
+
ok('V3 with Due pressed, a day picked there saves the due day at once', dd && dd.body.due === '2026-10-24' && dd.body.start == null, JSON.stringify(dd));
|
|
176
177
|
const dt = await until(() => p.evaluate(() => { const t = document.querySelector('#bdToast'); return t && !t.hidden && /Dates saved/.test(t.textContent) ? t.textContent : null; }));
|
|
177
178
|
ok('V3 the toast says the dates are saved, with Undo', /Undo/.test(dt || ''), dt);
|
|
178
179
|
await p.click('#bdToast .bd-undo');
|
|
@@ -432,7 +433,8 @@ const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', {
|
|
|
432
433
|
await j.click('#czViewer .iv-tr [data-iv-date="j2"]');
|
|
433
434
|
await until(() => j.evaluate(() => !!document.querySelector('.tkc.ivq .tkc-dp')));
|
|
434
435
|
const tip = await j.evaluate(() => document.querySelector('#czViewer .iv-tr [data-iv-date="j2"]').getAttribute('title'));
|
|
435
|
-
await j.click('.tkc.ivq .tkc-dp [data-
|
|
436
|
+
await j.click('.tkc.ivq .tkc-dp [data-rp-end="due"]');
|
|
437
|
+
await j.click('.tkc.ivq .tkc-dp .rp-g [data-rp-day="2026-10-24"]');
|
|
436
438
|
const dd = await until(() => J.posts.find((x) => x.path === '/api/boards/tasks/edit' && x.body.task === 'j2'));
|
|
437
439
|
ok('H7 a linked task\'s dates are the PM\'s: the date press saves the day on the task, kept in PMOS', !!dd && dd.body.due === '2026-10-24' && /kept in PMOS/.test(tip || ''), JSON.stringify({ dd: dd && dd.body, tip }));
|
|
438
440
|
const lkc = await j.evaluate(() => { const e = document.querySelector('#czViewer .iv-tr .iv-tt em.lk'); return e ? getComputedStyle(e).color : ''; });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Focus mode, one item and its chat (bet A335, initiative focus-mode, done test planning/done-tests/focus-mode.md F1-F8): the key, what is kept, hiding and putting back, Leave focus, the next decision in view, the local use-log count, and the menu's mount. No server, network or browser.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"focus-mode.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"focus-mode.test.js": 2
|
|
8
|
+
}
|
|
9
|
+
}
|