Skip to content

Conversation

DongChyeon
Copy link
Member

@DongChyeon DongChyeon commented May 24, 2025

💡 Issue

🌱 Key changes

  • 홈 헤더 세션 아이템 width 변경 (좌우 44.dp의 패딩을 가지도록)
  • 최근 출석 현황 구현

✅ To Reviewers

현재 홈 화면 Pull To Refresh 시에 임박한 세션의 출석 버튼의 갱신을 위해 해당 부분만 API 재호출 중인데
최근 출석 현황도 업데이트 수단이 필요할지... 고민되네요

📸 스크린샷

스크린샷
image

Summary by CodeRabbit

  • 신규 기능

    • 홈 화면에 최근 출석 현황을 표시하는 UI가 추가되었습니다.
    • 최근 출석 현황에서 '전체 보기' 버튼을 통해 출석 내역 전체 화면으로 이동할 수 있습니다.
  • 개선 사항

    • 출석 내역 데이터에 이름 정보가 추가되어, 최근 출석 현황에 이름이 함께 표시됩니다.
    • 세션 아이템의 너비가 기기 화면에 맞게 동적으로 조정됩니다.
  • 문서 및 리소스

    • 최근 출석 현황 및 전체 보기 관련 신규 문자열 리소스가 추가되었습니다.
  • 기타

    • 일부 네비게이션 함수의 이름이 더 간결하게 변경되었습니다.

@DongChyeon DongChyeon self-assigned this May 24, 2025
@DongChyeon DongChyeon added the Feature 기능 추가, 개발 label May 24, 2025
Copy link

coderabbitai bot commented May 24, 2025

Important

Review skipped

Auto reviews are limited to specific labels.

🏷️ Labels to auto review (1)
  • CodeRabbit

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.

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

Walkthrough

최근 출석 내역을 홈 화면에 표시하고, 전체 출석 내역 화면으로 이동하는 네비게이션을 추가하는 기능이 도입되었습니다. 관련 데이터 모델, UI, ViewModel, 네비게이션 및 문자열 리소스가 확장 및 수정되었습니다. 네비게이션 함수 네이밍도 일관성 있게 변경되었습니다.

Changes

파일/경로 요약 변경 내용 요약
.../YappNavHost.kt, .../Navigator.kt, .../HomeNavigation.kt 출석 내역 화면으로 이동하는 네비게이션 액션 및 콜백 추가, 네비게이션 함수 네이밍 일관성 있게 변경
.../AttendanceHistoryListResponse.kt, .../AttendanceHistory.kt AttendanceHistory 모델에 name 필드 추가 및 데이터 변환 함수 수정
.../HomeContract.kt, .../HomeViewModel.kt HomeState에 최근 출석 내역 상태 추가, 관련 Intent/SideEffect/Intent 처리 및 데이터 로딩 로직 구현
.../HomeScreen.kt, .../HomeRecentAttendanceHistory.kt 최근 출석 내역 UI 컴포넌트 추가, 전체 보기 클릭 이벤트 및 콜백 연결, UI 문자열 리소스 적용
.../HomeHeader.kt SessionItem의 width를 화면 크기에 맞게 동적으로 조정, 프리뷰에 YappTheme 적용
.../strings.xml 최근 출석 현황 및 전체 보기 관련 문자열 리소스 추가
.../SettingNavigation.kt SettingRoute import 및 호출 방식 단순화

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant HomeScreen
    participant HomeViewModel
    participant AttendanceRepository
    participant Navigator

    User->>HomeScreen: 홈 진입
    HomeScreen->>HomeViewModel: HomeIntent.EnterHomeScreen
    HomeViewModel->>AttendanceRepository: 출석 내역 조회
    AttendanceRepository-->>HomeViewModel: AttendanceHistoryList 반환
    HomeViewModel->>HomeScreen: 최근 출석 내역 상태 업데이트

    User->>HomeScreen: "전체 보기" 클릭
    HomeScreen->>HomeViewModel: HomeIntent.ClickShowAllAttendanceHistory
    HomeViewModel->>HomeScreen: HomeSideEffect.NavigateToAttendanceHistory
    HomeScreen->>Navigator: navigateAttendanceHistory()
Loading

Assessment against linked issues

Objective Addressed Explanation
홈 화면 최근 출석내역 표시 및 전체 출석내역 네비게이션 (#200)

Possibly related PRs

Suggested labels

Design

Suggested reviewers

  • jinukeu

Poem

🐰
홈 화면에 출석 내역이 쏙,
토끼도 출석 체크를 톡톡!
전체 보기 버튼을 꾹 눌러
출석의 역사를 한눈에 봐요.
네비게이션도 이름이 쏙쏙,
오늘도 코드밭에 당근 한 줌 쏙!
🥕


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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@DongChyeon
Copy link
Member Author

@coderabbitai review

Copy link

coderabbitai bot commented May 24, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

}.onFailure { e ->
when (e) {
is InvalidTokenException -> postSideEffect(HomeSideEffect.NavigateToLogin)
else -> e.record()
Copy link
Member

Choose a reason for hiding this comment

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

R: postSideEffect(HomeSideEffect.HandleException(it)) 을 통해 문제가 발생했음을 유저에게 알려주세요!

Copy link
Member Author

Choose a reason for hiding this comment

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

image
image

현재 예정된 세션이 없는 상태라 API 호출할 때마다 해당 오류가 발생하는 상황이라...
NoScheduleSeesionException에만 handleException(it) 하지 않도록 할까요??

Copy link
Member

Choose a reason for hiding this comment

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

NoScheduleSeesionException에만 handleException(it) 하지 않도록 할까요??
-> 넵! 요렇게 처리 부탁드릴게요!

Copy link
Member Author

Choose a reason for hiding this comment

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

요거랑 출석 현황 새로고침 처리했어요

@jinukeu
Copy link
Member

jinukeu commented May 24, 2025

Pull To Refresh할 때 최근 출석 현황도 업데이트되면 좋을거같아요!

@DongChyeon DongChyeon requested a review from jinukeu May 24, 2025 16:19
Copy link
Member

@jinukeu jinukeu left a comment

Choose a reason for hiding this comment

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

확인했습니다
고생하셨어요!

@DongChyeon DongChyeon force-pushed the feature/#200-home-recent-attendance branch from 19b2431 to 4bc3c72 Compare May 24, 2025 16:28
@DongChyeon DongChyeon merged commit c494dc4 into develop May 24, 2025
4 checks passed
@DongChyeon DongChyeon deleted the feature/#200-home-recent-attendance branch May 24, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature 기능 추가, 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] 홈 화면 최근 출석내역
2 participants