refactor: feature-based 구조로 전환 (Phase 1-2)#150
Merged
leeleeleeleejun merged 4 commits intodevelop-v1from Feb 22, 2026
Merged
Conversation
- GlobalStyle.ts에서 주석 처리된 폰트 코드 66줄 제거 - PostDetail/utiils 폴더명 오타 수정 -> utils로 변경 - console.log/error를 logger 유틸리티로 교체 (개발 환경 전용) - 주석 처리된 코드 제거 (HomePage onClick) - 새로운 logger 유틸리티 추가 (src/utils/logger.ts) - AGENTS.md 문서 추가 (AI 코딩 에이전트용 가이드) - 빌드 검증 완료 영향받은 파일: - 8개 파일에서 console을 logger로 교체 - 4개 utils 파일 경로 수정 - 코드 라인 수 약 100줄 감소
- features/ 디렉토리 구조 생성 - auth 기능 마이그레이션 * pages/Login → features/auth/LoginPage.tsx * pages/Login/LoginLoadingPage → features/auth/LoginLoadingPage.tsx * domains/Login/api/getKakaoInga → features/auth/api/getKakaoInga.ts * features/auth/index.ts 추가 (named exports) - user 기능 마이그레이션 * pages/MyProfile → features/user/MyProfilePage.tsx * pages/UsageHistory → features/user/UsageHistoryPage.tsx * domains/MyProfile/Slice/userSlice → features/user/userSlice.ts * domains/MyProfile/components/MenuItem → features/user/components/MenuItem.tsx * features/user/index.ts 추가 (named exports) - 전역 import 경로 업데이트 * Router.tsx: 새 feature 경로로 lazy import 수정 * App.tsx, api/baseApi.ts, store/index.ts: userSlice import 경로 업데이트 - 빌드 검증 완료 (3.39s, 번들 크기 495.01 kB) 다음 단계: post, chat, home 기능 마이그레이션 예정
…그레이션 - post 기능 마이그레이션 * pages/CreatePost → features/post/CreatePostPage.tsx + 하위 페이지들 * pages/PostDetail → features/post/PostDetailPage.tsx * domains/PostDetail/components → features/post/components/ * domains/PostDetail/utils → features/post/utils/ * domains/PostDetail/types → features/post/types/postDetail.types.ts * domains/PostDetail/constants → features/post/constants/postDetail.constants.ts * features/post/index.ts 추가 (named exports) - chat 기능 마이그레이션 * pages/ChatRoom → features/chat/ChatRoomPage.tsx * pages/ChatRoomList → features/chat/ChatRoomListPage.tsx * domains/ChatRoom/components → features/chat/components/ * domains/ChatRoom/utils → features/chat/utils/ * domains/ChatRoomList/components → features/chat/components/ * features/chat/index.ts 추가 (named exports) - home 기능 마이그레이션 * pages/Home → features/home/HomePage.tsx * domains/Home/components → features/home/components/ * domains/Home/hooks → features/home/hooks/ * features/home/index.ts 추가 (homeMapSlice export 포함) - 전역 import 경로 업데이트 * Router.tsx: 모든 feature 경로로 lazy import 수정 * store/index.ts: homeMapSlice import 경로 업데이트 - 빌드 검증 완료 (3.51s, 번들 크기: CreatePost 495KB, Home 307KB) 다음 단계: 구 domains/, pages/ 디렉토리 삭제 예정
1 task
This was referenced Feb 22, 2026
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.
Summary
src/features/로 마이그레이션 완료변경사항
Phase 1: 코드 정리 및 개선
Phase 2 Part 1: auth + user 마이그레이션
Phase 2 Part 2: post + chat + home 마이그레이션
전역 import 경로 업데이트
디렉토리 구조
통계
리뷰 포인트
후속 작업 (별도 PR 예정)