feat(ux): consolidate Launch Swarm + telemetry UX with minimized strip
- Removed broken LaunchSwarmDialog (formula-based) from TopBar/LeftPanel - All Rocket buttons (TopBar, LeftPanel, DAG nodes, social cards) now open AssignmentPanel (archetype-based) which actually works - Every Rocket clears taskId first so assignMode && !taskId condition passes - Conversation button priority: taskId always shows conversation, not assign panel - Added TelemetryStrip: minimized right sidebar with status dots when non-telemetry panel (conversation/assignment) is active - Live feed has minimize button → restores last taskId or assignMode - DAG nodes: Signal icon → restores telemetry feed - Social button on DAG nodes: single router.push to avoid race (setView + setTaskId) - Fixed social card message button: opens right panel with drawer:closed (no popup) Co-Authored-By: Oz <oz-agent@warp.dev>
This commit is contained in:
parent
65d69ecbbc
commit
c246ceaf21
165 changed files with 13730 additions and 1132 deletions
33
tests/api/bd-health-route.test.ts
Normal file
33
tests/api/bd-health-route.test.ts
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
|
||||
import { GET as healthGet } from '../../src/app/api/bd/health/route';
|
||||
|
||||
test('bd health route returns setup guidance when bd is missing from PATH', async () => {
|
||||
const previousPath = process.env.PATH;
|
||||
const previousPathAlt = process.env.Path;
|
||||
process.env.PATH = '';
|
||||
process.env.Path = '';
|
||||
|
||||
try {
|
||||
const response = await healthGet(new Request('http://localhost/api/bd/health?projectRoot=C:/repo/test'));
|
||||
const body = await response.json();
|
||||
|
||||
assert.equal(response.status, 503);
|
||||
assert.equal(body.ok, false);
|
||||
assert.equal(body.error.classification, 'not_found');
|
||||
assert.equal(typeof body.error.message, 'string');
|
||||
assert.equal(String(body.error.message).includes('bd command not found in PATH'), true);
|
||||
} finally {
|
||||
if (previousPath === undefined) {
|
||||
delete process.env.PATH;
|
||||
} else {
|
||||
process.env.PATH = previousPath;
|
||||
}
|
||||
if (previousPathAlt === undefined) {
|
||||
delete process.env.Path;
|
||||
} else {
|
||||
process.env.Path = previousPathAlt;
|
||||
}
|
||||
}
|
||||
});
|
||||
67
tests/api/coord-events-route.test.ts
Normal file
67
tests/api/coord-events-route.test.ts
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
|
||||
import { handleCoordEventsPost } from '../../src/app/api/coord/events/route';
|
||||
|
||||
test('handleCoordEventsPost returns 400 for invalid body', async () => {
|
||||
const request = new Request('http://localhost/api/coord/events', {
|
||||
method: 'POST',
|
||||
body: 'not-json',
|
||||
headers: { 'content-type': 'application/json' },
|
||||
});
|
||||
|
||||
const response = await handleCoordEventsPost(request);
|
||||
const body = await response.json();
|
||||
|
||||
assert.equal(response.status, 400);
|
||||
assert.equal(body.ok, false);
|
||||
});
|
||||
|
||||
test('handleCoordEventsPost writes event and returns success', async () => {
|
||||
const request = new Request('http://localhost/api/coord/events', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
projectRoot: process.cwd(),
|
||||
event: {
|
||||
version: 'coord.v1',
|
||||
kind: 'coord_event',
|
||||
issue_id: 'bb-123',
|
||||
actor: 'amber-otter',
|
||||
timestamp: '2026-02-28T18:00:00.000Z',
|
||||
data: {
|
||||
event_type: 'SEND',
|
||||
event_id: 'evt_01',
|
||||
project_root: process.cwd(),
|
||||
to_agent: 'cobalt-harbor',
|
||||
state: 'unread',
|
||||
payload: { subject: 's', body: 'b' },
|
||||
},
|
||||
},
|
||||
}),
|
||||
headers: { 'content-type': 'application/json' },
|
||||
});
|
||||
|
||||
const response = await handleCoordEventsPost(request, {
|
||||
writeCoordEvent: async () => ({
|
||||
ok: true,
|
||||
eventId: 'evt_01',
|
||||
commandResult: {
|
||||
success: true,
|
||||
classification: null,
|
||||
command: 'bd',
|
||||
args: [],
|
||||
cwd: process.cwd(),
|
||||
stdout: '',
|
||||
stderr: '',
|
||||
code: 0,
|
||||
durationMs: 1,
|
||||
error: null,
|
||||
},
|
||||
}),
|
||||
});
|
||||
const body = await response.json();
|
||||
|
||||
assert.equal(response.status, 200);
|
||||
assert.equal(body.ok, true);
|
||||
assert.equal(body.eventId, 'evt_01');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue