Skip to content

refactor: 移除 Phase 标记 + Runner 详情页优化#136

Merged
mirror29 merged 6 commits into
mainfrom
feat/d12-cleanup-phase-version
Jul 9, 2026
Merged

refactor: 移除 Phase 标记 + Runner 详情页优化#136
mirror29 merged 6 commits into
mainfrom
feat/d12-cleanup-phase-version

Conversation

@mirror29

@mirror29 mirror29 commented Jul 9, 2026

Copy link
Copy Markdown
Owner

改动概要

1. 移除 Phase 标记,改为 GitHub dynamic update

  • Web 官网: release-meta 改为 build 时 fetch GitHub API 获取最近 commit 日期,TickerStrip / CTAFooter 去 Phase/rev → Updated 2026.07.09
  • Dashboard: ConsoleSidebar Build · D-11 → 通过 /api/version route 动态获取
  • FAQ: 中/英文 FAQ + JSON-LD 去掉 "Phase D-11" 前缀
  • Kit 页: 去掉硬编码 D-9/0.9

2. Runner 详情页优化

  • RunnerStats: 移除 Last Bar → 新增胜率 + 累计盈亏百分比
  • DecisionTimeline: fee 列 → 平仓盈亏列(绝对金额 + 百分比)
  • PositionsTable: 8 列 → 6 列,保证金/强平价移至 instrument 下小字

3. 后端

  • services/paper: _row_to_decision 补上 closed_profit_abs / closed_profit_pct 字段透传

4. 文档同步

  • README/CLAUDE/docs 同步至 D-12,更新截图描述

🤖 Generated with Claude Code

mirror29 and others added 5 commits July 9, 2026 14:38
_row_to_decision 补上 closed_profit_abs 和 closed_profit_pct 两个字段
(后端 schema 已有,row→record 映射遗漏),前端类型同步补上并修复
BacktestPanels 的类型报错。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- release-meta.ts: RELEASE 常量 → getUpdateTag()/getLastUpdate() async 函数,
  build 时 fetch GitHub API 获取最近 commit 日期,失败有 fallback
- page.tsx: TickerStrip 去掉 phase/rev/dateDot → 显示 Updated 2026.07.09
- CTAFooter: footer colophon 的 rev → updated,通过 server component props 注入
- layout.tsx: FAQ JSON-LD 去掉 "Phase D-11" 前缀
- kit/_client.tsx: 去掉硬编码的 D-9/0.9/2026.05.26
- messages: FAQ 中/英文去掉 Phase D-11 引用

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- 新增 /api/version route:调用 GitHub API 返回最近 commit 日期
- ConsoleSidebar: "Build · D-11" → "Build · 2026.07.09",通过 SWR 实时获取

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- RunnerStats: 移除 Last Bar,新增胜率卡片 + 累计盈亏百分比
- DecisionTimeline: fee 列 → 平仓盈亏列(盈亏金额 + 百分比),开仓显示 —
- PositionsTable: 8 列 → 6 列,margin/liqPrice 移至 instrument 下小字
- 国际化: 中/英文同步新增 winRate / closedPnl 键,移除 lastBar / fee / margin / liqPrice

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- README: status badge 去掉 Phase D-12,截图描述同步 dashboard 优化
- CLAUDE.md: Phase 标题 → D-12,Active TODO 补 D-12 内容
- docs/01-architecture-overview: 去掉 "D-11.2" 引用
- docs/04-current-state: 标题更新至 D-12 因子库闭环
- screenshots: 更新 runner 详情截图

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Review base: c2b5bf6

🤖 GLM-5.2 PR Review

⚠️ review 未完成:GLM API HTTP 401:{"error":{"code":"","message":"Invalid token (request id: 202607090656481219890878268d9d6yZ57PbUr)","type":"new_api_error"}}

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying inalpha-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5aa658d
Status:⚡️  Build in progress...

View logs

@mirror29 mirror29 merged commit be04e85 into main Jul 9, 2026
9 of 10 checks passed
@mirror29 mirror29 deleted the feat/d12-cleanup-phase-version branch July 9, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant