+ {/* ── 헤드라인: 상품명 · 대표가 · 단가 대비 칩 ── */}
+
+
{product.name}
+
+
{representative != null ? won(Number(representative)) : '수집 전'}
- {product.price != null && representative != null && (
-
- 상품 단가 {won(product.price)} 대비{' '}
-
- {`${Number(representative) - product.price > 0 ? '+' : Number(representative) - product.price < 0 ? '-' : ''}${won(Math.abs(Number(representative) - product.price))}`}
-
-
+ {diff != null && (
+
+ {diff <= 0 ? : }
+ 단가 대비 {diff > 0 ? '+' : diff < 0 ? '-' : ''}{won(Math.abs(diff))}
+
)}
+
+ 상품 단가 {product.price != null ? won(product.price) : '-'}
+ {latest?.crawl_end_time && <> · 마지막 수집 {timeLabel(latest.crawl_end_time)}>}
+
- {/* 출처 — 최신 성공 수집의 사이트/상품명/링크 */}
+ {/* ── 출처 — 최신 성공 수집의 사이트/상품명/링크 ── */}
{latest && (
-
-
- {websiteLabel(latest.website)}
-
- {latest.crawl_end_time ? timeLabel(latest.crawl_end_time) : ''} 수집
-
-
+
{websiteLabel(latest.website)}}
+ >
{latest.lp_name ? (
- {latest.lp_name}
+ {latest.lp_name}
) : (
- 출처 상세 미수집(이전 버전 수집분)
+ 출처 상세 미수집(이전 버전 수집분)
)}
{latest.lp_url && (
판매 페이지에서 확인
)}
-
+
)}
- {/* 가격 추이 — 성공 수집 2건부터 */}
- {chartData.length >= 2 && (
-
-
- 가격 추이 ({chartData.length}회 수집)
-
+ {/* ── 가격 추이 ── */}
+ 0 ? (
+ {successes.length}회 수집
+ ) : undefined
+ }
+ >
+ {chartData.length >= 2 ? (
-
+
-
- )}
+ ) : (
+
+
+
+ {successes.length === 1
+ ? '수집이 2회 이상 쌓이면 가격 추이 그래프가 표시됩니다.'
+ : '성공한 수집이 쌓이면 가격 추이 그래프가 표시됩니다.'}
+
+
+ )}
+
- {/* 수집 이력 */}
-
-
- 최근 수집 이력
-
+ {/* ── 수집 이력 ── */}
+
{isLoading ? (
-
+
- 이력을 불러오는 중...
+ 이력을 불러오는 중...
) : entries.length === 0 ? (
-
+
-
+
수집 이력이 없습니다 — 상품 목록에서 "최저가 업데이트하기"로 수집을 시작하세요.
) : (
-