Skip to content

Conversation

@DongJun-H
Copy link
Member

@DongJun-H DongJun-H commented May 21, 2025

작업사항

  • 공지사항 페이지에 대해 XML레이아웃에서 Compose로 마이그레이션
  • SharedElement 적용
    • 공지사항 목록에서 상세보기 이동간 Transition 효과 적용
  • 동일한 NoticeViewModel 인스턴스 사용을 위해 NoticeViewModel 정의 상위 이동

참고

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 application’s Notice view from XML layouts to Jetpack Compose while integrating shared element transitions for smooth navigation. Key changes include the complete removal of XML layouts, updates to the NoticeViewModel to use Kotlin Flows and Resource wrappers instead of LiveData, and new Composable screens with updated navigation for notices.

Reviewed Changes

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

Show a summary per file
File Description
fragment_notice_list.xml & fragment_notice_detail.xml Removed legacy XML layouts as part of the migration to Compose.
NoticeViewModel.kt Updated to use StateFlow for detail notices; changed noticeId type from Int to Long and updated API response handling.
SettingsScreen.kt & SettingsNavigation.kt Added parameter for notices navigation and updated corresponding navigation calls.
NoticesScreen.kt, NoticeNavigation.kt, NoticeDetailScreen.kt Introduced new Compose-based screens for displaying the notice list and notice details with shared element transitions.
MainScreen.kt, MainNavigator.kt Integrated the new notice navigation into the main app navigation and incorporated SharedTransitionLayout.
Remaining legacy fragments and adapter files Removed XML-based fragments and adapters in favor of Compose implementations.
Domain & Data layers (RequestDetailNoticeUseCase, NoticeRepository, Notice.kt, NoticeRepositoryImpl, NoticeResponse.kt, NoticeApiService.kt) Updated all noticeId types from Int to Long to maintain consistency.
Comments suppressed due to low confidence (1)

presentation/src/main/java/daily/dayo/presentation/viewmodel/NoticeViewModel.kt:45

  • [nitpick] Consider renaming the lambda parameter 'ApiResponse' to 'response' for clarity and consistency with typical naming conventions.
requestDetailNoticeUseCase(noticeId).let { ApiResponse ->

Copy link
Member

@yuni-ju yuni-ju left a comment

Choose a reason for hiding this comment

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

애니메이션 좋습니다 😊

@github-project-automation github-project-automation bot moved this from Todo to In Progress in DAYO 2.0 May 21, 2025
@DongJun-H DongJun-H merged commit 149374b into develop May 22, 2025
1 check passed
@DongJun-H DongJun-H deleted the layout/issue-644 branch May 22, 2025 11:19
@github-project-automation github-project-automation bot moved this from In Progress to Done in DAYO 2.0 May 22, 2025
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.

3 participants