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.
@@ -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(); return { on: (q.querySelector('[data-tkc-field].on') || {}).textContent, 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 === 'StartOct 30' && dp.bottom <= 1 && dp.head === 'Dates' && /Brief support/.test(dp.sub || ''), JSON.stringify(dp));
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-tkc-day="2026-10-28"]');
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-tkc-field].on') || {}).textContent));
216
- ok('S5 a start picked saves at once, and the next tap is the due day', !!ds && /^Due/.test(dueNext || ''), JSON.stringify({ ds, dueNext }));
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 ? { tabs: q.querySelectorAll('[data-tkc-field]').length, 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 tabs', op7 && op7.tabs === 0 && op7.head === 'Date' && /one date: the milestone/.test(op7.sub || ''), JSON.stringify(op7));
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-tkc-day="2026-11-13"]');
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-tkc-day="2026-11-09"]');
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 ? { tabs: q.querySelectorAll('[data-tkc-field]').length, one: !!q.querySelector('.one') } : null; }));
379
- ok('S12 its press opens the one-date picker', p12 && p12.tabs === 0 && p12.one, JSON.stringify(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/clear, the month, the range marked', /class="anc"><button type="button" class="due-b[^"]*open"[^]*<div class="tkc-pop tkc-dp"/.test(dp) && /<small>Start<\/small><b>Oct 8<\/b>/.test(dp)
86
- && /<small>Due<\/small><b>Oct 10<\/b>/.test(dp) && />Tomorrow</.test(dp) && /October 2026/.test(dp) && /class="rg"[^>]*>9</.test(dp) && /data-tkc-day="2026-10-10" class="a"/.test(dp), dp.slice(dp.indexOf('tkc-dp'), dp.indexOf('tkc-dp') + 700));
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, due: pop.querySelector('[data-tkc-field="due"]').classList.contains('on') }; }, C));
212
- ok('D4 a tap on the due line opens the picker right under it, on Due', dp && dp.under && dp.due, JSON.stringify(dp));
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-tkc-day="2026-10-29"]');
215
- ok('D4 a day saves the due date at once (tasks/edit) with Undo; the picker stays open for the start', await until(async () => /Oct 20 → 29/.test((await view(p)).due)) && last(A, '/api/boards/tasks/edit').body.due === '2026-10-29'
216
- && await p.evaluate((c) => !!document.querySelector(c + ' .tkc-dp'), C));
217
- await p.click(C + ' .tkc-dp [data-tkc-field="start"]');
218
- await p.click(C + ' .tkc-dp [data-tkc-day="2026-10-31"]');
219
- ok('D4 a start after the due day moves the due day with it', await until(() => { const b = last(A, '/api/boards/tasks/edit').body; return b.start === '2026-10-31' && b.due === '2026-10-31'; }), JSON.stringify(last(A, '/api/boards/tasks/edit')));
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-tkc-field]')].map((b) => b.textContent).join('|'), on: (q.querySelector('[data-tkc-field].on') || {}).textContent }; }));
172
- ok('V3 the start and due picker opens with the due field picked', dp && dp.two === 'StartOct 8|DueOct 10' && dp.on === 'DueOct 10', JSON.stringify(dp));
173
- await p.click('.tkc.ivq .tkc-dp [data-tkc-day="2026-10-24"]');
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-tkc-day="2026-10-24"]');
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
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "_comment": "Task start and due on one calendar (pm/range-pick.js, Wawan 2026-11-23): the tap rules and the markup, pure. No browser.",
3
+ "modules": ["range-pick.test.js"],
4
+ "seconds": { "range-pick.test.js": 2 }
5
+ }