feat(ai): add personal summary models and retire Q&A
Add an admin-managed provider model catalog with per-user summary selection, migration backfill, and generation snapshots. Retire report creation and messaging while preserving owner-scoped history. Refs #15 #16 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -31,7 +31,7 @@ vi.mock('@/api/summaries', () => ({
|
||||
}))
|
||||
|
||||
vi.mock('@/api/assets', () => ({ assetsApi: { list: listAssets } }))
|
||||
vi.mock('@/api/preferences', () => ({ preferencesApi: { get: getPreferences } }))
|
||||
vi.mock('@/api/preferences', () => ({ preferencesApi: { get: getPreferences, listSummaryModels: vi.fn().mockResolvedValue([{ id: 'model-a', provider: 'OpenAI', model: 'summary' }]) } }))
|
||||
vi.mock('@/api/reports', () => ({ reportsApi: { create: createReport } }))
|
||||
vi.mock('@/lib/auth', () => ({
|
||||
useAuth: () => ({ user: { email: 'reader@example.test', role: 'user' } }),
|
||||
@ -50,7 +50,7 @@ const followedAssets = [
|
||||
{ id: 'asset-2', user_id: 'reader-id', symbol: 'SPX', name: 'S&P 500', created_at: '2026-11-19T00:00:00.000Z' },
|
||||
]
|
||||
|
||||
const preferences = { language: 'fr', ranking_mode: 'title_content' }
|
||||
const preferences = { language: 'fr', ranking_mode: 'title_content', summary_model_id: 'model-a' }
|
||||
|
||||
const outcome = (status: string, overrides: Record<string, unknown> = {}) => ({
|
||||
id: 'generation-aggregate-id',
|
||||
|
||||
Reference in New Issue
Block a user