create-pmos 0.537.0 → 0.539.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 +81 -39
- 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-columns-test.js +11 -10
- package/workspace/board-programs-test.js +21 -23
- package/workspace/board-publish-ui-test.js +19 -15
- package/workspace/board-shared-ui-test.js +15 -12
- package/workspace/briefing-premium-board-test.js +46 -31
- package/workspace/briefing-premium-insights-test.js +24 -31
- package/workspace/briefing-premium-metrics-test.js +2 -2
- package/workspace/calm-timeline-test.js +1 -1
- package/workspace/changelog.json +80 -0
- package/workspace/ev-everywhere-test.js +4 -5
- package/workspace/fixtures/board-premium-facts.js +1 -1
- package/workspace/fixtures/initiative-premium-facts.js +1 -1
- package/workspace/fixtures/insights-premium-facts.js +6 -6
- package/workspace/fixtures/program-ascent.js +1 -1
- package/workspace/guide/adler.md +2 -2
- package/workspace/guide/agent-capabilities.md +44 -10
- package/workspace/guide/agents-act.md +68 -0
- package/workspace/guide/board.md +13 -6
- package/workspace/guide/claude-proposes.md +1 -1
- package/workspace/guide/home.md +2 -2
- package/workspace/guide/index.md +5 -4
- package/workspace/guide/initiative-driver.md +16 -7
- package/workspace/guide/intelligence-okr-goals.md +18 -7
- package/workspace/guide/lifecycle.md +2 -2
- package/workspace/guide/programs.md +2 -2
- package/workspace/guide/reports-needs-you.md +5 -5
- package/workspace/guide/settings.md +14 -11
- package/workspace/guide/workflows.md +3 -3
- package/workspace/guide/your-impact.md +1 -1
- package/workspace/lib/agent-inbox.js +2 -2
- package/workspace/lib/agent-team.js +262 -0
- package/workspace/lib/ai-cli.js +36 -4
- package/workspace/lib/ai-guard.js +16 -6
- package/workspace/lib/auto-keep.js +33 -0
- package/workspace/lib/autonomy-cli.js +53 -0
- package/workspace/lib/autonomy.js +234 -0
- package/workspace/lib/bg-queue.js +11 -5
- package/workspace/lib/board-premium.js +6 -3
- package/workspace/lib/driver-cli.js +26 -10
- package/workspace/lib/driver-decide.js +76 -8
- package/workspace/lib/driver.js +15 -4
- package/workspace/lib/goal-loop.js +221 -0
- package/workspace/lib/goal-source.js +77 -0
- package/workspace/lib/grill-runs.js +6 -3
- package/workspace/lib/headless.js +36 -4
- package/workspace/lib/idle-lab-engine.js +7 -6
- package/workspace/lib/initiative-premium.js +6 -3
- package/workspace/lib/insights-premium.js +1 -1
- package/workspace/lib/job-graph.js +194 -0
- package/workspace/lib/loop-cli.js +84 -0
- package/workspace/lib/okr-goals.js +3 -0
- package/workspace/lib/orchestrator-keeprate.js +108 -7
- package/workspace/lib/pm-lines-needs.js +3 -0
- package/workspace/lib/pmos-verbs.js +9 -1
- package/workspace/lib/proposal-runs.js +8 -5
- package/workspace/lib/proposals.js +32 -2
- package/workspace/lib/report-slots.js +14 -10
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-autonomy.js +95 -0
- package/workspace/lib/routes-boards.js +2 -2
- package/workspace/lib/routes-insights-premium.js +11 -4
- package/workspace/lib/routes-premium-dashboards.js +20 -6
- package/workspace/lib/routes-proposals.js +111 -51
- package/workspace/lib/routes-your-move.js +6 -7
- package/workspace/lib/stage-tools.js +11 -1
- package/workspace/lib/status-proof.js +45 -0
- package/workspace/lib/status-signal.js +4 -2
- package/workspace/lib/task-links.js +3 -1
- package/workspace/lib/team-cli.js +164 -0
- package/workspace/lib/team-runs.js +244 -0
- package/workspace/lib/today.js +2 -8
- package/workspace/lib/verify-runs.js +112 -0
- package/workspace/okr-goals-ui-test.js +10 -13
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-vw-backlog-test.js +2 -2
- package/workspace/premium-vw-jira-test.js +1 -1
- package/workspace/public/pm/bd-acts.js +14 -34
- package/workspace/public/pm/bd-ini-panel.js +38 -27
- package/workspace/public/pm/bd-publish.js +1 -1
- package/workspace/public/pm/bd-span.js +2 -1
- package/workspace/public/pm/bd-views.js +7 -5
- package/workspace/public/pm/c3-ini-ui.js +9 -7
- package/workspace/public/pm/cozy-board.css +17 -6
- package/workspace/public/pm/cozy-insights.css +18 -0
- package/workspace/public/pm/cozy-nav.js +2 -2
- package/workspace/public/pm/cozy-search.js +29 -7
- package/workspace/public/pm/cozy-settings.js +39 -20
- package/workspace/public/pm/home-around.js +2 -2
- package/workspace/public/pm/home-data.js +3 -1
- package/workspace/public/pm/home-ini-model.js +15 -1
- package/workspace/public/pm/home-ini.js +9 -3
- package/workspace/public/pm/ini-tail.js +61 -0
- package/workspace/public/pm/ini-view-model.js +10 -7
- package/workspace/public/pm/premium-board.js +66 -99
- package/workspace/public/pm/premium-insights.js +95 -112
- package/workspace/public/pm/premium-report-intel.js +3 -2
- package/workspace/public/pm/readonly.js +4 -3
- package/workspace/public/pm/stage-chip.js +2 -1
- package/workspace/public/pm/status-proof.js +43 -0
- package/workspace/public/premium-board.html +10 -28
- package/workspace/public/premium-intelligence.html +7 -9
- package/workspace/replaced-tests.json +17 -0
- package/workspace/server.js +61 -15
- package/workspace/sort-order-test.js +10 -8
- package/workspace/test-files.json +4 -2
- package/workspace/test-lists/agent-team.json +9 -0
- package/workspace/test-lists/full-autonomy.json +11 -0
- package/workspace/test-lists/job-graph.json +11 -0
- package/workspace/test-lists/status-proof.json +5 -0
- package/workspace/test-run.js +3 -0
- package/workspace/workflows-setup-test.js +3 -2
- package/workspace/public/premium-chat.html +0 -14
- package/workspace/public/premium-initiative.html +0 -15
- package/workspace/public/premium-work.html +0 -14
|
@@ -110,12 +110,13 @@ const IVREAD = () => {
|
|
|
110
110
|
const p = A.page, M = mk();
|
|
111
111
|
const txt = (s) => p.evaluate((q) => (document.querySelector(q) || {}).textContent || '', s);
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
// the View chip holds the four views and, on the timeline, the span (UI grill U2): its items are pressed from code, as the old tabs were
|
|
114
|
+
const view = async (pg, v) => { await pg.evaluate((x) => document.querySelector(`#bdViewMenu [data-pv="${x}"]`).click(), v); await sleep(150); };
|
|
114
115
|
// the Filter's "Sprint N only" (batch 28 item 3, BhA: the chip row is gone; the chip is Filter's first sprint chip)
|
|
115
116
|
const sprintOnly = async (pg) => { await pg.click('#bdFilter'); await pg.click('#bdPop [data-fsonly]'); await pg.keyboard.press('Escape'); await sleep(150); };
|
|
116
117
|
// a phone's view button (BhA): its menu holds the four views
|
|
117
118
|
const pview = async (pg, v) => { await pg.click('#bdView'); await pg.click(`#bdViewMenu [data-pv="${v}"]`); await sleep(150); };
|
|
118
|
-
const spanTo = async (pg, s) => { await pg.click('#
|
|
119
|
+
const spanTo = async (pg, s) => { await pg.click('#bdView'); await pg.click(`#bdViewMenu [data-spick="${s}"]`); await pg.keyboard.press('Escape'); await sleep(150); }; // the span, in the View chip (UI grill U2)
|
|
119
120
|
/* the Viewer's shell A (initiative viewer-shell-a, XvABoard): what it shows now, and a press in its ⋯ menu by label */
|
|
120
121
|
const vwOn = (pg, kind) => pg.evaluate((k) => { const v = document.querySelector('#czViewer'), c = window.czViewer && window.czViewer.current(); return !!v && !v.hidden && !!c && (!k || c.kind === k); }, kind || null);
|
|
121
122
|
const vwTitle = (pg) => pg.evaluate(() => { const v = document.querySelector('#czViewer'); return v && !v.hidden ? (v.querySelector('.cz-vw-title') || {}).textContent || '' : ''; });
|
|
@@ -134,21 +135,26 @@ const IVREAD = () => {
|
|
|
134
135
|
await p.keyboard.press('Escape');
|
|
135
136
|
// premium-agreed-design (shared foundation): the ⋯ menu leads nowhere in the console; its undesigned items open the Viewer on a placeholder.
|
|
136
137
|
// re-pointed for the Agreed Board: the Board adds none of its old items to the menu (steps, sprint and release, metrics, cancelled and archived).
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
// UI grill U2: the Board's ⋯ holds Publish a read-only copy (a board with a workspace) and Cancelled and archived; Sources, Theme and Settings
|
|
139
|
+
// left it for Settings, which the place menu opens
|
|
140
|
+
{ await p.click('#moreBtn'); const tc = await p.evaluate(() => { const b = document.querySelector('#moreBtn').getBoundingClientRect(); return { console: document.querySelectorAll('#moreMenu a[href*="console"], #toConsole').length, w: Math.round(b.width), h: Math.round(b.height), items: [...document.querySelectorAll('#moreMenu [role^="menuitem"]')].filter((x) => x.offsetParent !== null).map((x) => x.id), theme: !!document.querySelector('#moreMenu #tbTheme') }; });
|
|
141
|
+
ok('B1 the ⋯ menu has no console link and holds only Publish a read-only copy and Cancelled and archived (no Sources, Theme or Settings: UI grill U2)', tc.console === 0 && tc.w >= 40 && tc.h >= 40 && tc.items.join() === 'bdPublish,bdGone' && !tc.theme, JSON.stringify(tc));
|
|
142
|
+
await p.keyboard.press('Escape');
|
|
143
|
+
await p.click('#czFab'); await p.click('#czMenu [data-cz-settings]'); const vw = await until(() => p.evaluate(() => { const d = document.querySelector('#evSettings:not([hidden])'); return d ? d.getAttribute('aria-label') : null; }));
|
|
144
|
+
ok('B1 Settings opens its dialog from the place menu (premium-uncovered-features, EvSettings)', vw === 'Settings', JSON.stringify(vw)); await p.keyboard.press('Escape'); }
|
|
140
145
|
ok('B1 the page is served at /premium-board and /premium-board.html', (await fetch(BASE + '/premium-board')).status === 200 && (await fetch(BASE + '/premium-board.html')).status === 200);
|
|
141
146
|
|
|
142
147
|
/* the Agreed toolbar: the view toggle, Find, Filter, New initiative and ⋯; nothing of the older Board is attached (premium-agreed-design, audit section 2) */
|
|
143
|
-
const tools = await p.evaluate(() => ({ views: [...document.querySelectorAll('#
|
|
144
|
-
|
|
148
|
+
const tools = await p.evaluate(() => ({ views: [...document.querySelectorAll('#bdViewMenu [data-pv]')].map((b) => b.dataset.pv).join(), order: [...document.querySelectorAll('.bd-hd #bdView, .bd-hd #bdFind, .bd-hd #bdFilter, .bd-hd #newIni, .bd-hd #moreBtn')].map((e) => e.id).join(),
|
|
149
|
+
n: [...document.querySelectorAll('.bd-hd button, .bd-hd .crumb')].filter((b) => b.offsetParent !== null && !b.closest('[hidden], .bd-grpm, #bdChipset') && !b.matches('.crumb *')).length, old: ['#modeSeg', '#iniCap', '#iniBar', '#iniNote', '#popAsks', '#popSpr', '#popMet', '#popFilter', '#stHelp', '#more', '.bam2', '.bd-foot', '#dmQ', '#docBody .dmr'].filter((q) => !!document.querySelector(q)), console: document.querySelectorAll('a[href*="console"]').length }));
|
|
150
|
+
ok('B1 the toolbar is one row of seven (UI grill U2): the picker, the View chip (List, By stage, Track and Timeline), the pill, Find, the tune button, New and ⋯, in that order', tools.views === 'list,stages,track,time' && tools.order === 'bdView,bdFind,bdFilter,newIni,moreBtn' && tools.n === 6, JSON.stringify(tools));
|
|
145
151
|
ok('B1 none of the older Board is on the page: no Page/Popup switch, header bar, note, asks, sprint, metrics or filter popover, Show more, row menu, footer or documents manager, and no console link', tools.old.length === 0 && tools.console === 0, JSON.stringify(tools));
|
|
146
152
|
|
|
147
153
|
/* B1 the stage track (premium-agreed-design): eight columns, two of them milestones, the board's counts, rows by stage.
|
|
148
154
|
* The milestone mark is a drawn diamond (.msh header holding .cz-ms, cozy.css), not a ◆ glyph in the text; the heads read '◆ ' only where
|
|
149
155
|
* that shape is present, so the check pins which two columns are milestones. Evaluate 21 is the fixture's own count (+20 done). */
|
|
150
|
-
const tr = await p.evaluate(() => ({ heads: [...document.querySelectorAll('.bt-h .bt-cells > div')].map((d) => (d.classList.contains('msh') && d.querySelector('.cz-ms') ? '◆ ' : '') + d.textContent.replace(/\s+/g, ' ').trim()), rows: [...document.querySelectorAll('#ibBody .bt-l')].map((r) => ({ t: r.querySelector('.bt-nm b').textContent, cur: [...r.querySelectorAll('.bt-cells > div')].findIndex((c) => c.classList.contains('c')), nx: ((r.querySelector('.bt-dl .bd-nx .tx') || {}).textContent || ''), cnt: ((r.querySelector('.bt-dl .bd-nx .mu') || {}).textContent || ''), act: ((r.querySelector('.bt-dl .bd-nxa') || { getAttribute: () => '' }).getAttribute('aria-label') || ''), you: !!r.querySelector('.bt-dl .bd-nx .cz-dot.you'), st: r.querySelector('.cs').textContent, days: (r.querySelector('.sc.c small') || {}).textContent, dt: (r.querySelector('.sc.c') || {}).title })), pressed: document.querySelector('#
|
|
151
|
-
ok('B1 the default view is the stage track with six stages and two milestones, each with the board\'s count (old names count for the new ones)', tr.pressed === 'track' && tr.heads.join('|') === '
|
|
156
|
+
const tr = await p.evaluate(() => ({ heads: [...document.querySelectorAll('.bt-h .bt-cells > div')].map((d) => (d.classList.contains('msh') && d.querySelector('.cz-ms') ? '◆ ' : '') + d.textContent.replace(/\s+/g, ' ').trim()), rows: [...document.querySelectorAll('#ibBody .bt-l')].map((r) => ({ t: r.querySelector('.bt-nm b').textContent, cur: [...r.querySelectorAll('.bt-cells > div')].findIndex((c) => c.classList.contains('c')), nx: ((r.querySelector('.bt-dl .bd-nx .tx') || {}).textContent || ''), cnt: ((r.querySelector('.bt-dl .bd-nx .mu') || {}).textContent || ''), act: ((r.querySelector('.bt-dl .bd-nxa') || { getAttribute: () => '' }).getAttribute('aria-label') || ''), you: !!r.querySelector('.bt-dl .bd-nx .cz-dot.you'), st: r.querySelector('.cs').textContent, days: (r.querySelector('.sc.c small') || {}).textContent, dt: (r.querySelector('.sc.c') || {}).title })), pressed: document.querySelector('#bdViewMenu [aria-pressed="true"]').dataset.pv, n: document.querySelector('.bt-nmh').textContent.replace(/\s+/g, ' ').trim(), oh: document.querySelector('.bt-oh').textContent, lg: !!document.querySelector('.bt-oh .lg, #ibBody .seg5'), tf: document.querySelector('.bt-tf').textContent }));
|
|
157
|
+
ok('B1 the default view is the stage track with six stages and two milestones, each with the board\'s count (old names count for the new ones); a step with none says no 0 (UI grill U2)', tr.pressed === 'track' && tr.heads.join('|') === 'Triage|Discover1|Plan1|Prioritize|Build2|◆ Deliver1|Monitor1|◆ Evaluate21', JSON.stringify(tr.heads));
|
|
152
158
|
ok('B1 one row per initiative, sorted by stage, with its current step marked; the head counts the open initiatives', tr.rows.length === 7 && tr.rows.map((r) => r.cur).join() === '1,2,4,4,5,6,7' && tr.rows[0].t === 'Usage-based billing' && tr.n === 'Initiative 9', JSON.stringify(tr.rows.map((r) => r.t + ':' + r.cur)));
|
|
153
159
|
ok('B1 the Next column says what finishes the step next, with its count; the initiative\'s whole progress is never the step\'s, and a part not on record draws nothing', tr.oh === 'Next' && tr.rows[0].nx === '' && tr.rows[1].nx === 'Draft the tickets' && tr.rows[1].cnt === '1/2 parts' && tr.rows.every((r) => !/%/.test(r.cnt)) && tr.rows[3].nx === 'Link the Jira epic' && tr.rows[3].act === 'Link the Jira epic' && tr.rows[6].nx === 'Draft the outcome report' && tr.rows[6].act === 'Draft the outcome report with Claude', JSON.stringify(tr.rows.map((r) => [r.nx, r.cnt, r.act])));
|
|
154
160
|
ok('B1 the status line says late in days over and at risk with no owner', tr.rows.some((r) => /^\d+ days over$/.test(r.st)) && tr.rows[0].st === 'At risk · no owner', JSON.stringify(tr.rows.map((r) => r.st)));
|
|
@@ -206,8 +212,8 @@ const IVREAD = () => {
|
|
|
206
212
|
}
|
|
207
213
|
{
|
|
208
214
|
const R = await open({ model: BP.build(FJ.facts()) }), q = R.page;
|
|
209
|
-
const c = await q.evaluate(() => ({ chips: [...document.querySelectorAll('#bdChipset .bd-chip')].map((b) => b.textContent.replace(/\s+/g, ' ').trim() + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')), spr: document.querySelector('#bdChipset #chSprint').getAttribute('aria-label'), jiraRow: !!document.querySelector('.bd-hd #
|
|
210
|
-
ok('B1 the one row holds one pill for the new asks, late, at risk and blocked
|
|
215
|
+
const c = await q.evaluate(() => ({ chips: [...document.querySelectorAll('#bdChipset .bd-chip')].map((b) => b.textContent.replace(/\s+/g, ' ').trim() + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')), spr: document.querySelector('#bdChipset #chSprint').getAttribute('aria-label'), jiraRow: !!document.querySelector('.bd-hd #bdLgdMenu #chJira') && !document.querySelector('#bdJiraw'), need: document.querySelector('#chNeed').getAttribute('aria-label'), rows: [...document.querySelectorAll('#bdNeedMenu button')].map((b) => b.textContent.trim() + (b.getAttribute('aria-pressed') === 'true' ? '*' : '')).join('|'), jira: document.querySelector('#chJira').getAttribute('title'), ss: document.querySelector('.bt-l[data-row="board:self-serve-v2"] .bd-nx .tx').textContent, sso: document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx .tx').textContent, red: !!document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx em.red'), ssoTitle: document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx .tx').title, st: document.querySelector('.bt-l[data-row="board:sso-partners"] .cs').textContent, ssoCount: document.querySelector('.bt-l[data-row="board:sso-partners"] .bd-nx .mu').textContent, ssCount: document.querySelector('.bt-l[data-row="board:self-serve-v2"] .bd-nx .mu').textContent }));
|
|
216
|
+
ok('B1 the one row holds one pill for the new asks, late, at risk and blocked; its (i) holds the sprint and release and the Jira read with its ↻ (batch 24 item 7, UI grill U2)', c.chips.length === 1 && c.spr === 'Sprint 24 · v2.4 ships Nov 4. Sprints and releases' && c.need === '1 new ask, 1 late, 3 at risk, 1 blocked. Show them' && c.rows === 'New ask1|Late1|At risk3|Blocked1' && /^Jira · read .*Read Jira again$/.test(c.jira) && c.jiraRow, JSON.stringify(c));
|
|
211
217
|
await q.click('#bdFilter'); const fo = await q.evaluate(() => { const b = document.querySelector('#bdPop [data-fsonly]'); return b ? b.textContent + (b.getAttribute('aria-pressed') === 'true' ? '*' : '') : null; }); await q.keyboard.press('Escape');
|
|
212
218
|
ok('B1 This sprint (on by default) is Filter\'s first sprint chip now that the chip row is gone (batch 28 item 3)', fo === 'Sprint 24 only*', String(fo));
|
|
213
219
|
ok('B1 Build and Deliver say the ticket that matters, counted in points or tickets; a blocked ticket comes first, in red', c.ssCount === '5/13 pts' && c.ssoCount === '1/4 tickets' && /^Finish SSO-12/.test(c.sso) && c.red && /blocked/.test(c.ssoTitle) && /^Finish ONB-\d+ · 2 more$/.test(c.ss), JSON.stringify(c));
|
|
@@ -250,19 +256,19 @@ const IVREAD = () => {
|
|
|
250
256
|
if (await q.$('#czViewer .iv-ed')) await q.keyboard.press('Escape'); // the ticket's row is still open in place (batch 18 item 16): Esc shuts it first
|
|
251
257
|
await q.keyboard.press('Escape');
|
|
252
258
|
ok('B1 Escape closes the Viewer', await vwShut(q));
|
|
253
|
-
const n1 = R.posts.length; await q.click('#chJira');
|
|
254
|
-
ok('B1 the Jira
|
|
259
|
+
const n1 = R.posts.length; await q.click('#bdLgdBtn'); await q.click('#chJira');
|
|
260
|
+
ok('B1 the Jira read\'s ↻ in the pill\'s (i) reads Jira again', await until(() => R.posts.slice(n1).some((x) => x.path === '/api/sources/refresh' && x.body.source === 'jira')));
|
|
255
261
|
/* the chips and tools open their designed popovers (BdAsks, BdSprint, BdFilter) and New initiative its panel (BdNew), with no "Waiting for design" tag */
|
|
256
262
|
const waits = [];
|
|
257
|
-
for (const [sel, name, body] of [['#chAsks', 'New asks', /1 new ask.*Finance wants a CSV of failed payouts.*Accept to Triage/], ['#chSprint', 'Sprints and releases', /Sprints · from Jira.*Sprint 24.*Releases.*Backlog/], ['#
|
|
258
|
-
if (sel === '#chAsks') await needOpen(q); await q.click(sel);
|
|
263
|
+
for (const [sel, name, body] of [['#chAsks', 'New asks', /1 new ask.*Finance wants a CSV of failed payouts.*Accept to Triage/], ['#chSprint', 'Sprints and releases', /Sprints · from Jira.*Sprint 24.*Releases.*Backlog/], ['#bdFilter', 'Group, sort and filter', /Sort.*Owner.*Dara.*Lee.*No owner.*Category.*In progress.*Done.*Applies as you pick/]]) {
|
|
264
|
+
if (sel === '#chAsks') await needOpen(q); if (sel === '#chSprint') await q.click('#bdLgdBtn'); await q.click(sel);
|
|
259
265
|
waits.push(await until(() => q.evaluate(([nm, re]) => { const k = document.querySelector('#bdPop'); if (!k || k.hidden) return null; return k.getAttribute('aria-label') === nm && !k.querySelector('.bd-wtag') && new RegExp(re).test(k.textContent) ? nm : null; }, [name, body.source])) || 'missing ' + name);
|
|
260
266
|
await q.keyboard.press('Escape');
|
|
261
267
|
}
|
|
262
268
|
await q.click('#newIni'); await q.click('#bdPop [data-newmenu="ini"]');
|
|
263
269
|
waits.push(await until(() => q.evaluate(() => { const k = document.querySelector('#czViewer'); if (!k || k.hidden) return null; return (k.querySelector('.cz-vw-title') || {}).textContent === 'New initiative' && !k.querySelector('.bd-wtag') && !!k.querySelector('#nwDrop') && /Counts toward/.test(k.textContent) && !k.querySelector('select[name="lane"]') ? 'New initiative' : null; })) || 'missing New initiative');
|
|
264
270
|
await q.keyboard.press('Escape');
|
|
265
|
-
ok('B1 the new asks, the sprint and release,
|
|
271
|
+
ok('B1 the new asks, the sprint and release and the tune button (Group, sort and filter) open their popovers, and New initiative its panel with material and no lane field', waits.join() === 'New asks,Sprints and releases,Group, sort and filter,New initiative', waits.join());
|
|
266
272
|
ok('B1 none of them opened the old dialog', await q.evaluate(() => !document.querySelector('#dlg.on')));
|
|
267
273
|
/* B3 Discuss in chat (batch 26 item 4): Home's chat about the initiative opens in a panel on the Board; the page stays */
|
|
268
274
|
const keysB3 = [];
|
|
@@ -310,7 +316,7 @@ const IVREAD = () => {
|
|
|
310
316
|
|
|
311
317
|
/* B4 B5 List (BdList) and By stage (BdByStage): rows and cards open the panel */
|
|
312
318
|
await view(p, 'list');
|
|
313
|
-
const listOf = () => p.evaluate(() => ({ tag: !!document.querySelector('#ibBody .bd-wtag'), rows: [...document.querySelectorAll('#ibBody .bd-lt[data-row] .bd-ltn b')].map((b) => b.textContent), ss: ((document.querySelector('#ibBody .bd-lt[data-row="board:self-serve-v2"]') || {}).textContent || '').replace(/\s+/g, ' '), head: [...document.querySelectorAll('#ibBody .bd-lt.h [role="columnheader"]')].map((h) => h.textContent).join('|'), foot: (document.querySelector('#ibBody .bd-lt.foot') || {}).textContent || '', v: document.querySelector('#
|
|
319
|
+
const listOf = () => p.evaluate(() => ({ tag: !!document.querySelector('#ibBody .bd-wtag'), rows: [...document.querySelectorAll('#ibBody .bd-lt[data-row] .bd-ltn b')].map((b) => b.textContent), ss: ((document.querySelector('#ibBody .bd-lt[data-row="board:self-serve-v2"]') || {}).textContent || '').replace(/\s+/g, ' '), head: [...document.querySelectorAll('#ibBody .bd-lt.h [role="columnheader"]')].map((h) => h.textContent).join('|'), foot: (document.querySelector('#ibBody .bd-lt.foot') || {}).textContent || '', v: document.querySelector('#bdViewMenu [aria-pressed="true"]').dataset.pv }));
|
|
314
320
|
const lv = await listOf();
|
|
315
321
|
ok('B4 the List view lists the initiatives with workflow, stage, category, status, owner, next and finish, sorted by need; Monitor and Evaluate fold below', !lv.tag && lv.rows.length === 5 && lv.head === 'Initiative · sorted by need|Workflow|Stage|Category|Status|Owner|Next|Finish|' && /Self-serve onboarding v2.*Product feature.*Build.*In progress.*7 days over.*Link the Jira epic.*10 Oct/.test(lv.ss) && /2 more in Monitor and Evaluate/.test(lv.foot) && lv.v === 'list', JSON.stringify(lv));
|
|
316
322
|
await p.click('#ibBody [data-sort="title"]');
|
|
@@ -325,7 +331,7 @@ const IVREAD = () => {
|
|
|
325
331
|
await view(p, 'stages');
|
|
326
332
|
const bs = await p.evaluate(() => ({ tag: !!document.querySelector('#ibBody .bd-wtag'), cols: [...document.querySelectorAll('#ibBody .bd-kh')].map((h) => h.textContent), strips: [...document.querySelectorAll('#ibBody .bd-kstrip')].map((h) => h.textContent), build: document.querySelectorAll('#ibBody .bd-kc[data-step="4"] .bd-bc').length, drag: document.querySelectorAll('#ibBody .bd-bc[draggable="true"]').length, lanes: document.querySelectorAll('#ibBody .bd-lh').length }));
|
|
327
333
|
// PgKanban: any column folds to a strip with its count; empty ones start folded, and Monitor and Evaluate while nothing in them needs you
|
|
328
|
-
ok('B5 By stage is one column per step with the board\'s counts and the cards; empty columns, and Monitor and Evaluate with nothing for you, start as strips', !bs.tag && bs.cols.join('|') === 'Discover1|Plan1|Build2|Deliver1' && bs.strips.join() === '
|
|
334
|
+
ok('B5 By stage is one column per step with the board\'s counts and the cards; empty columns, and Monitor and Evaluate with nothing for you, start as strips', !bs.tag && bs.cols.join('|') === 'Discover1|Plan1|Build2|Deliver1' && bs.strips.join() === 'Triage,Prioritize,1Monitor,21Evaluate' && bs.build === 2 && bs.drag === 5 && bs.lanes === 0, JSON.stringify(bs));
|
|
329
335
|
await p.click('#ibBody .bd-kstrip[data-colfold="monitor"]');
|
|
330
336
|
ok('B5 a strip opens its column', await p.evaluate(() => !!document.querySelector('#ibBody .bd-kh[data-colfold="monitor"]') && !document.querySelector('#ibBody .bd-kstrip[data-colfold="monitor"]') && document.querySelectorAll('#ibBody .bd-kc[data-step="6"] .bd-bc').length === 1));
|
|
331
337
|
await p.click('#ibBody .bd-kh[data-colfold="build"]');
|
|
@@ -342,7 +348,7 @@ const IVREAD = () => {
|
|
|
342
348
|
/* B6 (premium-agreed-design B2) the timeline: plan against the Jira forecast; every span from Quarter on draws the same rows (feedback batch 7,
|
|
343
349
|
* timeline spans C: TsAllSpans); the scroll itself is checked in board-programs-test.js (T) */
|
|
344
350
|
await view(p, 'time');
|
|
345
|
-
const tl = await p.evaluate(() => ({ spans: [...document.querySelectorAll('#
|
|
351
|
+
const tl = await p.evaluate(() => ({ spans: [...document.querySelectorAll('#bdViewMenu [data-spick]')].map((b) => b.textContent + (b.getAttribute('aria-checked') === 'true' ? '*' : '')).join(), shown: !!document.querySelector('#bdViewMenu [data-spick]'), rows: [...document.querySelectorAll('#ibBody .tg-r .tg-n.ini2 b')].map((b) => b.textContent), bars: document.querySelectorAll('#ibBody .tg-bar').length, none: (document.querySelector('.tg-none') || {}).textContent || '', ask: (document.querySelector('#askDates') || {}).href || '', hid: (document.querySelector('.tg-hid') || {}).textContent || '', lgd: (document.querySelector('.tg-lgd') || {}).textContent || '', today: (document.querySelector('#ibBody .tg-tpill') || {}).textContent === 'Today' }));
|
|
346
352
|
ok('B6 the timeline has six spans and starts on Quarter, one row per initiative; the 4 with no dates are rows too (batch 26 item 8), counted in the foot with an ask to propose dates', tl.shown && tl.spans === 'Sprint,Quarter*,Half,Year,2 yr,5 yr' && tl.rows.length === 7 && ['Usage-based billing', 'Audit log export', 'Refund reason codes', 'Docs search'].every((n) => tl.rows.includes(n)) && tl.bars === 3 && /^4 have no dates/.test(tl.none) && !/Docs search/.test(tl.none) && /\/premium\.html\?ask=board%3Aw1&q=Propose/.test(tl.ask), JSON.stringify(tl));
|
|
347
353
|
ok('B6 Monitor and Evaluate show on the Quarter, with no hidden count in the footer (batch 8 item 2); the legend (PgTimeline: done, planned, the Jira forecast, Milestone (batch 11 item 3), today) and Today are drawn', tl.hid === '' && /Done in Jira/.test(tl.lgd) && /To do/.test(tl.lgd) && /Jira forecast/.test(tl.lgd) && /Milestone/.test(tl.lgd) && /Today/.test(tl.lgd) && tl.today, JSON.stringify(tl));
|
|
348
354
|
ok('B6 the spans help popover went with the theme grouping (TsCGrill): the first head is a plain "Initiative"', await p.evaluate(() => !document.querySelector('#popRules') && !document.querySelector('#ibBody [data-rules]') && /^Initiative/.test(document.querySelector('#ibBody .tg-h .tg-n').textContent)));
|
|
@@ -381,7 +387,7 @@ const IVREAD = () => {
|
|
|
381
387
|
await view(p, 'track');
|
|
382
388
|
|
|
383
389
|
/* B7 the Board has no Documents tab (batch 24 item 7, canvas BbB): an initiative's Documents fold and Search's Documents filter reach the documents */
|
|
384
|
-
ok('B7 the Board has no Documents tab and no Docs chip; Shared is
|
|
390
|
+
ok('B7 the Board has no Documents tab and no Docs chip; Shared with me is the View chip\'s last item (UI grill U2)', await p.evaluate(() => !document.querySelector('#tabDocs') && !document.querySelector('#cDocs') && !document.querySelector('#chDocs') && !document.querySelector('.bd-hd ~ * .bd-tab') && !document.querySelector('#tabShared') && !!document.querySelector('#bdViewMenu [data-vshared]')));
|
|
385
391
|
|
|
386
392
|
/* B13 focus: Escape closes the panel and gives the focus back to the row; the Board never opens the old dialog */
|
|
387
393
|
await p.locator('#ibBody .bt-l[data-row="board:self-serve-v2"] .bt-nm').click(); await until(() => vwOn(p, 'Initiative'));
|
|
@@ -438,7 +444,7 @@ const IVREAD = () => {
|
|
|
438
444
|
/* B13 floors: the phone (AgBoardPhone, AgBoardPhoneSheet, AgBoardTimelinePhone) */
|
|
439
445
|
for (const theme of ['light', 'dark']) {
|
|
440
446
|
const R = await open({ w: 390, h: 844, theme, model: BP.build(FJ.facts()) }), q = R.page;
|
|
441
|
-
const m = await q.evaluate(() => { const small = [...document.querySelectorAll('#
|
|
447
|
+
const m = await q.evaluate(() => { const small = [...document.querySelectorAll('#ibBody .bt-nm, #bdChipset .bd-chip, .bd-tab, #newIni, #bdFind, #bdView, #bdFilter')].filter((b) => !b.closest('[hidden]') && b.getBoundingClientRect().height > 0 && b.getBoundingClientRect().height < 44).map((b) => b.className + ':' + Math.round(b.getBoundingClientRect().height)); const fab = document.querySelector('#czFab').getBoundingClientRect(); return { over: document.documentElement.scrollWidth > innerWidth + 1, small, fabRight: Math.round(innerWidth - fab.right), top: Math.round(document.querySelector('.bd-hd').getBoundingClientRect().height), chips: [...document.querySelectorAll('#bdChipset .bd-chip')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()), rows: document.querySelectorAll('.bd-hd').length + document.querySelectorAll('.bd-chiprow').length, jira: !!document.querySelector('.bd-hd #chJira'), order: [...document.querySelectorAll('.bd-hd button')].filter((b) => b.offsetParent && !b.closest('.bd-grpm')).map((b) => b.id).join() }; });
|
|
442
448
|
ok(`B13 at 390 px (${theme}) the page has no sideways scroll, the top bar is ONE line (batch 28 item 3), the menu sits bottom right, and every control is 44 px`, !m.over && m.small.length === 0 && m.fabRight < 40 && m.top <= 56 && m.rows === 1, JSON.stringify(m));
|
|
443
449
|
ok(`B13 at 390 px (${theme}) the one row is the picker, the view button, the one pill for what needs a look, Find, the tune button and New; no Jira face, no Shared chip, no workflow chips (BhA)`, m.chips.join() === '1131' && !m.jira && m.order === 'bdPick,bdView,chNeed,bdFind,bdFilter,newIni', JSON.stringify(m));
|
|
444
450
|
await q.click('#bdView');
|
|
@@ -468,6 +474,13 @@ const IVREAD = () => {
|
|
|
468
474
|
ok('T a skipped step is a ring that says why: the move\'s reason, or the lane\'s ladder', pr.skip.join() === 'Discover skipped: Moved from Triage to Plan: the PRD came with the ask.' && ds.skip.length === 3 && /The chore lane has no Triage step/.test(ds.skip[0]), JSON.stringify([pr.skip, ds.skip]));
|
|
469
475
|
ok('T the Next cell counts the parts from the records and names the next one', ub.prog === 'PRD 2/6' && ub.line === 'Add the evidence' && pr.prog === '1/4 parts' && pr.line === 'Set the timeline', JSON.stringify([ub, pr]));
|
|
470
476
|
ok('T what waits on you comes first, in blue', rf.st === 'Your verdict' && /s-you/.test(rf.stc) && rf.you && rf.line === 'Give your verdict', JSON.stringify(rf));
|
|
477
|
+
// UI grill U2 took the Board's bell off: what it listed is the pill's "Waits on you" row, which shows only those initiatives
|
|
478
|
+
await needOpen(q);
|
|
479
|
+
const wy = await q.evaluate(() => { const b = document.querySelector('#bdNeedMenu [data-f="you"]'); return b ? b.textContent.trim() : null; });
|
|
480
|
+
if (wy) { await q.click('#bdNeedMenu [data-f="you"]'); await sleep(150); }
|
|
481
|
+
const wyRows = await q.evaluate(() => [...document.querySelectorAll('#ibBody .bt-l')].map((r) => r.dataset.row).join());
|
|
482
|
+
ok('T the pill names what waits on you, and a press shows only those (the bell\'s rows, UI grill U2)', wy === 'Waits on you1' && wyRows === 'board:refund-reason-codes', JSON.stringify([wy, wyRows]));
|
|
483
|
+
await needOpen(q); await q.click('#bdNeedMenu [data-f="you"]'); await sleep(150);
|
|
471
484
|
await q.click('.bt-l[data-row="board:self-serve-v2"] .bt-nm');
|
|
472
485
|
/* re-pointed (the one view): the same records, in the stage card's day clock, the ladder, Linked (a fold of the view) and the Board's own rows */
|
|
473
486
|
const pk = await until(() => q.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden || !v.querySelector('[data-czs-id="drafted"]') || !v.querySelector('.iv')) return null; const sec = (id) => { const x = v.querySelector(`[data-czs-id="${id}"]`); return x ? { n: (x.querySelector('.czs-n') || {}).textContent || '', body: (x.querySelector('.czs-body') || {}).textContent.replace(/\s+/g, ' ').trim() } : null; }; return { meta: v.querySelector('.iv-meta').textContent, where: (v.querySelector('.iv-scm') || {}).textContent, stage: (v.querySelector('.iv-tel-t .iv-shn b') || {}).textContent, stt: !!v.querySelector('.mi-svg .mi-pt:is(.nw, .late, .hold)'), drafted: sec('drafted'), wt: sec('drift') }; }));
|
|
@@ -531,10 +544,12 @@ const IVREAD = () => {
|
|
|
531
544
|
await q.click('#bdPop [data-whynot="Out of scope"]'); await q.fill('#bdPop input[name="why"]', 'Finance owns this report'); await q.click('#bdPop [data-askact="decline-go"]');
|
|
532
545
|
ok('T declining an ask takes a reason, and keeps it', await until(() => R.posts.some((x) => x.path === '/api/boards/asks/decline' && x.body.ask === 'a1' && x.body.why === 'Out of scope: Finance owns this report')), JSON.stringify(R.posts.slice(-2)));
|
|
533
546
|
/* Find, Filter, Metrics, cancelled and archived */
|
|
534
|
-
|
|
535
|
-
|
|
547
|
+
// UI grill U2 (one search): Find opens Search scoped to this Board; its own groups (initiatives, Jira work-items) come first
|
|
548
|
+
await q.click('#bdFind'); await q.waitForSelector('#evSearch:not([hidden])'); await q.fill('#evQ', 'sso');
|
|
549
|
+
const fh = await until(() => q.evaluate(() => { const L = [...document.querySelectorAll('#evRes .ev-mlbl')].map((x) => x.textContent); return L[0] === 'On this Board · Initiatives' && L[1] === 'On this Board · Work-items in Jira' ? { L, first: (document.querySelector('#evRes [data-ev-i="0"] b') || {}).textContent, ph: document.querySelector('#evQ').placeholder, tk: [...document.querySelectorAll('#evRes [data-ev-i]')].filter((b) => /^SSO-\d+/.test(b.textContent)).length } : null; }));
|
|
550
|
+
ok('T Find opens Search scoped to this Board: the initiatives and the Jira work-items that match come first (UI grill U2)', !!fh && fh.first === 'SSO for partners' && fh.tk >= 2 && /^Search this Board, then everywhere$/.test(fh.ph), JSON.stringify(fh));
|
|
536
551
|
await q.keyboard.press('Enter');
|
|
537
|
-
ok('T Enter opens the first hit in the Viewer', await until(async () => (await vwTitle(q)) === 'SSO for partners' && await q.evaluate(() => document.querySelector('#
|
|
552
|
+
ok('T Enter opens the first hit in the Viewer', await until(async () => (await vwTitle(q)) === 'SSO for partners' && await q.evaluate(() => document.querySelector('#evSearch').hidden)));
|
|
538
553
|
await q.keyboard.press('Escape'); await vwShut(q);
|
|
539
554
|
await q.click('#bdFilter'); await q.click('#bdPop [data-flt="owners"][data-v="Lee"]');
|
|
540
555
|
ok('T Filter narrows the rows by owner, and the Showing bar says so', await until(() => q.evaluate(() => [...document.querySelectorAll('#ibBody .bt-l')].map((r) => r.dataset.row).sort().join() === 'board:partner-rate-limits,board:sso-partners' && /ShowingOwner: Lee.*Clear all/.test(document.querySelector('#bdShowing').textContent))));
|
|
@@ -588,19 +603,19 @@ const IVREAD = () => {
|
|
|
588
603
|
const P = await import('/pm/bd-pane.js'), m = document.querySelector('#stage'), cs = (e) => (e ? getComputedStyle(e) : null);
|
|
589
604
|
const sel = [...document.querySelectorAll('#ibBody .sel')].filter((x) => x.offsetParent), s0 = sel[0], c = cs(s0);
|
|
590
605
|
return { view: document.querySelector('#ibBody').dataset.view, desk: m.dataset.bdDesk, fit: P.fit(),
|
|
591
|
-
tabs:
|
|
606
|
+
tabs: document.querySelector('#ibTabs') ? 'present' : 'gone', vbtn: cs(document.querySelector('#bdVieww')).display, pad: cs(m).paddingLeft,
|
|
592
607
|
vw: !!(window.czViewer && window.czViewer.isOpen()), sel: sel.map((x) => x.className.split(' ')[0]), selKey: s0 ? s0.dataset.key || s0.dataset.row : null,
|
|
593
608
|
blue: c ? /inset/.test(c.boxShadow) && c.backgroundColor !== 'rgba(0, 0, 0, 0)' : false, stored: localStorage.getItem('pmos.board.view') };
|
|
594
609
|
});
|
|
595
610
|
const narrowTo = (on, w) => q.evaluate(([o, px]) => { const m = document.querySelector('#stage'); m.style.maxWidth = px ? px + 'px' : ''; m.classList.toggle('cz-pn-narrow', o); }, [on, w]);
|
|
596
611
|
await view(q, 'track');
|
|
597
612
|
const d0 = await st();
|
|
598
|
-
ok('PN1 a wide page panel keeps the desktop view: the stage track, the
|
|
613
|
+
ok('PN1 a wide page panel keeps the desktop view: the stage track, the View chip (UI grill U2), and fit() is about 880 for it', d0.view === 'track' && d0.desk === 'track' && d0.fit === 880 && d0.vbtn !== 'none' && d0.tabs === 'gone', JSON.stringify(d0));
|
|
599
614
|
await view(q, 'list'); const dl = await st(); await view(q, 'track');
|
|
600
615
|
ok('PN1 fit() follows the desktop view: the List needs 360', dl.fit === 360, JSON.stringify(dl));
|
|
601
616
|
await narrowTo(true, 700); await sleep(300);
|
|
602
617
|
const n1 = await st();
|
|
603
|
-
ok('PN2 a narrow page panel on a wide window draws the narrow form: the List, with the phone\'s view switch and its toolbar', n1.view === 'list' && n1.tabs === '
|
|
618
|
+
ok('PN2 a narrow page panel on a wide window draws the narrow form: the List, with the phone\'s view switch and its toolbar', n1.view === 'list' && n1.tabs === 'gone' && n1.vbtn !== 'none', JSON.stringify(n1));
|
|
604
619
|
ok('PN2 fit() still measures the desktop view, so the narrow form does not flip back', n1.desk === 'track' && n1.fit === 880, JSON.stringify(n1));
|
|
605
620
|
await q.click('#ibBody .bd-lrow[data-key="board:usage-billing"]');
|
|
606
621
|
await until(() => vwOn(q, 'Initiative'));
|
|
@@ -612,12 +627,12 @@ const IVREAD = () => {
|
|
|
612
627
|
ok('PN3 the open card is marked in By stage too', n3.sel.join() === 'bd-bc' && n3.selKey === 'board:usage-billing', JSON.stringify(n3));
|
|
613
628
|
await narrowTo(false); await sleep(300);
|
|
614
629
|
const n4 = await st();
|
|
615
|
-
ok('PN4 a wider panel goes back to the desktop view, the Viewer still open and its row marked blue', n4.view === 'track' && n4.vbtn
|
|
630
|
+
ok('PN4 a wider panel goes back to the desktop view, the Viewer still open and its row marked blue', n4.view === 'track' && n4.vbtn !== 'none' && n4.vw && n4.selKey === 'board:usage-billing' && n4.blue, JSON.stringify(n4));
|
|
616
631
|
// the rows that open beside: the row's name in every view, never the grip, never a By stage card
|
|
617
632
|
const src = await q.evaluate(async () => {
|
|
618
633
|
const P = await import('/pm/bd-pane.js'), out = {};
|
|
619
634
|
for (const v of ['track', 'time', 'list', 'stages']) {
|
|
620
|
-
document.querySelector(`#
|
|
635
|
+
document.querySelector(`#bdViewMenu [data-pv="${v}"]`).click(); await new Promise((r) => setTimeout(r, 150));
|
|
621
636
|
const m = [...document.querySelectorAll(P.SOURCES)];
|
|
622
637
|
out[v] = { n: m.length, names: m.every((e) => e.classList.contains('ini2') && !e.closest('[data-grip], .grip, .bd-grip')), cards: document.querySelectorAll(P.CARDS).length };
|
|
623
638
|
}
|
|
@@ -653,8 +668,8 @@ const IVREAD = () => {
|
|
|
653
668
|
/* B13 the Agreed design's look: Plus Jakarta Sans, the soft panel, the chips and the track's rows */
|
|
654
669
|
for (const th of ['light', 'dark']) {
|
|
655
670
|
const R = await open({ w: 1440, h: 900, theme: th }), q = R.page;
|
|
656
|
-
const s = await q.evaluate(() => { const cs = (sel) => getComputedStyle(document.querySelector(sel)); const main = cs('main.bd-main'), row = document.querySelector('.bt-l').getBoundingClientRect(); return { font: cs('body').fontFamily, rad: main.borderTopLeftRadius, bg: main.backgroundColor, chip: Math.round(document.querySelector('#
|
|
657
|
-
ok(`B13 the look of the Agreed design at 1440 px, ${th}: Plus Jakarta Sans, a 28 px panel, 30 px chips, 54 px rows`, /^"?Plus Jakarta Sans/.test(s.font) && s.rad === '28px' && s.chip === 30 && s.row >= 54 && s.row <= 62 &&
|
|
671
|
+
const s = await q.evaluate(() => { const cs = (sel) => getComputedStyle(document.querySelector(sel)); const main = cs('main.bd-main'), row = document.querySelector('.bt-l').getBoundingClientRect(); return { font: cs('body').fontFamily, rad: main.borderTopLeftRadius, bg: main.backgroundColor, chip: Math.round(document.querySelector('#bdView').getBoundingClientRect().height), row: Math.round(row.height), fab: cs('#czFab').borderTopLeftRadius }; });
|
|
672
|
+
ok(`B13 the look of the Agreed design at 1440 px, ${th}: Plus Jakarta Sans, a 28 px panel, 30 px chips, 54 px rows`, /^"?Plus Jakarta Sans/.test(s.font) && s.rad === '28px' && s.chip === 30 && s.row >= 54 && s.row <= 62 && (th === 'light' ? s.bg === 'rgb(255, 255, 255)' : s.bg !== 'rgb(255, 255, 255)'), JSON.stringify(s));
|
|
658
673
|
await R.ctx.close();
|
|
659
674
|
}
|
|
660
675
|
return finish();
|
|
@@ -84,8 +84,8 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
84
84
|
/* the Viewer card (pm/cozy-viewer.js): its title, and the feature its "Waiting for design" card names */
|
|
85
85
|
const vw = (pg) => pg.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden) return null; const ph = v.querySelector('[data-cz-placeholder]'); return { title: (v.querySelector('.cz-vw-title') || {}).textContent || '', wait: ph ? ph.dataset.czPlaceholder : null, text: v.querySelector('.cz-vw-body').textContent }; });
|
|
86
86
|
const vwMoreItem = async (pg, label) => { await pg.click('#czViewer [data-cz-vw="more"]'); await sleep(80); await pg.click(`.cz-vw-menu [role="menuitem"]:has(> span:first-child:text-is("${label}"))`); await sleep(80); };
|
|
87
|
-
/* Delivery trends
|
|
88
|
-
const toTrends = async (pg) => {
|
|
87
|
+
/* re-pointed (U3): Delivery trends left ⋯ and the View chip; ?view=trends, the door the monthly metrics routine opens, is its one way in */
|
|
88
|
+
const toTrends = async (pg) => { const u = new URL(pg.url()); u.searchParams.set('view', 'trends'); await pg.goto(u.href); await until(() => pg.evaluate(() => !!document.querySelector('#bmBody [data-tile]')), 20000); };
|
|
89
89
|
const vwClose = async (pg) => { await pg.evaluate(() => window.czViewer && window.czViewer.close()); await until(() => pg.evaluate(() => { const v = document.querySelector('#czViewer'); return !v || v.hidden; })); };
|
|
90
90
|
|
|
91
91
|
const A = await open();
|
|
@@ -120,32 +120,24 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
120
120
|
await p.keyboard.press('Escape');
|
|
121
121
|
/* re-pointed (premium-uncovered-features, IsMenus): the filter is chips by status, owner and kind */
|
|
122
122
|
ok('B1 the filter is chips by status, owner and kind; the owners are the goals\' owners and the work that moves them', fl.heads === 'Status,Owner,Kind' && fl.status === 'Off track,On track,Hit,No readings' && fl.owners === 'Dara,Lee,Mira' && fl.kinds === 'Goals,Health budgets' && /status, owner or kind/.test(fl.label), JSON.stringify(fl));
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
ok('B1 ⋯ holds Reports and dashboards
|
|
126
|
-
await vwClose(p);
|
|
127
|
-
// re-pointed (batch 16 item 6, GsMore; Fewer menus brief 5): Sources lives in Settings › Connectors, so ⋯ › Sources opens it there
|
|
128
|
-
await p.click('#moreB'); await p.click('#moreMenu [data-more="sources"]'); const so = await until(() => p.evaluate(() => { const st = document.querySelector('#evSettings'); const a = st && !st.hidden && st.querySelector('.ev-st-nav [aria-current="page"]'); return a ? a.dataset.evSec : null; }), 6000);
|
|
129
|
-
ok('B1 Sources opens Settings on Connectors, where the sources live', so === 'connectors', JSON.stringify(so));
|
|
130
|
-
await p.keyboard.press('Escape'); await until(() => p.evaluate(() => { const sc = document.querySelector('#evStScrim'); return !sc || sc.hidden; }), 3000);
|
|
123
|
+
// re-pointed (U3): ⋯ is Reports and dashboards and Export CSV; About moved to the guide, Sources is Settings › Connectors, Metrics and Delivery trends left the menu
|
|
124
|
+
await p.click('#moreB'); const mo = await p.evaluate(() => [...document.querySelectorAll('#moreMenu [data-more]')].map((b) => b.dataset.more + ':' + (b.disabled ? 'off' : 'on')).join()); await p.keyboard.press('Escape');
|
|
125
|
+
ok('B1 ⋯ holds Reports and dashboards and Export CSV only (U3)', mo === 'library:on,export:on', mo);
|
|
131
126
|
{ const R = await open(), q = R.page; await q.route('**/api/insights-records/export*', (r) => r.fulfill({ status: 200, contentType: 'text/csv', headers: { 'Content-Disposition': 'attachment; filename="insights-goals.csv"' }, body: 'id\n' }));
|
|
132
127
|
const [rq] = await Promise.all([q.waitForRequest(/\/api\/insights-records\/export/), (async () => { await q.click('#moreB'); await q.click('#moreMenu [data-more="export"]'); })()]);
|
|
133
128
|
const u = new URL(rq.url());
|
|
134
129
|
ok('B1 Export asks the export route for this workspace\'s goals as CSV', u.searchParams.get('ws') === 'w1' && u.searchParams.get('board') === 'w1', u.search); await R.ctx.close(); }
|
|
135
130
|
await vwClose(p);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
await p.click('#findX'); await sleep(100);
|
|
142
|
-
ok('B1 Find narrows the goals as you type, and its close shows every goal again', fd === 'krm-up' && (await p.evaluate(() => document.querySelectorAll('#goalTbl [data-goal]').length)) === 5 && await p.evaluate(() => document.querySelector('#findRow').hidden), fd);
|
|
143
|
-
await p.click('#findB'); await p.fill('#findIn', 'activation'); await sleep(100); await p.click('#findRes [data-fo="goal"]');
|
|
131
|
+
// UI grill U2 (one search): Find opens Search scoped to Intelligence; its goals, reports and dashboards come first, in groups
|
|
132
|
+
await p.click('#findB'); await p.waitForSelector('#evSearch:not([hidden])'); await p.fill('#evQ', 'partner');
|
|
133
|
+
const fr = await until(() => p.evaluate(() => { const L = [...document.querySelectorAll('#evRes .ev-mlbl')].map((h) => h.textContent); return L.length && L[0] === 'In Intelligence · Goals' ? { heads: L.filter((x) => /^In Intelligence/.test(x)).join(), goals: [...document.querySelectorAll('#evRes [data-ev-i]')].filter((b) => /Goal$/.test(b.textContent)).length, ph: document.querySelector('#evQ').placeholder, rows: document.querySelectorAll('#goalTbl [data-goal]').length } : null; }));
|
|
134
|
+
ok('B1 Find opens Search scoped to Intelligence: its goals, reports and dashboards that hold the words come first; the table stays whole', !!fr && fr.heads === 'In Intelligence · Goals,In Intelligence · Reports,In Intelligence · Dashboards' && fr.goals === 3 && fr.ph === 'Search Intelligence, then everywhere' && fr.rows === 4, JSON.stringify(fr));
|
|
135
|
+
await p.fill('#evQ', 'activation'); await sleep(400); await p.keyboard.press('Enter');
|
|
144
136
|
const fo = await until(() => vw(p));
|
|
145
|
-
ok('B1 a goal found opens its detail, and
|
|
137
|
+
ok('B1 a goal found opens its detail, and Search closes', fo && fo.title === 'Partner activation' && await p.evaluate(() => document.querySelector('#evSearch').hidden), JSON.stringify(fo));
|
|
146
138
|
await vwClose(p);
|
|
147
139
|
await p.click('#viewChip'); const vm = await p.evaluate(() => ({ head: document.querySelector('#viewMenu .ins-mh').textContent, items: [...document.querySelectorAll('#viewMenu [data-view]')].map((b) => b.dataset.view + ((b.querySelector('.k') || {}).textContent ? ':' + b.querySelector('.k').textContent : '')).join(), nd: !!document.querySelector('#viewMenu [data-newdash]') })); await p.keyboard.press('Escape');
|
|
148
|
-
ok('B1 the Dashboard menu lists every view with the default one marked, then Delivery trends
|
|
140
|
+
ok('B1 the Dashboard menu lists every view with the default one marked, then New dashboard; Delivery trends is not in it (IsMenus, U3)', vm.head === 'Dashboard' && vm.items === 'all:default,pd-1,p:Growth,p:Reliability' && vm.nd, JSON.stringify(vm));
|
|
149
141
|
await p.click('#prodPick'); const pr = await p.evaluate(() => ({ chip: document.querySelector('#prodPick').getAttribute('aria-label'), items: [...document.querySelectorAll('#ppMenu [data-pp] b')].map((b) => b.textContent).join(), all: !!document.querySelector('#ppMenu [data-pp="*"]'), add: !!document.querySelector('#ppMenu [data-pp-add]') })); await p.keyboard.press('Escape');
|
|
150
142
|
ok('B1 the product chip is the one picker Home and Board share; with one product it lists that one and Add a product, no All', pr.chip === 'Products: pmos' && pr.items === 'pmos' && !pr.all && pr.add, JSON.stringify(pr));
|
|
151
143
|
}
|
|
@@ -164,8 +156,9 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
164
156
|
ok('G1 a goal with one reading draws no line and no pace: it shows the one value and No trend yet (IsMenus)', /1 reading/.test(nps) && /No trend yet/.test(nps) && /needs a second reading/.test(nps) && /No initiative anchors to it/.test(nps), nps);
|
|
165
157
|
const up = await txt('#goalTbl [data-goal="krm-up"] .pace');
|
|
166
158
|
ok('G1 a percentage pace never passes 100%, and a goal ahead of its time says so', /^≈100% by Dec 31/.test(up) && /ahead: 67% done, 39% of time gone/.test(up), up);
|
|
167
|
-
|
|
168
|
-
|
|
159
|
+
// re-pointed (U3, UI grill item 4): a goal with no reading is not a row; it waits in "Waiting on a source" under its source, with no number
|
|
160
|
+
const ch = await p.evaluate(() => ({ row: !!document.querySelector('#goalTbl [data-goal="krm-churn"]'), wait: ((document.querySelector('#waitList [data-goal="krm-churn"]') || {}).textContent || ''), src: ((document.querySelector('#waitList [data-goal="krm-churn"]') || { closest: () => null }).closest('.ins-wrow') || { textContent: '' }).textContent }));
|
|
161
|
+
ok('G1 a goal with no reading is not a row; it waits in Waiting on a source, with no number', !ch.row && /churn/i.test(ch.wait) && /No reading yet|type its readings/.test(ch.src) && !/\d+%/.test(ch.src), JSON.stringify(ch));
|
|
169
162
|
}
|
|
170
163
|
/* G1 health budgets (D59): each budget of the registry, read as its share of the board's open initiatives against its cap */
|
|
171
164
|
{
|
|
@@ -238,7 +231,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
238
231
|
const f = await p.evaluate(() => ({ rows: [...document.querySelectorAll('#goalTbl [data-goal]')].map((r) => r.dataset.goal).join(), dot: !document.querySelector('#filtDot').hidden }));
|
|
239
232
|
ok('G1 filtering by owner keeps the goals that owner\'s work moves, and the filter shows it is on', f.rows === 'krm-act,krm-up' && f.dot, JSON.stringify(f));
|
|
240
233
|
await p.click('#filtB'); await p.click('#filtMenu [data-fclr]'); await sleep(100);
|
|
241
|
-
ok('G1 Clear the filter shows every goal again', (await p.evaluate(() => document.querySelectorAll('#goalTbl [data-goal]').length)) ===
|
|
234
|
+
ok('G1 Clear the filter shows every goal again', (await p.evaluate(() => document.querySelectorAll('#goalTbl [data-goal]').length)) === 4 && await p.evaluate(() => document.querySelector('#filtDot').hidden));
|
|
242
235
|
}
|
|
243
236
|
/* G1 Delivery trends: six compact tiles from the Board's measures, honest where a measure is not counted */
|
|
244
237
|
{
|
|
@@ -264,7 +257,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
264
257
|
ok('G1 No target clears the number', sent[4][1].key === 'idle' && sent[4][1].target === null && sent[5][1].dir === 'none', JSON.stringify(sent.slice(4)));
|
|
265
258
|
await q.click('#bmBody [data-tile="scope"]'); await q.click('#czViewer [data-tgset]'); await until(() => q.evaluate(() => !!document.querySelector('#tgPop'))); await q.keyboard.press('Escape');
|
|
266
259
|
ok('G1 Escape closes the target and gives the tile its focus back', await q.evaluate(() => !document.querySelector('#tgPop') && document.activeElement && document.activeElement.dataset.tile === 'scope'));
|
|
267
|
-
await
|
|
260
|
+
await sleep(150); // still in Delivery trends (toTrends above); the View chip no longer lists it (U3)
|
|
268
261
|
const tv = await q.evaluate(() => { const T = [...document.querySelectorAll('#bmBody [data-tile]')].map((t) => t.getBoundingClientRect()); return { name: document.querySelector('#viewName').textContent, h: document.querySelector('.ins-trends.big h2').textContent, rows: [...document.querySelectorAll('#goalTbl [data-goal]')].filter((r) => !r.closest('.ins-mvd')).length, cols: T.filter((t) => Math.abs(t.top - T[0].top) < 2).length, tg: [...document.querySelectorAll('#bmBody .tg')].map((x) => x.textContent).join('|') }; });
|
|
269
262
|
ok('G1 Delivery trends is a view of its own (only Goals that moved lists goals, batch 22 item 4): the six tiles three to a row, each with its target line', tv.name === 'Delivery trends' && tv.h === 'Delivery trends' && tv.rows === 0 && tv.cols === 3 && tv.tg.split('|').length === 6, JSON.stringify(tv));
|
|
270
263
|
await R.ctx.close();
|
|
@@ -390,8 +383,8 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
390
383
|
const R = await open(), q = R.page;
|
|
391
384
|
await q.click('#moreB'); await q.click('#moreMenu [data-more=\"library\"]');
|
|
392
385
|
/* re-pointed (premium-uncovered-features, IsLibrary): the bar hands New report to Home, Found in your work is cards, the reports are Report · Next · Status */
|
|
393
|
-
const lb = await q.evaluate(() => ({ side: !document.querySelector('#libSide').hidden, nr: document.querySelector('#newRep')
|
|
394
|
-
ok('L1 Reports and dashboards opens as a side panel from
|
|
386
|
+
const lb = await q.evaluate(() => ({ side: !document.querySelector('#libSide').hidden, nr: !!document.querySelector('#newRep'), found: document.querySelector('#listRows .ins-fdh b').textContent, fcards: [...document.querySelectorAll('#listRows .ins-fcard')].map((c) => c.dataset.f + ':' + [...c.querySelectorAll('.ins-btn[data-fx]')].map((b) => b.textContent).join('/')).join(), heads: [...document.querySelectorAll('#repAsks .ins-rlh span')].map((s) => s.textContent).join('|'), rows: [...document.querySelectorAll('#repNeeds .ins-rl:not(.ins-rlh), #listRows .ins-rl:not(.ins-rlh)')].map((r) => r.querySelector('.nm b').textContent + '|' + r.querySelector('.nx').textContent + '|' + r.querySelector('.st').textContent).join(' / '), needs: [...document.querySelectorAll('#repNeeds .ins-nrow .nm b')].map((b) => b.textContent).join('|'), setups: document.querySelectorAll('#repNeeds [data-setup], #listRows [data-setup]').length, asks: new Set([...document.querySelectorAll('#repNeeds [data-ask], #listRows [data-ask]')].map((e) => e.dataset.ask)).size, cards: [...document.querySelectorAll('#listRows .ins-dcard')].map((c) => c.dataset.d + (c.querySelector('.ins-pinned') ? '*' : '')).join(), cap: document.querySelector('#repCap').textContent, old: !!document.querySelector('#listSeg, #sugB') }));
|
|
387
|
+
ok('L1 Reports and dashboards opens as a side panel from ⋯ with no + (U3: the bar\'s report icon is the one starter), and Found in your work holds the finding as a card', lb.side && !lb.nr && lb.found === 'Found in your work · 1' && lb.fcards === 'f-1:Set it up/Not a report' && lb.cap === '9' && !lb.old, JSON.stringify(lb));
|
|
395
388
|
ok('L1 the reports table is Report, Next and Status (what needs you first, redesign A); a draft says "Draft ready for" its date; a request says Working; a ready proposal waits in Needs you (redesign R)', lb.heads === 'Report|Next|Status' && /Draft ready for Oct 14/.test(lb.rows) && /Partner update\|First draft [^|]+\|Runs every other monday/i.test(lb.rows) && /(^|\|)Churn for finance(\||$)/.test(lb.needs) && lb.setups === 1 && lb.asks === 2, JSON.stringify([lb.rows, lb.needs]));
|
|
396
389
|
ok('L1 dashboards are cards; only the pinned one carries the pin', lb.cards === 'all*,pd-1,p:Growth,p:Reliability', lb.cards);
|
|
397
390
|
const rs = []; await q.route('**/api/report-setups/*', (r) => { rs.push([new URL(r.request().url()).pathname.replace('/api/report-setups/', ''), JSON.parse(r.request().postData() || '{}')]); r.fulfill({ contentType: 'application/json', body: '{"ok":true,"drafted":{"slot":"2026-10-23","path":"planning/reports/x/2026-10-23.md"}}' }); });
|
|
@@ -419,7 +412,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
419
412
|
await vwClose(q);
|
|
420
413
|
ok('L2 every Library press went to a report-setups route', R.posts.every((x) => /^POST \/api\/report-setups\/(setup|pause|change)$/.test(x)), R.posts.join());
|
|
421
414
|
await q.click('#listRows [data-d="p:Reliability"]'); await sleep(150);
|
|
422
|
-
ok('L3 a dashboard card closes the panel and opens the key results on that view', (await txt('#viewName', q)) === 'Reliability' && (await q.evaluate(() => document.querySelector('#libSide').hidden)) && (await q.evaluate(() => [...document.querySelectorAll('#goalTbl [data-goal]')].map((r) => r.dataset.goal).join())) === 'krm-up
|
|
415
|
+
ok('L3 a dashboard card closes the panel and opens the key results on that view', (await txt('#viewName', q)) === 'Reliability' && (await q.evaluate(() => document.querySelector('#libSide').hidden)) && (await q.evaluate(() => [...document.querySelectorAll('#goalTbl [data-goal]')].map((r) => r.dataset.goal).join())) === 'krm-up' && (await q.evaluate(() => !!document.querySelector('#waitList [data-goal="krm-churn"]')))); // re-pointed (U3): churn has no reading, so it waits in the list
|
|
423
416
|
await q.click('#moreB'); await q.click('#moreMenu [data-more=\"library\"]'); await q.locator('#repBody [data-rpt]').first().click(); // a report file with no setup opens straight in the reader
|
|
424
417
|
ok('L4 a report opens in the page\'s reader, not the console (premium-report-read R1; re-pointed by premium-agreed-design: the reader is the report panel in the Viewer card)', await until(() => q.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) .vz-rp0')), 5000) && /premium-intelligence\.html/.test(q.url()), q.url());
|
|
425
418
|
ok('L4 a draft report has Issue it in the reader, so nothing sends you to the console to issue it', await until(() => q.evaluate(() => !!document.querySelector('#czViewer .vz-rp0 .rp-sum [data-r="issue"]')), 8000) && await q.evaluate(() => !document.querySelector('#czViewer a[href*="console.html"]')));
|
|
@@ -486,7 +479,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
486
479
|
const hit = (b) => Math.max(b.getBoundingClientRect().height, parseFloat(getComputedStyle(b, '::after').height) || 0);
|
|
487
480
|
const small = [...document.querySelectorAll('#insBar button, #askWhy, #goalCards .ins-card, #czFab')].filter((b) => vis(b) && hit(b) < 44).map((b) => (b.id || b.className) + ':' + Math.round(hit(b)));
|
|
488
481
|
return { over: document.documentElement.scrollWidth > innerWidth + 1, small, table: getComputedStyle(document.querySelector('#goalTbl')).display, cards: [...document.querySelectorAll('#goalCards .ins-card')].map((c) => c.dataset.goal + ':' + ((c.querySelector('.ins-ch .cz-pill') || {}).textContent || '')).join() }; });
|
|
489
|
-
ok(`I11 at 390 px (${theme}) the goals are cards with their status, the table is hidden, there is no sideways scroll and every control is 44 px`, !m.over && m.small.length === 0 && m.table === 'none' && m.cards === 'krm-act:Behind,krm-up:Ahead,krm-ttfc:Behind,krm-nps:Behind
|
|
482
|
+
ok(`I11 at 390 px (${theme}) the goals are cards with their status, the table is hidden, there is no sideways scroll and every control is 44 px`, !m.over && m.small.length === 0 && m.table === 'none' && m.cards === 'krm-act:Behind,krm-up:Ahead,krm-ttfc:Behind,krm-nps:Behind', JSON.stringify(m)); // re-pointed (U3): krm-churn has no reading, so it is in the waiting list, not a card
|
|
490
483
|
await R.ctx.close();
|
|
491
484
|
}
|
|
492
485
|
|
|
@@ -500,7 +493,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
500
493
|
const ctx = await browser.newContext({ viewport: { width: 1280, height: 900 } }), pg = await ctx.newPage(), errs = [];
|
|
501
494
|
pg.on('pageerror', (e) => errs.push(String(e)));
|
|
502
495
|
await pg.goto(BASE + '/premium-insights.html');
|
|
503
|
-
ok('E4 the real page lists the key results of this repository\'s OKR file with no reading, or says there is no goal, and has no script error (redesign A)', await until(() => pg.evaluate(() => (/^I read your OKR file/.test(document.querySelector('#brief').textContent) && !!document.querySelector('#goalTbl [data-kr]')) || (/has no goal yet/.test(document.querySelector('#brief').textContent) && /No key result is recorded/.test(document.querySelector('#goalTbl').textContent))), 20000) && errs.length === 0, errs.join(' | '));
|
|
496
|
+
ok('E4 the real page lists the key results of this repository\'s OKR file with no reading, or says there is no goal, and has no script error (redesign A)', await until(() => pg.evaluate(() => (/^I read your OKR file/.test(document.querySelector('#brief').textContent) && !!document.querySelector('#goalTbl [data-kr], #waitList [data-kr]')) || (/has no goal yet/.test(document.querySelector('#brief').textContent) && /No key result is recorded/.test(document.querySelector('#goalTbl').textContent))), 20000) && errs.length === 0, errs.join(' | '));
|
|
504
497
|
await ctx.close();
|
|
505
498
|
}
|
|
506
499
|
{
|
|
@@ -540,7 +533,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
540
533
|
const krFile = path.join(dir, 'planning', 'records', 'kr-metrics.jsonl'), recs = () => fs.readFileSync(krFile, 'utf8').trim().split('\n').map((x) => JSON.parse(x));
|
|
541
534
|
const landed = await until(() => /Weekly partners/.test(fs.readFileSync(krFile, 'utf8')), 8000);
|
|
542
535
|
const rec = landed ? recs().find((x) => x.fields && x.fields.metric === 'Weekly partners') : null;
|
|
543
|
-
ok('E10 New goal on the real page adds a KR metric record with its type, direction, numbers, date, period, objective, owner and source, and the page draws it', !!rec && rec.fields.type === 'Count' && rec.fields.direction === 'up' && rec.fields.baseline === 5 && rec.fields.target === 9 && rec.fields.pillar === 'Growth' && rec.fields.owner === 'Lee' && rec.fields.source === 'file' && rec.fields.period.kind === 'Quarter' && /^\d{4}-\d{2}-\d{2}$/.test(rec.fields.by) && await until(() => pg.evaluate(() => [...document.querySelectorAll('#goalTbl .ins-row b')].some((b) => b.textContent === 'Weekly partners')), 8000), JSON.stringify(rec));
|
|
536
|
+
ok('E10 New goal on the real page adds a KR metric record with its type, direction, numbers, date, period, objective, owner and source, and the page draws it', !!rec && rec.fields.type === 'Count' && rec.fields.direction === 'up' && rec.fields.baseline === 5 && rec.fields.target === 9 && rec.fields.pillar === 'Growth' && rec.fields.owner === 'Lee' && rec.fields.source === 'file' && rec.fields.period.kind === 'Quarter' && /^\d{4}-\d{2}-\d{2}$/.test(rec.fields.by) && await until(() => pg.evaluate(() => [...document.querySelectorAll('#goalTbl .ins-row b, #waitList .ins-wkr')].some((b) => b.textContent.trim() === 'Weekly partners')), 8000), JSON.stringify(rec)); // U3: with no reading yet it waits in the list
|
|
544
537
|
const post = (route, b, h = H) => fetch(base2 + '/api/insights-records/' + route, { method: 'POST', headers: h, body: JSON.stringify(Object.assign({ ws: m.board.ws, board: m.board.id }, b)) }).then(async (x) => ({ status: x.status, body: await x.json() }));
|
|
545
538
|
const bad1 = await post('goal', { name: 'Wrong way', type: 'Count', direction: 'Up', baseline: 9, target: 5, due: '2026-12-31' });
|
|
546
539
|
const done = await post('goal', { name: 'SOC 2 report', type: 'Done or not', due: '2026-12-15', steps: ['Scope', 'Audit'] });
|
|
@@ -613,7 +606,7 @@ const BMR = { ok: true, state: 'ready', model: { tiles: [
|
|
|
613
606
|
if (!phone) {
|
|
614
607
|
await toTrends(R.page);
|
|
615
608
|
const t = await R.page.evaluate(() => { const tiles = [...document.querySelectorAll('#bmBody [data-tile]')].map((x) => x.getBoundingClientRect()); return { n: tiles.length, tileH: tiles.length ? Math.round(tiles[0].height) : 0, over: document.documentElement.scrollWidth > innerWidth }; });
|
|
616
|
-
ok('I11 at 1440 px
|
|
609
|
+
ok('I11 at 1440 px ?view=trends opens its own view with the six tiles, no sideways scroll', t.n === 6 && t.tileH > 0 && !t.over, JSON.stringify(t));
|
|
617
610
|
}
|
|
618
611
|
await R.ctx.close();
|
|
619
612
|
}
|
|
@@ -67,8 +67,8 @@ const ready = (model) => ({ status: 200, body: { ok: true, state: 'ready', model
|
|
|
67
67
|
await q.route('**/api/board-metric-targets/save', (r) => { saves.push(JSON.parse(r.request().postData() || '{}')); return r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, targets: {} }) }); });
|
|
68
68
|
await q.route('**/api/briefing-premium/**', (r) => r.fulfill({ contentType: 'application/json', body: '{"ok":true,"turns":[],"working":false}' }));
|
|
69
69
|
await q.goto(BASE + '/premium-intelligence.html');
|
|
70
|
-
// Delivery trends
|
|
71
|
-
await until(() => q.evaluate(() => !!document.querySelector('#moreB')), 20000); await q.
|
|
70
|
+
// re-pointed (U3): Delivery trends left ⋯; ?view=trends, the door the monthly metrics routine opens, is its one way in
|
|
71
|
+
await until(() => q.evaluate(() => !!document.querySelector('#moreB')), 20000); await q.goto(BASE + '/premium-intelligence.html?view=trends');
|
|
72
72
|
const v = await until(async () => { const x = await q.evaluate(() => Object.fromEntries([...document.querySelectorAll('#bmBody [data-tile]')].map((e) => [e.dataset.tile, e.querySelector('.v').textContent]))); return x.corrections && x.corrections !== 'Reading' ? x : null; }, 20000);
|
|
73
73
|
ok('C10 Insights\' Delivery trends show the Board\'s measures with the same values', !!v && v.corrections === '10.0' && v.merges === '3' && v.idle === '1', JSON.stringify(v));
|
|
74
74
|
// premium-uncovered-features (IsTarget): a tile opens the target popover under it, and the number goes to the Board's target route.
|
|
@@ -31,7 +31,7 @@ const finish = async (code) => {
|
|
|
31
31
|
};
|
|
32
32
|
process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
33
33
|
|
|
34
|
-
const row = (id, title, o) => ({ id, title, lane: 'feature', stage: 'Build', cat: 'Do', owner: 'Wawan', anchor: 'q4-2026:o3:kr1', horizon: 'now', status: 'on track', start: null, end: null, progress: 30, warnings: [], rank: 0, health: 'on', updated: '2026-10-15T08:00:00.000Z', reading: 'build', stageSource: 'derived', dupOf: null, ...o });
|
|
34
|
+
const row = (id, title, o) => ({ id, title, lane: 'feature', stage: 'Build', cat: 'Do', owner: 'Wawan', anchor: 'q4-2026:o3:kr1', horizon: 'now', status: 'on track', signal: { source: 'Jira', readAt: '2026-10-15T08:00:00.000Z' }, start: null, end: null, progress: 30, warnings: [], rank: 0, health: 'on', updated: '2026-10-15T08:00:00.000Z', reading: 'build', stageSource: 'derived', dupOf: null, ...o });
|
|
35
35
|
const EXTRA = [
|
|
36
36
|
row('email-otp', 'Email OTP (passwordless login for every member)', { start: '2026-07-01', end: '2027-06-10', status: 'on hold', holds: [{ from: '2026-08-25', to: null, back: '2027-03-01', reason: 'Waits on the SMS vendor contract' }], stopped: { state: 'on-hold', reason: 'Waits on the SMS vendor contract', at: '2026-08-25T09:00:00.000Z', back: '2027-03-01' } }),
|
|
37
37
|
row('lightbox', 'Lightbox UI Adjustments', { start: '2026-08-10', end: '2026-10-12', status: 'late', progress: 80 }),
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,84 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.539.0",
|
|
4
|
+
"at": "2026-11-08T04:03:50.219Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1261,
|
|
9
|
+
"t": "Full autonomy now (D106): class A/B changes apply by themselves with Undo",
|
|
10
|
+
"s": "Full autonomy now: class A/B changes apply by themselves with Undo",
|
|
11
|
+
"k": "new"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"v": "0.538.0",
|
|
17
|
+
"at": "2026-11-08T03:45:27.128Z",
|
|
18
|
+
"f": 4,
|
|
19
|
+
"prs": [
|
|
20
|
+
{
|
|
21
|
+
"n": 1254,
|
|
22
|
+
"t": "Declared background job graph, a keep rate for every ✦ job, and jobs that learn from ✕ (OS evaluation T1)",
|
|
23
|
+
"s": "Declared background job graph, a keep rate for every ✦ job, and jobs that learn from ✕ (OS evaluation T1)",
|
|
24
|
+
"k": "new"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"n": 1257,
|
|
28
|
+
"t": "One goal source — OKR key results are the goals, KR metric records their readings (OS evaluation T2)",
|
|
29
|
+
"s": "One goal source — OKR key results are the goals, KR metric records their readings (OS evaluation T2)",
|
|
30
|
+
"k": "new"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"n": 1256,
|
|
34
|
+
"t": "No status renders without a read behind it (OS evaluation T3)",
|
|
35
|
+
"s": "No status renders without a read behind it (OS evaluation T3)",
|
|
36
|
+
"k": "new"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"n": 1260,
|
|
40
|
+
"t": "The Board and Home open the same initiative view (UI grill U1, part 1)",
|
|
41
|
+
"s": "The Board and Home open the same initiative view (UI grill U1, part 1)",
|
|
42
|
+
"k": "new"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"n": 1258,
|
|
46
|
+
"t": "Role agents under the chief of staff (backend)",
|
|
47
|
+
"s": "Role agents under the chief of staff (backend)",
|
|
48
|
+
"k": "new"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"n": 1262,
|
|
52
|
+
"t": "Intelligence shows only key results with a reading, one report starter (UI grill U3)",
|
|
53
|
+
"s": "Intelligence shows only key results with a reading, one report starter (UI grill U3)",
|
|
54
|
+
"k": "new"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"n": 1259,
|
|
58
|
+
"t": "Settings from nine sections to five, old redirect pages folded (UI grill U4)",
|
|
59
|
+
"s": "Settings from nine sections to five, old redirect pages folded (UI grill U4)",
|
|
60
|
+
"k": "new"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"n": 1263,
|
|
64
|
+
"t": "Opening an initiative never moves its stage",
|
|
65
|
+
"s": "Opening an initiative never moves its stage",
|
|
66
|
+
"k": "fix"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"n": 1255,
|
|
70
|
+
"t": "Loop telemetry, corrections from evidence, builder model, Work-Item lines, verifier after merge",
|
|
71
|
+
"s": "Loop telemetry, corrections from evidence, builder model, Work-Item lines, verifier after merge",
|
|
72
|
+
"k": "new"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"n": 1264,
|
|
76
|
+
"t": "Board toolbar of seven, one search (UI grill U2)",
|
|
77
|
+
"s": "Board toolbar of seven, one search (UI grill U2)",
|
|
78
|
+
"k": "new"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
2
82
|
{
|
|
3
83
|
"v": "0.537.0",
|
|
4
84
|
"at": "2026-11-05T23:09:31.438Z",
|