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
feat(view): needs-you lines keep their titles on a phone [N26]
Corey Olson259f5ab0431b
diff --git a/src/cockpit.js b/src/cockpit.jsindex b8b5d6ce..de96a5cb 100644--- a/src/cockpit.js+++ b/src/cockpit.js@@ -141,6 +141,7 @@ input, select, textarea { border: 1px solid var(--line-strong); background: var(.ny code { font: 600 12px var(--mono); }.ny span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); }.ny em { font-style: normal; color: var(--warn); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+@media (width < 480px) { .ny { grid-template-columns: auto minmax(0, 1fr); row-gap: 1px; } .ny em { grid-column: 2; } }.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px; }.chips button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 9px; cursor: pointer; font-size: 13px; }diff --git a/test/cockpit.test.js b/test/cockpit.test.jsindex 176b7c61..e4ecb314 100644--- a/test/cockpit.test.js+++ b/test/cockpit.test.js@@ -1022,3 +1022,23 @@ test('activity names the item each event moved [N26]', async () => {await view.stop();}});++test('needs-you lines keep their titles on a phone [N26]', async () => {+ const box = machine();+ const alpha = project(box, 'alpha');+ box.run(alpha.repo, 'add', 'web', 'A greeting with a title long enough to need the room', '--specs', 'G1', '--criterion', 'greets');+ build(box, alpha, 1, 'greeting.html');+ sendBack(box, alpha, 1, 'no greeting yet');+ build(box, alpha, 1, 'greeting-again.html');+ const view = await startView(box);+ try {+ const page = await openPage(view, { width: 375 });+ const style = page.html.slice(page.html.indexOf('<style>'), page.html.indexOf('</style>'));+ assert.match(style, /\n\.ny \{ display: grid; grid-template-columns: auto minmax\(5em, 1fr\) minmax\(0, max-content\);/, 'wider, a line keeps its single row');+ assert.match(style, /\n@media \(width < 480px\) \{ \.ny \{ grid-template-columns: auto minmax\(0, 1fr\); row-gap: 1px; \} \.ny em \{ grid-column: 2; \} \}\n/, 'under 480px, what it needs moves under the title');+ // The rule works because each line is the ref, then the title, then what it needs.+ assert.match(page.show('needs'), /<button class="ny" data-go="item:1" type="button"><code>#1<\/code><span>A greeting with a title long enough to need the room<\/span><em>resubmitted after BEHAVIOR_MISMATCH, [^]*? →<\/em><\/button>/);+ } finally {+ await view.stop();+ }+});