Skip to content

fix(#173): 홈화면 리포트 진입 후 복귀 시 카드가 접힌 상태로 초기화되는 문제 수정 - #198

Open
lyh5427 wants to merge 1 commit into
developfrom
fix/#173
Open

fix(#173): 홈화면 리포트 진입 후 복귀 시 카드가 접힌 상태로 초기화되는 문제 수정#198
lyh5427 wants to merge 1 commit into
developfrom
fix/#173

Conversation

@lyh5427

@lyh5427 lyh5427 commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

🚩 연관 이슈

closed #173

📝 작업 내용

  • 리포트 상세로 이동했다가 홈으로 돌아오면 HomeScreenLaunchedEffect(Unit)가 다시 실행되어 Load가 재발행되고, loadReports()가 매번 expandedReportIds를 첫 리포트만 펼친 상태로 덮어써 사용자가 펼쳐둔 카드가 접혀버리는 문제 수정
  • 최초 로드에서만 첫 리포트를 기본으로 펼치고, 재조회부터는 기존 펼침 상태를 그대로 유지(삭제된 리포트 id만 걸러냄)하도록 HomeViewModel.loadReports() 변경
  • 회귀 테스트 2건 추가: 재조회 시 펼침 상태 유지 / 재조회로 리포트가 삭제됐을 때 해당 id 제거

🏞️ 스크린샷 (선택)

🗣️ 리뷰 요구사항 (선택)

리포트 상세로 이동했다가 홈으로 돌아오면 HomeScreen의 LaunchedEffect(Unit)가
다시 실행되어 Load가 재발행되고, loadReports()가 매번 expandedReportIds를
첫 리포트만 펼친 상태로 덮어써 사용자가 펼쳐둔 카드가 접혀 있었다.
최초 로드에서만 첫 리포트를 기본으로 펼치고, 재조회부터는 기존 펼침 상태를
유지하되(삭제된 리포트 id만 걸러낸다) 그대로 보존하도록 수정.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 92ef70ff-7298-48c1-9f45-a7d5dd259c88


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.

github-actions Bot added a commit that referenced this pull request Aug 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Catalog Preview

상태: ✅ 최신 배포 성공

Preview: https://yapp-github.github.io/28th-App-Team-1-Android/pr/198/

Commit: 721246e4e965

실행: GitHub Actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FIX] 홈화면 리포트 진입 후 홈 복귀시 카드가 접힌상태로 복귀

1 participant