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

+12 -1
View File
@@ -1,10 +1,13 @@
from datetime import date, datetime
from typing import Optional
import httpx
from services.external.data_go_kr import get_all_items
FESTIVAL_URL = "https://apis.data.go.kr/B551011/KorService2/searchFestival2"
# 공공누리 3유형: 출처 표시
IMAGE_CREDIT = "ⓒ한국관광공사"
async def fetch_festivals(client: httpx.AsyncClient, sido_code: str, since: date) -> list[dict]:
@@ -14,6 +17,13 @@ async def fetch_festivals(client: httpx.AsyncClient, sido_code: str, since: date
return [it for it in items if it.get("eventenddate", "") >= since.strftime("%Y%m%d")]
def _coord(v) -> Optional[float]:
try:
return round(float(v), 5) if v not in (None, "") else None
except ValueError:
return None
def parse_festivals(items: list[dict], sido_code: str) -> list[dict]:
rows = []
for it in items:
@@ -25,6 +35,7 @@ def parse_festivals(items: list[dict], sido_code: str) -> list[dict]:
rows.append({
"source_id": str(it["contentid"]), "sido_code": sido_code, "name": it.get("title", "")[:60],
"place_name": (it.get("addr1") or "")[:60], "start_date": start, "end_date": end, "is_confirmed": True,
"source_url": None,
"source_url": None, "image_url": (it.get("firstimage") or "").replace("http://", "https://", 1) or None,
"lat": _coord(it.get("mapy")), "lon": _coord(it.get("mapx")),
})
return rows