Skip to content

feat; 마음 그래프 api 연결 #95

Merged
taekoong merged 20 commits intomainfrom
fe/connecting
Aug 9, 2025
Merged

feat; 마음 그래프 api 연결 #95
taekoong merged 20 commits intomainfrom
fe/connecting

Conversation

@taekoong
Copy link
Collaborator

@taekoong taekoong commented Aug 9, 2025

Summary by CodeRabbit

  • 신규 기능

    • 가족 온도 데이터와 기여 내역을 조회할 수 있는 서비스가 추가되었습니다.
    • 온도 기여 내역을 위한 데이터 모델이 도입되었습니다.
  • 버그 수정

    • 그래프 축 라벨 렌더링이 개선되어, 잘못된 위치에 라벨이 표시되지 않도록 수정되었습니다.
  • 리팩터

    • 온도 기록 리스트의 데이터 소스가 개선되어, 더 안정적으로 정보를 표시합니다.

@coderabbitai
Copy link

coderabbitai bot commented Aug 9, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

새로운 온도 기여 관련 모델(FamilyTemperatureContributionResponse, Contribution)이 추가되었고, 가족 온도 데이터를 가져오는 서비스(TemperatureService)가 도입되었습니다. 홈 그래프 화면에서는 히스토리 리스트의 데이터 소스와 축 레이블 처리 방식이 변경되었습니다. 전체적으로 온도 기록 및 기여 내역을 모델링하고 불러오는 기능이 강화되었습니다.

Changes

Cohort / File(s) Change Summary
온도 기여 모델 추가
frontend/ongi/lib/models/temperature_contribution.dart
FamilyTemperatureContributionResponseContribution 클래스 추가. JSON 파싱, 날짜/기여 포맷팅 기능 포함.
홈 그래프 화면 데이터 소스 및 축 라벨 처리
frontend/ongi/lib/screens/home/home_degree_graph.dart
히스토리 리스트 데이터 소스를 contributions에서 history(Map 리스트)로 변경, 축 라벨 렌더링 방식 개선, 관련 변수명 및 접근 방식 수정.
온도 서비스 도입
frontend/ongi/lib/services/temperature_service.dart
TemperatureService 클래스 추가. 가족 온도 일별 데이터와 기여 내역을 HTTP로 가져오는 메서드 구현.

Sequence Diagram(s)

sequenceDiagram
    participant UI as Home Graph Screen
    participant Service as TemperatureService
    participant API as Backend API

    UI->>Service: fetchFamilyTemperatureDaily(familyCode, token)
    Service->>API: GET /temperature/daily?familyId=...
    API-->>Service: JSON (daily temperature list)
    Service-->>UI: List<Map<String, dynamic>>

    UI->>Service: fetchFamilyTemperatureContributions(familyCode, token)
    Service->>API: GET /temperature/contributions?familyId=...
    API-->>Service: JSON (contributions list)
    Service-->>UI: List<dynamic>
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~15 minutes

Poem

🐇
새로운 모델 hop, 서비스 hop,
온도 내역 hop-hop-hop!
히스토리도 map으로 변신,
그래프 라벨도 더 똑똑해진.
토끼가 뛰듯 코드도 경쾌하게,
가족 온도 기록, 이제는 완벽하게!
🌡️💡

Note

🔌 MCP (Model Context Protocol) integration is now available in Early Access!

Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context.


📜 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 958591c and 0e25bbd.

📒 Files selected for processing (3)
  • frontend/ongi/lib/models/temperature_contribution.dart (1 hunks)
  • frontend/ongi/lib/screens/home/home_degree_graph.dart (4 hunks)
  • frontend/ongi/lib/services/temperature_service.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.
  • 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.

Support

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

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.

@taekoong taekoong merged commit d95a585 into main Aug 9, 2025
2 of 4 checks passed
Neibce pushed a commit to 2025-PNU-SW-Hackathon/PNUSW-2025-OnGi-10 that referenced this pull request Aug 25, 2025
* feat: 온도그래프 화면으로 전환

* feat: 온도그래프 화면으로 전환

* feat: 온도그래프 화면으로 전환

* feat: 온도그래프 화면으로 전환

* feat: 온도그래프 화면으로 전환

* feat: 온도그래프 화면 구현

* feat: 온도그래프 화면 구현

* feat: 온도그래프 화면 구현

* feat: 온도그래프 화면 구현

* feat: 온도그래프 화면 구현

* feat: 마이페이지 및 온도지수 api연결

* feat: 마이페이지 api 연결

* feat: 마이페이지 api 연결

* feat: 가족기여도 api 연결

* feat: dkdkkkkkk

* feat: 서비스 업로드
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