refactor(common): components/common 收敛 index barrel#83
Merged
Conversation
新增 components/common/index.ts,re-export 12 个通用模块(Avatar / BitbucketImage / ConfirmModal / ErrorBoundary / LlmProviderIcon / Loading / MermaidDiagram / Modal / PlatformIcon / StatusChip / icons / markdownMermaid)。 跨域消费方(features/* · layout/* · App 等)50 个文件、80 条 `common/<X>` 子路径 import 统一收敛为走 barrel 的单条引入(与 features/pr · settings · onboarding barrel 约定一致); common 内部模块相互引用(markdownMermaid → MermaidDiagram、Modal → icons、 ConfirmModal → Modal)仍走相对路径,不经 barrel,避免循环依赖。 纯 import 路径收敛,无逻辑改动。lint / typecheck / build 通过。 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.
背景
components/common/此前无 barrel,跨域消费方各自以common/<X>子路径直引(约 80 处)。延续近期「各 feature 域收敛 index barrel(pr / settings / onboarding)」的约定,为common建立统一对外入口。改动
components/common/index.ts,re-export 12 个通用模块:Avatar / BitbucketImage / ConfirmModal / ErrorBoundary / LlmProviderIcon / Loading / MermaidDiagram / Modal / PlatformIcon / StatusChip / icons / markdownMermaidcommon/<X>子路径 import 收敛为走 barrel 的单条引入common内部模块相互引用(markdownMermaid → MermaidDiagram、Modal → icons、ConfirmModal → Modal)仍走相对路径,不经 barrel,避免循环依赖(与现有 feature barrel 约定一致)纯 import 路径收敛,无逻辑 / 行为改动。
验证
lint零警告 ✓ ·typecheck✓ ·build✓关联里程碑 代码质量重构 (#3)。基于已合并的 #82,已 rebase 到最新
dev,仅含本笔改动。🤖 Generated with Claude Code