Skip to content

[Feature] 홈 페이지 관련 API 연결 완료#33

Open
yujin5959 wants to merge 2 commits intodevelopfrom
feature/#30
Open

[Feature] 홈 페이지 관련 API 연결 완료#33
yujin5959 wants to merge 2 commits intodevelopfrom
feature/#30

Conversation

@yujin5959
Copy link
Collaborator

🔗 관련 이슈


🧩 작업 요약 (TL;DR)

  • 오늘의 브리핑 API 연결
  • 리마인더 API 연결

🔄 변경 유형

해당되는 항목에 체크해주세요.

  • ✨ Feature
  • 🐞 Bug Fix
  • 🔨 Refactor (기능 변화 없음)
  • 🎨 UI / UX
  • ⚙️ Setting / Infra
  • 🧪 Test
  • 📄 Docs

📌 주요 변경 사항

N/A

🖼️ 스크린샷 / 영상 (선택)

N/A

🧠 리뷰 요청 포인트

리뷰어에게 특히 봐줬으면 하는 부분

  • 로직 설계
  • 상태 관리 방식
  • 네이밍
  • 성능 / 렌더링
  • 기타: ___

⚠️ 체크리스트 (PR 올리기 전)

  • 로컬에서 정상 동작 확인
  • 기존 기능에 영향 없음
  • 불필요한 console.log 제거
  • 린트 / 타입 에러 없음
  • 관련 이슈 연결 완료

🚧 미완 / 후속 작업

  • N/A

💬 기타 참고 사항

N/A

@copilot 이 PR을 아래 기준으로 검토해주세요:

.github/instructions/capstone.instructions.md 파일을 지침으로 삼으세요.
폴더/파일 위치가 프로젝트 구조 규칙과 일치하는지
컴포넌트가 단일 책임 원칙(SRP)을 지키는지
import 방향이 올바른지 (shared → features 역방향 없음)
명명/케이스가 일관적인지 (PascalCase vs camelCase)
배럴(index.ts) 사용이 현 패턴을 따르는지
응답은 한국어로, 발견된 위반 항목과 추천 구조를 포함해주세요.
리뷰를 달아주세요

select: (response) => response.result,
})

const { data: reminders } = useCustomQuery(['reminders'], fetchReminders, {
Copy link
Collaborator

Choose a reason for hiding this comment

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

훅을 분리하고 query key는 query key factory로 전환해주세용

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

이 PR은 홈 페이지에 오늘의 브리핑과 리마인더 API를 연결하는 작업입니다. src/shared 레이어에 타입과 API 함수를 추가하고, HomePage 컴포넌트에서 이를 소비하여 실제 데이터를 렌더링하도록 구현되었습니다.

Changes:

  • 홈 관련 타입 정의 추가 (BriefingResponse, ReminderResponse 등)
  • 브리핑 및 리마인더 조회 API 함수 구현
  • HomePage 컴포넌트에서 API 연동 및 데이터 기반 UI 렌더링

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 9 comments.

File Description
src/shared/types/home/home.ts 브리핑 및 리마인더 관련 TypeScript 타입 정의 추가
src/shared/api/home/home.ts 브리핑 및 리마인더 조회 API 함수 구현
src/pages/main/HomePage/HomePage.tsx 하드코딩된 데이터를 API 호출 결과로 대체하고 로딩/상태 처리 추가

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

✨ [Feature] 홈 관련 API 연결

2 participants