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
fix(view): keep item anchor line boxes compact [N26,N38]
Corey Olson6cb1a79ea55d
diff --git a/src/view.css b/src/view.cssindex 5a811d75..71507f79 100644--- a/src/view.css+++ b/src/view.css@@ -475,6 +475,8 @@ form.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; paddin.feed .day { margin: 0; padding: 12px 0 4px; font: 600 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }.feed .day:first-child { padding-top: 6px; }button.ref, a.ref[data-go] { width: auto; min-height: 0; border: 0; border-radius: 0; background: none; padding: 0; color: var(--accent-strong); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; display: inline; vertical-align: baseline; line-height: inherit; font: inherit; }+/* Item anchors use their inherited line box, rather than the shorter inline glyph box. */+a.ref[data-go] { display: inline-block; }/* A code reference (path:lines@sha) is one long token: wider than its line, it breaks anywhere rather than push the page sideways. */button.ref[data-code] { display: inline-flex; max-width: 100%; vertical-align: bottom; white-space: nowrap; text-align: left; }button.ref[data-code] .ref-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; }diff --git a/test/cockpit/items.test.js b/test/cockpit/items.test.jsindex 5cdb2d32..43d14176 100644--- a/test/cockpit/items.test.js+++ b/test/cockpit/items.test.js@@ -1178,7 +1178,7 @@ test('Pipeline view shows every stage, status counts, stage ages, detail links aassert.equal(await chrome.stable('location.pathname'), '/items/pipeline', 'Pipeline has its own shareable address');await chrome.waitFor("typeof data !== 'undefined' && location.pathname === '/items/pipeline' && !document.querySelector('#pipeline').hidden");const expectedCounts = [status.open, status.claimed, status.submitted, 1, 1];- const read = JSON.parse(await chrome.stable(`JSON.stringify([...document.querySelectorAll('[data-pipeline-stage]')].map(stage => ({ stage:stage.dataset.pipelineStage, label:stage.querySelector('h2').textContent, count:Number(stage.querySelector('[data-stage-count]').textContent), oldest:Number(stage.querySelector('.pipeline-oldest [data-item]')?.dataset.item || 0), since:stage.querySelector('.pipeline-oldest time')?.dataset.ago || null, age:stage.querySelector('.pipeline-oldest time')?.textContent || '', ids:[...stage.querySelectorAll('.pipeline-item')].map(item => Number(item.dataset.item)) })))`));+ const read = JSON.parse(await chrome.stable(`JSON.stringify([...document.querySelectorAll('[data-pipeline-stage]')].map(stage => ({ stage:stage.dataset.pipelineStage, label:stage.querySelector('h2').textContent, count:Number(stage.querySelector('[data-stage-count]').textContent), oldest:Number(stage.querySelector('.pipeline-oldest a[data-go]')?.dataset.go.slice('item:'.length) || 0), since:stage.querySelector('.pipeline-oldest time')?.dataset.ago || null, age:stage.querySelector('.pipeline-oldest time')?.textContent || '', ids:[...stage.querySelectorAll('.pipeline-item')].map(item => Number(item.dataset.item)) })))`));assert.deepEqual(read.map(stage => stage.label), ['Not started', 'Building', 'Waiting for review', 'Accepted, waiting to merge', 'Merged']);assert.deepEqual(read.map(stage => stage.count), expectedCounts, 'open/claimed/submitted match status; accepted plus merged equals verified');assert.equal(read[3].count + read[4].count, status.verified);@@ -1362,11 +1362,11 @@ test('Pipeline view dates an expired claim from its recorded deadline [N26,N38]'const page = await openPage(view);await page.click({itemsView:'pipeline'});const open = () => page.show('pipeline').split('data-pipeline-stage="open"')[1].split('</header>')[1].split('</p>')[0];- assert.match(open(), /data-item="2"/, 'an open item from minute35 is older than a claim that lapses at minute40');+ assert.match(open(), /data-go="item:2"/, 'an open item from minute35 is older than a claim that lapses at minute40');assert.match(open(), new RegExp(new Date(base+35*60_000).toISOString()), 'the oldest open timestamp is the arrival');box.run(alpha.repo, 'withdraw', '2', 'Private fixture now isolates the lapse age');await page.run('refresh()');- assert.match(open(), /data-item="1"/);+ assert.match(open(), /data-go="item:1"/);assert.match(open(), new RegExp(new Date(base+40*60_000).toISOString()), 'expired claim age starts at its native lease deadline');} finally { await view.stop(); }});