feat: 도메인 기반 라우팅 분리 구현 (user/admin)#38
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthrough이 변경사항은 관리자 및 사용자 도메인 기반의 동적 라우팅 시스템을 도입하고, PolicyDetail 페이지의 ApplicationTab 컴포넌트를 개선하며, 헤더 타이틀을 수정합니다. Changes
Sequence Diagram(s)sequenceDiagram
participant Browser
participant Router
participant DomainUtils
participant AdminLayout
participant UserLayout
Browser->>Router: 앱 초기화
Router->>DomainUtils: getAppType() 호출
DomainUtils->>DomainUtils: window.location 확인
alt 관리자 도메인
DomainUtils->>Router: 'admin' 반환
Router->>AdminLayout: 관리자 경로 렌더링
AdminLayout->>Browser: /admin, /admin/users, /admin/inquiries 등
else 사용자 도메인
DomainUtils->>Router: 'user' 반환
Router->>UserLayout: 사용자 경로 렌더링
UserLayout->>Browser: /policy-detail, 기존 사용자 경로
end
sequenceDiagram
participant User
participant ApplicationTab
participant ScrollHandler
participant DOM
User->>ApplicationTab: 앱 항목 클릭
ApplicationTab->>ApplicationTab: 앱 활성화 상태 확인
alt 비활성화 상태
ApplicationTab->>ApplicationTab: 먼저 활성화
ApplicationTab->>ApplicationTab: 확장 설정
else 활성화 상태
ApplicationTab->>ApplicationTab: 확장 토글
end
ApplicationTab->>ScrollHandler: 확장 감지 (지연)
ScrollHandler->>DOM: app-{id} 요소 위치 확인
alt 요소가 숨겨짐
ScrollHandler->>DOM: scrollIntoView() 호출
DOM->>Browser: 해당 항목으로 스크롤
end
Browser->>User: 확장된 앱 표시
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Mar 15, 2026
Merged
Merged
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 by CodeRabbit
릴리스 노트
새로운 기능
개선 사항