Skip to content

refactor: study/teach/admin 라우트 분리 및 공통 컴포넌트 정리#54

Merged
junotb merged 2 commits intomainfrom
refactor/2026-02-16
Feb 16, 2026
Merged

refactor: study/teach/admin 라우트 분리 및 공통 컴포넌트 정리#54
junotb merged 2 commits intomainfrom
refactor/2026-02-16

Conversation

@junotb
Copy link
Copy Markdown
Owner

@junotb junotb commented Feb 16, 2026

개요

study/teach/admin 역할별 라우트와 설정 레이아웃을 분리하고, 공통 컴포넌트와 라이브러리 구조를 정리했습니다.

주요 변경 사항

1. 라우트 분리

  • study: /study/classroom/[id], /study/feedback/[scheduleId], /study/settings/*
  • teach: /teach/classroom/[id], /teach/feedback/[scheduleId], /teach/settings/*
  • admin: /admin/settings/*
  • lib/routes.ts: 역할별 경로 헬퍼 추가 (getSettingsPath, getProfilePath, getFeedbackPath, getClassroomPath)

2. 설정 페이지 통합

  • SettingsLayoutContent, SettingsNav, ProfileForm, PasswordForm로 공통 설정 UI 분리
  • study/teach/admin 각각 settings 레이아웃 적용 및 중복 제거

3. 랜딩 페이지 정리

  • LandingServiceMockup 컴포넌트 추가
  • 랜딩 페이지 구성 단순화 및 상수 분리 (constants/landing.ts)

4. 라이브러리/유틸 구조 변경

  • teacher-time-off.tsteacher.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 경로를 역할별 경로로 이동

- 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 등 컴포넌트 단순화
@junotb junotb self-assigned this Feb 16, 2026
@junotb junotb added the enhancement New feature or request label Feb 16, 2026
@junotb junotb merged commit d838140 into main Feb 16, 2026
@junotb junotb deleted the refactor/2026-02-16 branch February 16, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant