@@ -83,7 +83,6 @@ export default function Home() {
8383 setWsConnected ( true ) ;
8484 setIsLoading ( false ) ;
8585 } else if ( isAgentMessageNotification ( notification ) ) {
86- // payload is fully typed as AgentMessagePayload — no cast needed
8786 const { text, proactive, timestamp } = notification . payload ;
8887 const agentMsg : ChatMessage = {
8988 id : Date . now ( ) ,
@@ -93,6 +92,7 @@ export default function Home() {
9392 timestamp,
9493 } ;
9594 setMessages ( ( prev : ChatMessage [ ] ) => [ ...prev , agentMsg ] ) ;
95+ console . log ( "[App] Agent message received" , text ) ;
9696
9797 // Parse allocations if present
9898 const parsedAllocations = parseAllocationsFromMessage ( text ) ;
@@ -116,6 +116,7 @@ export default function Home() {
116116 // Register goal with notification server on mount
117117 useEffect ( ( ) => {
118118 if ( wsConnected ) {
119+ console . log ( "[App] Registering goal..." ) ;
119120 registerGoal ( {
120121 currentBalance : goalData . currentBalance ,
121122 targetAmount : goalData . targetAmount ,
@@ -137,6 +138,7 @@ export default function Home() {
137138 } ;
138139 setMessages ( ( prev : ChatMessage [ ] ) => [ ...prev , userMsg ] ) ;
139140 setIsTyping ( true ) ;
141+ console . log ( "[App] User sent message:" , userMsg . text ) ;
140142
141143 // Mock agent response delay
142144 setTimeout ( ( ) => {
@@ -175,7 +177,7 @@ export default function Home() {
175177 { /* Left Panel - Dashboard */ }
176178 < GlassPanel >
177179 < h1 > Smasage Portfolio</ h1 >
178- < p className = "text-muted" style = { { marginBottom : "2.5rem" } } >
180+ < p className = "text-muted portfolio-subtitle" >
179181 Real-time on-chain tracking • Stellar Mainnet 🚀
180182 </ p >
181183
@@ -205,16 +207,7 @@ export default function Home() {
205207 ) }
206208
207209 < div className = "allocation-list" >
208- < h3
209- style = { {
210- display : "flex" ,
211- alignItems : "center" ,
212- gap : "8px" ,
213- fontSize : "1.1rem" ,
214- marginBottom : "1.25rem" ,
215- marginTop : "1rem" ,
216- } }
217- >
210+ < h3 className = "allocation-title" >
218211 < Activity size = { 18 } aria-hidden = "true" /> Active Strategy Routes
219212 </ h3 >
220213
@@ -246,4 +239,4 @@ export default function Home() {
246239 </ >
247240 </ ErrorBoundary >
248241 ) ;
249- }
242+ }
0 commit comments