feat: Frontend Conversation-based Chat UI (#60) #66

Open
shoko wants to merge 2 commits from fix/issue-60 into main

2 Commits

Author SHA1 Message Date
shokollm
f46cad4379 WIP: Multiple fixes and improvements
Backend:
- Fixed auth issue where get_optional_user wasn't properly extracting tokens
- Added user_id to conversational agent for proper auth context
- Fixed DCA buy logic to support multiple buys on dips
- Fixed sell logic to use amount_percent
- Added comprehensive backtest engine tests
- Fixed kline data validation for bad price data
- Fixed chained tool calls handling

Frontend:
- BotCard now links to chat page instead of bot page
- Chat page handles direct bot loading from dashboard
- Various UI improvements and fixes

Tests:
- Added test_agent.py with mock client tests
- Added test_backtest_engine.py with 7 comprehensive tests
2026-04-15 15:20:42 +00:00
shokollm
1b8761d1f4 feat: frontend conversation-based chat UI (#60)
- Add Conversation, Message, ConversationWithMessages types
- Add conversations API client methods (list, create, get, delete, chat, setBot)
- Create conversationStore for state management
- Create ChatLayout component with left/right panes
- Create ConversationList component for left pane
- Create ChatArea component for messages display
- Create ChatInput component for message input
- Create BotInfoPanel component for right pane
- Create AnonymousBanner component for non-logged users
- Create CandlestickLoader animation component
- Add /home and /chat routes
- Handle anonymous user rate limits (40 warning, 50 max)
- Handle system rate limits (429) and auth limits (403)
2026-04-14 06:36:55 +00:00