create-pmos 0.441.0 → 0.442.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.
Files changed (60) hide show
  1. package/package.json +13 -13
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/adler-seasons-art-test.js +106 -0
  7. package/workspace/adler-seasons-test.js +111 -0
  8. package/workspace/briefing-premium-board-test.js +19 -17
  9. package/workspace/briefing-premium-initiative-test.js +7 -4
  10. package/workspace/changelog.json +12 -0
  11. package/workspace/guide/adler.md +10 -0
  12. package/workspace/guide/home.md +2 -0
  13. package/workspace/ini-workflow-test.js +6 -2
  14. package/workspace/lib/settings-store.js +38 -0
  15. package/workspace/metric-drafts-ui-test.js +2 -2
  16. package/workspace/package-lock.json +2 -2
  17. package/workspace/package.json +1 -1
  18. package/workspace/premium-board-actions-test.js +2 -1
  19. package/workspace/premium-chat-attach-test.js +2 -0
  20. package/workspace/program-panel-test.js +1 -1
  21. package/workspace/public/pm/bd-ini-panel.js +2 -2
  22. package/workspace/public/pm/c3-ini-ui.js +1 -1
  23. package/workspace/public/pm/cozy-adler.css +21 -0
  24. package/workspace/public/pm/cozy-adler.js +415 -8
  25. package/workspace/public/pm/cozy-ev.css +16 -1
  26. package/workspace/public/pm/cozy-home.css +8 -0
  27. package/workspace/public/pm/cozy-news.js +1 -1
  28. package/workspace/public/pm/cozy-seasons.js +318 -0
  29. package/workspace/public/pm/cozy-settings.js +88 -5
  30. package/workspace/public/pm/cozy-viewer.js +8 -4
  31. package/workspace/public/pm/cozy.css +65 -0
  32. package/workspace/public/pm/dash-view.js +4 -2
  33. package/workspace/public/pm/home-app.js +8 -2
  34. package/workspace/public/pm/home-chat.js +1 -1
  35. package/workspace/public/pm/home-day.js +7 -4
  36. package/workspace/public/pm/home-ini.js +2 -2
  37. package/workspace/public/pm/home-mentions.js +1 -1
  38. package/workspace/public/pm/impact.js +1 -1
  39. package/workspace/public/pm/ini-groups.js +15 -10
  40. package/workspace/public/pm/ini-links.js +1 -1
  41. package/workspace/public/pm/ini-tasks.js +208 -44
  42. package/workspace/public/pm/ini-view-model.js +8 -2
  43. package/workspace/public/pm/ini-view.css +305 -1
  44. package/workspace/public/pm/ini-view.js +190 -80
  45. package/workspace/public/pm/mission.js +234 -0
  46. package/workspace/public/pm/premium-board.js +1 -1
  47. package/workspace/public/pm/premium-welcome.js +2 -2
  48. package/workspace/public/pm/split-merge.js +1 -1
  49. package/workspace/public/pm/stage-line.js +2 -2
  50. package/workspace/split-merge-ui-test.js +1 -1
  51. package/workspace/stage-card-test.js +48 -11
  52. package/workspace/task-links-test.js +2 -0
  53. package/workspace/task-milestones-test.js +5 -1
  54. package/workspace/task-plans-test.js +3 -3
  55. package/workspace/task-views-test.js +90 -37
  56. package/workspace/test-lists/adler-seasons-art.json +13 -0
  57. package/workspace/test-lists/batch18-adler-seasons.json +13 -0
  58. package/workspace/test-lists/mission.json +5 -0
  59. package/workspace/test-lists/viewer-tasks.json +5 -0
  60. package/workspace/tk-tasks-test.js +25 -30
@@ -5,7 +5,10 @@
5
5
  * XtvA5PhoneKanban, XtvA6PhoneTimeline, XtvA7BoardPanel). Serves the real Board page from the real server, answers GET /api/board-premium
6
6
  * with the model lib/board-premium.js builds from fixtures/board-premium-facts.js plus one initiative's tasks, and captures the writes.
7
7
  * V1 the view switch, remembered · V2 the box's one press and its caret · V3 the date press · V4 Timeline · V5 a bar's drag · V6 Kanban
8
- * V7 a card's drag · V8 Won't do and Archived in the List · V9 the phone. SHOTS_5B=<dir> writes the screens. */
8
+ * V7 a card's drag · V8 Won't do and Archived in the List · V9 the phone. SHOTS_5B=<dir> writes the screens.
9
+ * Batch 18 item 1 (1-B; XvpA4Sheet, XvpA3Timeline, XvpA3bMonths): the header holds one view button, its sheet picks View, Group by and Zoom
10
+ * (Weeks, Months, All); the List shows only the stages with something open and folds a stage after 3 tasks; All fits the whole initiative.
11
+ * V10 the sheet · V11 the List's folds · V12 Timeline at All. The pure half is viewer-tasks.test.js. */
9
12
  const path = require('path');
10
13
  const { spawn } = require('child_process');
11
14
  const { findBrowser } = require('./lib/find-browser');
@@ -70,13 +73,36 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
70
73
  };
71
74
  const shot = async (p, name) => { if (process.env.SHOTS_5B) await p.screenshot({ path: path.join(process.env.SHOTS_5B, name + '.png') }); };
72
75
  const lastPost = (A, route) => A.posts.filter((x) => x.path === route).pop();
76
+ // the one view button opens the sheet; a press there applies at once and the sheet stays; Escape closes it
77
+ const sheetPick = async (pg, kind, val) => {
78
+ await pg.evaluate(() => document.querySelector('#czViewer [data-iv-vbtn]').click());
79
+ await until(() => pg.evaluate(() => !!document.querySelector('.tkc.ivq .ivs')));
80
+ await pg.evaluate(([k, v]) => document.querySelector(`.tkc.ivq .ivs [data-ivs-${k}="${v}"]`).click(), [kind, val]);
81
+ await sleep(150);
82
+ await pg.keyboard.press('Escape');
83
+ await until(() => pg.evaluate(() => !document.querySelector('.tkc.ivq .ivs')));
84
+ };
85
+ const zoomNow = (pg) => pg.evaluate(() => { if (document.querySelector('#czViewer .iva')) return 'all'; const T = document.querySelector('#czViewer .ivt[data-ivt]'); return T ? T.dataset.ivt.split('|').pop() : null; });
73
86
 
