mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 17:26:23 +02:00
feat: add new widgets for holder analysis, live token data, price, market overview, and trending tokens
- Implemented HolderAnalysisWidget to display holder distribution and concentration risk. - Created LiveTokenDataWidget for real-time market data including price changes and transaction activity. - Added LiveTokenPriceWidget to show current token price and changes over various timeframes. - Developed MarketOverviewWidget to provide a summary of market statistics and token prices. - Introduced TrendingTokensWidget to showcase trending tokens with price changes and volume. - Added TradingSuggestionToolUI for AI-powered trading suggestions with detailed entry, targets, and stop-loss information. - Enhanced settings components for better user configuration options in the SurfSense Browser Extension.
This commit is contained in:
parent
2bf40ab5ce
commit
8bc092e40e
23 changed files with 2173 additions and 111 deletions
|
|
@ -1,8 +1,18 @@
|
|||
# SurfSense 2.0 - Epics & Stories
|
||||
|
||||
**Project:** SurfSense Crypto Co-Pilot
|
||||
**Created:** 2026-02-01
|
||||
**Status:** Planning Complete
|
||||
**Project:** SurfSense Crypto Co-Pilot
|
||||
**Created:** 2026-02-01
|
||||
**Updated:** 2026-02-04
|
||||
**Status:** 🚧 IN DEVELOPMENT
|
||||
|
||||
---
|
||||
|
||||
## Strategy Update (2026-02-04)
|
||||
|
||||
> **Extension = Full Features** (không chỉ Quick Actions)
|
||||
>
|
||||
> Extension là **full-featured crypto co-pilot** với đầy đủ tính năng phân tích, monitoring, và trading intelligence.
|
||||
> Web Dashboard tập trung vào settings management và detailed analytics.
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -14,98 +24,109 @@ Tài liệu này tổ chức tất cả epics và user stories cho SurfSense 2.0
|
|||
|
||||
## Epic Summary
|
||||
|
||||
| Epic | Phase | Stories | Status | Priority | Duration |
|
||||
|------|-------|---------|--------|----------|----------|
|
||||
| [Epic 1: Extension Core Infrastructure](./epic-1-extension-core-infrastructure.md) | Phase 1 | 6 | ✅ COMPLETED | P0 | 2 weeks |
|
||||
| [Epic 2: Smart Monitoring & Alerts](./epic-2-smart-monitoring-alerts.md) | Phase 2 | 3 | 📋 PLANNED | P0 | 2 weeks |
|
||||
| [Epic 3: Trading Intelligence](./epic-3-trading-intelligence.md) | Phase 3 | 3 | 📋 PLANNED | P1 | 2 weeks |
|
||||
| [Epic 4: Content Creation & Productivity](./epic-4-content-creation-productivity.md) | Phase 4 | 3 | 📋 PLANNED | P2 | 2 weeks |
|
||||
| Epic | Phase | Stories | Status | Frontend | Backend | Priority |
|
||||
|------|-------|---------|--------|----------|---------|----------|
|
||||
| [Epic 1: AI-Powered Crypto Assistant](./epic-1-ai-powered-crypto-assistant.md) | Phase 1 | 10 | 🚧 IN PROGRESS | 100% ✅ | 0% ❌ | P0 |
|
||||
| [Epic 2: Smart Monitoring & Alerts](./epic-2-smart-monitoring-alerts.md) | Phase 2 | 3 | 🚧 IN PROGRESS | 100% ✅ | 0% ❌ | P0 |
|
||||
| [Epic 3: Trading Intelligence](./epic-3-trading-intelligence.md) | Phase 3 | 3 | 🚧 IN PROGRESS | 100% ✅ | 0% ❌ | P1 |
|
||||
| [Epic 4: Content Creation & Productivity](./epic-4-content-creation-productivity.md) | Phase 4 | 5 | 🚧 IN PROGRESS | 100% ✅ | 0% ❌ | P2 |
|
||||
|
||||
**Total:** 4 epics, 15 user stories, 8 weeks
|
||||
**Total:** 4 epics, 21 user stories
|
||||
|
||||
**🔴 BLOCKER:** Backend APIs chưa được implement (Authentication, Settings, Chat sync, Data APIs)
|
||||
|
||||
---
|
||||
|
||||
## Phase 1: Extension Core Infrastructure ✅
|
||||
## Phase 1: AI-Powered Crypto Assistant 🚧
|
||||
|
||||
**Epic 1** - Foundation cho tất cả features
|
||||
|
||||
### Stories:
|
||||
1. **Story 1.1:** Side Panel Architecture (FR-EXT-01)
|
||||
2. **Story 1.2:** AI Chat Interface Integration (FR-EXT-02)
|
||||
3. **Story 1.3:** Page Context Detection (FR-EXT-03)
|
||||
4. **Story 1.4:** DexScreener Smart Integration (FR-EXT-04)
|
||||
5. **Story 1.5:** Quick Capture (FR-EXT-05)
|
||||
6. **Story 1.6:** Settings Sync với Frontend (FR-EXT-06)
|
||||
1. **Story 1.0:** Authentication System (FR-EXT-00) - ⏳ BACKEND BLOCKER
|
||||
2. **Story 1.1:** Side Panel Architecture (FR-EXT-01) - ✅ DONE
|
||||
3. **Story 1.2:** AI Chat Interface Integration (FR-EXT-02) - ✅ DONE
|
||||
4. **Story 1.3:** Page Context Detection (FR-EXT-03) - ✅ DONE
|
||||
5. **Story 1.4:** DexScreener Smart Integration (FR-EXT-04) - ✅ DONE
|
||||
6. **Story 1.5:** Quick Capture (FR-EXT-05) - ✅ DONE
|
||||
7. **Story 1.6:** Settings Sync với Frontend (FR-EXT-06) - ⏳ BACKEND PENDING
|
||||
8. **Story 1.7:** Universal Token Search Bar (FR-EXT-07) - ✅ DONE (NEW)
|
||||
9. **Story 1.8:** Multi-Page Token Detection (FR-EXT-08) - ✅ DONE (NEW)
|
||||
10. **Story 1.9:** Floating Quick Action Button (FR-EXT-09) - ✅ DONE (NEW)
|
||||
|
||||
**Key Deliverables:**
|
||||
- ✅ Chrome Side Panel working
|
||||
- ✅ AI chat interface integrated
|
||||
- ✅ Context detection for DexScreener
|
||||
- ✅ Context detection for DexScreener, Twitter, etc.
|
||||
- ✅ Token info card
|
||||
- ✅ Quick capture button
|
||||
- ✅ Settings sync infrastructure
|
||||
- ✅ Universal token search
|
||||
- ✅ Multi-page token detection
|
||||
- ✅ Floating quick action button
|
||||
- ⏳ Settings sync (needs backend)
|
||||
- ❌ Authentication (needs backend)
|
||||
|
||||
---
|
||||
|
||||
## Phase 2: Smart Monitoring & Alerts 📋
|
||||
## Phase 2: Smart Monitoring & Alerts 🚧
|
||||
|
||||
**Epic 2** - Risk protection & opportunity alerts
|
||||
|
||||
### Stories:
|
||||
1. **Story 2.1:** Real-time Price Alerts (FR-EXT-07)
|
||||
2. **Story 2.2:** Whale Activity Tracker (FR-EXT-08)
|
||||
3. **Story 2.3:** Rug Pull Early Warning System (FR-EXT-09)
|
||||
1. **Story 2.1:** Real-time Price Alerts (FR-EXT-10) - ✅ UI DONE, ⏳ API PENDING
|
||||
2. **Story 2.2:** Whale Activity Tracker (FR-EXT-11) - ✅ UI DONE, ⏳ API PENDING
|
||||
3. **Story 2.3:** Rug Pull Early Warning System (FR-EXT-12) - ✅ UI DONE, ⏳ API PENDING
|
||||
|
||||
**Key Deliverables:**
|
||||
- Watchlist management
|
||||
- Price/volume/liquidity alerts
|
||||
- Browser notifications
|
||||
- Whale transaction monitoring
|
||||
- Rug pull risk assessment
|
||||
- Risk score display
|
||||
- ✅ Watchlist management UI (WatchlistPanel, WatchlistWidget)
|
||||
- ✅ Alert configuration UI (AlertConfigModal, AlertWidget)
|
||||
- ✅ Whale activity UI (WhaleActivityFeed, WhaleActivityWidget)
|
||||
- ✅ Safety score display (SafetyScoreDisplay)
|
||||
- ⏳ Browser notifications (needs backend)
|
||||
- ⏳ Real-time data (needs DexScreener API)
|
||||
|
||||
**Business Value:** Risk protection = User trust
|
||||
|
||||
---
|
||||
|
||||
## Phase 3: Trading Intelligence 📋
|
||||
## Phase 3: Trading Intelligence 🚧
|
||||
|
||||
**Epic 3** - AI-powered trading insights
|
||||
|
||||
### Stories:
|
||||
1. **Story 3.1:** One-Click Token Analysis (FR-EXT-10)
|
||||
2. **Story 3.2:** Smart Entry/Exit Suggestions (FR-EXT-11)
|
||||
3. **Story 3.3:** Portfolio Tracker Integration (FR-EXT-12)
|
||||
1. **Story 3.1:** One-Click Token Analysis (FR-EXT-13) - ✅ UI DONE, ⏳ API PENDING
|
||||
2. **Story 3.2:** Smart Entry/Exit Suggestions (FR-EXT-14) - ✅ UI DONE, ⏳ API PENDING
|
||||
3. **Story 3.3:** Portfolio Tracker Integration (FR-EXT-15) - ✅ UI DONE, ⏳ API PENDING
|
||||
|
||||
**Key Deliverables:**
|
||||
- Comprehensive token analysis
|
||||
- AI-generated summaries
|
||||
- Entry/exit suggestions
|
||||
- Risk/reward calculations
|
||||
- Wallet connection
|
||||
- Portfolio tracking
|
||||
- P&L analytics
|
||||
- ✅ Token analysis UI (TokenAnalysisPanel, TokenAnalysisWidget)
|
||||
- ✅ Trading suggestions UI (TradingSuggestionPanel, TradingSuggestionWidget)
|
||||
- ✅ Portfolio UI (PortfolioPanel, PortfolioWidget)
|
||||
- ⏳ AI-generated summaries (needs backend)
|
||||
- ⏳ Wallet connection (needs integration)
|
||||
- ⏳ Real-time P&L (needs backend)
|
||||
|
||||
**Business Value:** Better decisions = Better results = Happy users
|
||||
|
||||
---
|
||||
|
||||
## Phase 4: Content Creation & Productivity 📋
|
||||
## Phase 4: Content Creation & Productivity ✅
|
||||
|
||||
**Epic 4** - Tools for creators & power users
|
||||
|
||||
### Stories:
|
||||
1. **Story 4.1:** Chart Screenshot with Annotations (FR-EXT-13)
|
||||
2. **Story 4.2:** AI Thread Generator (FR-EXT-14)
|
||||
3. **Story 4.3:** Quick Actions & Productivity (FR-EXT-15, 16, 17)
|
||||
1. **Story 4.1:** Chart Screenshot with Annotations (FR-EXT-16) - ✅ UI DONE
|
||||
2. **Story 4.2:** AI Thread Generator (FR-EXT-17) - ✅ UI DONE, ⏳ AI PENDING
|
||||
3. **Story 4.3:** Quick Actions Context Menu (FR-EXT-18) - ✅ UI DONE
|
||||
4. **Story 4.4:** Smart Notifications Management (FR-EXT-19) - ✅ UI DONE
|
||||
5. **Story 4.5:** Keyboard Shortcuts (FR-EXT-20) - ✅ UI DONE
|
||||
|
||||
**Key Deliverables:**
|
||||
- Chart capture & annotation
|
||||
- Drawing tools
|
||||
- AI thread generation
|
||||
- Context menu quick actions
|
||||
- Smart notifications
|
||||
- Keyboard shortcuts
|
||||
- ✅ Chart capture UI (ChartCapturePanel, ChartCaptureWidget)
|
||||
- ✅ Thread generator UI (ThreadGeneratorPanel, ThreadGeneratorWidget)
|
||||
- ✅ Context menu quick actions (background/index.ts, useContextAction hook)
|
||||
- ✅ Smart notifications UI (NotificationSettingsPanel, NotificationsList)
|
||||
- ✅ Keyboard shortcuts (4 shortcuts: Analyze, Watchlist, Capture, Portfolio)
|
||||
- ⏳ AI thread generation (needs backend)
|
||||
|
||||
**Business Value:** Content creation = Viral marketing
|
||||
|
||||
|
|
@ -113,49 +134,75 @@ Tài liệu này tổ chức tất cả epics và user stories cho SurfSense 2.0
|
|||
|
||||
## Implementation Roadmap
|
||||
|
||||
### Week 1-2: Phase 1 ✅
|
||||
### Week 1-2: Phase 1 - Core Infrastructure
|
||||
- [x] Side panel architecture
|
||||
- [x] Chat interface
|
||||
- [x] Context detection
|
||||
- [x] Context detection (DexScreener, Twitter, etc.)
|
||||
- [x] DexScreener integration
|
||||
- [x] Quick capture
|
||||
- [x] Settings sync
|
||||
- [x] Universal token search (NEW)
|
||||
- [x] Multi-page token detection (NEW)
|
||||
- [x] Floating quick action button (NEW)
|
||||
- [ ] Authentication (BLOCKER)
|
||||
- [ ] Settings sync API
|
||||
|
||||
### Week 3-4: Phase 2 (Next)
|
||||
- [ ] Watchlist & alerts
|
||||
- [ ] Whale tracker
|
||||
- [ ] Rug pull detection
|
||||
### Week 3-4: Phase 2 - Smart Monitoring
|
||||
- [x] Watchlist UI (WatchlistPanel, WatchlistWidget)
|
||||
- [x] Alert config UI (AlertConfigModal, AlertWidget)
|
||||
- [x] Whale activity UI (WhaleActivityFeed, WhaleActivityWidget)
|
||||
- [x] Safety score UI (SafetyScoreDisplay)
|
||||
- [ ] DexScreener API integration
|
||||
- [ ] Real-time price alerts
|
||||
- [ ] Browser notifications
|
||||
|
||||
### Week 5-6: Phase 3
|
||||
- [ ] Token analysis
|
||||
- [ ] Trading suggestions
|
||||
- [ ] Portfolio tracker
|
||||
### Week 5-6: Phase 3 - Trading Intelligence
|
||||
- [x] Token analysis UI (TokenAnalysisPanel, TokenAnalysisWidget)
|
||||
- [x] Trading suggestions UI (TradingSuggestionPanel, TradingSuggestionWidget)
|
||||
- [x] Portfolio UI (PortfolioPanel, PortfolioWidget)
|
||||
- [ ] AI analysis backend
|
||||
- [ ] Wallet connection
|
||||
- [ ] Real-time P&L
|
||||
|
||||
### Week 7-8: Phase 4
|
||||
- [ ] Chart capture
|
||||
- [ ] Thread generator
|
||||
- [ ] Productivity features
|
||||
### Week 7-8: Phase 4 - Content & Productivity
|
||||
- [x] Chart capture UI (ChartCapturePanel, ChartCaptureWidget)
|
||||
- [x] Thread generator UI (ThreadGeneratorPanel, ThreadGeneratorWidget)
|
||||
- [x] Context menu quick actions
|
||||
- [x] Smart notifications UI
|
||||
- [x] Keyboard shortcuts (4 shortcuts)
|
||||
- [ ] AI thread generation backend
|
||||
|
||||
---
|
||||
|
||||
## Feature Responsibility Matrix
|
||||
|
||||
| Feature | Extension | Frontend | Sync |
|
||||
|---------|-----------|----------|------|
|
||||
> **Strategy: Extension = Full Features**
|
||||
|
||||
| Feature | Extension | Web Dashboard | Sync |
|
||||
|---------|-----------|---------------|------|
|
||||
| Model Selection | 📖 Read-only | ✏️ Full control | API |
|
||||
| Search Space | 📖 Read-only | ✏️ Full control | API |
|
||||
| Chat | ✅ Full UI | ✅ Full UI | API |
|
||||
| Connectors | 📖 Use only | ✏️ Setup | API |
|
||||
| Documents | 👁️ View | ✏️ Manage | API |
|
||||
| Watchlist | ✏️ Add/Remove | ✏️ Full | Storage + API |
|
||||
| Alerts | ✏️ Basic | ✏️ Full | API |
|
||||
| Watchlist | ✅ Full | ✅ Full | API |
|
||||
| Alerts | ✅ Full | ✅ Full | API |
|
||||
| Token Analysis | ✅ Full | ✅ Full (via chat) | API |
|
||||
| Whale Activity | ✅ Full | ✅ Full (via chat) | API |
|
||||
| Trading Suggestions | ✅ Full | ✅ Full (via chat) | API |
|
||||
| Portfolio | ✅ Full | ✅ Full | API |
|
||||
| Chart Capture | ✅ Full | ❌ N/A | Local |
|
||||
| Thread Generator | ✅ Full | ❌ N/A | Local |
|
||||
| Context Detection | ✅ Full | ❌ N/A | Local |
|
||||
| Floating Button | ✅ Full | ❌ N/A | Local |
|
||||
| Settings | 📖 Quick | ✏️ Full | API |
|
||||
| Analytics | 👁️ Basic | ✅ Full | API |
|
||||
|
||||
**Legend:**
|
||||
- ✅ Full feature
|
||||
- ✏️ Full control
|
||||
- 📖 Read-only
|
||||
- 👁️ View only
|
||||
- ❌ N/A
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -163,17 +210,22 @@ Tài liệu này tổ chức tất cả epics và user stories cho SurfSense 2.0
|
|||
|
||||
### Frontend (Extension)
|
||||
- **Framework:** Plasmo (React + TypeScript)
|
||||
- **UI:** @assistant-ui/react, shadcn/ui
|
||||
- **UI:** @assistant-ui/react, shadcn/ui, Lucide icons
|
||||
- **State:** Plasmo Storage, React Context
|
||||
- **APIs:** Chrome Extension APIs
|
||||
- **APIs:** Chrome Extension APIs (sidePanel, storage, tabs, identity)
|
||||
|
||||
### Backend
|
||||
### Frontend (Web)
|
||||
- **Framework:** Next.js (React + TypeScript)
|
||||
- **UI:** shadcn/ui, @assistant-ui/react
|
||||
- **State:** React Context, Server Components
|
||||
|
||||
### Backend (⏳ PENDING)
|
||||
- **Framework:** FastAPI (Python)
|
||||
- **AI:** Gemini 1.5 Flash / GPT-4o-mini
|
||||
- **RAG:** Supabase (pgvector)
|
||||
- **Cache:** Redis
|
||||
|
||||
### Data Sources
|
||||
### Data Sources (⏳ PENDING)
|
||||
- DexScreener API
|
||||
- DefiLlama API
|
||||
- Helius (Solana)
|
||||
|
|
@ -183,43 +235,79 @@ Tài liệu này tổ chức tất cả epics và user stories cho SurfSense 2.0
|
|||
|
||||
---
|
||||
|
||||
## Success Metrics
|
||||
## Current Progress
|
||||
|
||||
### Phase 1 (✅ COMPLETED)
|
||||
### Phase 1 (✅ 100% Frontend)
|
||||
- [x] Extension installable
|
||||
- [x] Chat works
|
||||
- [x] Chat works (mock data)
|
||||
- [x] Context detection works
|
||||
- [x] Token card displays
|
||||
- [x] Universal search works
|
||||
- [x] Multi-page detection works
|
||||
- [x] Floating button works
|
||||
- [ ] Authentication (BACKEND)
|
||||
- [ ] Real data from APIs (BACKEND)
|
||||
|
||||
### Phase 2 (Target)
|
||||
- [ ] 100+ tokens in watchlists
|
||||
- [ ] 1000+ alerts set
|
||||
- [ ] 0 false positive rug pull warnings
|
||||
### Phase 2 (✅ 100% UI)
|
||||
- [x] Watchlist UI complete
|
||||
- [x] Alert config UI complete
|
||||
- [x] Whale activity UI complete
|
||||
- [x] Safety score UI complete
|
||||
- [ ] Real-time data (BACKEND)
|
||||
- [ ] Browser notifications (BACKEND)
|
||||
|
||||
### Phase 3 (Target)
|
||||
- [ ] 500+ token analyses
|
||||
- [ ] 80%+ suggestion accuracy
|
||||
- [ ] 50+ wallets connected
|
||||
### Phase 3 (✅ 100% UI)
|
||||
- [x] Token analysis UI complete
|
||||
- [x] Trading suggestions UI complete
|
||||
- [x] Portfolio UI complete
|
||||
- [x] Holder analysis widget
|
||||
- [x] Market overview widget
|
||||
- [x] Trending tokens widget
|
||||
- [x] Live token price/data widgets
|
||||
- [ ] AI analysis (BACKEND)
|
||||
- [ ] Wallet connection (BACKEND)
|
||||
|
||||
### Phase 4 (Target)
|
||||
- [ ] 100+ charts captured
|
||||
- [ ] 50+ threads generated
|
||||
- [ ] 200+ daily shortcut uses
|
||||
### Phase 4 (✅ 100% UI)
|
||||
- [x] Chart capture UI complete
|
||||
- [x] Thread generator UI complete
|
||||
- [x] Context menu quick actions
|
||||
- [x] Smart notifications UI
|
||||
- [x] Keyboard shortcuts (4 shortcuts)
|
||||
- [ ] AI thread generation (BACKEND)
|
||||
|
||||
---
|
||||
|
||||
## 🔴 Critical Blockers
|
||||
|
||||
1. **Backend Authentication (Story 1.0)**
|
||||
- Cần JWT + OAuth
|
||||
- Blocks: Settings sync, Chat sync, User data
|
||||
|
||||
2. **DexScreener API Integration**
|
||||
- Cần real-time token data
|
||||
- Blocks: All token-related features
|
||||
|
||||
3. **Backend APIs**
|
||||
- Settings, Chat, Capture endpoints
|
||||
- Blocks: Extension ↔ Web sync
|
||||
|
||||
---
|
||||
|
||||
## Next Steps
|
||||
|
||||
1. ✅ **Epic 1 Complete** - Phase 1 infrastructure done
|
||||
2. 🎯 **Start Epic 2** - Begin Phase 2 implementation
|
||||
3. 📝 **Create Stories** - Break down Epic 2 into individual story files
|
||||
4. 🚀 **Sprint Planning** - Plan 2-week sprint for Phase 2
|
||||
1. 🔴 **PRIORITY: Backend Authentication** - Implement Story 1.0
|
||||
2. 🔴 **PRIORITY: DexScreener API** - Replace mock data with real data
|
||||
3. 🔴 **PRIORITY: Backend APIs** - Settings, Chat, Capture endpoints
|
||||
4. 🟡 **AI Thread Generation** - Backend for Epic 4.2
|
||||
5. 🟡 **Browser Notifications** - Real-time alerts
|
||||
6. 🟢 **Wallet Connection** - Portfolio integration
|
||||
|
||||
---
|
||||
|
||||
## Related Documents
|
||||
|
||||
- [PRD](../_bmad-output/planning-artifacts/prd.md)
|
||||
- [Extension UX Strategy](../.gemini/antigravity/brain/02a071c7-57fc-4f43-a2e8-516ac511579a/extension-ux-integration-strategy.md)
|
||||
- [Extension Technical Spec](../.gemini/antigravity/brain/02a071c7-57fc-4f43-a2e8-516ac511579a/extension-sidepanel-technical-spec.md)
|
||||
- [Feature Brainstorming](../.gemini/antigravity/brain/02a071c7-57fc-4f43-a2e8-516ac511579a/extension-features-brainstorming.md)
|
||||
- [PRD v2](../_bmad-output/planning-artifacts/prd.md)
|
||||
- [Epic 1: AI-Powered Crypto Assistant](./epic-1-ai-powered-crypto-assistant.md)
|
||||
- [Epic 2: Smart Monitoring & Alerts](./epic-2-smart-monitoring-alerts.md)
|
||||
- [Epic 3: Trading Intelligence](./epic-3-trading-intelligence.md)
|
||||
- [Epic 4: Content Creation & Productivity](./epic-4-content-creation-productivity.md)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue