Merge branch 'feature/stay-booking'

숙박 예약 구성(요금·인원·창구) · 네이버 예약 딥링크 · 날짜/시간 목업 · 로컬 발행 함정 셋.

충돌 4건 해결:
- seo/verify.ts STRUCTURAL: main 이 unitCode·numberOfRooms 를 이미 넣었다. main 쪽을 살리고
  "사람이 읽는 unitText 는 넣지 않는다" 만 주석으로 얹었다(같은 결론에 각자 도달했다)
- pages/HomePage.tsx: import 목록만 갈렸다 — StorySection(main) · StayBookingSection(feature)
  둘 다 필요하다
- backend/collect_service.py: 테넌트 제거로 _finish 인자가 company_id → owner_user_id 로
  바뀌었다. main 시그니처를 따르고 _store_booking_link 를 그 앞에 둔다.
  place.verified_by · _add_link 시그니처는 그대로라 예약 링크 경로는 손댈 것이 없었다
- docs/DEVLOG.md: 양쪽 새 항목을 날짜 내림차순으로 합쳤다

검증: site tsc·eslint·vitest 51 passed · frontend tsc·eslint 통과 ·
백엔드 이미지 재빌드 후 collect_service import + LinkChannel.NAVER_BOOKING=7 확인.
This commit is contained in:
HyeongBaeYang committed 2026-09-09 10:42:51 +09:00
commit 7bbeb068a8
33 files changed
+1756 -61

No files matched your search

+14 -2
View File
@@ -1,3 +1,4 @@
import {PlaceCategory} from '@o2o/shared';
import {
AboutSection,
AnswerBlock,
@@ -15,11 +16,12 @@ import {
LocationSection,
RulesSection,
SpaceSection,
StayBookingSection,
StorySection,
UnitsSection,
} from '@/sections';
import {useSite} from '@/lib/site-context';
import {isSectionEnabled} from '@/lib/derive';
import {hasSection, isSectionEnabled} from '@/lib/derive';
/**
* StorySection 이 탭으로 묶어 그리는 아이템.
@@ -46,6 +48,7 @@ const STORY_KINDS = ['songs', 'people', 'chronicle', 'literature', 'postcard', '
*/
export function HomePage() {
const payload = useSite();
const isLodging = payload.place.category === PlaceCategory.LODGING;
/**
* 섹션 id → 발행본 컴포넌트.
@@ -63,7 +66,9 @@ export function HomePage() {
menu: UnitsSection,
programs: UnitsSection,
rules: RulesSection,
booking: BookingSection,
// ★ 숙박은 예약 섹션이 다른 컴포넌트다. 같은 이름의 섹션이 업종에 따라 다른 것을
// 그리는 자리는 여기가 유일하다 — 이유는 StayBookingSection 머리주석.
booking: isLodging ? StayBookingSection : BookingSection,
space: SpaceSection,
inquiry: InquirySection,
exhibition: ExhibitionSection,
@@ -102,6 +107,13 @@ export function HomePage() {
{/* 섹션 설정에 없더라도 오시는 길은 항상 나간다 — 위치 질의의 근거다. */}
{!isSectionEnabled(payload, 'map') && <LocationSection />}
{/* ★ 숙박에서 예약 안내는 **항목이 없을 때만** 기본으로 낸다.
"사장님이 껐다" 와 "payload 에 항목이 아예 없다" 는 다른 상태다(`hasSection`) —
옛 payload·손으로 만든 fixture 에는 booking 항목이 없는데, 숙박에서 예약 창구가
없는 페이지는 이 업종 질의의 대부분("어떻게 예약해요")에 답을 못 한다.
끈 것을 되살리지는 않는다 — 그건 사장님 결정이다. */}
{isLodging && !hasSection(payload, 'booking') && <StayBookingSection />}
</main>
);
}