feat(stock): 매매알람 카드에 reason(근거 문자열) 표시

BE가 /api/stock/trade-alerts에 reason 필드 추가(사람이 읽는 조건별 근거,
텔레그램 💡 라인과 동일). AlertCard가 reason을 primary 내러티브로,
formatDetail(detail)을 secondary 숫자 근거로 표시. reason은 문자열이라
안전(detail 객체는 formatDetail로 이미 크래시 방지).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UHXzpsZQxKG9hQmNRfZjRS
This commit is contained in:
2026-07-09 13:05:57 +09:00
parent d57f9b9b65
commit dec696b16e
3 changed files with 17 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ const AlertCard = ({ a }) => {
<span className="wl-cond">{conditionLabel(a.condition)}</span>
{a.price != null && <span className="wl-alert__price">{formatNumber(a.price)}</span>}
</div>
{a.reason && <div className="wl-alert__reason">{a.reason}</div>}
{detailText && <div className="wl-alert__detail">{detailText}</div>}
</div>
);