Add hybrid research copilot workspace

This commit is contained in:
2026-03-14 19:32:00 -04:00
parent 7a42d73a48
commit 2ee9a549a3
27 changed files with 2864 additions and 323 deletions

View File

@@ -120,4 +120,35 @@ describe('task notification builder', () => {
expect(notification.detailLine).toBe('Could not load the primary filing document.');
expect(notification.actions.some((action) => action.id === 'open_filings')).toBe(true);
});
it('adds research navigation for completed research brief jobs', () => {
const notification = buildTaskNotification(baseTask({
task_type: 'research_brief',
status: 'completed',
stage: 'completed',
stage_detail: 'Generated research brief artifact for NVDA.',
stage_context: {
subject: {
ticker: 'NVDA'
}
},
payload: {
ticker: 'NVDA',
query: 'Update the thesis'
},
result: {
ticker: 'NVDA',
artifactId: 12,
model: 'test-model'
},
finished_at: '2026-03-09T10:06:00.000Z'
}));
expect(notification.actions[0]).toMatchObject({
id: 'open_research',
href: '/research?ticker=NVDA',
primary: true
});
expect(notification.stats.some((stat) => stat.label === 'Artifact' && stat.value === '12')).toBe(true);
});
});