refactor(components): 目录按 common / layout / features 三类重组#74
Merged
Conversation
components/ 下扁平堆叠的 30 个组件按领域归入子目录: - common/ 基础公共 UI(Avatar / ConfirmModal / Loading / icons / Mermaid 等) - layout/ 应用骨架(MainPane / Sidebar / StatusBar / TitleBar) - pr/ · diff/ · comments/ · drafts/ · settings/ 各业务领域 纯文件位置调整 + import 路径改写(git 识别为 rename),无逻辑/界面变更。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
承接上一步的领域拆分,把强业务属性的领域目录统一收进 features/,与
common/(基础公共 UI)、layout/(应用骨架)三类平级:
components/
├── common/ ├── layout/
└── features/{ pr · diff · comments · drafts · settings · chat · onboarding }
顶层只剩 common / layout / features 三个桶,分类轴统一(kind vs 业务领域不再混层)。
纯目录迁移 + import 路径改写(git 识别为 rename),无逻辑/界面变更。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
延续 milestone「代码质量重构」。
components/下曾扁平堆叠 30 个组件,分类轴混乱。本 PR 按职责重组目录。两步重组(两个 commit)
1. 顶层组件按领域拆分到目录 —— 30 个组件归入
common / layout / pr / diff / comments / drafts / settings。2. 业务领域目录归入
features/—— 强业务属性的领域目录统一收进features/,与common/(基础公共 UI)、layout/(应用骨架)平级:顶层只剩
common / layout / features三个桶,分类轴统一(kind 与业务领域不再混层)。实现 & 验证
git mv(git 识别为 rename,保留历史),import 路径由确定性 codemod 改写,无手改。typecheck/lint(--max-warnings=0)/build全绿。🤖 Generated with Claude Code