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): a 44px chip x; a shout heard by no one says so [N26]
Corey Olsonf459442afa17
diff --git a/src/cockpit.js b/src/cockpit.jsindex df5827eb..1b45a18f 100644--- a/src/cockpit.js+++ b/src/cockpit.js@@ -1170,7 +1170,7 @@ function render() {const heardBy = (x) => {if (x.shout_from !== 'person') return '';const to = p.agents.filter((a) => reached(x, a)), by = to.filter((a) => (a.agent_last_shout_id ?? 0) >= x.shout_id);- if (!to.length) return '';+ // A shout that reaches no agent at all, such as one to a lane nobody has joined, has not been heard either.if (!by.length) return '<div class="heard not">Not heard yet</div>';const first = by.find((a) => lead(a.agent_id)) || by[0], rest = by.length - 1;return '<div class="heard" title="Heard by ' + esc(by.map((a) => a.agent_id).join(', ')) + '"><span class="heard-faces">' + [first, ...by.filter((a) => a !== first)].slice(0, 4).map(dot).join('') + '</span>Heard by ' + esc(first.agent_id) + (rest ? ' and ' + rest + (rest === 1 ? ' agent' : ' agents') : '') + '</div>';diff --git a/src/view.css b/src/view.cssindex 29e9338c..1d021277 100644--- a/src/view.css+++ b/src/view.css@@ -483,7 +483,7 @@ button, input, select, textarea, [data-item], [data-row] { min-height: 44px; }/* The composer's address, when it is not the coordinator: a chip the person can clear. */.composer .to-chip { display: inline-flex; flex: none; align-items: center; align-self: center; gap: 2px; margin-left: 6px; padding-left: 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-size: 12.5px; white-space: nowrap; }.composer .to-chip[hidden] { display: none; }-.to-clear { width: 36px; min-height: 44px; margin: -8px 0; padding: 0; border: 0; background: none; color: inherit; font-size: 16px; cursor: pointer; }+.to-clear { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -10px -2px -10px 0; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 16px; cursor: pointer; }/* Heard: which agents a shout of the person's has reached. */.shout .heard { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink-muted); font-size: 12px; }.shout .heard::before { content: "✓"; color: var(--accent-strong); font-weight: 700; }diff --git a/test/cockpit.test.js b/test/cockpit.test.jsindex fba1b0f9..2ef7c6f3 100644--- a/test/cockpit.test.js+++ b/test/cockpit.test.js@@ -4901,9 +4901,11 @@ test('the composer goes to the coordinator and says who heard [N26]', { timeout:if (!executable) return t.skip('Install Chrome or set PULLBOARD_CHROME for rendered composer checks.');const box = machine();- const alpha = project(box, 'heard');+ // A docs lane nobody has joined: a shout to it reaches no agent.+ const alpha = project(box, 'heard', SPEC, { lanes: { web: { owns: ['web/'], specs: ['G'] }, docs: { owns: ['docs/'], specs: ['G'] } } });box.run(alpha.repo, 'add', 'web', 'Greeting', '--specs', 'G1', '--criterion', 'greets');box.run(alpha.web, 'shout', 'coordinator', 'Starting on the greeting.');+ earlier(alpha.repo, Date.now(), (board) => shoutOnBoard(board, { from: 'person', to: 'docs', text: 'Docs, anyone?', lanes: ['web', 'docs'] }));const view = await startView(box);const profile = mkdtempSync(join(tmpdir(), 'pullboard-heard-chrome-'));let chrome;@@ -4919,7 +4921,7 @@ test('the composer goes to the coordinator and says who heard [N26]', { timeout:page: { width: document.documentElement.clientWidth, scroll: document.documentElement.scrollWidth, body: document.body.scrollWidth },pickers: [...document.querySelectorAll('.composer select, .composer datalist, .composer input')].filter((e) => e.type !== 'hidden').length,to: document.querySelector('#shout-to').value, placeholder: document.querySelector('#shout-text').placeholder,- chip: chip.hidden ? null : chip.textContent, clear: clear ? clear.getBoundingClientRect().height : null,+ chip: chip.hidden ? null : chip.textContent, clear: clear ? [clear.getBoundingClientRect().width, clear.getBoundingClientRect().height] : null,heard: [...document.querySelectorAll('#feed .shout')].filter((card) => card.querySelector('.heard')).map((card) => {const line = card.querySelector('.heard');return [card.querySelector('.text').textContent, line.lastChild.textContent, line.querySelectorAll('.heard-face').length, line.title];@@ -4938,6 +4940,14 @@ test('the composer goes to the coordinator and says who heard [N26]', { timeout:const r = await read();assert.ok(r.page.scroll <= r.page.width && r.page.body <= r.page.width, `${at}: no sideways scroll`);assert.deepEqual([r.pickers, r.to, r.placeholder, r.chip], [0, 'coordinator', 'Shout to the coordinator', null], `${at}: no recipient picker; a shout goes to the coordinator, and says so`);+ // A shout to a lane no agent has joined reached no one, so it has not been heard.+ assert.deepEqual(r.heard.find(([text]) => text === 'Docs, anyone?')?.slice(1), ['Not heard yet', 0, ''], `${at}: a shout that reached no agent says Not heard yet`);+ // A picked agent's chip has an x that is a 44px square target; picking the agent again puts it back.+ await chrome.evaluate(`document.querySelector('#agents [data-agent="web-1"]').click()`);+ const picked = await read();+ assert.ok(picked.chip === 'to web-1×' && picked.clear[0] >= 44 && picked.clear[1] >= 44, `${at}: the chip's x is 44 by 44: ${JSON.stringify(picked.clear)}`);+ await chrome.evaluate(`document.querySelector('#agents [data-agent="web-1"]').click()`);+ assert.equal((await read()).chip, null, `${at}: picking the agent again returns the composer to the coordinator`);}}@@ -4964,7 +4974,7 @@ test('the composer goes to the coordinator and says who heard [N26]', { timeout:await chrome.evaluate(`document.querySelector('#agents [data-agent="web-1"]').click()`);let r = await read();assert.deepEqual([r.chip, r.to, r.placeholder], ['to web-1×', 'web-1', 'Shout to web-1'], 'a picked agent shows as a chip');- assert.ok(r.clear >= 44, 'whose x is a 44px target');+ assert.ok(r.clear[0] >= 44 && r.clear[1] >= 44, 'whose x is a 44px square target');await chrome.evaluate(`document.querySelector('#shout-to-chip [data-to-clear]').click()`);r = await read();assert.deepEqual([r.chip, r.to, r.placeholder], [null, 'coordinator', 'Shout to the coordinator'], 'the x returns it to the coordinator');