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): an empty feed says so on one line [N26]

Corey Olson912a112bc240
diff --git a/src/cockpit.js b/src/cockpit.js
index b8b5d6ce..ca452824 100644
--- a/src/cockpit.js
+++ b/src/cockpit.js
@@ -205,6 +205,7 @@ input, select, textarea { border: 1px solid var(--line-strong); background: var(
.inline label { flex: 1 1 150px; min-width: 0; }
.feed { padding: 6px 10px 10px; display: grid; }
.feed > div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
+.feed > .empty { display: block; }
.feed > div:first-child, .feed > .day + div { border-top: 0; }
.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; }
diff --git a/test/cockpit.test.js b/test/cockpit.test.js
index 176b7c61..4098afa3 100644
--- a/test/cockpit.test.js
+++ b/test/cockpit.test.js
@@ -1003,6 +1003,21 @@ test('spec rows read across a phone [N26]', async () => {
}
});
+test('an empty feed says so on one line [N26]', async () => {
+ const box = machine();
+ project(box, 'alpha');
+ const view = await startView(box);
+ try {
+ const page = await openPage(view);
+ assert.equal(page.show('feed'), '<div class="empty">No shouts yet.</div>');
+ assert.match(page.html, /<div class="card-panel feed" id="feed"><\/div>/, 'the shouts feed');
+ assert.match(page.html, /<div class="card-panel feed" id="activity"><\/div>/, 'and the activity feed are both feeds');
+ const style = page.html.slice(page.html.indexOf('<style>'), page.html.indexOf('</style>'));
+ assert.match(style, /\n\.feed > div \{ display: grid; grid-template-columns: 4\.6em minmax\(0, 1fr\);[^\n]*\n\.feed > \.empty \{ display: block; \}\n/, 'a feed row has a time column; its empty note takes the whole width');
+ } finally {
+ await view.stop();
+ }
+});
test('activity names the item each event moved [N26]', async () => {
const box = machine();
const alpha = project(box, 'alpha');