[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:
1 parent
3910feddfb
commit
328d9e18ee
58 files changed
+5625
-412
No files matched your search
@@ -54,9 +54,28 @@ const LOOK = {
|
||||
function templatesFor(
|
||||
industryId: IndustryType,
|
||||
accent: string,
|
||||
retro: {name: string; description: string},
|
||||
/**
|
||||
* 레트로 한 벌은 업종마다 이름·설명이 다르고, **끄는 섹션과 배리에이션도 다르다.**
|
||||
* ★ 공통으로 박으면 숙박에서 내린 결정(예약 안내를 안 쓴다)이 음식점의 '노포'까지 따라간다 —
|
||||
* 거긴 예약·포장 안내가 그 집의 핵심이다.
|
||||
*/
|
||||
retro: {
|
||||
name: string;
|
||||
description: string;
|
||||
disabledSectionTypes?: string[];
|
||||
defaultVariants?: Record<string, string>;
|
||||
/**
|
||||
* 이 업종의 **기본 템플릿**으로 세운다 — 목록 맨 앞에 온다.
|
||||
*
|
||||
* ★ 순서가 곧 기본값이다. 에디터는 저장된 templateId 가 없으면 업종의 **첫 템플릿**으로
|
||||
* 그린다(`stores/builder.ts`). 그래서 "기본을 옛 항구로" 는 배열 순서를 바꾸는 일이다.
|
||||
* ★ 백엔드 `site_payload._DEFAULT_THEME` 의 templateId 와 **같아야 한다.**
|
||||
* 어긋나면 에디터는 옛 항구로 그리는데 발행본은 다른 템플릿으로 나간다.
|
||||
*/
|
||||
isDefault?: boolean;
|
||||
},
|
||||
): TemplateItem[] {
|
||||
return [
|
||||
const items: TemplateItem[] = [
|
||||
{
|
||||
id: `${industryId}-simple`,
|
||||
industryId,
|
||||
@@ -123,8 +142,13 @@ function templatesFor(
|
||||
* 있는 것만 골라 그린다. 따로 붙이면 탭 밖에 한 번 더 선다.
|
||||
*/
|
||||
defaultSectionTypes: ['event', 'video', 'festival', 'itinerary', 'story'],
|
||||
...(retro.disabledSectionTypes ? {disabledSectionTypes: retro.disabledSectionTypes} : {}),
|
||||
...(retro.defaultVariants ? {defaultVariants: retro.defaultVariants} : {}),
|
||||
},
|
||||
];
|
||||
|
||||
// 기본 템플릿을 맨 앞으로. 나머지 순서는 그대로 둔다.
|
||||
return retro.isDefault ? [items[2], items[0], items[1]] : items;
|
||||
}
|
||||
|
||||
|
||||
@@ -161,6 +185,10 @@ export const INDUSTRY_CONFIGS: Record<IndustryType, IndustryData> = {
|
||||
templates: templatesFor('stay', '#2563eb', {
|
||||
name: '옛 항구',
|
||||
description: '갱지 바탕에 간판체. 도넛판·일력·승차권이 함께 들어옵니다. 오래된 항구 도시의 인상으로 묵는 곳을 소개합니다.',
|
||||
// 숙박의 기본 템플릿 (2026-09-10, 사장님 지시). 백엔드 `_DEFAULT_THEME` 도 stay-retro 다.
|
||||
isDefault: true,
|
||||
/** 시안의 사진 갤러리는 캐러셀이다. 색·서체만 맞고 모양이 기본이면 시안이 안 된다. */
|
||||
defaultVariants: {photos: 'photos.carousel'},
|
||||
}),
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user