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
90
tests/lib/coord-projections-inbox.test.ts
Normal file
90
tests/lib/coord-projections-inbox.test.ts
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
|
||||
import { projectInbox, projectMessageState, type CoordProtocolEvent } from '../../src/lib/coord-projections';
|
||||
|
||||
const baseSend: CoordProtocolEvent = {
|
||||
version: 'coord.v1',
|
||||
kind: 'coord_event',
|
||||
issue_id: 'bb-123',
|
||||
actor: 'amber-otter',
|
||||
timestamp: '2026-02-28T10:00:00.000Z',
|
||||
data: {
|
||||
event_type: 'SEND',
|
||||
event_id: 'evt_send_1',
|
||||
project_root: '/tmp/repo',
|
||||
to_agent: 'cobalt-harbor',
|
||||
state: 'unread',
|
||||
payload: {
|
||||
subject: 'handoff',
|
||||
body: 'please review',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
test('projectMessageState derives unread -> read -> acked', () => {
|
||||
const events: CoordProtocolEvent[] = [
|
||||
{
|
||||
...baseSend,
|
||||
timestamp: '2026-02-28T10:00:00.000Z',
|
||||
},
|
||||
{
|
||||
...baseSend,
|
||||
timestamp: '2026-02-28T10:01:00.000Z',
|
||||
data: {
|
||||
event_type: 'READ',
|
||||
event_id: 'evt_read_1',
|
||||
event_ref: 'evt_send_1',
|
||||
project_root: '/tmp/repo',
|
||||
payload: {},
|
||||
},
|
||||
},
|
||||
{
|
||||
...baseSend,
|
||||
timestamp: '2026-02-28T10:02:00.000Z',
|
||||
data: {
|
||||
event_type: 'ACK',
|
||||
event_id: 'evt_ack_1',
|
||||
event_ref: 'evt_send_1',
|
||||
project_root: '/tmp/repo',
|
||||
payload: {},
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
const state = projectMessageState(events);
|
||||
assert.equal(state.get('evt_send_1'), 'acked');
|
||||
});
|
||||
|
||||
test('projectInbox tolerates out-of-order and unknown refs', () => {
|
||||
const events: CoordProtocolEvent[] = [
|
||||
{
|
||||
...baseSend,
|
||||
timestamp: '2026-02-28T10:02:00.000Z',
|
||||
data: {
|
||||
event_type: 'ACK',
|
||||
event_id: 'evt_ack_unknown',
|
||||
event_ref: 'evt_missing',
|
||||
project_root: '/tmp/repo',
|
||||
payload: {},
|
||||
},
|
||||
},
|
||||
{
|
||||
...baseSend,
|
||||
timestamp: '2026-02-28T10:01:00.000Z',
|
||||
data: {
|
||||
event_type: 'READ',
|
||||
event_id: 'evt_read_1',
|
||||
event_ref: 'evt_send_1',
|
||||
project_root: '/tmp/repo',
|
||||
payload: {},
|
||||
},
|
||||
},
|
||||
baseSend,
|
||||
];
|
||||
|
||||
const inbox = projectInbox(events, 'bb-123', 'cobalt-harbor');
|
||||
assert.equal(inbox.length, 1);
|
||||
assert.equal(inbox[0].state, 'read');
|
||||
assert.equal(inbox[0].to_agent, 'cobalt-harbor');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue