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
72
tests/components/sessions/conversation-drawer-coord.test.tsx
Normal file
72
tests/components/sessions/conversation-drawer-coord.test.tsx
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
import { describe, it } from 'node:test';
|
||||
import assert from 'node:assert';
|
||||
|
||||
import { buildCommentMutationBody, buildCoordMessageActionEvent } from '../../../src/components/sessions/conversation-drawer';
|
||||
|
||||
describe('ConversationDrawer coord action payloads', () => {
|
||||
const message = {
|
||||
message_id: 'evt_send_1',
|
||||
thread_id: 'bead:bb-123',
|
||||
bead_id: 'bb-123',
|
||||
from_agent: 'amber-otter',
|
||||
to_agent: 'cobalt-harbor',
|
||||
category: 'HANDOFF',
|
||||
subject: 'subject',
|
||||
body: 'body',
|
||||
state: 'unread',
|
||||
requires_ack: true,
|
||||
created_at: '2026-02-28T10:00:00.000Z',
|
||||
read_at: null,
|
||||
acked_at: null,
|
||||
} as const;
|
||||
|
||||
it('builds READ event with event_ref to message id', () => {
|
||||
const payload = buildCoordMessageActionEvent({
|
||||
action: 'read',
|
||||
message: message as any,
|
||||
beadId: 'bb-123',
|
||||
projectRoot: '/tmp/repo',
|
||||
nowIso: '2026-02-28T11:00:00.000Z',
|
||||
}) as any;
|
||||
|
||||
assert.equal(payload.kind, 'coord_event');
|
||||
assert.equal(payload.data.event_type, 'READ');
|
||||
assert.equal(payload.data.event_ref, 'evt_send_1');
|
||||
});
|
||||
|
||||
it('builds ACK event with recipient as actor', () => {
|
||||
const payload = buildCoordMessageActionEvent({
|
||||
action: 'ack',
|
||||
message: message as any,
|
||||
beadId: 'bb-123',
|
||||
projectRoot: '/tmp/repo',
|
||||
nowIso: '2026-02-28T11:00:00.000Z',
|
||||
}) as any;
|
||||
|
||||
assert.equal(payload.actor, 'cobalt-harbor');
|
||||
assert.equal(payload.data.event_type, 'ACK');
|
||||
assert.equal(payload.issue_id, 'bb-123');
|
||||
});
|
||||
});
|
||||
|
||||
describe('ConversationDrawer comment payload', () => {
|
||||
it('includes actor when provided', () => {
|
||||
const payload = buildCommentMutationBody({
|
||||
projectRoot: '/tmp/repo',
|
||||
text: 'hello',
|
||||
actor: 'zenchant',
|
||||
}) as any;
|
||||
|
||||
assert.equal(payload.actor, 'zenchant');
|
||||
});
|
||||
|
||||
it('omits actor when blank', () => {
|
||||
const payload = buildCommentMutationBody({
|
||||
projectRoot: '/tmp/repo',
|
||||
text: 'hello',
|
||||
actor: ' ',
|
||||
}) as any;
|
||||
|
||||
assert.equal('actor' in payload, false);
|
||||
});
|
||||
});
|
||||
|
|
@ -40,6 +40,12 @@ test('UnifiedShell - imports AssignmentPanel', async () => {
|
|||
assert.ok(fileContent.includes('AssignmentPanel'), 'Should import AssignmentPanel');
|
||||
});
|
||||
|
||||
test('UnifiedShell - checks bd health and renders setup warning', async () => {
|
||||
const fileContent = await fs.readFile(path.join(process.cwd(), 'src/components/shared/unified-shell.tsx'), 'utf-8');
|
||||
assert.ok(fileContent.includes('useBdHealth'), 'Should use bd health hook');
|
||||
assert.ok(fileContent.includes('BD setup issue:'), 'Should show bd setup warning text');
|
||||
});
|
||||
|
||||
// Test that AssignmentPanel is rendered conditionally based on view and assignMode
|
||||
test('UnifiedShell - renders AssignmentPanel conditionally', async () => {
|
||||
const fileContent = await fs.readFile(path.join(process.cwd(), 'src/components/shared/unified-shell.tsx'), 'utf-8');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue