[Fix] 새 채팅, 뒤로가기 시에도 토닥이 스플래시가 뜨는 버그 해결 - #157
Merged
Merged
Conversation
앱 전반의 로딩 상태 관리를 단순 `Boolean` 플래그에서 `sealed interface` 기반의 명확한 상태 구조로 리팩터링하고, 표준 로딩 컴포넌트를 UI 레이어에 통합합니다. - `TodakunButton`: `isLoading` 프로퍼티를 추가하여 로딩 중 버튼 비활성화 및 내부 `CircularProgressIndicator` 표시 기능 구현 - `UiState` 리팩터링: `NotificationState`, `HistoryState`, `ChatEntryState` 등을 `sealed interface`(Loading/Success/Failure)로 전환하여 상태 표현력 강화 - 세분화된 진행 상태 도입: `isSaving`(저장), `isDeleting`(삭제), `isLoggingOut`(로그아웃), `isRefreshing`(갱신) 등 Success 상태 내 개별 액션에 대한 상태 플래그 추가 - `TodakunProgressIndicator` 적용: `MyPage`, `Chat`, `Notification`, `SajuContents` 등 주요 화면 및 바텀시트의 로딩 진입점에 표준 프로그레스 인디케이터 적용 - 데이터 로딩 로직 개선: `ViewModel` 내 `intent` 블록에서 로딩 상태 전환을 명확히 하고, 성공/실패 케이스에 따른 상태 변화를 `sealed interface`에 맞춰 정립 - 테스트 코드 업데이트: 상태 구조 변경에 맞춰 `Onboarding`, `Chat`, `DateFortune` 등 주요 ViewModel의 단위 테스트 코드 수정 및 검증 로직 보완
AppSettingWithdrawalNoticeViewModel이 참조하는 AppSettingWithdrawalNoticeUiState 파일이 이전 커밋에 누락되어 있었음. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019rHd7J1QSwwEfV94h6uve8
이미 채팅 데이터 로드에 성공한 상태에서 동일한 대화 ID로 `load()`가 재호출될 경우, 상태가 다시 `Loading`으로 전환되어 스플래시 UI가 노출되는 현상을 해결합니다. - `ChatViewModel`: 현재 상태가 `Success`이고 `conversationId`가 동일한 경우, 데이터를 다시 로드하거나 상태를 `Loading`으로 변경하지 않도록 방어 로직 추가 - `ChatViewModelTest`: 화면 재진입 상황(동일 ID로 `load` 재호출)에서 `entryState`가 유지되고 불필요한 상태 변화가 발생하지 않는지 검증하는 테스트 케이스 구현
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
회원 탈퇴 유의사항 화면이 시스템 바(상태 표시줄 및 내비게이션 바)와 겹치는 문제를 해결합니다. - `AppSettingWithdrawalNoticeScreen`: 최상단 `Column` 레이아웃에 `systemBarsPadding()`을 적용하여 시스템 바 영역만큼의 여백 확보
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.
관련 이슈
작업 내용
변경사항 / 상세
중점 리뷰사항
스크린샷 (선택)