feat(site): 오늘의 날씨 문구 로딩과 조건별 순환 추가

목업에만 있던 날씨 문구 계약을 제품 payload와 렌더러에 연결한다. 군산 전용 장소를 다른 사업장에 복사하지 않도록 공통 안내를 별도 JSON으로 관리한다.

날씨 변환 단위 테스트 3건, 렌더링 테스트 3건 및 TypeScript·ESLint 통과. 전체 발행 테스트는 깨끗한 renderer 재빌드 후 별도 확인.
This commit is contained in:
minaChoi committed 2026-09-15 16:23:53 +09:00
1 parent f2087aad5e
commit 820a2e9e35
10 files changed
+149 -8

No files matched your search

+2 -1
View File
@@ -34,6 +34,7 @@ from common.enums import (
from common.logger import LOG
from services.intro_summary import summarize_intro
from services.stay_guide import nol_stay_guide
from services.weather_notes import weather_notes
# 렌더러가 확인하는 스키마 버전. 모양이 바뀌면 여기와 site-payload.ts 를 같이 올린다.
SCHEMA_VERSION = 1
@@ -525,7 +526,7 @@ def _weather(row: dict):
return {
"temperature": temperature,
"condition": _weather_condition(body.get("weather_code")),
# note 는 LLM 이 쓰는 안내 문구다. 지금 그걸 만드는 경로가 없으므로 넣지 않는다(지어내지 않는다).
**weather_notes(),
"observedAt": observed_at,
}