refactor: study/teach/admin 라우트 분리 및 공통 컴포넌트 정리#54
Merged
Conversation
- classroom/feedback/settings를 study, teach, admin 경로별로 분리 - LandingHeader, HeaderNavSheet, HeaderUserMenu 등 Header 컴포넌트 리팩토링 - SettingsNav 제거 및 settings 레이아웃 단순화 - UserCard, UserList 삭제 및 lib/routes.ts로 라우트 중앙 관리
- 랜딩 페이지 단순화 및 LandingServiceMockup 등 landing 컴포넌트 분리 - teacher-time-off → teacher.ts 통합, countdown/feedback 유틸, Spinner 추가 - admin 훅(useCourse, useSchedule, useUser) 개선 및 API/routes 확장 - AuthModal, LessonController, FeedbackReport 등 컴포넌트 단순화
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.
개요
study/teach/admin 역할별 라우트와 설정 레이아웃을 분리하고, 공통 컴포넌트와 라이브러리 구조를 정리했습니다.
주요 변경 사항
1. 라우트 분리
/study/classroom/[id],/study/feedback/[scheduleId],/study/settings/*/teach/classroom/[id],/teach/feedback/[scheduleId],/teach/settings/*/admin/settings/*lib/routes.ts: 역할별 경로 헬퍼 추가 (getSettingsPath,getProfilePath,getFeedbackPath,getClassroomPath)2. 설정 페이지 통합
SettingsLayoutContent,SettingsNav,ProfileForm,PasswordForm로 공통 설정 UI 분리3. 랜딩 페이지 정리
LandingServiceMockup컴포넌트 추가constants/landing.ts)4. 라이브러리/유틸 구조 변경
teacher-time-off.ts→teacher.ts통합countdown.ts,feedback.ts,useCountdown훅 추가constants/config.ts추가5. 공통 컴포넌트
Spinner컴포넌트 추가HeaderNavSheet,HeaderUserMenu,LandingHeader,StudyHeader,TeachHeader개선FeedbackPageContent추가,FeedbackReport단순화AuthModalContainer,LessonController리팩토링6. Admin 훅 개선
useCourse,useSchedule,useUser: 쿼리 키·옵션 정리삭제
UserCard,UserList(미사용)/settings,/classroom,/feedback경로를 역할별 경로로 이동