feat: 날씨 유형 테스트 — 질문 8개로 8유형, 결과별 주소·미리보기, 궁합·잘 맞는 각

- /type 에서 질문 8개에 답하면 날씨 유형 8개 중 하나가 나온다 (/type/{유형})
- 결과를 친구에게 보내면 그 결과의 주소가 가고, 미리보기(제목·설명·그림)가 유형마다 다르다
- 링크로 들어오면 그 결과가 그대로 보이고 '테스트 해 보기'로 이어진다
- 결과마다 다른 유형과의 궁합(찰떡·잘 맞아요·서로 달라서 재밌어요·삐걱삐걱)과
  오늘 잘 맞는 각 3개(풀 6개에서 날짜+유형 기준으로 고정)를 보여 준다
- 오늘 탭 아이콘 줄에 '날씨 유형' 추가, /type 첫 진입은 '날씨 불러오는 중' 덮개를 건너뜀
- GA4 이벤트 7개: type_landing, type_start, type_result, type_share, type_gak, type_match, type_to_today
- 프론트 테스트 추가 (frontend 에서 npm test)
- 유형 그림 8장과 미리보기 그림 9장은 임시 그림 (진짜 그림으로 교체 예정, TODO.md)
- 설계·계획 문서 추가, TODO.md 의 '4주 새 기능 동결' 행 삭제
This commit is contained in:
skkim committed 2026-11-24 08:33:10 +09:00
1 parent 3baa543313
commit 4fc61d6c02
34 files changed
+2221 -8

No files matched your search

+17
View File
@@ -55,6 +55,16 @@ export type Events<Sheet extends string = string> = {
game_start: { again: boolean; logged_in: boolean; wind_ms: number; theme: 'basic' | HolidayKey }
game_round: { round: number; score: number; logged_in: boolean }
game_over: { round: number; score: number; best: boolean; drops: number }
/** 바깥에서 날씨 유형 결과 주소(/type/유형)로 바로 들어옴 — 친구가 보낸 링크 */
type_landing: { type: string }
/** from_type: 어느 유형의 결과 화면에서 넘어왔는지 (없으면 'none') */
type_start: { from_type: string; again: boolean }
type_result: { type: string; from_type: string }
/** mine: 방금 테스트해서 나온 내 결과를 보내는지 */
type_share: { type: string; method: 'share_sheet' | 'copy' | 'toss'; mine: boolean }
type_gak: { type: string; index_code: string; score: number }
type_match: { type: string; to_type: string; level: 'best' | 'good' | 'fun' | 'bad' }
type_to_today: { type: string }
toss_intro_start: Record<string, never>
/** 토스판 '광고 보고 응원하기' 카드를 누름 */
toss_ad_click: Record<string, never>
@@ -116,6 +126,13 @@ export const GA_NAME: Record<keyof Events, string> = {
game_start: '게임_시작',
game_round: '게임_라운드',
game_over: '게임_끝',
type_landing: '유형_유입',
type_start: '유형_시작',
type_result: '유형_결과',
type_share: '유형_공유',
type_gak: '유형_각_누름',
type_match: '유형_궁합_누름',
type_to_today: '유형_오늘로',
toss_intro_start: '토스소개_시작',
toss_ad_click: '토스광고_누름',
toss_ad_impression: '토스광고_노출',