74
87
  const A = await open(), p = A.page;
75
88
  /* V1 the switch: List first; icon only, words in aria-label; the last view is remembered */
76
- const sw = await p.evaluate(() => [...document.querySelectorAll('#czViewer .ivx-sb')].map((b) => b.getAttribute('aria-label') + (b.getAttribute('aria-pressed') === 'true' ? '*' : '') + (b.textContent.trim() ? '+text' : '')).join());
77
- ok('V1 the Tasks header has the icon-only switch List, Timeline, Kanban; the first time it is List', sw === 'List*,Timeline,Kanban', sw);
89
+ const sw = await p.evaluate(() => { const b = document.querySelector('#czViewer .iv-th [data-iv-vbtn]'); return b ? b.getAttribute('aria-label') + (b.textContent.trim() ? '+text' : '') : null; });
90
+ ok('V1 the Tasks header has one icon-only view button; the first time it is List', sw === 'Tasks view: List. Change the view, grouping or zoom', sw);
78
91
  const order = await p.evaluate(() => [...document.querySelector('#czViewer .iv-th').children].map((e) => e.className || e.tagName).join());
79
- ok('V1 the switch sits before the +', /ivx-seg,iv-ib$/.test(order), order);
92
+ ok('V1 the header holds the view button and + only, in that order', /,ivx-vb,iv-ib$/.test(order) && !/ivx-seg|ig-by|ivx-pick/.test(order), order);
93
+
94
+ /* V11 the List: only the stages with something open; the rest wait in one fold at the foot; a stage folds after 3 tasks */
95
+ const L0 = await p.evaluate(() => ({ secs: [...document.querySelectorAll('#czViewer .iv-wbs > .iv-ws .w b')].map((b) => b.textContent), rest: (document.querySelector('#czViewer .iv-rest') || {}).textContent || null,
96
+ rows: [...document.querySelectorAll('#czViewer .iv-wbs .iv-wl > .iv-tr .iv-tt')].map((e) => e.textContent), more: (document.querySelector('#czViewer .iv-wl > .iv-more') || {}).textContent || null }));
97
+ ok('V11 the List shows only Discover and Plan (each has something open); the six others wait in one fold', L0.secs.join('|') === 'Discover|Plan' && /^6 stages\s*nothing open/.test(L0.rest || ''), JSON.stringify(L0));
98
+ ok('V11 Discover shows 3 tasks, then "1 more"', L0.rows.length === 3 && /^1 more/.test(L0.more || ''), JSON.stringify(L0));
99
+ await p.click('#czViewer .iv-wl > .iv-more');
100
+ const L1 = await until(() => p.evaluate(() => { const n = document.querySelectorAll('#czViewer .iv-wbs .iv-wl > .iv-tr .iv-tt').length; return n > 3 ? n : null; }));
101
+ ok('V11 "1 more" shows the rest of the stage', L1 === 4, String(L1));
102
+ await p.click('#czViewer .iv-rest');
103
+ const L2 = await until(() => p.evaluate(() => { const s = [...document.querySelectorAll('#czViewer .iv-wbs > .iv-ws .w b')].map((b) => b.textContent); return s.length > 2 ? s : null; }));
104
+ ok('V11 the fold opens the stages with nothing open, in order', L2 && L2.join('|') === 'Discover|Plan|Triage|Prioritize|Build|Deliver|Monitor|Evaluate', JSON.stringify(L2));
105
+ await p.click('#czViewer .iv-rest');
80
106
 
81
107
  /* V8 the List: Won't do joins the Done fold, struck through; Archived is a fold after Done, only when there is one */
82
108
  await p.evaluate(() => { const b = [...document.querySelectorAll('#czViewer .iv-grp')].find((x) => /^Done/.test(x.textContent)); if (b) b.click(); });
@@ -129,8 +155,19 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
129
155
  const du = await until(() => { const x = lastPost(A, '/api/boards/tasks/edit'); return x && x.body.due === '2026-10-10' ? x : null; });
130
156
  ok('V3 Undo puts the old due day back', !!du, JSON.stringify(A.posts.slice(-2)));
131
157
 
132
- /* V4 Timeline: the same groups, bars by start → due, a circle for a due day only, a dashed date press at today, the Today line */
133
- await p.click('#czViewer [data-iv-view="timeline"]');
158
+ /* V10 the sheet: View, Group by and Zoom, three rows of the same shape; a bottom sheet on a phone, under the button on a desktop */
159
+ await p.click('#czViewer [data-iv-vbtn]');
160
+ const sh = await until(() => p.evaluate(() => { const q = document.querySelector('.tkc.ivq .ivs'); if (!q) return null; const b = document.querySelector('#czViewer [data-iv-vbtn]').getBoundingClientRect(), r = q.getBoundingClientRect();
161
+ return { rows: [...q.querySelectorAll('.ivs-seg')].map((g) => g.getAttribute('aria-label') + ':' + [...g.children].map((c) => (c.getAttribute('aria-label') || c.textContent.trim()) + (c.getAttribute('aria-pressed') === 'true' ? '*' : '')).join(',')), under: Math.round(r.top - b.bottom), right: Math.round(b.right - r.right), sheet: q.closest('.sheet') ? 1 : 0, exp: document.querySelector('#czViewer [data-iv-vbtn]').getAttribute('aria-expanded') }; }));
162
+ ok('V10 the sheet holds View and Group by (no Zoom for the List); Stage pressed; Epic and Your groups behind ⋯', sh && sh.rows.join('|') === 'View:List*,Timeline,Kanban|Group by:Stage*,Owner,Status,Other groupings: Epic, Your groups', JSON.stringify(sh));
163
+ ok('V10 on a desktop it opens under the button, right edges aligned, the button expanded', sh && !sh.sheet && sh.under >= 0 && sh.under <= 12 && Math.abs(sh.right) <= 2 && sh.exp === 'true', JSON.stringify(sh));
164
+ await p.click('.tkc.ivq .ivs [data-ivs-view="timeline"]');
165
+ const sh2 = await until(() => p.evaluate(() => { const q = document.querySelector('.tkc.ivq .ivs'); return q && document.querySelector('#czViewer .ivt') ? [...q.querySelectorAll('.ivs-seg')].map((g) => g.getAttribute('aria-label')).join('|') : null; }));
166
+ ok('V10 Timeline applies at once; the sheet stays open and adds Zoom', sh2 === 'View|Group by|Zoom', sh2);
167
+ await p.keyboard.press('Escape');
168
+ ok('V10 Escape closes the sheet and leaves the panel open', await until(() => p.evaluate(() => !document.querySelector('.tkc.ivq') && !!document.querySelector('#czViewer .ivt'))));
169
+
170
+ /* V4 Timeline: the same groups, bars by start → due, a circle for a due day only, the tasks with no dates in one row, the Today line */
134
171
  await until(() => p.evaluate(() => !!document.querySelector('#czViewer .ivt')));
