Repository navigation
feat: 기사 상세 페이지 지정 견적 요청 기능 구현 #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 10 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f208fe2
feat: 지정 견적 요청 API 클라이언트(designateMover) 추가
yooseohyeon 3a8234b
refactor: 견적 요청 active API를 fetchInstance로 변환
yooseohyeon 08cc7a1
refactor: active 견적 요청을 전용 훅으로 분리 (EstimateRequestForm에서 추출)
yooseohyeon c42f340
feat: 지정 견적 요청 훅 추가 (useDesignateMover)
yooseohyeon 2b585f3
feat: 공통 Button 컴포넌트의 solid/outline 비활성 스타일 추가
yooseohyeon 55d79c5
feat: 기사님 리뷰 날짜 표시 형식 수정 (YYYY-MM-DD 포맷)
yooseohyeon 98bbca5
feat: 공통 모달(Modal) 컴포넌트 확장
yooseohyeon e17438f
feat: 기사 상세 페이지 지정 견적 요청 플로우 구현
yooseohyeon fd65e66
feat: 지정 견적 요청 완료 시 성공 모달 및 내 견적 요청 임시 페이지 추가
yooseohyeon afb35a8
fix: 안내 모달 설명 문구 모바일에서 넘침 방지 (whitespace-nowrap 제거)
yooseohyeon a784866
fix: 활성 견적 조회 실패 시 "견적 요청 없음"으로 처리되는 문제 수정
yooseohyeon 41a5297
fix: 기사 상세 페이지에서 DesignateSuccessModal 컴포넌트 누락 수정
yooseohyeon f4b8146
fix: 지정 견적 요청 성공 모달에서 whitespace-nowrap 제거
yooseohyeon 2e513ed
fix: 내가 보낸 견적 요청 임시 페이지에 metadata 추가
yooseohyeon 018bd97
refactor: 견적 요청 API 함수 fetchInstance로 통일 (createEstimateRequest)
yooseohyeon bc1948d
fix: 지정 견적 성공 시 대기 중 견적 목록 캐시(PENDING_LIST_ROOT) 무효화
yooseohyeon f34b542
fix: 활성 견적 조회 실패 시 버튼 재클릭으로 refetch 하도록 수정
yooseohyeon 2d656ea
fix: 견적 요청 생성 성공 시 ACTIVE 캐시 타입 유지
yooseohyeon 8c72fd6
fix: 지정 견적 CTA 버튼에서 요청 가능 여부를 우선하고 요청이 불가능한 경우 UI 변경
yooseohyeon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import { Text } from "@/components/common/Text"; | ||
|
|
||
| /** NOTE: 내가 보낸 견적 요청 페이지. 추후 수정이 필요 */ | ||
| export default function EstimateRequestsPage() { | ||
| return ( | ||
| <div className="flex min-h-[60vh] w-full flex-col items-center justify-center gap-16"> | ||
| <Text as="h1" variant="2xl-semibold" className="text-text-primary"> | ||
| 내가 보낸 견적 요청 | ||
| </Text> | ||
| <Text variant="lg-regular" className="text-text-tertiary"> | ||
| 페이지 준비 중입니다. | ||
| </Text> | ||
| </div> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| "use client"; | ||
|
|
||
| import { useRouter } from "next/navigation"; | ||
|
|
||
| import Modal from "@/components/common/Modal/Modal"; | ||
| import { APP_ROUTES } from "@/lib/constants/appRoutes"; | ||
|
|
||
| const PANEL_CLASSNAME = [ | ||
| "items-stretch text-left", | ||
| "rounded-24 md:rounded-32", | ||
| "w-full max-w-[292px] gap-30 px-16 py-24", | ||
| "md:max-w-[608px] md:gap-40 md:px-24 md:pt-32 md:pb-40", | ||
| ].join(" "); | ||
|
|
||
| interface DesignateSuccessModalProps { | ||
| open: boolean; | ||
| onClose: () => void; | ||
| } | ||
|
|
||
| export default function DesignateSuccessModal({ open, onClose }: DesignateSuccessModalProps) { | ||
| const router = useRouter(); | ||
|
|
||
| const handleGoToEstimates = () => { | ||
| onClose(); | ||
| router.push(APP_ROUTES.ESTIMATES.REQUESTS); | ||
| }; | ||
|
|
||
| if (!open) { | ||
| return null; | ||
| } | ||
|
|
||
| return ( | ||
| <Modal onClose={onClose} className={PANEL_CLASSNAME}> | ||
| <div className="flex w-full items-center justify-between gap-12"> | ||
| <Modal.Title variant={{ base: "2lg-bold", md: "2xl-semibold" }}> | ||
| 지정 견적 요청 완료 | ||
| </Modal.Title> | ||
| <Modal.Close onClose={onClose} /> | ||
| </div> | ||
| <div className="flex w-full flex-col items-stretch gap-30 md:gap-40"> | ||
| <Modal.Desc variant="2lg-medium" className="whitespace-nowrap"> | ||
| 지정 견적 요청이 완료되었습니다. | ||
| </Modal.Desc> | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
| <Modal.Button fullWidth size="cta" className="md:hidden" onClick={handleGoToEstimates}> | ||
| 지정 견적서 보러가기 | ||
| </Modal.Button> | ||
| <Modal.Button | ||
| fullWidth | ||
| size="detail" | ||
| className="hidden md:inline-flex" | ||
| onClick={handleGoToEstimates} | ||
| > | ||
| 지정 견적서 보러가기 | ||
| </Modal.Button> | ||
| </div> | ||
| </Modal> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| "use client"; | ||
|
|
||
| import { useRouter } from "next/navigation"; | ||
|
|
||
| import Modal from "@/components/common/Modal/Modal"; | ||
| import { APP_ROUTES } from "@/lib/constants/appRoutes"; | ||
|
|
||
| const PANEL_CLASSNAME = [ | ||
| "items-stretch text-left", | ||
| "rounded-24 md:rounded-32", | ||
| "w-full max-w-[292px] gap-30 px-16 py-24", | ||
| "md:max-w-[608px] md:gap-40 md:px-24 md:pt-32 md:pb-40", | ||
| ].join(" "); | ||
|
|
||
| interface EstimateRequestRequiredModalProps { | ||
| open: boolean; | ||
| onClose: () => void; | ||
| } | ||
|
|
||
| /** | ||
| * 지정 견적 요청 시 진행 중인 일반 견적 요청이 없을 때 안내 | ||
| */ | ||
| export default function EstimateRequestRequiredModal({ | ||
| open, | ||
| onClose, | ||
| }: EstimateRequestRequiredModalProps) { | ||
| const router = useRouter(); | ||
|
|
||
| const handleGoToEstimateRequest = () => { | ||
| onClose(); | ||
| router.push(APP_ROUTES.ESTIMATE_REQUEST); | ||
| }; | ||
|
|
||
| if (!open) { | ||
| return null; | ||
| } | ||
|
|
||
| return ( | ||
| <Modal onClose={onClose} className={PANEL_CLASSNAME}> | ||
| <div className="flex w-full items-center justify-between gap-12"> | ||
| <Modal.Title variant={{ base: "2lg-bold", md: "2xl-semibold" }}> | ||
| 지정 견적 요청하기 | ||
| </Modal.Title> | ||
| <Modal.Close onClose={onClose} /> | ||
| </div> | ||
| <div className="flex w-full flex-col items-stretch gap-30 md:gap-40"> | ||
| <Modal.Desc variant="2lg-medium">일반 견적 요청을 먼저 진행해 주세요.</Modal.Desc> | ||
| <Modal.Button | ||
| fullWidth | ||
| size="cta" | ||
| className="md:hidden" | ||
| onClick={handleGoToEstimateRequest} | ||
| > | ||
| 일반 견적 요청 하기 | ||
| </Modal.Button> | ||
| <Modal.Button | ||
| fullWidth | ||
| size="detail" | ||
| className="hidden md:inline-flex" | ||
| onClick={handleGoToEstimateRequest} | ||
| > | ||
| 일반 견적 요청 하기 | ||
| </Modal.Button> | ||
| </div> | ||
| </Modal> | ||
| ); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.