Skip to content

fix: 구매 시 달력 선택 안되는 버그, feat: 에러 핸들링#211

Merged
halionaz merged 5 commits into
devfrom
fix/#23/pick
Aug 25, 2025
Merged

fix: 구매 시 달력 선택 안되는 버그, feat: 에러 핸들링#211
halionaz merged 5 commits into
devfrom
fix/#23/pick

Conversation

@halionaz

Copy link
Copy Markdown
Member

❗ 연관 이슈

📌 내용

  • 제곧내

@halionaz halionaz requested a review from Copilot August 25, 2025 19:16
@halionaz halionaz self-assigned this Aug 25, 2025
@netlify

netlify Bot commented Aug 25, 2025

Copy link
Copy Markdown

Deploy Preview for repicka ready!

Name Link
🔨 Latest commit 730c48c
🔍 Latest deploy log https://app.netlify.com/projects/repicka/deploys/68acb7f91ba3db000857bc1f
😎 Deploy Preview https://deploy-preview-211--repicka.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a calendar selection bug in the purchase flow and implements standardized error handling across the application. The main changes include creating a centralized error handling system and fixing date picker logic for sale transactions.

  • Adds a centralized error handling hook (useHandleError) that standardizes error messages across the app
  • Fixes calendar date selection issues by implementing sale availability checking and correcting date validation logic
  • Replaces individual error handling implementations with the new centralized system across multiple API hooks

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/libs/types/index.ts Adds ErrorResponse interface for error handling
src/libs/queryKeys.ts Adds SALE_AVAILABILITY query key for sale date checking
src/common/hooks/useHandleError.ts Implements centralized error handling hook
src/features/pick/apis/useGetSaleAvailability.ts New API hook to fetch sale availability dates
src/features/pick/components/DateDrawer/index.tsx Fixes calendar selection logic using sale availability data
Multiple API files Standardizes error handling using the new useHandleError hook

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/features/pick/components/DateDrawer/index.tsx Outdated
Comment thread src/common/hooks/useHandleError.ts
@halionaz halionaz merged commit 2a1ec4c into dev Aug 25, 2025
3 of 4 checks passed
@halionaz halionaz deleted the fix/#23/pick branch August 25, 2025 19:22
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