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.

test(view): distinguish accepted roadmap rows in exports [N26,N38]

Corey Olson71456ed1a30c
diff --git a/src/cockpit.js b/src/cockpit.js
index ffb3c2ad..10552f32 100644
--- a/src/cockpit.js
+++ b/src/cockpit.js
@@ -2356,11 +2356,10 @@ function nextMilestone(p) {
}
/**
- * The Roadmap (N26, N38) leads with what ships next: every milestone with work still to verify, in the board's order,
- * open by default; then one Shipped section, folded, holding nonempty milestones with only verified items, newest
- * first, each a line with its name, its item count and its note's first line. A milestone opens to a card as before:
- * how many of its items are verified as a count and a bar, a row for each, and the note to the person in its own
- * highlighted line; one with no items says so. Each part stays open or closed as the person left it.
+ * The Roadmap (N26, N38) opens unshipped milestones in board order, then folds explicit shipments into Shipped.
+ * Each header displays the backend's supplied state partition, remaining work, forecast and person decisions.
+ * Accepted and landed rows stay distinct; shipped history carries its commit. Older exports keep their legacy
+ * completion rule. Each part preserves the person's disclosure choice for this visit.
*/
function roadmapCards(p, titles) {
// Opened from the status bar's release, the Roadmap is that release alone, with a way back to all of them.
@@ -2391,7 +2390,7 @@ function roadmapCards(p, titles) {
const lastShipped = '<p class="roadmap-last-shipped"><span>Last shipped</span><b>' + esc(shipped[0]?.milestone.name || 'None yet') + '</b>'
+ (shipped[0]?.milestone.note ? '<small>' + esc(firstLine(shipped[0].milestone.note)) + '</small>' : '') + '</p>';
const mobileShipping = '<section class="roadmap-shipping roadmap-mobile-shipping" aria-label="Shipping counts">' + shippingCounts + lastShipped + '</section>';
- /** Keep the existing verified-item count beside an upcoming release. */
+ /** Keep supplied landed progress beside an upcoming release without a modern summary. */
const count = (m) => m.total ? '<span class="milestone-count" aria-label="' + m.done + '/' + m.total + ' landed">' + m.done + '/' + m.total + ' landed</span>' : '';
/** Render the existing milestone items, progress and complete note when opened. */
const body = (read) => {
diff --git a/test/cockpit/detail.test.js b/test/cockpit/detail.test.js
index 7d61f682..3cf267e3 100644
--- a/test/cockpit/detail.test.js
+++ b/test/cockpit/detail.test.js
@@ -79,7 +79,7 @@ test('opening an item loads its detail on demand [N26,A2]', { timeout: 150_000 }
assert.equal(listed.summaries, true, 'the view sends item summaries: no history, criterion or thread');
assert.deepEqual(listed.rows.sort(), ['2', '3'], 'the Active list shows the submitted and the open item');
// Current Roadmap keeps pending work before verified rows (readMilestone).
- assert.deepEqual(listed.roadmap, ['#2 to verify', '#1 verified'], 'the roadmap reads each item state from its summary');
+ assert.deepEqual(listed.roadmap, ['#2 to verify', '#1 accepted'], 'the roadmap reads each item state from its summary');
assert.deepEqual(itemReads(listed.reads), [], 'the list renders with no item detail fetched');
// Search asks the API, which matches the criterion the summaries leave out, and its result opens the item.
diff --git a/test/cockpit/snapshot.test.js b/test/cockpit/snapshot.test.js
index 4299bed9..93d93d21 100644
--- a/test/cockpit/snapshot.test.js
+++ b/test/cockpit/snapshot.test.js
@@ -631,7 +631,7 @@ test('an exported roadmap has its own address under a folder, and Back and Forwa
assert.deepEqual(seen.cards[0].rows.map(({ id, label, tone, button }) => ({ id, label, tone, button })), [
{ id: '#2', label: 'unclaimed', tone: 'free', button: true },
{ id: 'beacon#1', label: 'unclaimed', tone: 'free', button: true },
- { id: '#1', label: 'verified', tone: 'ok', button: true },
+ { id: '#1', label: 'accepted', tone: 'ok', button: true },
], "the snapshot's rows expand in place; another repo's unavailable item has no Items link");
assert.equal(seen.cards[0].rows.find((row) => row.id === 'beacon#1').tip, 'Billing webhook retries (not in this snapshot)', 'and says why');
assert.deepEqual([seen.cards[1].name, seen.cards[1].empty], ['Later', 'No items yet.']);