Skip to content

fix: 스트레칭 텍스트 및 버튼 위치 수정#166

Merged
surfwithus merged 1 commit intomainfrom
fix/stretching
Aug 21, 2025
Merged

fix: 스트레칭 텍스트 및 버튼 위치 수정#166
surfwithus merged 1 commit intomainfrom
fix/stretching

Conversation

@surfwithus
Copy link
Collaborator

@surfwithus surfwithus commented Aug 21, 2025

Summary by CodeRabbit

  • 새 기능

  • 버그 수정

    • 보호자 선택이 비어있을 때 첫 번째 보호자를 자동 선택해 통증 기록이 정상적으로 불러와지도록 개선.
  • 스타일

    • 스트레칭 섹션 UI 개편: 안내 문구를 “통증이 완화될 수 있도록”으로 업데이트하고, 주요 버튼 라벨을 “운동하기”로 변경해 전체 폭의 강조 버튼으로 가시성 강화.
    • 레이아웃 미세 조정: 간격·정렬, 아이콘 크기, 날짜 캐러셀 위치, 본문 여백/높이 등을 조정.
    • 통증 부위 표시의 한글 표기 일관성 향상.

@coderabbitai
Copy link

coderabbitai bot commented Aug 21, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

HealthStatusInputScreen 내부 로직과 UI가 조정됨. 부모 미선택 시 첫 부모 자동 선택 로직 추가. 스트레칭 섹션의 레이아웃·문구·버튼 스타일 전면 수정. 통증 부위→링크 매핑 코드와 한글 표시 로직을 정리. 여타 배치·간격·이미지 크기·스낵바 호출 형식이 소폭 변경됨.

Changes

Cohort / File(s) Summary of Changes
부모 선택/데이터 로드 로직
frontend/ongi/lib/screens/health/health_status_input_screen.dart
_refreshParentMembers에서 선택된 부모가 없고 목록이 있을 때 첫 부모 uuid 자동 선택해 통증 기록 로드 보장
스트레칭 UI/문구 개편
.../health_status_input_screen.dart
스트레칭 영역 레이아웃을 Align 좌측 정렬로 재구성, 안내 문구 변경(“통증이 완화될 수 있도록”), 버튼 라벨 “운동하기”, 풀폭·padding/minimumSize 조정
통증 부위→링크/표시 매핑 정리
.../health_status_input_screen.dart
getStretchingLinksForPainAreas 구성 단순화(맵 리터럴 추가), 한국어 표시 매핑 조건식/맵 구조를 간결화(동일 의미 유지)
UI 레이아웃/크기 조정
.../health_status_input_screen.dart
원형 헤더/콘텐츠 상단 오프셋 조정, 아이콘 110→100, DateCarousel 중앙 배치, 본문 높이 0.45–0.48 조정, 외곽 마진 80→60 등
스낵바/메신저 호출 포맷
.../health_status_input_screen.dart
ScaffoldMessenger 및 SnackBar 생성 호출을 라인 정리(동작 동일)
기타 포매팅/디버그
.../health_status_input_screen.dart
줄바꿈·인덴트 정리, 디버그 프린트 유지(형식만 수정)

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User as 사용자
  participant Screen as HealthStatusInputScreen
  participant ParentSvc as ParentMembersProvider
  participant PainSvc as PainRecordLoader

  Note over Screen: 화면 초기화/새로고침
  User->>Screen: 화면 진입
  Screen->>ParentSvc: 부모 목록 요청
  ParentSvc-->>Screen: 부모 목록 반환
  alt 선택된 부모 없음 AND 목록 존재
    Screen->>Screen: 첫 부모 자동 선택
  end
  Screen->>PainSvc: 선택 부모의 통증 기록 로드
  PainSvc-->>Screen: 데이터 반환
  Screen-->>User: UI 업데이트
Loading
sequenceDiagram
  autonumber
  actor User as 사용자
  participant Screen as HealthStatusInputScreen
  participant Mapper as getStretchingLinksForPainAreas
  participant Nav as Navigator/WebView

  User->>Screen: "운동하기" 버튼 탭
  Screen->>Mapper: 통증 부위 목록 전달
  Mapper-->>Screen: 스트레칭 링크 목록 반환
  alt 링크 존재
    Screen->>Nav: 링크 화면으로 이동
    Nav-->>User: 콘텐츠 표시
  else 링크 없음
    Screen-->>User: 스낵바로 안내
  end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

귀가 쫑긋, 당근 한 입, 코드에 춤을 춘 하루
첫 부모 살짝 찍~ 자동 선택, 흐름이 곧바로 무르익고
“운동하기” 크게 번쩍, 통증 길 따라 링크로 폴짝
여백은 정갈히, 아이콘은 살짝 슬림
깡총깡총, 오늘도 화면은 더 부드럽게 굴-려진다 🥕🐇

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 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 c9e7d9f and 54de357.

📒 Files selected for processing (1)
  • frontend/ongi/lib/screens/health/health_status_input_screen.dart (23 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.

@surfwithus surfwithus merged commit 009e1d6 into main Aug 21, 2025
3 of 4 checks passed
@surfwithus surfwithus deleted the fix/stretching branch August 21, 2025 17:10
Neibce pushed a commit to 2025-PNU-SW-Hackathon/PNUSW-2025-OnGi-10 that referenced this pull request Aug 25, 2025
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