feat: AI Discovery AEO/GEO 채점 기준표 v1.0 + /discovery/:id 리포트 (뷰성형외과 44점)

- 채점 기준표: 6 카테고리 36 항목 100점, 항목별 근거등급/통제/채점방식/howToCheck
- 집계: 미검증 항목 분모 제외, llms.txt 항목 제외
- 뷰성형외과 실측 결과 + 핵심 발견 5 + 액션 7 + 하지 않을 것 5
- DiscoveryReportPage: INFINITH 디자인 토큰, 본문 +2pt, 판정 배지/우선순위 +4pt 볼드, keep-all
- SeverityBadge className prop 추가
- Badge.tsx 복원 (PricingPage import 누락으로 빌드 깨져 있던 것)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Fable 5 committed 2026-08-28 10:26:29 +09:00
1 parent 7251c6d153
commit ef4d8218e9
9 files changed
+1469 -2

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
/**
* Badge — 가격표 등에서 쓰는 강조 배지.
* PricingPage가 import하던 컴포넌트가 저장소에 누락되어 빌드가 깨져 있어 복원 (2026-08-28).
*/
type BadgeVariant = 'popular' | 'new' | 'recommended';
type BadgeSize = 'sm' | 'md';
const LABEL: Record<BadgeVariant, string> = {
popular: 'Most Popular',
new: 'New',
recommended: 'Recommended',
};
const SIZE: Record<BadgeSize, string> = {
sm: 'text-[10px] px-2.5 py-0.5',
md: 'text-xs px-3 py-1',
};
export default function Badge({
variant = 'popular',
size = 'md',
label,
className = '',
}: {
variant?: BadgeVariant;
size?: BadgeSize;
label?: string;
className?: string;
}) {
return (
<span
className={`inline-flex items-center rounded-full font-semibold tracking-wide text-white bg-gradient-to-r from-[#4F1DA1] to-[#021341] ${SIZE[size]} ${className}`}
>
{label ?? LABEL[variant]}
</span>
);
}
+4 -2
View File
@@ -3,6 +3,8 @@ type SeverityLevel = 'critical' | 'warning' | 'good' | 'excellent' | 'unknown';
interface SeverityBadgeProps {
severity: SeverityLevel;
label?: string;
/** 크기·굵기 오버라이드 (기본 text-xs font-medium) */
className?: string;
}
const config: Record<SeverityLevel, { className: string; defaultLabel: string }> = {
@@ -28,12 +30,12 @@ const config: Record<SeverityLevel, { className: string; defaultLabel: string }>
},
};
export function SeverityBadge({ severity, label }: SeverityBadgeProps) {
export function SeverityBadge({ severity, label, className: extra = '' }: SeverityBadgeProps) {
const { className, defaultLabel } = config[severity];
return (
<span
className={`inline-flex items-center rounded-full text-xs font-medium px-3 py-1 border ${className}`}
className={`inline-flex items-center rounded-full border ${extra || 'text-xs font-medium px-3 py-1'} ${className}`}
>
{label ?? defaultLabel}
</span>