Skip to content

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.

fix(view): a landed roadmap row reads verified, no checkmark [N26]

Corey Olsonbcfa3db1edaf
diff --git a/src/cockpit.js b/src/cockpit.js
index 3d80e234..05d571e0 100644
--- a/src/cockpit.js
+++ b/src/cockpit.js
@@ -2297,7 +2297,7 @@ function milestoneRow(row, titles) {
const label = '<span class="id">' + esc(row.label) + '</span>' + title;
const text = row.block?.dot ? '<span class="milestone-title">' + label + '</span>' + row.block.dot : label;
const key = 'i:' + row.label, open = view.roadmapOpen.get(JSON.stringify([view.root, key])) === true;
- const status = (open && row.block?.dot ? '<span class="chip warn roadmap-blocked"><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"><rect x="5" y="10" width="14" height="11" rx="2"/><path d="M8 10V7a4 4 0 0 1 8 0v3"/></svg>blocked</span>' : '') + (row.stage === 'merged' ? '<span class="chip ok roadmap-landed"><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"><path d="m5 12 4 4L19 6"/></svg>landed</span>' : row.stage === 'accepted' ? '<span class="chip ok">accepted</span>' : row.state ? chip(row.state) : '<span class="chip">' + esc(row.word) + '</span>');
+ const status = (open && row.block?.dot ? '<span class="chip warn roadmap-blocked"><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"><rect x="5" y="10" width="14" height="11" rx="2"/><path d="M8 10V7a4 4 0 0 1 8 0v3"/></svg>blocked</span>' : '') + (row.stage === 'merged' ? '<span class="chip ok roadmap-landed">verified</span>' : row.stage === 'accepted' ? '<span class="chip ok">accepted</span>' : row.state ? chip(row.state) : '<span class="chip">' + esc(row.word) + '</span>');
const inner = '<span class="dot' + (row.state ? ' ' + row.state : '') + '"></span><span class="t">' + text + '</span>' + (row.stale || '') + '<span class="roadmap-status">' + status + '</span>';
const board = row.open && row.open.root !== view.root ? ' data-board="' + esc(row.open.root) + '"' : '';
const toggle = 'class="milestone-item' + (row.block?.dot ? ' blocked' : '') + '" data-roadmap-key="' + esc(key) + '" aria-expanded="' + open + '"' + board + ' title="' + esc(row.title ? row.title + (!row.open && row.why ? ' (' + row.why + ')' : '') : row.why) + '"';
diff --git a/test/cockpit/roadmap.test.js b/test/cockpit/roadmap.test.js
index 5b6ba0c4..19ca70b7 100644
--- a/test/cockpit/roadmap.test.js
+++ b/test/cockpit/roadmap.test.js
@@ -153,7 +153,7 @@ 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: 'landed', tone: 'ok' },
+ { id: '#1', label: 'verified', tone: 'ok' },
{ id: '#2', label: 'accepted', tone: 'ok' },
{ id: '#5', label: 'building', tone: 'busy' },
{ id: '#6', label: 'unclaimed', tone: 'free' },
@@ -254,7 +254,7 @@ test('the roadmap reads every item as the Items tab does, opens each one, anothe
accept(box, alpha, 4);
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: hang ceiling for the accepted receipt and unchanged landed count to reach the browser; no throughput claim.
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: hang ceiling for the real merge receipt and landed count to reach the browser; no throughput claim.
+ await chrome.waitFor(`${roadmapRow('#4')}?.querySelector('.chip').innerText === 'verified' && document.querySelector('#roadmap .roadmap-left [aria-label]').getAttribute('aria-label') === '2/5 landed'`, 15_000); // budget: hang ceiling for the real merge receipt and landed count to reach the browser; no throughput claim.
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.
@@ -933,7 +933,7 @@ test('the roadmap shows landed, accepted and past target [N26]', { timeout: 90_0
const truth=await chrome.stable(`${milestone('Past target')}.textContent`);
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'});
+ assert.deepEqual(Object.fromEntries(states),{'#1':'verified','#2':'accepted','#3':'unclaimed'});
await press(chrome,"document.querySelector('[data-key=shipped] > .milestone-head')");
await chrome.waitFor(`${milestone('Shipped release')}?.querySelector('.milestone-head')`);
assert.match(await chrome.stable(`${milestone('Shipped release')}.textContent`),new RegExp(shipped.slice(0,12)),'the shipped release names its actual commit');
@@ -1070,7 +1070,7 @@ test('a blocked roadmap item shows its dot and expands to say why [N26]', { time
await opened('#5');
const landed = JSON.parse(await chrome.stable(`JSON.stringify((()=>{const r=${row('#5')},panel=r.parentElement.querySelector('.milestone-why');return {color:getComputedStyle(panel.querySelector('.roadmap-event:last-child .roadmap-step')).backgroundColor,chip:r.querySelector('.roadmap-landed')?.textContent,icon:!!r.querySelector('.roadmap-landed svg')};})())`));
assert.equal(landed.color, colors.success, `${scheme}: landing history uses the success token`);
- assert.equal(landed.chip, 'landed'); assert.equal(landed.icon, true);
+ assert.equal(landed.chip, 'verified'); assert.equal(landed.icon, false, 'a landed row reads verified, with no checkmark (the person, 18 Oct)');
await press(chrome, row('#5'));
}
for (const width of [375,1280]) for (const scheme of ['light','dark']) {