[#58] Refactor/58/결제정보카드 AI판단근거섹션추가 - #59
Merged
Hidden character warning
The head ref may contain hidden characters: "Refactor/58/\uacb0\uc81c\uc815\ubcf4\uce74\ub4dc_AI\ud310\ub2e8\uadfc\uac70\uc139\uc158\ucd94\uac00"
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
❓이슈
📝 Description
ReceiptPayInfo컴포넌트에 AI 판단 근거 섹션을 추가하는 리팩토링입니다.기존에는
inappropriateReasons배열을ResultChip에 넘겨 짧은 레이블 칩으로만 표시했습니다.이번 작업에서는 각 사유 코드에 대응하는 구체적인 설명 문장을 노란 박스 형태로 노출하여,
관리자가 승인/반려 판단 시 AI 분석의 맥락을 즉시 파악할 수 있도록 개선했습니다.
사유 코드 → 설명 매핑
NIGHT_PAYMENTHOLIDAY_PAYMENTSUSPICIOUS_ENTERTAINMENTSPLIT_PAYMENT_SUSPICIOUS[]구현 방식
REASON_DESCRIPTIONS상수사유 코드를 키로,
title(짧은 레이블)과description(설명 문장) 쌍을 값으로 갖는 상수를 정의했습니다.AIJudgmentBasis컴포넌트reasons: string[]props를 받아REASON_DESCRIPTIONS에 존재하는 유효한 값만 필터링합니다.null을 반환해 박스 자체를 렌더링하지 않습니다.map()으로 순회하여 각각 제목 + 설명을 모두 표시합니다.레이아웃 배치
isLg): 기존 2열 그리드를flex-col gap-4로 감싸고, 그리드 하단에aiJudgmentBasis를 풀너비로 배치InfoItem바로 아래에aiJudgmentBasis삽입심야 결제

공휴일 결제

유흥업소 의심

분할결제 의심

복수 사유 (공휴일 결제 + 유흥업소 의심)

🌀 PR Type
어떤 변경 사항이 있나요?
✅ Checklist
PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.
Test Checklist