135
172
  await sleep(200);
136
173
  const tl = await p.evaluate(() => {
@@ -138,27 +175,37 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
138
175
  const bar = (uid) => { const b = T.querySelector(`[data-ivt-bar="${uid}"]`); return b ? b.className.replace(/\s+/g, ' ').trim() : null; };
139
176
  const today = T.querySelector('.ivt-today').getBoundingClientRect(), sc = T.querySelector('.ivt-sc'), nw = T.querySelector('.ivt-n').getBoundingClientRect();
140
177
  return { groups: [...T.querySelectorAll('.ivt-gh b')].map((b) => b.textContent), rows: rows.map((r) => (r.querySelector('.iv-tt') || {}).textContent || r.textContent.trim()), a: bar('task-a'), b: bar('task-b'), c: bar('task-c'),
141
- ghost: !!T.querySelector('.ivt-g[data-iv-date="task-d"]'), zoom: document.querySelector('#czViewer [data-iv-zoom]').textContent, seen: today.left > nw.right && today.left < sc.getBoundingClientRect().right,
178
+ ghost: !!T.querySelector('.ivt-nd .ivt-set[data-iv-date="task-d"]') && /1 without dates/.test(T.querySelector('.ivt-nd').textContent) && !T.querySelector('.ivt-g'), zoom: T.dataset.ivt.split('|').pop(), seen: today.left > nw.right && today.left < sc.getBoundingClientRect().right,
142
179
  lg: document.querySelector('#czViewer .ivt-lg').textContent, arch: /Old spike notes/.test(T.textContent) };
143
180
  });
144
181
  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
- 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/.test(tl.lg), JSON.stringify(tl));
182
+ ok('V4 bars by start and due: in progress light blue, late amber; a due day only is a circle; no dates: one "1 without dates · Set" row', /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));
183
+ ok('V4 Weeks is the first zoom; it opens on today, the Today line in view; the legend sits under it', tl.zoom === 'week' && tl.seen && /To do.*In progress.*Late.*Due only.*Jira/.test(tl.lg), JSON.stringify(tl));
147
184
  ok('V4 an archived task shows nowhere in Timeline', !tl.arch);
148
185
  await shot(p, 'timeline-1440');
149
- await p.click('#czViewer [data-iv-zoom]');
150
- await p.evaluate(() => { const b = [...document.querySelectorAll('.tkc.ivq [data-ivq-i]')].find((x) => /Months/.test(x.textContent)); if (b) b.click(); });
151
- const mz = await until(() => p.evaluate(() => { const z = document.querySelector('#czViewer [data-iv-zoom]'); return z && z.textContent === 'Months' ? document.querySelector('#czViewer .ivt').dataset.px : null; }));
152
- ok('V4 the zoom picker changes Weeks to Months', mz === '4', mz);
153
- await p.click('#czViewer [data-iv-zoom]');
154
- const zl = await p.evaluate(() => [...document.querySelectorAll('.tkc.ivq [data-ivq-i]')].map((x) => x.textContent.trim()));
155
- ok('V4 the zoom picker offers Weeks, Months, Quarter, Year, 2 years and 5 years (batch 17 item 3)', ['Weeks', 'Months', 'Quarter', 'Year', '2 years', '5 years'].every((t) => zl.some((x) => x.includes(t))), JSON.stringify(zl));
156
- await p.evaluate(() => { const b = [...document.querySelectorAll('.tkc.ivq [data-ivq-i]')].find((x) => /5 years/.test(x.textContent)); if (b) b.click(); });
157
- const y5 = await until(() => p.evaluate(() => { const z = document.querySelector('#czViewer [data-iv-zoom]'); if (!z || z.textContent !== '5 years') return null; const T = document.querySelector('#czViewer .ivt'); return { px: T.dataset.px, ticks: [...T.querySelectorAll('.ivt-r.ax .ivt-c span')].map((e) => e.textContent.trim()).filter(Boolean).slice(0, 8) }; }));
158
- ok('V4 5 years draws the axis by year', y5 && +y5.px >= 0.16 && y5.ticks.length && y5.ticks.every((t) => /^\d{4}$/.test(t)), JSON.stringify(y5));
159
- await p.click('#czViewer [data-iv-zoom]');
160
- await p.evaluate(() => { const b = [...document.querySelectorAll('.tkc.ivq [data-ivq-i]')].find((x) => /Weeks/.test(x.textContent)); if (b) b.click(); });
161
- await until(() => p.evaluate(() => (document.querySelector('#czViewer [data-iv-zoom]') || {}).textContent === 'Weeks'));
186
+ await sheetPick(p, 'zoom', 'month');
187
+ const mz = await until(() => p.evaluate(() => { const T = document.querySelector('#czViewer .ivt[data-ivt]'); return T && /\|month$/.test(T.dataset.ivt) ? T.dataset.px : null; }));
188
+ ok('V4 the sheet\'s Zoom changes Weeks to Months', mz === '4', mz);
189
+ await p.click('#czViewer [data-iv-vbtn]');
190
+ const zl = await until(() => p.evaluate(() => { const g = document.querySelector('.tkc.ivq .ivs-seg[aria-label="Zoom"]'); return g ? [...g.children].map((x) => x.textContent.trim()) : null; }));
191
+ ok('V4 Zoom offers Weeks, Months and All (batch 18 item 1: three steps in place of six)', zl && zl.join('|') === 'Weeks|Months|All', JSON.stringify(zl));
192
+ await p.keyboard.press('Escape');
193
+
194
+ /* V12 Timeline at All: one row per stage, the whole initiative in the panel's width; a press on a stage unfolds its tasks under it */
195
+ await sheetPick(p, 'zoom', 'all');
196
+ await until(() => p.evaluate(() => !!document.querySelector('#czViewer .iva')));
197
+ await sleep(150);
198
+ const A12 = await p.evaluate(() => { const T = document.querySelector('#czViewer .iva'), rows = [...T.querySelectorAll('.iva-r.g')];
199
+ return { rows: rows.length, fits: T.scrollWidth <= T.clientWidth + 1, open: rows.filter((r) => r.getAttribute('aria-expanded') === 'true').map((r) => r.getAttribute('aria-label').split(',')[0]),
200
+ tasks: [...T.querySelectorAll('.iva-r.k .iv-tt')].map((e) => e.textContent), today: !!T.querySelector('.iva-tc'), plan: (rows.find((r) => /^Plan,/.test(r.getAttribute('aria-label'))) || {}).getAttribute('aria-label') }; });
201
+ ok('V12 All draws one row per stage and fits the panel: no sideways scroll, Today across it', A12.rows === 8 && A12.fits && A12.today, JSON.stringify(A12));
202
+ ok('V12 the current stage is unfolded: its tasks and milestones under it with their dates', A12.open.join() === 'Discover' && A12.tasks.includes('Map SDK public methods to v6') && !A12.tasks.includes('Plan the rollout'), JSON.stringify(A12));
203
+ await p.click('#czViewer .iva-r.g[aria-label^="Plan,"]');
204
+ const A13 = await until(() => p.evaluate(() => { const t = [...document.querySelectorAll('#czViewer .iva-r.k .iv-tt')].map((e) => e.textContent); return t.includes('Plan the rollout') ? document.querySelector('#czViewer .iva-r.k [data-ivt-bar="task-h"]') ? t : null : null; }));
205
+ ok('V12 a press on a stage unfolds its tasks, each with its bar', !!A13, JSON.stringify(A13));
206
+ await shot(p, 'timeline-all-1440');
207
+ await sheetPick(p, 'zoom', 'week');
208
+ await until(() => zoomNow(p).then((z) => z === 'week'));
162
209
 
