From 95b77e2b48ad72eca550fd67bfaf79f043962f0e Mon Sep 17 00:00:00 2001 From: kite Date: Thu, 28 May 2026 14:47:53 +0800 Subject: [PATCH] fix: Update project branding and improve documentation links --- .github/workflows/deploy-pages.yml | 1 + README.md | 2 +- README.zh-CN.md | 2 +- pages/index.html | 2 +- pages/logo.svg | 1 + pages/src/assets.d.ts | 4 ++++ pages/src/components/BenchmarkSection.tsx | 8 ++++---- pages/src/components/Navbar.tsx | 7 +++---- pages/src/i18n/en.ts | 16 ++++++++-------- pages/src/i18n/zh.ts | 16 ++++++++-------- pages/src/pages/DocsPage.tsx | 2 +- pages/webpack.config.js | 5 +++++ 12 files changed, 38 insertions(+), 28 deletions(-) create mode 100644 pages/logo.svg create mode 100644 pages/src/assets.d.ts diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 0858992..392daf6 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -38,6 +38,7 @@ jobs: run: | mkdir -p _site cp -r pages/dist/* _site/ + cp pages/logo.svg _site/logo.svg - uses: actions/upload-pages-artifact@v3 with: diff --git a/README.md b/README.md index 5b0f783..448b842 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- + OpenCodeReview logo

diff --git a/README.zh-CN.md b/README.zh-CN.md index 8a261e5..88956d0 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,5 +1,5 @@

- + OpenCodeReview logo

diff --git a/pages/index.html b/pages/index.html index eb8f6b3..89b81ff 100644 --- a/pages/index.html +++ b/pages/index.html @@ -4,7 +4,7 @@ open-code-review — Agent Native Code Review - + diff --git a/pages/logo.svg b/pages/logo.svg new file mode 100644 index 0000000..689d9fb --- /dev/null +++ b/pages/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/pages/src/assets.d.ts b/pages/src/assets.d.ts new file mode 100644 index 0000000..3623b38 --- /dev/null +++ b/pages/src/assets.d.ts @@ -0,0 +1,4 @@ +declare module '*.svg' { + const src: string; + export default src; +} diff --git a/pages/src/components/BenchmarkSection.tsx b/pages/src/components/BenchmarkSection.tsx index 56e0b2c..3429184 100644 --- a/pages/src/components/BenchmarkSection.tsx +++ b/pages/src/components/BenchmarkSection.tsx @@ -23,7 +23,7 @@ const leaderboardData: LeaderboardEntry[] = [ medal: 'gold', model: 'Claude-4.6-Opus', provider: 'Anthropic', - source: 'open-code-review', + source: 'Open Code Review', sourceType: 'ocr', version: 'AVG (10)', f1: '26.1%', @@ -38,7 +38,7 @@ const leaderboardData: LeaderboardEntry[] = [ medal: 'silver', model: 'Qwen-3.6-Plus', provider: 'Alibaba', - source: 'open-code-review', + source: 'Open Code Review', sourceType: 'ocr', version: 'AVG (3)', f1: '21.9%', @@ -53,7 +53,7 @@ const leaderboardData: LeaderboardEntry[] = [ medal: 'bronze', model: 'GLM-4.7', provider: 'Zhipu AI', - source: 'open-code-review', + source: 'Open Code Review', sourceType: 'ocr', version: 'AVG (2)', f1: '20.1%', @@ -68,7 +68,7 @@ const leaderboardData: LeaderboardEntry[] = [ medal: undefined, model: 'Qwen3.5-27b-dense', provider: 'Alibaba', - source: 'open-code-review', + source: 'Open Code Review', sourceType: 'ocr', version: 'AVG (3)', f1: '19.5%', diff --git a/pages/src/components/Navbar.tsx b/pages/src/components/Navbar.tsx index c78bb51..57cfc86 100644 --- a/pages/src/components/Navbar.tsx +++ b/pages/src/components/Navbar.tsx @@ -1,6 +1,7 @@ import React, { useState, useEffect } from 'react'; import { Link, useLocation, useNavigate } from 'react-router-dom'; import { useTranslation } from '../i18n'; +import logoSvg from '../../logo.svg'; const Navbar: React.FC = () => { const [isScrolled, setIsScrolled] = useState(false); @@ -52,11 +53,9 @@ const Navbar: React.FC = () => {
-
- -
+ OpenCodeReview - open-code-review + Open Code Review diff --git a/pages/src/i18n/en.ts b/pages/src/i18n/en.ts index 69d4a8a..ee99833 100644 --- a/pages/src/i18n/en.ts +++ b/pages/src/i18n/en.ts @@ -11,7 +11,7 @@ export const en: TranslationKeys = { // Hero 'hero.title': 'AI Code Review', 'hero.titleHighlight': 'Validated on Millions of Real-World Tasks', - 'hero.description': 'open-code-review brings Alibaba\'s battle-tested code review Agent into your workflow. Connect any LLM, keep data fully private, and get review comments developers actually adopt.', + 'hero.description': 'Open Code Review brings Alibaba\'s battle-tested code review Agent into your workflow. Connect any LLM, keep data fully private, and get review comments developers actually adopt.', 'hero.pill1': 'Adoption Rate > 30%', 'hero.pill2': 'Data Stays Local', 'hero.pill3': 'Token Cost Only 1/5', @@ -24,9 +24,9 @@ export const en: TranslationKeys = { // Why Section 'why.sectionLabel': 'Use Cases', - 'why.title': 'Who Is open-code-review For?', + 'why.title': 'Who Is Open Code Review For?', 'why.case1Title': 'Individual Developers', - 'why.case1Desc': 'Embed open-code-review in your local AI-assisted development workflow for instant, high-quality code review feedback.', + 'why.case1Desc': 'Embed Open Code Review in your local AI-assisted development workflow for instant, high-quality code review feedback.', 'why.case2Title': 'Platform Teams', 'why.case2Desc': 'Seamlessly integrate into your internal systems with full control over data flow and review policies.', 'why.case3Title': 'ML Researchers', @@ -52,8 +52,8 @@ export const en: TranslationKeys = { // Benchmark Section 'benchmark.sectionLabel': 'Open Benchmark', 'benchmark.title': 'Cross-Validated by 80+ Senior Engineers', - 'benchmark.subtitle': 'A real-world CodeReview benchmark cross-annotated by 80+ senior engineers. open-code-review leads across F1, Precision, and Recall over generic Agent approaches.', - 'benchmark.legendOcr': 'open-code-review', + 'benchmark.subtitle': 'A real-world CodeReview benchmark cross-annotated by 80+ senior engineers. Open Code Review leads across F1, Precision, and Recall over generic Agent approaches.', + 'benchmark.legendOcr': 'Open Code Review', 'benchmark.legendClaude': 'Claude Code + Skills (Generic)', 'benchmark.colRank': 'Rank', 'benchmark.colModel': 'Model', @@ -77,7 +77,7 @@ export const en: TranslationKeys = { 'quickstart.step3Title': 'Run Review', 'quickstart.step3Desc': 'Start your first code review.', 'quickstart.zeroCfgTitle': 'Already using Claude Code? Zero extra config', - 'quickstart.zeroCfgDesc': 'If you\'ve already configured Claude Code environment variables (ANTHROPIC_BASE_URL / ANTHROPIC_AUTH_TOKEN / ANTHROPIC_MODEL), open-code-review reads them automatically — no additional setup needed.', + 'quickstart.zeroCfgDesc': 'If you\'ve already configured Claude Code environment variables (ANTHROPIC_BASE_URL / ANTHROPIC_AUTH_TOKEN / ANTHROPIC_MODEL), Open Code Review reads them automatically — no additional setup needed.', 'quickstart.copy': 'Copy', // Docs Page @@ -156,7 +156,7 @@ export const en: TranslationKeys = { 'docs.viewerNote': 'After running, a local HTTP server starts providing a visual interface for browsing review results.', 'docs.envTitle': 'Claude Code Integration', - 'docs.envDesc': 'If you are already a Claude Code user with the following environment variables configured, open-code-review will recognize them automatically — no extra configuration needed:', + 'docs.envDesc': 'If you are already a Claude Code user with the following environment variables configured, Open Code Review will recognize them automatically — no extra configuration needed:', 'docs.envNote': 'You can also use ocr config to override or supplement these settings.', 'docs.copy': 'Copy', @@ -164,5 +164,5 @@ export const en: TranslationKeys = { 'quickstart.commentReview': '# Review current changes', 'quickstart.commentBranch': '# Review diff between branches', 'quickstart.commentCommit': '# Review a specific commit', - 'quickstart.commentEnvAuto': '# open-code-review auto-detects these variables', + 'quickstart.commentEnvAuto': '# Open Code Review auto-detects these variables', }; diff --git a/pages/src/i18n/zh.ts b/pages/src/i18n/zh.ts index f686986..cc2b21d 100644 --- a/pages/src/i18n/zh.ts +++ b/pages/src/i18n/zh.ts @@ -11,7 +11,7 @@ export const zh: TranslationKeys = { // Hero 'hero.title': 'AI 代码评审', 'hero.titleHighlight': '数百万真实场景任务的验证', - 'hero.description': 'open-code-review 将阿里巴巴经大规模生产验证的代码评审 Agent 带入你的工作流。接入任意 LLM,数据完全私有,获得开发者真正愿意采纳的评审意见。', + 'hero.description': 'Open Code Review 将阿里巴巴经大规模生产验证的代码评审 Agent 带入你的工作流。接入任意 LLM,数据完全私有,获得开发者真正愿意采纳的评审意见。', 'hero.pill1': '采纳率 > 30%', 'hero.pill2': '数据本地闭环', 'hero.pill3': 'Token 消耗仅 1/5', @@ -24,9 +24,9 @@ export const zh: TranslationKeys = { // Why Section 'why.sectionLabel': '适用场景', - 'why.title': 'open-code-review 适合谁?', + 'why.title': 'Open Code Review 适合谁?', 'why.case1Title': '个人开发者', - 'why.case1Desc': '将 open-code-review 嵌入本地 AI 辅助研发工作流,获得即时、高质量的代码评审反馈。', + 'why.case1Desc': '将 Open Code Review 嵌入本地 AI 辅助研发工作流,获得即时、高质量的代码评审反馈。', 'why.case2Title': '平台团队', 'why.case2Desc': '无缝集成至您的内部系统,完全掌控数据流向与评审策略。', 'why.case3Title': '模型训练研究者', @@ -52,8 +52,8 @@ export const zh: TranslationKeys = { // Benchmark Section 'benchmark.sectionLabel': '开放基准测试', 'benchmark.title': '80+ 位资深工程师交叉标注验证', - 'benchmark.subtitle': '基于真实场景的 CodeReview 基准测试,由 80+ 位资深工程师交叉标注。open-code-review 在 F1、精确率、召回率上全面领先通用 Agent 方案。', - 'benchmark.legendOcr': 'open-code-review', + 'benchmark.subtitle': '基于真实场景的 CodeReview 基准测试,由 80+ 位资深工程师交叉标注。Open Code Review 在 F1、精确率、召回率上全面领先通用 Agent 方案。', + 'benchmark.legendOcr': 'Open Code Review', 'benchmark.legendClaude': 'Claude Code + Skills(通用方案)', 'benchmark.colRank': '排名', 'benchmark.colModel': '模型', @@ -77,7 +77,7 @@ export const zh: TranslationKeys = { 'quickstart.step3Title': '运行评审', 'quickstart.step3Desc': '开始你的第一次代码评审。', 'quickstart.zeroCfgTitle': '已在使用 Claude Code?零额外配置', - 'quickstart.zeroCfgDesc': '如果你已经配置了 Claude Code 的环境变量(ANTHROPIC_BASE_URL / ANTHROPIC_AUTH_TOKEN / ANTHROPIC_MODEL),open-code-review 会自动读取这些配置,无需任何额外设置即可直接使用。', + 'quickstart.zeroCfgDesc': '如果你已经配置了 Claude Code 的环境变量(ANTHROPIC_BASE_URL / ANTHROPIC_AUTH_TOKEN / ANTHROPIC_MODEL),Open Code Review 会自动读取这些配置,无需任何额外设置即可直接使用。', 'quickstart.copy': '复制', // Docs Page @@ -156,7 +156,7 @@ export const zh: TranslationKeys = { 'docs.viewerNote': '运行后会在本地启动一个 HTTP 服务器,提供可视化的评审结果浏览界面。', 'docs.envTitle': '适配 Claude Code', - 'docs.envDesc': '如果你已经是 Claude Code 用户并配置了以下环境变量,open-code-review 会自动识别,无需任何额外配置:', + 'docs.envDesc': '如果你已经是 Claude Code 用户并配置了以下环境变量,Open Code Review 会自动识别,无需任何额外配置:', 'docs.envNote': '此外,工具也支持通过 ocr config 命令来覆盖或补充这些配置。', 'docs.copy': '复制', @@ -164,5 +164,5 @@ export const zh: TranslationKeys = { 'quickstart.commentReview': '# 评审当前变更', 'quickstart.commentBranch': '# 评审分支间的差异', 'quickstart.commentCommit': '# 评审指定提交', - 'quickstart.commentEnvAuto': '# open-code-review 自动识别这些变量', + 'quickstart.commentEnvAuto': '# Open Code Review 自动识别这些变量', }; diff --git a/pages/src/pages/DocsPage.tsx b/pages/src/pages/DocsPage.tsx index 0d5e297..2ea0040 100644 --- a/pages/src/pages/DocsPage.tsx +++ b/pages/src/pages/DocsPage.tsx @@ -180,7 +180,7 @@ const DocsPage: React.FC = () => { {/* Overview */}

- open-code-review{' '} + Open Code Review{' '}

diff --git a/pages/webpack.config.js b/pages/webpack.config.js index 8a2e6a8..ca9033a 100644 --- a/pages/webpack.config.js +++ b/pages/webpack.config.js @@ -28,6 +28,10 @@ module.exports = { { test: /\.css$/, use: ['style-loader', 'css-loader', 'postcss-loader'] + }, + { + test: /\.svg$/, + type: 'asset/resource' } ] }, @@ -36,6 +40,7 @@ module.exports = { }, devServer: { port: 3030, + static: { directory: __dirname }, historyApiFallback: { index: '/index.html', rewrites: [{ from: /^\/_p\/\d+\//, to: '/index.html' }]