feat: 로딩 스켈레톤·행사 사진·전시·주말 예상 점수·노을 탭 재정리 등 화면 전반 개선

- 화면 전체 스켈레톤, 로딩·완료·실패 사이 레이아웃 고정, 값 없음은 '?'
- 행사 사진·출처 표시, 문화정보 API 전시 연결, 행사 30km 거리 기준
- 각 상세 점수 칸 오늘/내일/토/일, 단기예보 밖 주말은 중기예보 예상 점수
- 6각 차트 축 이름을 좋은 방향으로, 계산 근거 문구 정리
- 아이콘 오용·뜻 모를 표시·빈 데이터·포스트 본문 반복 수정
- 미세먼지 별도 포스트, 노을 명소 전국 155곳 거리 기준, 노을 탭 결론 중심 재구성
- 밤 다크 테마·별똥별, 댓글·좋아요 대기·실패 표시
- 주말 전국 랭킹·당일치기 카드, 계절 이야기 사진 수집
- 문서: 포스트 타입별 내용, 각 데이터 정리, TODO 진행 순서
This commit is contained in:
minaChoi committed 2026-10-06 16:36:11 +09:00
1 parent 296a09d6db
commit ddf05aeb5c
97 files changed
+5475 -720

No files matched your search

+17 -1
View File
@@ -52,7 +52,7 @@ async def test_today_fetches_stores_and_returns_8_slots(monkeypatch, clean_regio
assert body["result"]["success"] is True
assert [s["label"] for s in body["slots"]] == ["0시", "3시", "6시", "9시", "12시", "15시", "18시", "21시"]
assert all(s["temp_c"] == 18 for s in body["slots"])
assert body["slots"][0]["icon"] == "stars"
assert body["slots"][0]["icon"] == "moon"
assert body["slots"][6]["icon"] == "sunset" and body["slots"][6]["note"] == "노을"
assert len(calls) == 2
@@ -90,3 +90,19 @@ async def test_today_fetch_failure_without_data_is_external_error(monkeypatch, c
async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as client:
body = (await client.get("/v1/weather/today", params={"region": REGION})).json()
assert body["result"]["desc"] == "EXTERNAL_API_ERROR"
def test_slot_view_shows_sunset_only_when_clear():
from datetime import datetime
from types import SimpleNamespace
from common.enums import RainType, Sky
from common.utils.kma_time import KST
from services.weather_service import _slot_view
at = datetime(2026, 10, 2, 18, tzinfo=KST)
sun = SimpleNamespace(sunrise_at=at.replace(hour=6), sunset_at=at.replace(minute=10), dusk_end_at=at.replace(minute=40))
row = lambda sky: SimpleNamespace(rain_type=RainType.NONE.value, sky=sky.value, temp_c=18, rain_prob=0) # noqa: E731
assert _slot_view(at, row(Sky.CLEAR), sun)[0::2] == ("sunset", "노을")
assert _slot_view(at, row(Sky.CLOUDY), sun)[0::2] == ("cloud", "흐림")
assert _slot_view(at, row(Sky.PARTLY), sun)[0::2] == ("cloud", "구름 많음")