Add hybrid research copilot workspace
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user