refactor(home-page): 拆分 HomePage 落地页(300→44行, -85%) #971

Closed
xiaoxia wants to merge 2 commits from refactor/home-page into develop
Owner

变更说明

HomePage 首页落地页按区域模块拆分,主文件 300→44 行(-85%)

拆分结构(sections/ 目录)

  • HeroSection.tsx: 首屏 Hero 区(文案 + 视觉 + CTA)
  • FeatureSection.tsx: 核心功能 4 宫格 + FEATURES 常量
  • WorkflowSection.tsx: 工作流程 4 步 + STEPS 常量
  • PricingSection.tsx: 定价方案 3 档 + PLANS 常量 + Plan 类型
  • CTASection.tsx: 底部行动号召区
  • Layout.tsx: NavBar 导航栏 + Footer 页脚

说明

  • 纯结构拆分,功能完全不变
  • 每个 section 独立维护自己的数据常量和渲染
  • 新增/修改某个区域只需改对应文件,不再碰 300 行长文件
## 变更说明 HomePage 首页落地页按区域模块拆分,主文件 300→44 行(-85%) ### 拆分结构(sections/ 目录) - **HeroSection.tsx**: 首屏 Hero 区(文案 + 视觉 + CTA) - **FeatureSection.tsx**: 核心功能 4 宫格 + FEATURES 常量 - **WorkflowSection.tsx**: 工作流程 4 步 + STEPS 常量 - **PricingSection.tsx**: 定价方案 3 档 + PLANS 常量 + Plan 类型 - **CTASection.tsx**: 底部行动号召区 - **Layout.tsx**: NavBar 导航栏 + Footer 页脚 ### 说明 - 纯结构拆分,功能完全不变 - 每个 section 独立维护自己的数据常量和渲染 - 新增/修改某个区域只需改对应文件,不再碰 300 行长文件
xiaoxia added 1 commit 2026-07-26 18:13:23 +08:00
refactor(home-page): 拆分 HomePage 落地页(300→44行, -85%)
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 31s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 39s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m28s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m28s
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 48s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Validate - Code Quality (pull_request) Failing after 2m41s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 1m18s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m29s
Preview Deploy / Deploy Preview Environment (pull_request) Failing after 48s
AI Code Review / AI Code Review (pull_request) Successful in 1m41s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 2m47s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 7m12s
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 34s
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
3b97eb7bf2
- 按模块拆到 sections/ 目录,共 7 个独立文件
- HeroSection / FeatureSection / WorkflowSection / PricingSection / CTASection
- Layout.tsx: NavBar + Footer
- 每个 section 独立维护自己的数据常量和渲染逻辑
- 主文件精简为 44 行纯编排
xiaoxia added 1 commit 2026-07-27 12:34:42 +08:00
Merge branch 'develop' into refactor/home-page
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 18s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 54s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m19s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m20s
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 43s
CI/CD Pipeline / Validate - Code Quality (pull_request) Failing after 2m50s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 1m15s
AI Code Review / AI Code Review (pull_request) Successful in 1m30s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 2m3s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m5s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 6m18s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 15m52s
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 22s
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
ACR Cleanup / ACR Image Cleanup (pull_request_target) Has been cancelled
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 13s
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
91902d66ac
auto-approve-bot approved these changes 2026-07-27 13:34:46 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot approved these changes 2026-07-27 13:34:47 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
Collaborator

代码审查结果 - PR #971

⚠️ 问题(1个需要修改)

  1. apps/web/src/pages/home/HomePage.tsx:文件权限被错误修改为可执行模式 (100755)。源代码文件通常应保持 100644。不必要的执行权限可能违反安全策略或导致某些部署脚本/CI检查失败。

💡 建议(0个可选)

(无)


格式检查通过 | 逻辑审查需修改 | 建议关注性能


🤖 由 AI 代码审查机器人自动生成 | 2026-07-27 05:34:47 | 模型:

## 代码审查结果 - PR #971 ### ⚠️ 问题(1个需要修改) 1. **apps/web/src/pages/home/HomePage.tsx**:文件权限被错误修改为可执行模式 (100755)。源代码文件通常应保持 100644。不必要的执行权限可能违反安全策略或导致某些部署脚本/CI检查失败。 ### 💡 建议(0个可选) (无) --- ❌ 格式检查通过 | ✅ 逻辑审查需修改 | ✅ 建议关注性能 --- <sub>🤖 由 AI 代码审查机器人自动生成 | 2026-07-27 05:34:47 | 模型: </sub> <!-- AI_CODE_REVIEW_AUTO_COMMENT -->

🚀 预览环境已部署

项目 详情
PR号 #971
预览链接 https://pr-971.preview.xiaoxiajianji.com
API环境 staging

💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。

🔄 每次提交新代码后预览环境会自动更新。

🗑️ PR 关闭或合并后,预览环境会自动清理。

🚀 **预览环境已部署** | 项目 | 详情 | |------|------| | PR号 | #971 | | 预览链接 | [https://pr-971.preview.xiaoxiajianji.com](https://pr-971.preview.xiaoxiajianji.com) | | API环境 | staging | > 💡 预览环境使用 staging API 数据,请勿在预览环境中操作重要数据。 > > 🔄 每次提交新代码后预览环境会自动更新。 > > 🗑️ PR 关闭或合并后,预览环境会自动清理。
Collaborator

Auto merge skipped after multiple 405 errors: PR may have conflicts or unresolved checks. Please review manually. This is not a CI failure.

Auto merge skipped after multiple 405 errors: PR may have conflicts or unresolved checks. Please review manually. This is not a CI failure.
xiaoxia closed this pull request 2026-07-27 15:53:59 +08:00

🗑️ 预览环境已清理

PR #971 已关闭或合并,对应的预览环境已被清理。

如有需要,可以重新打开 PR 来重新生成预览环境。

🗑️ **预览环境已清理** PR #971 已关闭或合并,对应的预览环境已被清理。 > 如有需要,可以重新打开 PR 来重新生成预览环境。
Some checks are pending
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 18s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 54s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 1m19s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 1m20s
CI/CD Pipeline / Build Staging API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 43s
CI/CD Pipeline / Validate - Code Quality (pull_request) Failing after 2m50s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 1m15s
AI Code Review / AI Code Review (pull_request) Successful in 1m30s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 2m3s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m5s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 6m18s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 15m52s
CI/CD Pipeline / Unit Tests (pull_request) Has been skipped
CI/CD Pipeline / Build Production API Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Web Image (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 22s
CI/CD Pipeline / Integration Tests (pull_request) Has been skipped
ACR Cleanup / ACR Image Cleanup (pull_request_target) Has been cancelled
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 13s
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (pull_request) Has been skipped
CI/CD Pipeline / Canary Release to Production (pull_request) Has been cancelled
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.