Liu Xiang Qian
cc448bf6e2
fix: Remove unused variables in AITradersPage.test.tsx to fix TypeScript compilation
...
Fixed TypeScript compilation errors by removing unused imports and variables:
- Removed unused 'screen' import from test-utils
- Removed unused 'fetcher' parameter from SWR mock
- Removed unused 'mockTrader' variable
- Removed unused 'TraderInfo' type import
All tests still pass (5/5) and frontend now compiles successfully.
2025-11-03 23:20:55 +08:00
Liu Xiang Qian
9ab7a36fbb
test: Add minimal UT infrastructure and fix Issue #227
...
This commit sets up a minimal, KISS-principle testing infrastructure
for both backend and frontend, and includes the fix for Issue #227 .
Backend Changes:
- Add Makefile with test commands (test, test-backend, test-frontend, test-coverage)
- Add example test: config/database_test.go
- Fix Go 1.25 printf format string warnings in trader/auto_trader.go
(Changed log.Printf to log.Print for non-format strings)
- All backend tests pass ✓
Frontend Changes:
- Add Vitest configuration: web/vitest.config.ts (minimal setup)
- Add test utilities: web/src/test/test-utils.tsx
- Add example test: web/src/App.test.tsx
- Add dependencies: vitest, jsdom, @testing-library/react
- All frontend tests pass ✓
Issue #227 Fix:
- Fix AITradersPage to allow editing traders with disabled models/exchanges
- Change validation to use allModels/allExchanges instead of enabledModels/enabledExchanges
- Add comprehensive tests in web/src/components/AITradersPage.test.tsx
- Fixes: https://github.com/tinkle-community/nofx/issues/227
CI/CD:
- Add GitHub Actions workflow: .github/workflows/test.yml
- Non-blocking tests (continue-on-error: true)
- Runs on push/PR to main and dev branches
Test Results:
- Backend: 1 test passing
- Frontend: 5 tests passing (including 4 for Issue #227 )
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-02 10:58:31 +08:00
Luna Martinez
1333121b85
Merge pull request #228 from hzb1115/dev
...
fix: github workflow permission
2025-11-01 22:28:22 -04:00
zbhan
c084de7277
fix: github workflow permission
2025-11-01 22:25:32 -04:00
Luna Martinez
500ad4412f
Merge pull request #219 from hzb1115/dev
...
feat: PR validation
2025-11-01 18:37:50 -04:00
Luna Martinez
487a0cbe9e
Merge pull request #1 from hzb1115/dev_pr_check
...
feat: pr validation
2025-11-01 18:29:56 -04:00
zbhan
9a604f9b27
feat: pr validation
2025-11-01 18:25:44 -04:00
Luna Martinez
935c3d094e
Merge pull request #216 from tinkle-community/shui_dev
...
Feat: Update docs
2025-11-01 15:13:29 -04:00
zbhan
18820fc319
Feat: Update docs
...
- 重构文档结构
- 更新文档内容
- 制定roadmap
- 提供中/EN 双语文档
2025-11-01 15:05:24 -04:00
tinkle-community
9b9b269dca
Merge pull request #215 from zhoujunhehe/landing-page-pr
2025-11-02 02:16:17 +08:00
Ember
2fa884c72d
style(web): 统一 FooterSection 组件的代码风格,优化链接格式和排版
2025-11-02 01:59:42 +08:00
Ember
7a4d1db046
fix(web): Footer ‘资源/文档’ 链接改为 GitHub 主 README( https://github.com/tinkle-community/nofx/blob/main/README.md)
2025-11-02 01:57:50 +08:00
Ember
2cc4f77254
chore(web): Footer 支持方去除图标并新增 Hyperliquid 链接
2025-11-02 01:56:21 +08:00
Ember
df83eba8e7
feat(web): Footer 按旧版文案重排 —— 顶部品牌 + 三列(链接/资源/支持方:Aster DEX、Binance、Amber.ac)
2025-11-02 01:53:48 +08:00
Ember
1413eb868e
feat(web): Footer 增加“支持的交易所”列(Binance、Aster DEX 图标与链接),对齐早期版本记忆
2025-11-02 01:50:49 +08:00
Ember
aa5e66f7b8
feat(web): LandingPage 页脚升级为多链接版本(链接/资源/产品/支持 四列)
2025-11-02 01:46:40 +08:00
Ember
388832876a
feat(web): 恢复 LandingPage 页脚(FooterSection),复用 App 的 Footer 文案与样式
2025-11-02 01:42:30 +08:00
Ember
16a62cedce
style(web): 移除功能卡片右下角黄色渐变点缀(去除黄光)
2025-11-02 01:39:31 +08:00
Ember
14b7d44322
ui(web): 管理员模式徽标改为 Lucide Zap 图标,保持与其他 emoji 替换一致 ( #138 风格)
2025-11-02 01:14:11 +08:00
Ember
ba48298c03
ui(web): 对齐 #138 风格——用 Lucide/矢量图标替换表情与占位,增强空态/警告显示(ComparisonChart/Competition/AITraders/ConfigModal)
2025-11-02 01:02:15 +08:00
Ember
abcd215e19
feat(web): 重做 #138/#133 的前端改动(LOGO 替换 + Loading Logo + 校验优化保留),尽量不覆盖他人代码
2025-11-02 00:58:25 +08:00
Ember
0a4fd06882
refactor(web): 拆分 LandingPage 为可复用组件(HeaderBar/Hero/AnimatedSection 等),新增 pages 结构并完成集成;构建通过
2025-11-02 00:36:37 +08:00
Ember
a3c6568137
refactor(web): 引入 pages 目录并迁移 LandingPage;修正 App 引用与相对路径,保持构建通过
2025-11-02 00:28:38 +08:00
Ember
8d77f15d4d
fix(web): 更新主图像文件以改善视觉效果
2025-11-02 00:19:49 +08:00
Ember
b5d4ff0fc2
fix(web): 优化落地页内容—移除多余空行,简化图片组件,更新支持方列表
2025-11-02 00:17:19 +08:00
Ember
28b7edbc5c
style(web): 对齐币安风格—移除渐变/发光,固化深色/面板色,新增 header 样式,按钮与卡片统一
2025-11-02 00:08:46 +08:00
Ember
e6fc60c464
fix(web): 去除残留 undefined(文本最终清洗)并将启动命令改为顶层 README 流程(start.sh + compose)
2025-11-02 00:01:38 +08:00
Ember
493fd559dc
fix(web): Typewriter 更稳健—charAt防越界、sanitizedLines防空值、pre-wrap防换行丢失
2025-11-01 23:58:48 +08:00
Ember
f5dfb1bb61
feat(web): Typewriter 优化(修复 undefined、矩阵绿样式、降低速度)并更新启动指令为 README 前端开发流程
2025-11-01 23:53:17 +08:00
Ember
8c57b6b1e7
feat(web): 落地页“启动输出”加入打字机效果(Typewriter)
2025-11-01 23:45:27 +08:00
Ember
9d4e86cbf5
feat(web): 新增 Landing 页面与 UI 优化\n\n- 新增 LandingPage、CryptoFeatureCard 等组件\n- 登录/注册页面与样式优化\n- 静态资源 images/main.png
2025-11-01 23:36:28 +08:00
tinkle-community
775446d939
Merge pull request #201 from SkywalkerJi/dev
...
Mapping the prompts folder in Docker.
2025-11-01 22:33:30 +08:00
SkywalkerJi
24a9a4b2a3
Merge remote-tracking branch 'refs/remotes/origin/dev' into dev
2025-11-01 22:31:09 +08:00
SkywalkerJi
cee927a46d
Docker port mapping prompts.
2025-11-01 22:28:49 +08:00
tinkle-community
17c927b04a
Merge pull request #194 from Icyoung/dev
...
Remote auth for prompt templates
2025-11-01 20:34:32 +08:00
tinkle-community
37dff0b3f0
Merge pull request #192 from Icyoung/dev
...
Dev Bug fix
2025-11-01 20:28:06 +08:00
icy
2cc91d1701
Remote auth for prompt templates
2025-11-01 20:25:55 +08:00
icy
2538d2f928
Merge branch 'dev' of https://github.com/tinkle-community/nofx
2025-11-01 20:09:17 +08:00
tinkle-community
6659625da1
Merge pull request #189 from SkywalkerJi/dev
...
Supports custom system prompts and custom models.
2025-11-01 19:49:26 +08:00
SkywalkerJi
798133e479
Merge branch 'tinkle-community:dev' into dev
2025-11-01 20:46:33 +09:00
SkywalkerJi
4250c11ddf
Supports custom system prompts and custom models.
2025-11-01 19:45:54 +08:00
icy
01ee3d57d9
Fixed i18n lint
2025-11-01 19:39:27 +08:00
icy
996b152eba
Resolve merge conflicts in AITradersPage.tsx
...
- Fixed import statement conflict (using 'type Language')
- Merged exchange configuration logic preserving support for multiple exchange types
- Kept comprehensive form handling for Binance, Hyperliquid, Aster, and OKX exchanges
- Updated security warning messages to use proper translation keys
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-01 19:01:44 +08:00
icy
f413f87f39
Fixed health check; Fixed dex config; Add rank trader info view;
2025-11-01 18:58:32 +08:00
SkywalkerJi
5be7106eb2
Rename the model.
2025-11-01 17:10:36 +08:00
SkywalkerJi
7bc936880c
Reordering system prompts.
2025-11-01 16:25:36 +08:00
tinkle-community
c24a9e57cb
Merge pull request #177 from SkywalkerJi/dev
...
Fixed the custom model URL. Added functionality for custom model names.
2025-11-01 16:13:37 +08:00
SkywalkerJi
ebe7882205
Merge branch 'tinkle-community:dev' into dev
2025-11-01 17:09:55 +09:00
SkywalkerJi
48d1320209
* Fixed the custom model URL.
...
* Added functionality for custom model names.
2025-11-01 16:09:15 +08:00
tinkle-community
2d99dda666
Merge pull request #172 from SkywalkerJi/dev
...
Eliminating Model Shorting Bias.
2025-11-01 14:55:26 +08:00