Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
test(view): use landed and shipped roadmap receipts [N26]
Corey Olsoncb661ca7812d
diff --git a/test/cockpit/fixture.js b/test/cockpit/fixture.jsindex 28039b07..c2c88411 100644--- a/test/cockpit/fixture.js+++ b/test/cockpit/fixture.js@@ -1116,9 +1116,9 @@ async function readRoadmap(chrome) {const bar = card.querySelector('.milestone-progress');return {name: card.querySelector('h2').innerText,- count: card.querySelector('.milestone-count')?.innerText ?? null,+ count: card.querySelector('.roadmap-left [aria-label]')?.getAttribute('aria-label') ?? card.querySelector('.milestone-count')?.innerText ?? null,filled: bar ? Math.round(1000 * bar.querySelector('rect').getBoundingClientRect().width / bar.getBoundingClientRect().width) / 1000 : null,- progress: bar ? [Number(bar.getAttribute('aria-valuenow')), Number(bar.getAttribute('aria-valuemax'))] : null,+ progress: bar?.matches('.roadmap-summary-bar') ? [Number(bar.querySelector('[data-summary-segment=landed]').dataset.count), Number(bar.dataset.total)] : bar ? [Number(bar.getAttribute('aria-valuenow')), Number(bar.getAttribute('aria-valuemax'))] : null,empty: card.querySelector('.milestone-empty')?.innerText ?? null,note: card.querySelector('.milestone-note')?.innerText ?? null,rows: [...card.querySelectorAll('.milestone-item')].map((row) => {diff --git a/test/cockpit/roadmap.test.js b/test/cockpit/roadmap.test.jsindex 0a338bcb..825ad27c 100644--- a/test/cockpit/roadmap.test.js+++ b/test/cockpit/roadmap.test.js@@ -15,6 +15,14 @@ async function openRoadmapItem(chrome, id) {await press(chrome, row + ".parentElement.querySelector('.milestone-why a[data-go]')");}+/** Record a real trunk merge before reporting a fixture item as landed. */+function landRoadmapItem(box, p, id) {+ box.git(p.repo, 'merge', '--no-ff', '--no-edit', p.itemBranches.get(`${p.baseBranch}:${id}`));+ const commit = box.git(p.repo, 'rev-parse', 'HEAD');+ box.run(p.repo, 'merged', String(id), commit);+ return commit;+}+test('Roadmap references stay inline and rows expand before opening Items [N26,N38]', { timeout: 90_000 }, async (t) => {const executable = chromeExecutable();if (!executable) return t.skip('Install Chrome or set PULLBOARD_CHROME for prose-reference checks.');@@ -145,8 +153,8 @@ test('the roadmap reads every item as the Items tab does, opens each one, anothe{ id: '#3', label: 'sent back', tone: 'no' },{ id: '#4', label: 'to verify', tone: 'warn' },{ id: 'beacon#1', label: 'sent back', tone: 'no' },- { id: '#1', label: 'verified', tone: 'ok' },- { id: '#2', label: 'verified', tone: 'ok' },+ { id: '#1', label: 'landed', tone: 'ok' },+ { id: '#2', label: 'accepted', tone: 'ok' },{ id: '#5', label: 'building', tone: 'busy' },{ id: '#6', label: 'unclaimed', tone: 'free' },];@@ -180,10 +188,10 @@ test('the roadmap reads every item as the Items tab does, opens each one, anotheassert.ok(seen.document <= seen.client && seen.body <= seen.client, `${width}: no sideways scroll: ${JSON.stringify(seen)}`);assert.deepEqual(seen.cards.map((card) => card.name), ['Launch', 'Next', 'Later'], `${width}: a card for each milestone, in order`);assert.deepEqual(seen.cards.map((card) => card.note), ['Ships when the review lands; your call on the name.', 'Queued behind Launch.', 'Ideas not filed yet.'], `${width}: each card's note`);- assert.deepEqual(seen.cards.map((card) => [card.count, card.progress, card.filled]), [['2/5 done', [2, 5], 0.4], ['0/2 done', [0, 2], 0], [null, null, null]], `${width}: counts and bars say how many visible items are verified`);- assert.deepEqual([seen.cards[2].empty, seen.cards[2].rows.length], ['No items yet.', 0], `${width}: an empty milestone says so, with no bar or count`);+ assert.deepEqual(seen.cards.map((card) => [card.count, card.progress, card.filled]), [['1/5 landed', [1, 5], 0.2], ['0/2 landed', [0, 2], 0], ['0/0 landed', [0, 0], 0]], `${width}: counts and bars say how many retained items landed`);+ assert.deepEqual([seen.cards[2].empty, seen.cards[2].rows.length], ['No items yet.', 0], `${width}: an empty milestone says so with zero summary counts`);const rows = seen.cards.flatMap((card) => card.rows);- assert.deepEqual(rows.map(({ id, label, tone }) => ({ id, label, tone })), words, `${width}: each chip shows the word and colour the Items tab gives its item's state`);+ assert.deepEqual(rows.map(({ id, label, tone }) => ({ id, label, tone })), words, `${width}: each roadmap chip distinguishes landed and accepted with the Items tab's colour`);assert.ok(rows.every((row) => row.seen), `${width}: every chip is on screen`);assert.deepEqual(rows.map((row) => row.title), [titles[2], titles[3], 'Billing webhook retries', titles[0], titles[1], titles[4], titles[5]], `${width}: unfinished work precedes verified items in each milestone`);assert.deepEqual(rows.map((row) => row.tip), rows.map((row) => row.title), `${width}: each row's tooltip is its whole title`);@@ -237,14 +245,16 @@ test('the roadmap reads every item as the Items tab does, opens each one, anotheconst chip = document.querySelector('#detail .meta .chip'), dot = document.querySelector('#chain [data-item="${row.id.slice(1)}"] .dot');return { label: chip.innerText, chip: getComputedStyle(chip).color + ' on ' + getComputedStyle(chip).backgroundColor, dot: dot ? getComputedStyle(dot).backgroundColor : 'not listed' };})())`));- assert.deepEqual(here, { label: row.label, chip: row.chip, dot: row.label === 'withdrawn' ? 'not listed' : row.dot }, `${row.id}: the Items tab shows it with the Roadmap's word and colours`);+ assert.deepEqual(here, { label: ['landed', 'accepted'].includes(row.label) ? 'verified' : row.label, chip: row.chip, dot: row.label === 'withdrawn' ? 'not listed' : row.dot }, `${row.id}: the Items tab keeps its verified label while both tabs share colours`);await travel(chrome, -1);await settled(chrome, `${showing('roadmap', roadmapPath)} && !!${roadmapRow(row.id)}`);}// It updates live as items move, here and on the other repo's board.accept(box, alpha, 4);- await chrome.waitFor(`${roadmapRow('#4')}?.querySelector('.chip').innerText === 'verified' && document.querySelector('#roadmap .milestone-count').innerText === '3/5 done'`, 15_000); // budget: hang ceiling for the verified item and milestone count to refresh; no throughput claim.+ await chrome.waitFor(`${roadmapRow('#4')}?.querySelector('.chip').innerText === 'accepted' && document.querySelector('#roadmap .roadmap-left [aria-label]').getAttribute('aria-label') === '1/5 landed'`, 15_000); // budget: live acceptance must not advance the landed count.+ landRoadmapItem(box, alpha, 4);+ await chrome.waitFor(`${roadmapRow('#4')}?.querySelector('.chip').innerText === 'landed' && document.querySelector('#roadmap .roadmap-left [aria-label]').getAttribute('aria-label') === '2/5 landed'`, 15_000); // budget: the real merge receipt advances the live landed count.box.run(beacon.web, 'claim', '1');await chrome.waitFor(`${roadmapRow('beacon#1')}?.querySelector('.chip').innerText === 'building'`, 15_000); // budget: hang ceiling for the claimed external item to refresh; no throughput claim.@@ -281,25 +291,27 @@ test('a milestone lists work to ship first, shipped below, and no withdrawn itemfor (const title of ['First verified', 'First open', 'Second verified', 'Dropped idea', 'Second open']) {box.run(alpha.repo, 'add', 'web', title, '--specs', 'G1', '--criterion', 'renders');}- for (const id of [1, 3]) { build(box, alpha, id, `page-${id}.html`); accept(box, alpha, id); }+ for (const id of [1, 3]) { build(box, alpha, id, `page-${id}.html`); accept(box, alpha, id); landRoadmapItem(box, alpha, id); }box.run(alpha.repo, 'withdraw', '4', 'not needed');box.run(alpha.repo, 'milestone', 'add', 'Next', '--items', '3,2,4,1,5');box.run(alpha.repo, 'milestone', 'add', 'Shipped', '--items', '1,4,3');+ box.run(alpha.repo, 'milestone', 'ship', 'Shipped', '--next', 'Next');const view = await startView(box);const profile = mkdtempSync(join(tmpdir(), 'pullboard-shipping-rows-chrome-'));let chrome;/** Read the actual row order and every visible-count consumer, including folded history. */const read = async () => JSON.parse(await chrome.stable(`JSON.stringify((() => {const next = document.querySelector('#roadmap-list > [data-key="m:Next"]');- const progress = next.querySelector('[role=progressbar]');+ const progress = next.querySelector('.roadmap-summary-bar');const shipped = document.querySelector('#roadmap .shipped-one[data-key="m:Shipped"]');return {rows: [...next.querySelectorAll(':scope > .milestone-body > ul .milestone-item .id')].map(id => id.textContent),- count: next.querySelector('.milestone-count').textContent,- progress: [progress.getAttribute('aria-valuenow'), progress.getAttribute('aria-valuemax')],+ count: next.querySelector('.roadmap-left [aria-label]').getAttribute('aria-label'),+ progress: [progress.querySelector('[data-summary-segment=landed]').dataset.count, progress.dataset.total],index: document.querySelector('#roadmap-panel [data-roadmap-jump="m:Next"] b').textContent,status: document.querySelector('[data-status=release]').textContent.replace(/\\s+/g, ' ').trim(),- openCounts: [...document.querySelectorAll('[data-shipping-stage=open] dd')].map(count => count.textContent),+ openCounts: [...document.querySelectorAll('[data-shipping-stage=waiting] dd')].map(count => count.textContent),+ headerWaiting: next.querySelector('[data-summary-state=waiting] b').textContent,shippedCount: shipped.querySelector('.milestone-count').textContent,shippedRows: [...shipped.querySelectorAll(':scope > .milestone-body > ul .milestone-item .id')].map(id => id.textContent),allIds: [...document.querySelectorAll('#roadmap .milestone-item .id')].map(id => id.textContent),@@ -315,11 +327,12 @@ test('a milestone lists work to ship first, shipped below, and no withdrawn itemawait chrome.waitFor(`innerWidth === ${width}`);const seen = await read();assert.deepEqual(seen.rows, ['#2', '#5', '#3', '#1'], `${width}: each group keeps milestone order, with work to ship before verified items`);- assert.equal(seen.count, '2/4 done', `${width}: withdrawn work is absent from the card count`);+ assert.equal(seen.count, '2/4 landed', `${width}: withdrawn work is absent from the card count`);assert.deepEqual(seen.progress, ['2', '4'], `${width}: progress counts only retained items`);assert.equal(seen.index, '2/4', `${width}: the release index uses the same count`);assert.equal(seen.status, 'Next 2/4', `${width}: the status bar names the same next release and count`);- assert.deepEqual(seen.openCounts, ['2', '2'], `${width}: desktop and mobile shipping counts include both open items`);+ assert.deepEqual(seen.openCounts, ['2'], `${width}: the companion panel reads the supplied waiting count`);+ assert.equal(seen.headerWaiting, '2', `${width}: the header includes both waiting items`);assert.equal(seen.shippedCount, '2 items', `${width}: folded history excludes withdrawn work from its total`);assert.equal(seen.allIds.includes('#4'), false, `${width}: no withdrawn row is rendered, including folded history`);await press(chrome, "document.querySelector('#roadmap-list > [data-key=shipped] > .milestone-head')");@@ -343,7 +356,7 @@ test('the roadmap leads with the next release and folds shipped ones [N26]', { tconst box = machine();const alpha = project(box, 'releases');for (const title of ['First page', 'Second page', 'Third page', 'Fourth page', 'Fifth page', 'Dropped idea']) box.run(alpha.repo, 'add', 'web', title, '--specs', 'G1', '--criterion', 'renders');- for (const id of [1, 2, 4]) { build(box, alpha, id, `page-${id}.html`); accept(box, alpha, id); }+ for (const id of [1, 2, 4]) { build(box, alpha, id, `page-${id}.html`); accept(box, alpha, id); landRoadmapItem(box, alpha, id); }box.run(alpha.repo, 'withdraw', '6', 'not needed');// In the board's order: two releases shipped (one with a withdrawn item, which does not hold it back), the next one// part done, and one queued after it.@@ -353,6 +366,9 @@ test('the roadmap leads with the next release and folds shipped ones [N26]', { tbox.run(alpha.repo, 'milestone', 'add', '0.4', '--note', 'Queued behind 0.3.', '--items', '5');box.run(alpha.repo, 'milestone', 'add', 'Later', '--note', 'Work not filed yet.');box.run(alpha.repo, 'milestone', 'move', 'Later', '--before', '0.1');+ box.run(alpha.repo, 'milestone', 'ship', '0.1', '--next', '0.3');+ box.run(alpha.repo, 'milestone', 'ship', '0.2', '--next', '0.3');+ const shippedCommit = box.git(alpha.repo, 'rev-parse', 'HEAD');const other = project(box, 'other-releases');box.run(other.repo, 'add', 'web', 'Other next page', '--specs', 'G1', '--criterion', 'renders');box.run(other.repo, 'milestone', 'add', '0.3', '--items', '1');@@ -362,7 +378,7 @@ test('the roadmap leads with the next release and folds shipped ones [N26]', { t/** The Roadmap as it reads: each part in order, open or closed, with what its summary says. */const read = async () => JSON.parse(await chrome.stable(`JSON.stringify((() => {/** Read header columns without the decorative caret. */- const words = (e) => [...e.children].filter((c) => !c.classList.contains('caret')).map((c) => c.textContent.replace(/\\s+/g, ' ').trim()).join(' | ');+ const words = (e) => [...e.children].filter((c) => !c.classList.contains('caret') && !c.matches('.roadmap-shipped-commit')).map((c) => c.matches('.roadmap-left') ? c.querySelector('[aria-label]').getAttribute('aria-label') : c.textContent.replace(/\\s+/g, ' ').trim()).join(' | ');/** Measure the rendered header target. */const box = (e) => { const r = e.getBoundingClientRect(); return { width: r.width, height: r.height }; };/** Find the direct disclosure control. */@@ -379,7 +395,7 @@ test('the roadmap leads with the next release and folds shipped ones [N26]', { tparts: [...document.querySelectorAll('#roadmap-list > [data-key]')].map((d) => ({ key: d.dataset.key, open: open(d), summary: words(head(d)), height: box(head(d)).height,rows: rows(d), empty: body(d).querySelector('.milestone-empty')?.textContent ?? null, note: body(d).querySelector('.milestone-note')?.textContent ?? null,shipped: [...body(d).querySelectorAll(':scope > .shipped-one[data-key]')].map((one) => ({ key: one.dataset.key, open: open(one), summary: words(head(one)), height: box(head(one)).height,- rows: rows(one) })) })),+ rows: rows(one), commit: one.querySelector('.roadmap-shipped-commit')?.title })) })),};})())`));/** Activate a disclosure or item through the shared native pointer helper. */@@ -401,9 +417,9 @@ test('the roadmap leads with the next release and folds shipped ones [N26]', { tassert.ok(r.page.scroll <= r.page.width && r.page.body <= r.page.width, `${at}: no sideways scroll`);// Every release with work ahead stays open; the shipped ones fold into one part at the end.assert.deepEqual(r.parts.map((part) => [part.key, part.open, part.summary]), [- ['m:0.3', true, '0.3 | 1/2 done'],- ['m:0.4', true, '0.4 | 0/1 done'],- ['m:Later', true, 'Later'],+ ['m:0.3', true, '0.3 | 1/2 landed'],+ ['m:0.4', true, '0.4 | 0/1 landed'],+ ['m:Later', true, 'Later | 0/0 landed'],['shipped', false, 'Shipped | 2 releases'],], `${at}: every upcoming milestone opens in order, with Shipped folded last`);assert.deepEqual(r.parts[0].rows, ['#3', '#4'], `${at}: the next release shows its items`);@@ -416,6 +432,7 @@ test('the roadmap leads with the next release and folds shipped ones [N26]', { t['m:0.2', false, '0.2 | Shipped on Tuesday. | 1 item'],['m:0.1', false, '0.1 | The first page. | 1 item'],], at + ': shipped names, first note line and counts in reverse roadmap order');+ assert.ok(history.shipped.every((one) => one.commit === shippedCommit), at + ': each shipment displays its real commit');assert.ok(history.shipped.every((one) => one.height >= 44), at + ': shipped targets are at least 44px');assert.ok(expanded.page.scroll <= expanded.page.width && expanded.page.body <= expanded.page.width, at + ': expanded history has no sideways scroll');await click('#roadmap .shipped-one[data-key="m:0.2"] > .milestone-head');@@ -482,12 +499,14 @@ test('the roadmap keeps every upcoming release open [N26]', {const box = machine();const alpha = project(box, 'all-upcoming-open');for (const title of ['Shipped one', 'Shipped two', 'Next release', 'Later release']) box.run(alpha.repo, 'add', 'web', title, '--specs', 'G1', '--criterion', 'renders');- for (const id of [1, 2]) { build(box, alpha, id, `page-${id}.html`); accept(box, alpha, id); }+ for (const id of [1, 2]) { build(box, alpha, id, `page-${id}.html`); accept(box, alpha, id); landRoadmapItem(box, alpha, id); }box.run(alpha.repo, 'milestone', 'add', '0.1', '--items', '1');box.run(alpha.repo, 'milestone', 'add', '0.2', '--items', '2');box.run(alpha.repo, 'milestone', 'add', '0.3', '--note', 'Next out.', '--items', '3');box.run(alpha.repo, 'milestone', 'add', '0.4', '--note', 'Queued next.', '--items', '4');box.run(alpha.repo, 'milestone', 'add', 'Later', '--note', 'No work filed yet.');+ box.run(alpha.repo, 'milestone', 'ship', '0.1', '--next', '0.3');+ box.run(alpha.repo, 'milestone', 'ship', '0.2', '--next', '0.3');const view = await startView(box);const profile = mkdtempSync(join(tmpdir(), 'pullboard-all-upcoming-open-chrome-'));let chrome;@@ -594,6 +613,7 @@ test('the roadmap panel jumps to each release [N26]', {box.run(alpha.repo, 'merged', '1', box.git(alpha.repo, 'rev-parse', 'HEAD'));box.run(alpha.repo, 'milestone', 'add', '0.8.6', '--note', 'Shipped first line.\nThis line stays in the expanded history.', '--items', '1');box.run(alpha.repo, 'milestone', 'add', '0.8.7', '--note', 'The next release.', '--items', '2');+ box.run(alpha.repo, 'milestone', 'ship', '0.8.6', '--next', '0.8.7');for (const name of ['0.8.8', '0.8.9', '0.8.10', '0.8.11', '0.8.12', '0.8.13', '0.8.14', '0.8.15', '0.8.16', '0.8.17', '0.8.18', '0.8.19']) {box.run(alpha.repo, 'milestone', 'add', name, '--note', 'Queued after the next release.');}@@ -629,12 +649,12 @@ test('the roadmap panel jumps to each release [N26]', {const panel = document.querySelector('#roadmap-panel'), list = document.querySelector('#roadmap-list');const shown = (e) => !!e && e.getClientRects().length > 0 && e.getBoundingClientRect().height > 0;return { position: getComputedStyle(panel).position, beside: panel.getBoundingClientRect().left >= list.getBoundingClientRect().right,- chips: getComputedStyle(document.querySelector('#roadmap-releases')).display, desk: shown(panel.querySelector('.roadmap-desktop-shipping')), phone: shown(list.querySelector('.roadmap-mobile-shipping')),+ chips: getComputedStyle(document.querySelector('#roadmap-releases')).display, desk: shown(panel.querySelector('.roadmap-desktop-shipping')), phone: shown(list.querySelector('.roadmap-summary')),page: Math.max(document.documentElement.scrollWidth, document.body.scrollWidth) };})())`));const at = `${width}/${scheme}`;- if (width === 900) assert.deepEqual([edge.position, edge.beside, edge.desk, edge.phone], ['sticky', true, true, false], `${at}: the panel stays on the right with its Shipping: ${JSON.stringify(edge)}`);- else assert.deepEqual([edge.position, edge.beside, edge.chips, edge.desk, edge.phone], ['static', false, 'flex', false, true], `${at}: the chip row above the list, Shipping under the next release: ${JSON.stringify(edge)}`);+ if (width === 900) assert.deepEqual([edge.position, edge.beside, edge.desk, edge.phone], ['sticky', true, true, true], `${at}: the panel stays on the right alongside each release summary: ${JSON.stringify(edge)}`);+ else assert.deepEqual([edge.position, edge.beside, edge.chips, edge.desk, edge.phone], ['static', false, 'flex', false, true], `${at}: the chip row above the list, summary under each release: ${JSON.stringify(edge)}`);assert.ok(edge.page <= width, `${at}: no sideways scroll: ${JSON.stringify(edge)}`);}}@@ -827,19 +847,21 @@ test('the roadmap panel counts the next release by stage [N26]', {box.run(alpha.web, 'claim', '2');box.run(alpha.repo, 'milestone', 'add', '0.8.6', '--note', 'The last shipped note.\nA second detail line.', '--items', '6');box.run(alpha.repo, 'milestone', 'add', '0.8.7', '--note', 'Shipping next.', '--items', '1,2,3,4,5');+ box.run(alpha.repo, 'milestone', 'ship', '0.8.6', '--next', '0.8.7');const view = await startView(box);const profile = mkdtempSync(join(tmpdir(), 'pullboard-roadmap-panel-counts-'));let chrome;/** Read the visible stage counts and the bounded last-shipped summary. */const read = async () => JSON.parse(await chrome.stable(`JSON.stringify((() => {- const card=document.querySelector('#roadmap-panel'), rect=e=>{const r=e.getBoundingClientRect();return {top:r.top,bottom:r.bottom,height:r.height};};+ const card=document.querySelector('#roadmap-panel'), rect=e=>{const r=e?.getBoundingClientRect();return r ? {top:r.top,bottom:r.bottom,height:r.height} : {top:0,bottom:0,height:0};};const last=[...document.querySelectorAll('#roadmap .roadmap-last-shipped')].find(e=>e.getBoundingClientRect().height>0);return {next:document.querySelector('#roadmap-list > .milestone > .milestone-head h2').textContent,counts:[...document.querySelectorAll('#roadmap [data-shipping-stage]')].filter(e=>e.getBoundingClientRect().height>0).map(e=>[e.dataset.shippingStage,e.querySelector('dd').textContent]),shipped:last ? [...last.children].map(e=>e.textContent) : null,- panel:rect(card),desktop:rect(card.querySelector('.roadmap-desktop-shipping')),mobile:rect(document.querySelector('.roadmap-list .roadmap-mobile-shipping')),+ panel:rect(card),desktop:rect(card.querySelector('.roadmap-desktop-shipping')),mobile:rect(document.querySelector('.roadmap-list .roadmap-summary')),heading:rect(document.querySelector('#roadmap-list > .milestone > .milestone-head h2')),- mobileCounts:rect(document.querySelector('#roadmap-list > .milestone > .roadmap-mobile-shipping .roadmap-stage-counts')),+ mobileCounts:rect(document.querySelector('#roadmap-list > .milestone > .roadmap-summary .roadmap-summary-legend')),+ headerCounts:[...document.querySelector('#roadmap-list > .milestone').querySelectorAll('[data-summary-state]')].map(e=>[e.dataset.summaryState,e.querySelector('b').textContent]),documentWidth:Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),viewport:document.documentElement.clientWidth,viewportHeight:document.documentElement.clientHeight};})())`));try {@@ -854,11 +876,13 @@ test('the roadmap panel counts the next release by stage [N26]', {await chrome.waitFor(`matchMedia('(prefers-color-scheme: ${scheme})').matches`);const counts = await read();assert.equal(counts.next, '0.8.7', `${width}/${scheme}: the panel names the next release`);- assert.deepEqual(counts.counts, [['open', '1'], ['claimed', '1'], ['submitted', '1'], ['accepted', '1'], ['merged', '1']], `${width}/${scheme}: each state uses the board's held item data`);- assert.deepEqual(counts.shipped, ['Last shipped', '0.8.6', 'The last shipped note.'], `${width}/${scheme}: the last shipped row includes only the note's first line`);+ const expected = [['landed', '1'], ['landing', '1'], ['review', '1'], ['building', '1'], ['waiting', '1'], ['held', '0']];+ assert.deepEqual(counts.headerCounts, expected, `${width}/${scheme}: the header reads every supplied state`);+ assert.deepEqual(counts.counts, width < 900 ? [] : expected, `${width}/${scheme}: the desktop companion panel shares those supplied counts`);+ assert.deepEqual(counts.shipped, width < 900 ? null : ['Last shipped', '0.8.6', 'The last shipped note.'], `${width}/${scheme}: the last shipped row includes only the note's first line`);assert.ok(counts.documentWidth <= counts.viewport, `${width}/${scheme}: the page never scrolls sideways`);if (width < 900) assert.ok(counts.heading.top < counts.mobileCounts.top && counts.mobile.height > 0 && counts.desktop.height === 0, `${width}/${scheme}: counts sit under the actual next release heading on the phone`);- else assert.ok(counts.desktop.height > 0 && counts.mobile.height === 0, `${width}/${scheme}: desktop shipping counts stay in the right panel`);+ else assert.ok(counts.desktop.height > 0 && counts.mobile.height > 0, `${width}/${scheme}: desktop shipping counts stay in the right panel alongside the header`);}await proofShot(chrome, 'roadmap-panel-counts', width);}@@ -894,16 +918,17 @@ test('the roadmap shows landed, accepted and past target [N26]', { timeout: 90_0const shipped=box.git(alpha.repo,'rev-parse','HEAD');const rawRoadmap=JSON.parse(box.run(alpha.repo,'roadmap','--json'));assert.equal(rawRoadmap.milestones.find(m=>m.name==='State summary').total,7,'692 total retains the withdrawn member; the summary excludes it');+ assert.deepEqual(rawRoadmap.milestones.find(m=>m.name==='State summary').summary,{total:6,left:5,landed:1,landing:1,review:1,building:1,waiting:1,held:1,needsYou:[9],pace:{last6h:3,last2h:3},estimate:{low:3.5,high:10}},'real roadmap JSON owns every header field');const view=await startView(box),profile=mkdtempSync(join(tmpdir(),'pullboard-roadmap-truth-'));let chrome;const milestone=name=>`document.querySelector('[data-key="m:${name}"]')`;try {chrome=await openSnapshotChrome(executable,view.link.href,profile);await chrome.waitFor('data?.project?.milestones?.length===4');- // Temporary #820 contract fixture for the permitted parallel build. Its shape was confirmed by Core336 in shout15071; this is not real CLI summary proof.- await chrome.stable(`(()=>{const m=data.project.milestones.find(m=>m.name==='State summary');m.summary={total:6,left:5,landed:1,landing:1,review:1,building:1,waiting:1,held:1,needsYou:[9],pace:{last6h:3,last2h:3},estimate:{low:3.5,high:10}};return true})()`);+ const apiSummary=JSON.parse(await chrome.stable("JSON.stringify(data.project.milestones.find(m=>m.name==='State summary').summary)"));+ assert.deepEqual(apiSummary,rawRoadmap.milestones.find(m=>m.name==='State summary').summary,'the live API carries the real CLI summary unchanged');await press(chrome,"document.querySelector('[data-tab=roadmap]')");await chrome.waitFor(`${milestone('Past target')}?.querySelector('.milestone-head')`);const truth=await chrome.stable(`${milestone('Past target')}.textContent`);- assert.match(truth,/1\/3 landed/u,'acceptance does not count as landed');assert.match(truth,/past target/u);+ assert.match(truth,/1 of 3 landed/u,'acceptance does not count as landed');assert.match(truth,/past target/u);const states=JSON.parse(await chrome.stable(`JSON.stringify([...${milestone('Past target')}.querySelectorAll('.milestone-item')].map(row=>[row.querySelector('.id').textContent,row.querySelector('.chip').textContent]))`));assert.deepEqual(Object.fromEntries(states),{'#1':'landed','#2':'accepted','#3':'unclaimed'});await press(chrome,"document.querySelector('[data-key=shipped] > .milestone-head')");