[#499] MainView의 selectedTab에서 옵셔널을 제거한다#524
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors selectedTab and selectedMainTab from optional MainTab? to non-optional MainTab types in MainView and RootView, simplifying the layout rendering and tab change handling by removing unnecessary optional unwrapping. The reviewer suggested refactoring the onChange handler in MainView to use a switch statement for better safety and readability now that the tab type is non-optional.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
🔗 연관된 이슈
🎯 의도
.home으로 고정하기 위한 탭 선택 상태 단순화📝 작업 내용
📌 요약
selectedMainTab기본값을.home으로 설정selectedTab바인딩 타입을 non-optionalMainTab으로 변경🔍 상세
selectedTab기반으로 TabView 선택 처리selectedTab값으로 sidebarView 구성selectedMainTab을.home으로 재설정하여 재진입 시 초기 탭 보장📸 영상 / 이미지 (Optional)