Skip to content

[Fix] 새 채팅, 뒤로가기 시에도 토닥이 스플래시가 뜨는 버그 해결 - #157

Merged
oungsi2000 merged 4 commits into
developfrom
fix/todak-splash
Aug 22, 2026
Merged

[Fix] 새 채팅, 뒤로가기 시에도 토닥이 스플래시가 뜨는 버그 해결#157
oungsi2000 merged 4 commits into
developfrom
fix/todak-splash

Conversation

@oungsi2000

Copy link
Copy Markdown
Collaborator

관련 이슈

작업 내용

변경사항 / 상세

중점 리뷰사항

스크린샷 (선택)

oungsi2000 and others added 3 commits August 21, 2026 01:33
앱 전반의 로딩 상태 관리를 단순 `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`가 유지되고 불필요한 상태 변화가 발생하지 않는지 검증하는 테스트 케이스 구현
@oungsi2000 oungsi2000 self-assigned this Aug 22, 2026
@oungsi2000 oungsi2000 added the fix 버그 수정 label Aug 22, 2026
@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 7cd9b942-e74f-49d8-97cc-a88f485be7ee

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

회원 탈퇴 유의사항 화면이 시스템 바(상태 표시줄 및 내비게이션 바)와 겹치는 문제를 해결합니다.

- `AppSettingWithdrawalNoticeScreen`: 최상단 `Column` 레이아웃에 `systemBarsPadding()`을 적용하여 시스템 바 영역만큼의 여백 확보
@oungsi2000
oungsi2000 merged commit c9cf7d5 into develop Aug 22, 2026
2 checks passed
@oungsi2000
oungsi2000 deleted the fix/todak-splash branch August 22, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 버그 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant