Repository navigation
refactor(frontend): 다른 slice·segment를 공개 API로 import (FSD 위반 127→99건) - #199
Merged
Merged
Conversation
…99건) - 이미 index가 export하던 이름을 내부 파일 경로로 import하던 22곳을 index로 바꿈 - shared/ui/controls에 useResponsiveNavigation·mobileNavigationMedia, features/auth/logout에 index, features/team/create-team에 createDemoTeamRequest를 공개 - ModalSurface·logout 등 내부 경로 import를 공개 API로 교체 - FSD 기준선 127→99건 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Pull Request 요약FSD 규칙을 준수하기 위해 내부 파일을 직접 import하던 경로를 slice와 shared의 공개 API(index.ts)로 변경하고, controls·auth/logout·create-team 등 일부 모듈에 필요한 export를 추가한 PR입니다. 주요 변경은 demoDatabase.ts의 DatabaseQuota import 경로, WorkflowLayout.tsx의 useResponsiveNavigation 및 mobileNavigationMedia import 경로, ServerlessTestPage의 ModalSurface import 경로를 공개 API 경로로 바꾸는 것이며, 해결된 FSD 위반은 기준선 JSON에서도 제거됩니다. 확인된 문제는 VmSettingsPage의 중복 import 하나와, 같은 모듈 import가 중복된 nit 두 건입니다. 제공된 diff 범위에서는 런타임 오류나 명백한 동작 변경을 확인하지 못했으며, index.ts 원문과 배럴 로드 순서는 변경 조각만으로 검증할 수 없습니다. 검토한 범위에서는 별도로 지적할 문제가 없습니다. 복수 모델 · 입력 290,821 · 출력 11,243 · 합계 302,064 토큰 |
sunwoo162
added a commit
that referenced
this pull request
Nov 29, 2026
…#199) Co-authored-by: sunwoo162 <205418898+sunwoo162@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
개요
FSD 규칙상 다른 slice나 shared segment는 공개 API(
index.ts)를 통해서만 import해야 합니다. 그런데 내부 파일을 직접 가리키는 import(no-public-api-sidestep)가 53건 있었습니다. 이 중 바로 고칠 수 있는 것부터 정리해 FSD 위반을 127건 → 99건으로 줄입니다.shared/ui/controls:useResponsiveNavigation,mobileNavigationMediafeatures/auth/logout:index.ts(logout)features/team/create-team:createDemoTeamRequestModalSurface를 내부 경로로 import하던 곳(20개 파일)을 공개 API로 바꿨습니다.fsd-baseline.json)을 99건으로 줄여, 고친 위반이 다시 생기지 않게 했습니다.남은 위반(다음 PR)
entities/*/demo진입점 직접 import: 데모 저장소를 따로 불러오려고 일부러 나눈 진입점입니다. index로 합칠지, 규칙 예외로 둘지 정해야 합니다.shared/demo가entities를 import하는 계층 위반, 다른 entity 사이 import 등확인
index를 거치면 모듈 로드 순서가 바뀌어 CSS 주입 순서나 순환 import 문제가 생길 수 있습니다. 그래서 아래를 모두 확인했습니다.
npm run check통과🤖 Generated with Claude Code