Skip to content

fix: 걸음수 표현 #170

Merged
taekoong merged 21 commits intomainfrom
fe/feat/step-ranking
Aug 21, 2025
Merged

fix: 걸음수 표현 #170
taekoong merged 21 commits intomainfrom
fe/feat/step-ranking

Conversation

@taekoong
Copy link
Collaborator

@taekoong taekoong commented Aug 21, 2025

Summary by CodeRabbit

  • 신규 기능

    • 건강 홈 랭킹 영역에 아이콘 추가
    • 사진 날짜 화면에 업로더 이름 배지 표시
  • 스타일

    • 오늘 걸음 수를 천단위 구분자로 표시
    • 가족 랭킹 카드 레이아웃·폭·배지 위치 조정으로 가독성 개선
    • 사진 날짜 화면의 프로필·이름·댓글 정렬 및 여백 개선
  • 버그 수정

    • 로그 응답 구조 검증 강화로 비정상 응답 시 안정적 예외 처리
  • 작업

    • 랭킹 아이콘 에셋 추가

@coderabbitai
Copy link

coderabbitai bot commented Aug 21, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

여러 화면의 UI 레이아웃과 텍스트 포맷을 조정하고, 로그 서비스의 응답 JSON 구조 검증 로직을 추가했습니다. 사진 업로드/상세 화면에는 토큰/변수 처리 변경이 포함되며, 랭킹 아이콘 SVG 자산이 pubspec에 등록되었습니다. 일부 파일은 코드 정렬 및 주석 정리만 수행되었습니다.

Changes

Cohort / File(s) Summary of changes
Health 랭킹 UI 조정
frontend/ongi/lib/screens/health/cross_family_ranking_screen.dart, frontend/ongi/lib/screens/health/health_home_screen.dart
랭킹 아이템 위치/배지 오프셋/컨테이너 폭 조정. 오늘 걸음수 표기를 천단위 구분기호로 포맷. 랭킹 문구를 아이콘+텍스트 Row로 교체(아이콘 추가).
자산 등록(아이콘)
frontend/ongi/pubspec.yaml
assets/images/step_ranking_icon.svg 자산 추가.
Health 입력 화면 정리
frontend/ongi/lib/screens/health/health_status_input_screen.dart
포맷팅/주석 정리, 위젯 트레일링 컴마 및 인덴트 정돈. 동작 변화 없음.
Photo 업로드 흐름 변경
frontend/ongi/lib/screens/photo/detail_record_screen.dart
액세스 토큰 변수를 저장하지 않고 대기만 하도록 변경. 프리사인드 데이터 로컬 변수 제거 후 맵 직접 조회로 대체하되 기존 변수 참조가 남아 잠재적 미정의 참조 발생. 실패 메시지 문구 소폭 변경.
Photo 날짜 화면 레이아웃 개편
frontend/ongi/lib/screens/photo/photo_date_screen.dart
하단 오버레이를 프로필이미지+업로더명 Column과 코멘트 영역으로 재배치. 업로더명 배지 추가, 패딩/정렬 조정. 로직은 동일.
Maum 로그 서비스 응답 검증
frontend/ongi/lib/services/maum_log_service.dart
200/201 응답 시 JSON 디코드 후 맵 타입 확인을 추가하고, 불일치 시 예외 발생. 기존 에러 처리 유지.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant UI as UI
  participant Service as MaumLogService
  participant API as Backend API

  UI->>Service: fetchMaumLogs()
  Service->>API: GET /maum/logs
  API-->>Service: 200/201 + JSON Body
  alt JSON is Map
    Service->>Service: fromJson(parse)
    Service-->>UI: MaumLogResponse
  else JSON not Map
    Service->>Service: throw TypeMismatchException
    Service-->>UI: Error
  end
Loading
sequenceDiagram
  autonumber
  participant UI as UI (DetailRecord)
  participant Prefs as PrefsManager
  participant S3 as S3/Presign Service

  UI->>Prefs: getAccessToken()
  note right of UI: 변경: 결과를 변수에 저장하지 않음
  Prefs-->>UI: token
  UI->>S3: get presigned data
  S3-->>UI: {frontFileName, ...}
  note over UI: 변경: 로컬 변수 제거 후 맵 직접 접근<br/>하지만 기존 코드에서 제거된 변수명을 참조 가능
  alt 변수 미정의/널 참조
    UI->>UI: Runtime error
  else 정상
    UI->>S3: PUT uploads
    S3-->>UI: 200
  end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Poem

흔들흔들 랭킹별 달빛 아이콘 반짝-★
천 단위 콩콩, 걸음수엔 콤마가 톡!
토끼는 JSON을 톡톡 두드려 모양을 확인하고,
사진 업로드 길에 빠진 변수 찾아 폴짝.
배지와 배경, 정돈된 줄맞춤 속에서
오늘도 깡총, 품질로 뛰어오른다! 🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Free

💡 Knowledge Base configuration:

  • Jira integration is disabled
  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 50a429c and b5b761e.

⛔ Files ignored due to path filters (1)
  • frontend/ongi/assets/images/step_ranking_icon.svg is excluded by !**/*.svg
📒 Files selected for processing (7)
  • frontend/ongi/lib/screens/health/cross_family_ranking_screen.dart (2 hunks)
  • frontend/ongi/lib/screens/health/health_home_screen.dart (2 hunks)
  • frontend/ongi/lib/screens/health/health_status_input_screen.dart (7 hunks)
  • frontend/ongi/lib/screens/photo/detail_record_screen.dart (6 hunks)
  • frontend/ongi/lib/screens/photo/photo_date_screen.dart (1 hunks)
  • frontend/ongi/lib/services/maum_log_service.dart (1 hunks)
  • frontend/ongi/pubspec.yaml (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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Join our Discord community for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@taekoong taekoong merged commit c26fa97 into main Aug 21, 2025
2 of 4 checks passed
Neibce added a commit to 2025-PNU-SW-Hackathon/PNUSW-2025-OnGi-10 that referenced this pull request Aug 25, 2025
* feat: 타가족 걸음수 랭킹 화면

* feat: 타가족 걸음수 랭킹 화면 연결

* feat: 타가족 걸음수 랭킹 화면 연결

* feat: 타가족 걸음수 랭킹 화면 연결

* feat: 도넛 차트 api 연결

* feat: 서비스 파일 pr

* feat: 운동 스트레칭 화면 구현

* fix: 스트레칭 관련 오류 수정

* feat: 운동 스트레칭 화면 구현

* fix: 마음 기록 추가 수정

* fix: 걸음수 랭킹 등수 크기 수정

* fix: 걸음수 랭킹 등수 아이콘 추가

* fix: 걸음수 표현

---------

Co-authored-by: Junyoung Yang <y@jun0.dev>
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.

2 participants