feat(ai-chat): add auto-seed banner for empty portfolios
When the agent returns an empty-portfolio response (e.g. after a new
Google OAuth sign-in), a blue banner appears offering to load 18 demo
activities. Clicking 'Load demo data' calls POST /agent/seed with the
user's own bearer token so the seeded data belongs to their account.
Also adds the /seed URL construction in the component constructor.
Co-authored-by: Cursor <cursoragent@cursor.com>
content:`🌱 **Demo portfolio loaded!** I've added 18 transactions across AAPL, MSFT, NVDA, GOOGL, AMZN, and VTI spanning 2021–2024. Try asking "how is my portfolio doing?" to see your analysis.`
});
}else{
this.messages.push({role:'assistant',content:'⚠️ Could not load demo data. Please try again.'});
}
this.changeDetectorRef.markForCheck();
this.scrollToBottom();
},
error:()=>{
this.isSeeding=false;
this.messages.push({role:'assistant',content:'⚠️ Could not reach the seeding endpoint. Make sure the agent is running.'});