[feat] solution: 지역 이야기 생성 · 발행본 섹션 손질 · 마이그레이션 주석 축약

- 지역 이야기(가요·인물·연표·엽서·퀴즈) 생성 경로: story_service · grounding/story ·
  section_prompts. 지금까지 만들 자리가 없어 시안에만 손으로 넣은 3만 자였다
- 발행본 섹션: ItinerarySection · Carousel 레일 자동재생(use-rail-autoplay) ·
  Festival · LocalGuide · Weather · Gallery · Header/Footer
- 목업 payload 를 payloads-mockup/ 으로 분리 — 발행 대상과 섞이지 않게
- DB 새 구조 후속: site_payload · local_content_crud 조인 정리 · 테스트
- 마이그레이션 주석 축약: 9개 파일 합계 주석 비율 48% → 25%.
  실측과 밟은 함정만 남기고 논증은 커밋 메시지로 옮겼다

검증: site·frontend 빌드 통과

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 5 committed 2026-09-10 14:36:00 +09:00
1 parent 3910feddfb
commit 328d9e18ee
58 files changed
+5625 -412

No files matched your search

+2 -2
View File
@@ -23,7 +23,7 @@ async def _place_with_media(client, h, db_engine, n=3, kakao="v1"):
async with db_engine.begin() as c:
for i in range(n):
await c.execute(
text("INSERT INTO media (media_id, place_id, url, origin_url, source_type, status, sort_order) "
text("INSERT INTO place_photos (media_id, place_id, url, origin_url, source_type, status, sort_order) "
"VALUES (:m, :p, :u, :u, :s, :st, :o)"),
{"m": uuid.uuid4(), "p": uuid.UUID(pid), "u": f"https://cdn.test/{pid}/{i}.jpg",
"s": SourceType.CRAWL.value, "st": MediaStatus.PENDING_REVIEW.value, "o": i},
@@ -34,7 +34,7 @@ async def _place_with_media(client, h, db_engine, n=3, kakao="v1"):
async def _media_rows(db_engine, pid):
async with db_engine.begin() as c:
return (await c.execute(
text("SELECT origin_url, label, alt_text, vision_confidence, status FROM media "
text("SELECT origin_url, label, alt_text, vision_confidence, status FROM place_photos "
"WHERE place_id = :p ORDER BY sort_order"),
{"p": uuid.UUID(pid)},
)).all()