Skip to content

Migrate Setting Account Withdraw/SignOut View from XML to Compose#686

Merged
DongJun-H merged 13 commits intodevelopfrom
layout/issue-635
Sep 15, 2025
Merged

Migrate Setting Account Withdraw/SignOut View from XML to Compose#686
DongJun-H merged 13 commits intodevelopfrom
layout/issue-635

Conversation

@DongJun-H
Copy link
Member

작업 내용

  • 로그아웃/회원탈퇴 구현
  • 회원 탈퇴시 특정 단계의 경우 서버에서 가이드를 받아와 보여줄 수 있도록 로직 추가
  • BottomNavigation Tab 선택과 함께 홈으로 navigate하는 메소드 추가

참고

DongJun-H added 10 commits April 8, 2025 20:39
# Conflicts:
#	presentation/src/main/java/daily/dayo/presentation/screen/main/MainNavigator.kt
#	presentation/src/main/java/daily/dayo/presentation/screen/main/MainScreen.kt
#	presentation/src/main/java/daily/dayo/presentation/screen/settings/SettingsNavigation.kt
#	presentation/src/main/java/daily/dayo/presentation/screen/settings/SettingsScreen.kt
#	presentation/src/main/java/daily/dayo/presentation/view/Button.kt
#	presentation/src/main/res/navigation/nav_graph.xml
# Conflicts:
#	presentation/src/main/java/daily/dayo/presentation/screen/main/MainScreen.kt
#	presentation/src/main/java/daily/dayo/presentation/screen/settings/SettingsNavigation.kt
#	presentation/src/main/java/daily/dayo/presentation/screen/settings/SettingsScreen.kt
…drawal, create a WithdrawalReason model, and update the UI
# Conflicts:
#	presentation/src/main/java/daily/dayo/presentation/screen/main/MainScreen.kt

This comment was marked as outdated.

@DongJun-H DongJun-H requested a review from Copilot September 7, 2025 15:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the setting account withdraw/sign-out functionality from XML-based layouts to Compose UI while implementing a comprehensive withdrawal flow with dynamic content guides based on withdrawal reasons.

Key Changes

  • Replaced XML-based settings and withdrawal screens with Compose implementations
  • Added multi-step withdrawal process with retention strategies and server-guided content
  • Implemented sign-out functionality with proper navigation and state management

Reviewed Changes

Copilot reviewed 21 out of 22 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
strings.xml Added comprehensive withdrawal and sign-out text resources with retention messaging
SettingsScreen.kt Migrated to Compose with sign-out dialog and withdrawal navigation
WithdrawScreen.kt New Compose implementation with multi-step flow and dynamic content
AccountViewModel.kt Added withdrawal guide APIs and updated state management
Navigation files Updated to support new Compose-based withdrawal flow
Use cases & repositories Added new APIs for withdrawal guide content retrieval

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

…ccountViewModel.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment on lines +564 to +578
FilledRoundedCornerButton(
onClick = onCancel,
label = stringResource(id = content.cancelButtonTextResId),
modifier = Modifier
.weight(1f)
.height(52.dp),
color = ButtonDefaults.buttonColors(
containerColor = PrimaryL3_F2FBF7,
contentColor = Primary_23C882
),
textStyle = DayoTheme.typography.b3,
radius = 16,
)

Spacer(modifier = Modifier.width(8.dp))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
image

제가 테스트한 기기에서 버튼 글씨가 잘리는 것 같습니다.
이 부분 어떻게 처리할 지 전략을 생각해봐야 할 것 같아요

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

흠...왜그런지 한번 다시 봐야겠군요

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다음 패치때 적용하도록 하겠습니다

Comment on lines +868 to +874
AsyncImage(
model = ImageRequest.Builder(LocalContext.current)
.data(imageData)
.crossfade(true)
.memoryCacheKey("guide_${reasonTextResId}_$index")
.diskCacheKey("guide_${reasonTextResId}_$index")
.build(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ByteArray 이미지 데이터에 캐싱 키 처리 해주신 것 좋습니다 👍

@github-project-automation github-project-automation bot moved this from Todo to In Progress in DAYO 2.0 Sep 9, 2025
@DongJun-H DongJun-H merged commit 2ea2711 into develop Sep 15, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in DAYO 2.0 Sep 15, 2025
@DongJun-H DongJun-H deleted the layout/issue-635 branch September 15, 2025 09:38
DongJun-H added a commit that referenced this pull request Feb 3, 2026
Migrate Setting Account Withdraw/SignOut View from XML to Compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants