Skip to content

feat: 운동 기록 상세 화면 구현 및 운동 기록 화면과 운동 시간 연동#72

Merged
surfwithus merged 1 commit intomainfrom
feat/time_grid
Jul 28, 2025
Merged

feat: 운동 기록 상세 화면 구현 및 운동 기록 화면과 운동 시간 연동#72
surfwithus merged 1 commit intomainfrom
feat/time_grid

Conversation

@surfwithus
Copy link
Collaborator

@surfwithus surfwithus commented Jul 28, 2025

구현 요소

  1. 운동 기록 상세 화면 구현 완료
  2. 운동 기록 화면과 운동 시간 연동 완료

추후 해야 할 일

  1. 백엔드 운동 기록 관련 작업 완료되면, 날짜별 운동 시간을 DB와 연결하여 저장되게 하기
  2. 운동 기록 화면 및 상세 화면에 nav 바 추가

Summary by CodeRabbit

  • 신규 기능

    • 운동 기록 상세 화면에서 시간 선택 그리드가 추가되어, 사용자가 운동 시간을 10분 단위로 직접 선택할 수 있습니다.
    • 선택한 운동 시간이 실시간으로 표시되며, 뒤로 가기 시 선택한 시간이 상위 화면에 반영됩니다.
    • 운동 기록 화면에서 각 날짜별로 운동 시간을 저장하고, 상세 화면에서 선택한 시간이 자동으로 업데이트됩니다.
    • 24시간(오전 6시~다음날 6시) 기반의 인터랙티브한 시간 선택 그리드 위젯이 도입되었습니다.
  • 개선 사항

    • 운동 시간 입력 및 표시가 더욱 직관적이고 동적으로 변경되었습니다.

@coderabbitai
Copy link

coderabbitai bot commented Jul 28, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

운동 기록 상세 화면이 상태를 가지는 위젯으로 변경되어, 사용자가 시간 셀을 선택할 수 있고, 선택된 시간에 따라 운동 시간이 동적으로 표시됩니다. 시간 선택은 새로운 TimeGrid 위젯을 통해 구현되었으며, 선택 결과는 상위 운동 기록 화면에 저장 및 반영됩니다.

Changes

Cohort / File(s) Change Summary
운동 기록 상세 화면 상태 관리 및 UI 개선
frontend/ongi/lib/screens/health/exercise_record_detail_screen.dart
StatelessWidget에서 StatefulWidget으로 변경, 시간 셀 선택 및 운동 시간 계산 로직 추가, UI 구조 개선, 뒤로가기 시 선택 시간 반환 처리 추가
운동 기록 메인 화면 시간 저장 기능
frontend/ongi/lib/screens/health/exercise_record_screen.dart
날짜별 운동 시간 저장용 Map 추가, 시간 조회 및 저장 메서드 구현, 상세 화면에서 반환된 시간 저장 및 UI 갱신 로직 적용
시간 선택 그리드 신규 위젯
frontend/ongi/lib/widgets/time_grid.dart
24시간(6AM~)을 10분 단위로 나눈 선택형 그리드 위젯 TimeGrid 신규 구현, 선택 상태 관리 및 콜백 처리, UI 커스터마이즈 지원

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ExerciseRecordScreen
    participant ExerciseRecordDetailScreen
    participant TimeGrid

    User->>ExerciseRecordScreen: 날짜별 운동 기록 화면 진입
    User->>ExerciseRecordDetailScreen: 날짜 선택 후 상세 화면 진입
    ExerciseRecordDetailScreen->>TimeGrid: 시간 셀 선택 UI 표시
    User->>TimeGrid: 시간 셀 선택/해제
    TimeGrid-->>ExerciseRecordDetailScreen: 선택된 셀 목록 콜백
    ExerciseRecordDetailScreen->>User: 운동 시간 동적 표시
    User->>ExerciseRecordDetailScreen: 뒤로가기(선택 완료)
    ExerciseRecordDetailScreen-->>ExerciseRecordScreen: 선택한 시간(hours, minutes) 반환
    ExerciseRecordScreen->>ExerciseRecordScreen: 반환값 저장 및 UI 갱신
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~18 minutes

Poem

🥕
시간 셀을 톡톡, 토끼가 뛰며
운동 기록도 이제는 똑똑!
TimeGrid 위에 햇살이 비치고
선택된 10분들이 춤을 추네
운동한 만큼 기록도 쏙쏙—
건강한 하루, 귀 쫑긋 토끼가 응원해요!
🐇


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Free

📥 Commits

Reviewing files that changed from the base of the PR and between 6ccf8b4 and 3b877d6.

📒 Files selected for processing (3)
  • frontend/ongi/lib/screens/health/exercise_record_detail_screen.dart (2 hunks)
  • frontend/ongi/lib/screens/health/exercise_record_screen.dart (3 hunks)
  • frontend/ongi/lib/widgets/time_grid.dart (1 hunks)

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • 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? Join our Discord community 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 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.

@surfwithus surfwithus merged commit 60cfe5a into main Jul 28, 2025
2 of 4 checks passed
@surfwithus surfwithus deleted the feat/time_grid branch July 28, 2025 20:51
Neibce pushed a commit to 2025-PNU-SW-Hackathon/PNUSW-2025-OnGi-10 that referenced this pull request Aug 25, 2025
Neibce/OnGi# 구현 요소
1. 운동 기록 상세 화면 구현 완료
2. 운동 기록 화면과 운동 시간 연동 완료

Neibce/OnGi# 추후 해야 할 일
1. 백엔드 운동 기록 관련 작업 완료되면, 날짜별 운동 시간을 DB와 연결하여 저장되게 하기
2. 운동 기록 화면 및 상세 화면에 nav 바 추가
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.

1 participant