Commit Graph

173 Commits

Author SHA1 Message Date
tangmengqiu
ef80479ea1 fix: Remove duplicate selectExchange key in translations
Fixed TypeScript compilation error TS1117 caused by duplicate
'selectExchange' key in both English and Chinese translation objects.
The key was already defined in the "AI Traders Management" section,
so removed the duplicate from "AI Traders Page - Additional" section.
Co-Authored-By: tinkle-community <tinklefund@gmail.com>
2025-11-01 00:02:00 -04:00
tangmengqiu
c31da584c0 fix: Complete i18n implementation for English language display
This commit addresses the issue where switching to English still showed Chinese text in many UI elements.
Changes made:
- Added 40+ missing translation keys to translations.ts for both English and Chinese
- Updated App.tsx to use t() function for all hardcoded text (logout button, loading message)
- Updated AITradersPage.tsx extensively:
  - Replaced all alert/confirm messages with translation keys
  - Updated status labels (inUse, enabled, configured)
  - Updated all modal components (SignalSource, ModelConfig, ExchangeConfig)
  - Added language prop to all modal components
  - Replaced all Chinese UI text with translation function calls
The implementation now properly supports language switching between English and Chinese throughout the entire application.
Co-Authored-By: tinkle-community <tinklefund@gmail.com>
2025-10-31 23:58:44 -04:00
tinkle-community
4448405421 Merge pull request #151 from Icyoung/dev
Dev 竞赛fix、交易员新增参数
2025-11-01 02:42:42 +08:00
icy
29da893937 删除未使用的AlertTriangle导入
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: tinkle-community <tinklefund@gmail.com>
2025-11-01 02:34:33 +08:00
icy
5336568bf4 手动合并冲突,保留TraderConfigModal功能并添加lucide-react图标支持
- 解决AITradersPage.tsx合并冲突,保留TraderConfigModal导入
- 添加lucide-react图标库支持
- 保留信号源配置的OI TOP URL功能
- 使用我们版本解决其他文件冲突,保持UI简洁
- 确保编译成功和依赖正确安装
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: tinkle-community <tinklefund@gmail.com>
2025-11-01 02:33:37 +08:00
Luna Martinez
8590da0b4b Merge pull request #134 from tpkeeper/dev
fix(mcp/client): correct receiver name
2025-10-31 14:25:20 -04:00
icy
7a96903ee5 Merge branch 'dev' of github.com:Icyoung/nofx
# Conflicts:
#	manager/trader_manager.go
#	web/src/components/AITradersPage.tsx
2025-11-01 02:23:05 +08:00
tinkle-community
298d64d7d8 Merge pull request #138 from zhoujunhehe/dev
UI feat: enhance UI with Lucide icons & add LOGO
2025-11-01 02:21:44 +08:00
icy
d1d9810075 竞赛fix、交易员新增参数 2025-11-01 02:17:11 +08:00
Ember
e5208522f2 UI feat: replace Lucide icons with logo images in multiple components 2025-10-31 23:54:10 +08:00
Ember
899add597a feat: enhance UI with Lucide icons across various components
- add logo
- Replaced emoji placeholders with Lucide icons in AITradersPage, CompetitionPage, EquityChart, Header, LoginPage, and RegisterPage for improved visual consistency.
- Updated button styles to include icons for actions like adding models and exchanges.
- Enhanced error and empty state displays with relevant icons to provide better user feedback.
2025-10-31 23:28:19 +08:00
tinkle-community
1ccd135139 Merge pull request #132 from SkywalkerJi/dev
Fix custom leverage and currency settings
2025-10-31 22:59:47 +08:00
tinkle-community
98126a75ac Merge pull request #133 from zhoujunhehe/dev
Fix: Add proper validation for Aster DEX exchange in trader creation
2025-10-31 22:27:36 +08:00
tpkeeper
89609612eb optimize(mcp/client): correct receiver name 2025-10-31 22:24:10 +08:00
Ember
26216e4c9a Fix: Add proper validation for Aster DEX exchange in trader creation
- Add specific field validation for Aster exchange (asterUser, asterSigner, asterPrivateKey)
- Add specific field validation for Hyperliquid exchange (apiKey, hyperliquidWalletAddr)
- Keep existing validation for Binance (apiKey, secretKey)
- Remove debug console logs
- Fix issue where Aster exchange was not appearing in trader creation dropdown
This ensures all three supported exchanges can be properly selected when creating a new AI trader.
2025-10-31 21:40:21 +08:00
SkywalkerJi
6580be1888 Fix coin settings 2025-10-31 21:05:53 +08:00
SkywalkerJi
14b2fb22fd Fix leverage settings 2025-10-31 21:05:13 +08:00
tinkle-community
58f280041a Merge pull request #125 from SkywalkerJi/dev
Ignore the database to avoid submitting sensitive data.
2025-10-31 18:40:17 +08:00
SkywalkerJi
b357c76b5c Change the minimum amount to 50 and remove the maximum amount limit. 2025-10-31 18:34:48 +08:00
SkywalkerJi
c3e37f83df Ignore the database to avoid submitting sensitive data. 2025-10-31 18:30:36 +08:00
tinkle-community
bbbf8985c3 Merge pull request #116 from Icyoung/dev
Dev start script fix
2025-10-31 15:58:04 +08:00
Icyoung
50eb8ea4dc Merge branch 'tinkle-community:dev' into dev 2025-10-31 15:55:06 +08:00
icy
5d0097715e Fix docker compose bug for config.db 2025-10-31 15:53:48 +08:00
tinkle-community
f516b6a4b1 Merge pull request #114 from Icyoung/dev
[Dev] 还原config配置、部署优化
2025-10-31 15:50:23 +08:00
icy
f35dcf857f Add config.db volume mapping to docker-compose
- Map config.db to host for database persistence
- Ensures user configurations, traders, and AI models persist across container restarts
- Enables easy backup of configuration database
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: tinkle-community <tinklefund@gmail.com>
2025-10-31 15:31:47 +08:00
icy
62e40da6b5 Merge branch 'dev' of github.com:Icyoung/nofx 2025-10-31 15:26:04 +08:00
icy
0f9978ec6b Sync config.json to config.db for manual modify admin_mode and other configs 2025-10-31 15:24:18 +08:00
Icyoung
b085463096 Merge branch 'tinkle-community:dev' into dev 2025-10-31 14:47:56 +08:00
icy
c7106bd256 start scrip fix 2025-10-31 14:41:45 +08:00
icy
98735631d5 start scrpit fix 2025-10-31 14:39:04 +08:00
icy
12550b26e9 admin_mode config 2025-10-31 14:34:53 +08:00
icy
45345c6d47 start script fix about config.json 2025-10-31 14:16:47 +08:00
icy
55ead0e6e5 Restore config.json.example 2025-10-31 14:09:28 +08:00
tinkle-community
228026051d Merge pull request #110 from Icyoung/dev
【Dev】新增仓位模式的配置、移除config配置的文档描述
2025-10-31 13:54:19 +08:00
icy
c34fcf4fda Route fix 2025-10-31 13:49:05 +08:00
icy
8f03be2c9e Discard config settings in MD 2025-10-31 13:28:06 +08:00
icy
142863f554 Add MarginMode configration 2025-10-31 13:14:24 +08:00
icy
a96076856a Fix start script 2025-10-31 12:46:16 +08:00
tinkle-community
cc5c2850ce Merge pull request #105 from d0lwl0b/dev
fix(config): rename config example to .jsonc and update all references
2025-10-31 12:02:40 +08:00
d0lwl0b
9748f5dd64 fix(config): rename config example to .jsonc and update all references 2025-10-31 11:51:17 +08:00
tinkle-community
048dacdbc1 Merge pull request #92 from Icyoung/dev
[Dev] account系统、前端配置 ,model/cex dex/trader、自定义prompt
2025-10-31 04:24:59 +08:00
tinkle-community
d66fde28b0 Merge branch 'main' into dev
Integrate latest changes from main branch including:
- Documentation updates for trader configuration
- Color system improvements for UI components
- Logo design files
Co-Authored-By: tinkle-community <tinklefund@gmail.com>
2025-10-31 04:17:10 +08:00
icy
72e14c1f0d rename fix 2025-10-31 04:07:14 +08:00
icy
a98bc2a627 Merge branch 'main' of github.com:Icyoung/nofx
# Conflicts:
#	config.json.example
#	config/config.go
#	main.go
#	trader/auto_trader.go
#	web/src/App.tsx
#	web/src/components/CompetitionPage.tsx
2025-10-31 03:59:58 +08:00
icy
ceb2f7b435 account system、custom prompt 2025-10-31 03:42:01 +08:00
tinkle-community
40c8baf2bf Merge pull request #76 from cookieY/main 2025-10-31 03:39:09 +08:00
henrylab
ed9417195c 1. 修复hyperliquid 总盈亏,总净值计算错误问题
2. 修复持仓盈亏百分比错误,计算公式应该加入杠杆倍数
2025-10-30 22:23:05 +08:00
tinkle-community
e4d5dcc23c UI: Unify trader colors between Leaderboard and Performance Chart
Problem:
- Leaderboard used ai_model-based colors (qwen=purple, other=blue)
- Performance Comparison used index-based colors (10 color pool)
- This caused color mismatch between the two components
- Same trader showed different colors in different sections
Solution:
- Create shared color utility (utils/traderColors.ts)
- Define single color pool with 10 distinct colors
- Implement unified getTraderColor function based on trader index
- Update both ComparisonChart and CompetitionPage to use shared utility
Changes:
- New file: web/src/utils/traderColors.ts (shared color logic)
- Updated: ComparisonChart.tsx (use shared utility)
- Updated: CompetitionPage.tsx (use shared utility in Leaderboard
  and Head-to-Head sections)
Now traders consistently display the same color across all UI sections.
Co-Authored-By: tinkle-community <tinklefund@gmail.com>
2025-10-30 22:21:57 +08:00
tinkle-community
85fa9c09ab UI: Fix duplicate colors in Performance Comparison chart
Problem:
- Multiple traders using the same AI model had duplicate colors
- Only 2 colors were available (blue for deepseek, purple for qwen)
- Made it difficult to distinguish between traders
Solution:
- Expand color pool from 2 to 10 distinct colors
- Change color assignment from ai_model-based to index-based
- Each trader now gets a unique color based on their position
- Colors cycle if there are more than 10 traders
Color pool includes: blue, purple, emerald, orange, pink, amber,
sky, violet, green, rose
Co-Authored-By: tinkle-community <tinklefund@gmail.com>
2025-10-30 22:12:09 +08:00
tinkle-community
edd8bffd91 Docs: Complete exchange configuration documentation
Update configuration documentation across all 4 languages (Chinese, English,
Russian, Ukrainian) with comprehensive exchange-related fields:
Configuration field table updates:
- Add `exchange` field (binance/hyperliquid/aster)
- Add `hyperliquid_private_key` field with 0x prefix warning
- Add `hyperliquid_wallet_addr` field
- Add `hyperliquid_testnet` field (optional, defaults to false)
- Update `ai_model` to include "custom" option
- Change Binance API key fields to show conditional requirement
  (only required when using Binance exchange)
config.json.example updates:
- Add `enabled` field to all trader configurations
- Set appropriate enabled states for example traders
- Ensure all traders have exchange field properly configured
This makes it clear to users which configuration fields are required
for each exchange option (Binance, Hyperliquid, or Aster DEX).
Co-Authored-By: tinkle-community <tinklefund@gmail.com>
2025-10-30 21:27:53 +08:00