163
210
  /* V5 drag a bar: it snaps to days, a tip says the new dates, the save follows with Undo; an end changes only its own day */
164
211
  const bb = await p.evaluate(() => { const r = document.querySelector('#czViewer [data-ivt-bar="task-a"]').getBoundingClientRect(); return { x: r.left + r.width / 2, y: r.top + r.height / 2, l: r.left, r: r.right }; });
@@ -187,21 +234,19 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
187
234
  const fw = await until(() => p.evaluate(() => { const r = document.querySelector('#czViewer').getBoundingClientRect(); return r.width > innerWidth - 40 ? { w: Math.round(r.width), pressed: document.querySelector('#czViewer [data-iv-full]').getAttribute('aria-pressed') } : null; }));
188
235
  ok('V4 Full width spreads the Timeline over the window, the icon pressed', !!fw && fw.pressed === 'true' && pw < fw.w, JSON.stringify({ pw, fw }));
189
236
  await shot(p, 'timeline-full-1440');
190
- const zoomTo = async (l) => { await p.click('#czViewer [data-iv-zoom]'); await p.evaluate((l) => { const b = [...document.querySelectorAll('.tkc.ivq [data-ivq-i]')].find((x) => x.textContent.includes(l)); if (b) b.click(); }, l); await until(() => p.evaluate((l) => (document.querySelector('#czViewer [data-iv-zoom]') || {}).textContent === l, l)); };
191
- await zoomTo('5 years');
192
- const fit = await p.evaluate(() => { const T = document.querySelector('#czViewer .ivt'), I = T.querySelector('.ivt-in'), td = +T.dataset.today; return { px: +T.dataset.px, tw: Math.round(T.getBoundingClientRect().width), iw: Math.round(I.getBoundingClientRect().width), under: [...T.querySelectorAll('.ivt-r.ax .ivt-c span')].filter((e) => e.textContent.trim() && Math.abs(+e.dataset.tlx - td) < 44).map((e) => e.textContent) }; });
193
- ok('V4 in full width 5 years stretches to the window, past its own scale', fit.px > 0.16 && fit.iw >= fit.tw - 40, JSON.stringify(fit));
194
- ok('V4 no axis label sits under the Today pill', fit.under.length === 0, JSON.stringify(fit));
195
- await shot(p, 'timeline-full-5y-1440');
237
+ await sheetPick(p, 'zoom', 'all');
238
+ const fit = await until(() => p.evaluate(() => { const T = document.querySelector('#czViewer .iva'); return T ? { tw: Math.round(T.getBoundingClientRect().width), vw: Math.round(document.querySelector('#czViewer').getBoundingClientRect().width), fits: T.scrollWidth <= T.clientWidth + 1 } : null; }));
239
+ ok('V4 in full width All stretches to the window and still fits', fit && fit.fits && fit.tw > fit.vw - 120, JSON.stringify(fit));
240
+ await shot(p, 'timeline-full-all-1440');
196
241
  await p.keyboard.press('Escape');
197
242
  const back = await until(() => p.evaluate(() => (!document.body.classList.contains('ivt-full') && !!document.querySelector('#czViewer .ivt') ? Math.round(document.querySelector('#czViewer').getBoundingClientRect().width) : null)));
198
243
  ok('V4 Escape takes the Timeline back to the panel, the Viewer stays open', back != null && back < fw.w, String(back));
199
- const pfit = await p.evaluate(() => { const T = document.querySelector('#czViewer .ivt'), I = T.querySelector('.ivt-in'); return { tw: Math.round(T.getBoundingClientRect().width), iw: Math.round(I.getBoundingClientRect().width) }; });
200
- ok('V4 back in the panel 5 years fits the panel again', pfit.iw >= pfit.tw - 40 && pfit.iw <= pfit.tw + 4, JSON.stringify(pfit));
201
- await zoomTo('Weeks');
244
+ const pfit = await p.evaluate(() => { const T = document.querySelector('#czViewer .iva'); return { tw: Math.round(T.getBoundingClientRect().width), fits: T.scrollWidth <= T.clientWidth + 1 }; });
245
+ ok('V4 back in the panel All fits the panel again', pfit.fits, JSON.stringify(pfit));
246
+ await sheetPick(p, 'zoom', 'week');
202
247
 
203
248
  /* V6 Kanban: one stage at a time (the current first), columns by status, Won't do a folded strip */
204
- await p.click('#czViewer [data-iv-view="kanban"]');
249
+ await sheetPick(p, 'view', 'kanban');
205
250
  await until(() => p.evaluate(() => !!document.querySelector('#czViewer .ivk')));
206
251
  const kb = await p.evaluate(() => { const K = document.querySelector('#czViewer .ivk'); return { stage: document.querySelector('#czViewer [data-iv-kstage]').textContent, cols: [...K.querySelectorAll('.ivk-c h4')].map((h) => h.textContent).join('|'), wont: K.querySelector('.ivk-w').textContent, cards: [...K.querySelectorAll('.ivk-d .iv-tt')].map((e) => e.textContent), arch: /Old spike notes/.test(K.textContent) }; });
207
252
  ok('V6 Kanban opens on the current stage, with columns To do, In progress, Done', kb.stage === 'Discover' && kb.cols === 'To do2|In progress2|Done1', JSON.stringify(kb));
@@ -221,8 +266,8 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
221
266
 
222
267
  /* V1 the view is remembered across initiatives and visits */
223
268
  const R = await open({ store: await p.evaluate(() => ({ 'pmos.tasks.view': localStorage.getItem('pmos.tasks.view') })) });
224
- const rem = await R.page.evaluate(() => (document.querySelector('#czViewer .ivx-sb[aria-pressed="true"]') || {}).dataset.ivView);
225
- ok('V1 the last view is remembered for the PM: the next panel opens on Kanban', rem === 'kanban', rem);
269
+ const rem = await R.page.evaluate(() => (document.querySelector('#czViewer [data-iv-vbtn]') || { getAttribute: () => '' }).getAttribute('aria-label'));
270
+ ok('V1 the last view is remembered for the PM: the next panel opens on Kanban', /^Tasks view: Kanban\./.test(rem), rem);
226
271
  await R.ctx.close();
227
272
  ok('V0 no page error', A.errors.length === 0, A.errors.join(' | '));
228
273
  if (process.env.SHOTS_5B) {
@@ -239,7 +284,15 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
239
284
  ok('V9 phone: no caret (a long press on the box opens the status picker)', pk && pk.car === 'none', JSON.stringify(pk));
240
285
  }
241
286
  await shot(q, 'kanban-390-' + theme);
242
- await q.evaluate(() => document.querySelector('#czViewer [data-iv-view="timeline"]').click());
287
+ if (theme === 'light') {
288
+ await q.evaluate(() => document.querySelector('#czViewer [data-iv-vbtn]').click());
289
+ const ps = await until(() => q.evaluate(() => { const s = document.querySelector('.tkc.ivq.sheet .ivs'); if (!s) return null; const r = s.getBoundingClientRect(); return { bottom: Math.round(innerHeight - r.bottom), w: Math.round(r.width), scrim: !!document.querySelector('.vs-scrim'), grab: getComputedStyle(s.querySelector('.ivs-grab')).display }; }));
290
+ ok('V10 phone: the sheet is a bottom sheet over a scrim, full width, with its grab', ps && ps.bottom <= 1 && ps.w >= 388 && ps.scrim && ps.grab === 'block', JSON.stringify(ps));
291
+ await shot(q, 'sheet-390');
292
+ await q.evaluate(() => document.querySelector('.vs-scrim').dispatchEvent(new PointerEvent('pointerdown', { bubbles: true })));
293
+ ok('V10 phone: a tap on the scrim closes the sheet', await until(() => q.evaluate(() => !document.querySelector('.tkc.ivq') && !document.querySelector('.vs-scrim')), 2000));
294
+ }
295
+ await sheetPick(q, 'view', 'timeline');
243
296
  await until(() => q.evaluate(() => !!document.querySelector('#czViewer .ivt')));
244
297
  await sleep(200);
245
298
  const pt = await q.evaluate(() => { const r = document.querySelector('#czViewer .ivt-r.k'), n = r.querySelector('.ivt-n').getBoundingClientRect(), c = r.querySelector('.ivt-c').getBoundingClientRect(); return { above: c.top >= n.bottom - 1, grips: getComputedStyle(document.querySelector('#czViewer .ivt-gp') || document.body).display }; });
@@ -247,7 +300,7 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
247
300
  await shot(q, 'timeline-390-' + theme);
248
301
  if (theme === 'light') {
249
302
  // a long press on the box opens the status picker; the click that follows does not mark it done
250
- await q.evaluate(() => document.querySelector('#czViewer [data-iv-view="list"]').click());
303
+ await sheetPick(q, 'view', 'list');
251
304
  await until(() => q.evaluate(() => !!document.querySelector('#czViewer [data-iv-check="task-b"]')));
252
305
  const n0 = Ph.posts.length;
253
306
  const bx = await q.evaluate(() => { const r = document.querySelector('#czViewer [data-iv-check="task-b"]').getBoundingClientRect(); return { x: r.left + r.width / 2, y: r.top + r.height / 2 }; });
@@ -264,7 +317,7 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
264
317
  }
265
318
  if (process.env.SHOTS_5B) {
266
319
  const D = await open({ theme: 'dark', store: { 'pmos.tasks.view': 'timeline' } }); await sleep(200); await shot(D.page, 'timeline-1440-dark');
267
- await D.page.evaluate(() => document.querySelector('#czViewer [data-iv-view="kanban"]').click()); await sleep(200); await shot(D.page, 'kanban-1440-dark'); await D.ctx.close();
320
+ await sheetPick(D.page, 'view', 'kanban'); await sleep(200); await shot(D.page, 'kanban-1440-dark'); await D.ctx.close();
268
321
  }
269
322
  return finish();
270
323
  })();
@@ -0,0 +1,13 @@
1
+ {
2
+ "_comment": "Batch 18 item 8-B, Adler dressed for the season: the charms, their scenes and where they show (pm/cozy-adler.js charms and charmScene, the tap popover, Your day's scene and greeting, the chat face, first run, the Board's win). adler-seasons-art.test.js is pure; adler-seasons-art-test.js drives the real Home at 390 px and 1280 px on Deepavali, with 8-A's calendar module stubbed.",
3
+ "modules": [
4
+ "adler-seasons-art.test.js"
5
+ ],
6
+ "panels": [
7
+ "adler-seasons-art-test.js"
8
+ ],
9
+ "seconds": {
10
+ "adler-seasons-art.test.js": 1,
11
+ "adler-seasons-art-test.js": 30
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "_comment": "batch 18 item 8-A: the calendar that dresses Adler (pm/cozy-seasons.js: the 44 days, the windows, nearer day wins, solemn days, the place) and Settings › Adler › Dress for the day (adler.dress.* in lib/settings-store.js). adler-seasons.test.js is pure; adler-seasons-test.js drives the real Settings at 390 px and 1280 px with the clock in Deepavali week.",
3
+ "modules": [
4
+ "adler-seasons.test.js"
5
+ ],
6
+ "panels": [
7
+ "adler-seasons-test.js"
8
+ ],
9
+ "seconds": {
10
+ "adler-seasons.test.js": 1,
11
+ "adler-seasons-test.js": 30
12
+ }
13
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "_comment": "Batch 18 item 1-A: the rocket mission on the initiative card (pm/mission.js): stages lead, dates measure, milestone flags, crowded flags. Pure.",
3
+ "modules": ["mission.test.js"],
4
+ "seconds": { "mission.test.js": 1 }
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "_comment": "Batch 18 item 1, slice 1-B (Wawan 2026-10-28 \"promote to ready for development, then build\"; canvas XvpA4Sheet, XvpA3Timeline, XvpA3bMonths): the initiative Viewer's Tasks on phone and desktop. One view button opens the sheet (View, Group by, Zoom Weeks/Months/All); the List shows only stages with something open and folds a stage after 3 tasks; the Timeline at All fits the whole initiative. viewer-tasks.test.js is the pure half (pm/ini-tasks.js); the browser half is task-views-test.js.",
3
+ "modules": ["viewer-tasks.test.js"],
4
+ "seconds": { "viewer-tasks.test.js": 1 }
5
+ }
@@ -121,14 +121,19 @@ const LAYOUT = { ok: true, auto: true, held: [], by: 'stage', names: [], of: {},
121
121
  const heads = (p) => p.evaluate((v) => [...document.querySelectorAll(v + ' .iv-wbs .iv-ws b')].map((b) => b.textContent), V);
122
122
  const epics = (p) => until(() => p.evaluate((v) => !!document.querySelector(v + ' .iv-wbs .ig-tk'), V), 20000);
123
123
  const lastPost = (A, route) => A.posts.filter((x) => x.path === route).pop();
124
+ // Group by and the views live in the view sheet (batch 18 item 1, XvpA4Sheet): the one view button opens it
125
+ const sheetOpen = async (pg) => { await pg.click(V + ' [data-iv-vbtn]'); return until(() => pg.evaluate(() => !!document.querySelector('.tkc.ivq .ivs'))); };
126
+ const openMore = async (pg) => { await sheetOpen(pg); await pg.click('.tkc.ivq .ivs [data-ivs-more]'); };
127
+ const grouped = async (pg) => { await sheetOpen(pg); const r = await pg.evaluate(() => { const b = document.querySelector('.tkc.ivq .ivs [data-ivs-more]'); return b && b.getAttribute('aria-pressed') === 'true' ? b.textContent.trim() : 'no'; }); await pg.keyboard.press('Escape'); return r; };
128
+ const viewTo = async (pg, m) => { await sheetOpen(pg); await pg.click(`.tkc.ivq .ivs [data-ivs-view="${m}"]`); await sleep(150); await pg.keyboard.press('Escape'); await until(() => pg.evaluate(() => !document.querySelector('.tkc.ivq .ivs'))); };
124
129
 
125
130
  /* G1 · T1 · desktop: the page's Tasks, grouped by epic by itself */
126
131
  const A = await open(), p = A.page;
127
132
  ok('0 Home draws the initiative', A.up);
128
133
  ok('T1 Tasks groups by epic by itself once the tickets are drafted', await epics(p));
129
134
  const hd = await p.evaluate((v) => [...document.querySelector(v + ' .iv-th').children].map((e) => (e.getAttribute('aria-label') || e.className || e.tagName) + (e.textContent.trim() && e.matches('button') ? '+text' : '')).join(), V);
130
- ok('G1 one icon-only "Group tasks by" press in the Tasks header, right side, before the view switch', /Group tasks by,Tasks view,Add a task/.test(hd), hd);
131
- ok('G1 the group icon shows its grouping is not the default', await p.evaluate((v) => document.querySelector(v + ' [data-ig-by]').classList.contains('on'), V));
135
+ ok('G1 the Tasks header holds the one view button and + (Group by is in its sheet)', /,Tasks view: List\. Change the view, grouping or zoom,Add a task/.test(hd) && !/Group tasks by/.test(hd), hd);
136
+ ok('G1 the sheet shows the grouping is not the default: its ⋯ reads Epic, pressed', (await grouped(p)) === 'Epic');
132
137
  ok('T1 one group per epic, in the PRD\'s order, then Your tasks', (await heads(p)).join('|') === 'Sign-in and sign-up|Sessions, SSO and second factor|Your tasks', JSON.stringify(await heads(p)));
133
138
  const sends = await p.evaluate((v) => [...document.querySelectorAll(v + ' .iv-wbs > :is(.iv-wsw, .iv-ws)')].map((g) => !!g.querySelector('[data-ig-send]')).join(), V);
134
139
  ok('T1 each epic has its send icon; Your tasks has none', sends === 'true,true,false', sends);
@@ -137,20 +142,9 @@ const LAYOUT = { ok: true, auto: true, held: [], by: 'stage', names: [], of: {},
137
142
  ok('T1 the ticket that lacks text carries its marker', await p.evaluate((v) => { const m = document.querySelector(v + ' .ig-tk[data-ig-tk="S5"] .ig-mk.warn'); return !!m && /Missing/.test(m.getAttribute('aria-label')); }, V));
138
143
  ok('T1 the card leads Tasks: "N tickets are drafted, not in Jira" with one Send to Jira', /6 tickets are drafted, not in Jira/.test(await txt(p, V + ' .ig-sum')) && (await txt(p, V + ' .ig-sum [data-ig-sendall]')) === 'Send to Jira' && (await p.$$(V + ' [data-ig-sendall]')).length === 1, await txt(p, V + ' .ig-sum'));
139
144
  await shot(p, 'tasks-epic-1440.png');
140
- /* batch 12 item 0 · the stage card's stage while Tasks is grouped by epic: Tasks keeps the epic grouping, shows that stage's tasks only */
141
- const st = await p.evaluate((v) => { const b = [...document.querySelectorAll(v + ' .iv-tl .iv-tlp[data-iv-stage]')].find((x) => !x.classList.contains('now')); return b ? { key: b.dataset.ivStage, title: b.title } : null; }, V);
142
- ok('S0 the stage card has a stage part to press', !!st, JSON.stringify(st));
143
- if (st) {
144
- await p.click(`${V} .iv-tl .iv-tlp[data-iv-stage="${st.key}"]`);
145
- const only = await until(() => p.evaluate((v) => { const c = document.querySelector(v + ' .iv-th [data-ig-all]'); return c ? c.textContent.trim() : null; }, V));
146
- ok('S0 the Tasks header names the stage shown, with a ✕ to show every stage', !!only && st.title.includes(only), only + ' / ' + st.title);
147
- ok('S0 the grouping stays: the group icon is still on, and no stage section opens in its place', await p.evaluate((v) => document.querySelector(v + ' [data-ig-by]').classList.contains('on'), V));
148
- ok('S0 a stage with no Jira tickets shows no epic groups', await p.evaluate((v) => !document.querySelector(v + ' .ig-tk') && !document.querySelector(v + ' .ig-sum'), V));
149
- await shot(p, 'tasks-epic-stage-1440.png');
150
- await p.click(V + ' .iv-th [data-ig-all]');
151
- ok('S0 the ✕ shows every stage again: the epics come back', await epics(p) && await p.evaluate((v) => !document.querySelector(v + ' [data-ig-all]'), V));
152
- }
153
- await p.click(V + ' [data-ig-by]');
145
+ /* batch 12 item 0 (the stage card's stage shown in Tasks) has no press since batch 18 item 1: a tap on the mission opens its milestones
146
+ * (Wawan 10:59), so the S0 checks went with the stage line */
147
+ await openMore(p);
154
148
  const gm = await until(() => p.evaluate(() => { const m = document.querySelector('.ig-pop [role="menu"]'); return m ? [...m.querySelectorAll('[role^="menuitem"]')].map((b) => b.innerText.replace(/\s+/g, ' ').trim() + (b.getAttribute('aria-checked') === 'true' ? '*' : '')) : null; }));
155
149
  ok('G1 the menu: Group by Stage, Epic, Your groups, Owner, Status, then New group; Epic is checked', !!gm && gm.join('|') === 'Stage|Epic 2 epics*|Your groups|Owner|Status|New group', JSON.stringify(gm));
156
150
  await shot(p, 'group-menu-1440.png');
@@ -158,7 +152,7 @@ const LAYOUT = { ok: true, auto: true, held: [], by: 'stage', names: [], of: {},
158
152
  const by = await until(() => lastPost(A, '/api/initiative-layout'));
159
153
  ok('G1 a pick is kept for the workspace: by stage', !!by && by.body.kind === 'by' && by.body.by === 'stage' && by.body.initiative === I && by.body.ws === 'w1', JSON.stringify(by && by.body));
160
154
  ok('G1 Stage draws the stages again, with no ticket rows', await until(() => p.evaluate((v) => !document.querySelector(v + ' .ig-tk') && !document.querySelector(v + ' .ig-sum') && [...document.querySelectorAll(v + ' .iv-wbs .iv-ws b')].some((b) => /Discover/.test(b.textContent)), V)));
161
- await p.click(V + ' [data-ig-by]');
155
+ await openMore(p);
162
156
  await p.click('.ig-pop [role="menuitemradio"]:has-text("Epic")');
163
157
  await epics(p);
164
158
 
@@ -242,7 +236,7 @@ const LAYOUT = { ok: true, auto: true, held: [], by: 'stage', names: [], of: {},
242
236
  await q.keyboard.press('Enter');
243
237
  const rn = await until(() => lastPost(B, '/api/initiative-layout'));
244
238
  ok('G2 Rename writes the new name', !!rn && rn.body.kind === 'rename' && rn.body.from === 'Legal' && rn.body.to === 'Legal and filing', JSON.stringify(rn && rn.body));
245
- await q.click(V + ' [data-ig-by]');
239
+ await openMore(q);
246
240
  const gm2 = await until(() => q.evaluate(() => { const m = document.querySelector('.ig-pop [role="menu"]'); return m ? m.textContent.replace(/\s+/g, ' ') : null; }));
247
241
  ok('G2 the menu lists Your group sets, then New group', !!gm2 && /Your group sets\s*Design · Legal/.test(gm2) && /New group$/.test(gm2.trim()), gm2);
248
242
  await q.click('.ig-pop [role="menuitem"]:has-text("New group")');
@@ -253,17 +247,17 @@ const LAYOUT = { ok: true, auto: true, held: [], by: 'stage', names: [], of: {},
253
247
  await shot(q, 'tasks-mine-after-1440.png');
254
248
 
255
249
  /* G3 · Timeline and Kanban draw the same groups */
256
- await q.click(V + ' [data-iv-view="timeline"]');
250
+ await viewTo(q, 'timeline');
257
251
  const tg = await until(() => q.evaluate((v) => { const g = [...document.querySelectorAll(v + ' .ivt-gh b')].map((b) => b.textContent); return g.length ? g : null; }, V));
258
252
  ok('G3 Timeline draws the same groups', !!tg && tg.join('|') === 'Design|Legal and filing|Filing|Not in a group', JSON.stringify(tg));
259
253
  await shot(q, 'timeline-mine-1440.png');
260
- await q.click(V + ' [data-iv-view="kanban"]');
254
+ await viewTo(q, 'kanban');
261
255
  ok('G3 Kanban\'s picker is the group picker: All first', await until(() => q.evaluate((v) => { const b = document.querySelector(v + ' [data-iv-kstage]'); return !!b && b.textContent.trim() === 'All' && /^Group: All/.test(b.getAttribute('aria-label')); }, V)));
262
256
  await q.click(V + ' [data-iv-kstage]');
263
257
  const kg = await until(() => q.evaluate(() => { const m = document.querySelector('.ivq-m'); return m ? [...m.querySelectorAll('[role="menuitemradio"]')].map((b) => b.querySelector('span:nth-child(2)').textContent) : null; }));
264
258
  ok('G3 the picker lists All and each group', !!kg && kg.join('|') === 'All|Design|Legal and filing|Filing|Not in a group', JSON.stringify(kg));
265
259
  await q.keyboard.press('Escape');
266
- await q.click(V + ' [data-iv-view="list"]');
260
+ await viewTo(q, 'list');
267
261
  ok('0 Your groups: no page error', !B.errors.length, B.errors.join(' | '));
268
262
  await B.ctx.close();
269
263
  }
@@ -272,18 +266,18 @@ const LAYOUT = { ok: true, auto: true, held: [], by: 'stage', names: [], of: {},
272
266
  {
273
267
  const C = await open({ w: 390, h: 844, view: SENT }), c = C.page;
274
268
  ok('G4 phone: the Tasks open grouped by epic', await epics(c));
275
- const fit = await c.evaluate((v) => { const h = document.querySelector(v + ' .iv-th'), r = h.getBoundingClientRect(); const kids = [...h.children].filter((e) => e.offsetParent); return { over: h.scrollWidth > h.clientWidth + 1, rows: new Set(kids.filter((e) => e.matches('button, .ivx-seg')).map((e) => Math.round(e.getBoundingClientRect().top))).size, right: Math.max(...kids.map((e) => e.getBoundingClientRect().right)) <= r.right + 1, views: [...h.querySelectorAll('.ivx-sb')].filter((b) => b.offsetParent).length }; }, V);
276
- ok('G4 phone: the header holds the group icon, the view in use and + on one line, nothing cut', !fit.over && fit.rows === 1 && fit.right && fit.views === 1, JSON.stringify(fit));
277
- await c.click(V + ' .ivx-sb[aria-pressed="true"]');
278
- const vm = await until(() => c.evaluate(() => { const m = document.querySelector('.ivq-m'); return m ? [...m.querySelectorAll('[role="menuitemradio"]')].map((b) => b.textContent.trim()) : null; }));
279
- ok('G4 phone: the view icon opens List, Timeline and Kanban', !!vm && vm.join('|') === 'List|Timeline|Kanban', JSON.stringify(vm));
269
+ const fit = await c.evaluate((v) => { const h = document.querySelector(v + ' .iv-th'), r = h.getBoundingClientRect(); const kids = [...h.children].filter((e) => e.offsetParent); return { over: h.scrollWidth > h.clientWidth + 1, rows: new Set(kids.filter((e) => e.matches('button')).map((e) => Math.round(e.getBoundingClientRect().top))).size, right: Math.max(...kids.map((e) => e.getBoundingClientRect().right)) <= r.right + 1, views: [...h.querySelectorAll('[data-iv-vbtn]')].filter((b) => b.offsetParent).length }; }, V);
270
+ ok('G4 phone: the header holds the view button and + on one line, nothing cut', !fit.over && fit.rows === 1 && fit.right && fit.views === 1, JSON.stringify(fit));
271
+ await sheetOpen(c);
272
+ const vm = await c.evaluate(() => { const g = document.querySelector('.tkc.ivq.sheet .ivs-seg[aria-label="View"]'); return g ? [...g.children].map((b) => b.getAttribute('aria-label')) : null; });
273
+ ok('G4 phone: the view button opens the bottom sheet: List, Timeline and Kanban', !!vm && vm.join('|') === 'List|Timeline|Kanban', JSON.stringify(vm));
280
274
  await c.keyboard.press('Escape');
281
275
  const row = await c.evaluate((v) => { const r = document.querySelector(v + ' .ig-tk[data-ig-tk="S1"]'); return r ? { t: r.textContent.replace(/\s+/g, ' ').trim(), sq: (r.querySelector('.ig-sq') || {}).className, av: (r.querySelector('.ivt-av') || {}).textContent, lab: r.querySelector('.ig-sq') && r.querySelector('.ig-sq').getAttribute('aria-label') } : null; }, V);
282
276
  ok('T1 after the send: the key, a status square and the assignee', !!row && /IDPF-411 Sign-in parity/.test(row.t) && /doing/.test(row.sq) && row.av === 'Ru' && row.lab === 'In Jira: In Progress', JSON.stringify(row));
283
277
  ok('T1 "Jira read at 9:02" is said once', (await c.$$eval(V + ' .ig-read', (n) => n.map((x) => x.textContent))).join() === 'Jira read at 9:02');
284
278
  ok('T1 an epic keeps its send icon while a ticket in it is not in Jira', await c.evaluate((v) => [...document.querySelectorAll(v + ' .iv-wbs > :is(.iv-wsw, .iv-ws)')].slice(0, 2).map((g) => !!g.querySelector('[data-ig-send]')).join() === 'true,true', V));
285
279
  await shot(c, 'sent-390.png');
286
- await c.click(V + ' [data-ig-by]');
280
+ await openMore(c);
287
281
  ok('G4 phone: the group menu rises from the bottom as a sheet', await until(() => c.evaluate(() => { const s = document.querySelector('.ig-pop.sheet'); if (!s) return false; const r = s.getBoundingClientRect(); return Math.abs(r.bottom - innerHeight) < 2 && r.left === 0; })));
288
282
  await shot(c, 'group-sheet-390.png');
289
283
  await c.keyboard.press('Escape');
@@ -302,9 +296,10 @@ const LAYOUT = { ok: true, auto: true, held: [], by: 'stage', names: [], of: {},
302
296
  /* G5 · the Board's panel: the same section */
303
297
  {
304
298
  const E = await open({ page: 'board' }), e = E.page;
305
- ok('G5 the Board\'s panel has the group icon and groups by epic by itself', E.up && !!(await e.$(V + ' .iv-th [data-ig-by]')) && await epics(e));
306
- await e.click(V + ' [data-ig-by]');
307
- await e.click('.ig-pop [role="menuitemradio"]:has-text("Owner")');
299
+ ok('G5 the Board\'s panel has the view button and groups by epic by itself', E.up && !!(await e.$(V + ' .iv-th [data-iv-vbtn]')) && await epics(e));
300
+ await sheetOpen(e);
301
+ await e.click('.tkc.ivq .ivs [data-ivs-by="owner"]');
302
+ await e.keyboard.press('Escape');
308
303
  ok('G5 By owner on the Board: one group per owner', await until(() => e.evaluate((v) => [...document.querySelectorAll(v + ' .iv-wbs .iv-ws b')].map((b) => b.textContent).join('|') === 'Claude|Wawan', V)), JSON.stringify(await heads(e)));
309
304
  await shot(e, 'board-owner-1440.png');
310
305
  ok('0 Board: no page error', !E.errors.length, E.errors.join(' | '));