diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..9080d91 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,10 @@ +# 날씨각 저장소 규칙 + +## GA4 이벤트 (모든 기능) + +- 새 기능(페이지·게임·창·버튼 흐름)을 만들거나 바꾸면 같은 작업 안에서 GA4 이벤트를 넣는다. 따로 시키지 않아도 넣는다. + 1. `frontend/src/lib/analytics.ts` `Events` 타입에 이벤트와 값 추가 + 2. 화면에서 `track(이벤트, 값)` 호출 — 시작·핵심 행동·끝이 잡히게 + 3. `docs/이벤트_추적.md` 이벤트 목록 표에 행 추가 +- 완료 보고의 검증 결과에 넣은 이벤트 이름을 적는다. GA 없이 "완료"라고 하지 않는다. +- 값에 개인정보(아이디·닉네임·생년월일 등)를 넣지 않는다. diff --git a/TODO.md b/TODO.md index b0061db..619fd9b 100644 --- a/TODO.md +++ b/TODO.md @@ -261,6 +261,7 @@ | [ ] | 토스 로그인 문구 검토 — '토스로 로그인', '토스로 로그인했어요', '토스 로그인을 마치지 못했어요. 한 번 더 눌러 주세요.', 기본 닉네임 '토스1234'(userKey 끝 4자리), 로그인 창 '날씨각 로그인'·'로그인하면 동네 이야기를 쓰고 내 각을 저장할 수 있어요', 인트로 '오늘 날씨에 맞는 일을 점수로 알려 줘요'·'세차·빨래·러닝 각 점수'·'오늘 노을이 예쁜 시간'·'이번 주말 가까운 행사'·'시작하기'(10/24) | 토스 로그인 구현(10/14) | `frontend/src/b/Sheets.tsx`, `backend/services/auth_service.py` | | [ ] | 토스판 첫 실행에 인트로와 위치 권한 창이 같이 뜸 — 위치 권한은 앱이 뜨자마자 물어서 인트로 위에 겹칠 수 있음. '시작하기' 뒤로 미룰지 토스 앱에서 확인 | 인트로 추가 (10/24) | `frontend/src/b/region.tsx`, `frontend/src/b/tossIntro.tsx` | | [ ] | 메뉴의 '로그인하면 좋아요·댓글을 쓸 수 있어요' — 좋아요·댓글은 로그인 없이 됨(10/21 결정)이라 문구가 틀림 | 인트로 추가 중 발견 (10/24) | `frontend/src/b/Sheets.tsx:1117` | +| [ ] | 토스 웹뷰에서 유튜브 플레이어가 보내는 재생 상태(postMessage)가 페이지에 오지 않음 — 원인 미확인(origin 불일치? 토스 브리지?). 그래서 토스판 쇼츠는 숨기기·명령 없이 유튜브 기본 플레이어 사용. 원인 찾으면 웹과 같은 UI로 합칠 수 있음 | 토스판 쇼츠 재생 안 됨 (10/26) | `frontend/src/b/Shorts.tsx` | | [ ] | 댓글 신고·차단 — 앱인토스 필수 아님(신고·차단 필수는 채팅·만남·중고거래만, 서비스 오픈 정책·서비스별 주의사항). 만들지 않기로 함(10/14). 검수에서 요청이 오면 만든다 | 토스 로그인 구현(10/14) | | | [x] | 각 늘리기 53→68 — 리서치로 고른 8개(한강·놀이공원·데이트·곱슬머리·보일러·선크림·모기·테니스) + 감성 7개(효도·감사·선물·파티·게임·셀카·센치), 아이콘 15개(Codex) | 사용자 요청 (10/20, 리서치 https://claude.ai/artifact/3ZQbtGKRLVZViRRC5voBzY) | `backend/seed/index_definition.json`, `frontend/public/icons/`, `frontend/src/b/lib.ts` | | [ ] | **[결정 필요]** 한강각·놀이공원각이 강·놀이공원 없는 동네에도 나옴 — 각을 지역별로 가려 보여 주는 기능이 없음(한강밤바람각도 같음). 서울·한강 인접 구만 보일지 | 새 각 추가 중 발견 (10/20) | `backend/seed/index_definition.json`, `backend/services/index_service.py` | diff --git a/docs/search_log/네이버_미색인_2026-10-28.txt b/docs/search_log/네이버_미색인_2026-10-28.txt new file mode 100644 index 0000000..36e066c --- /dev/null +++ b/docs/search_log/네이버_미색인_2026-10-28.txt @@ -0,0 +1,536 @@ +# 네이버 색인 안 된 것으로 보는 주소 (2026-10-28). 기준: docs/검색노출_기록.md 의 네이버 색인 확인(홈·성남·수원·부평·연수·강남·구로·마포·성동·송파·종로·중구·용산·/sky·/week·/season)에서 빠진 것. 구글은 10/21·10/23 서치 콘솔 URL 검사에서 확인한 구 39개·내일 13곳이 모두 등록돼 있어 제외. + +# 1) 구 주소 39개 — 39개 +https://weather.o2o.kr/today/gyeonggi/suwon/jangan +https://weather.o2o.kr/today/gyeonggi/suwon/gwonseon +https://weather.o2o.kr/today/gyeonggi/suwon/paldal +https://weather.o2o.kr/today/gyeonggi/suwon/yeongtong +https://weather.o2o.kr/today/gyeonggi/seongnam/sujeong +https://weather.o2o.kr/today/gyeonggi/seongnam/jungwon +https://weather.o2o.kr/today/gyeonggi/seongnam/bundang +https://weather.o2o.kr/today/gyeonggi/anyang/manan +https://weather.o2o.kr/today/gyeonggi/anyang/dongan +https://weather.o2o.kr/today/gyeonggi/bucheon/wonmi +https://weather.o2o.kr/today/gyeonggi/bucheon/sosa +https://weather.o2o.kr/today/gyeonggi/bucheon/ojeong +https://weather.o2o.kr/today/gyeonggi/ansan/sangnok +https://weather.o2o.kr/today/gyeonggi/ansan/danwon +https://weather.o2o.kr/today/gyeonggi/goyang/deogyang +https://weather.o2o.kr/today/gyeonggi/goyang/ilsandong +https://weather.o2o.kr/today/gyeonggi/goyang/ilsanseo +https://weather.o2o.kr/today/gyeonggi/yongin/cheoin +https://weather.o2o.kr/today/gyeonggi/yongin/giheung +https://weather.o2o.kr/today/gyeonggi/yongin/suji +https://weather.o2o.kr/today/gyeonggi/hwaseong/manse +https://weather.o2o.kr/today/gyeonggi/hwaseong/hyohaeng +https://weather.o2o.kr/today/gyeonggi/hwaseong/byeongjeom +https://weather.o2o.kr/today/gyeonggi/hwaseong/dongtan +https://weather.o2o.kr/today/chungbuk/cheongju/sangdang +https://weather.o2o.kr/today/chungbuk/cheongju/seowon +https://weather.o2o.kr/today/chungbuk/cheongju/heungdeok +https://weather.o2o.kr/today/chungbuk/cheongju/cheongwon +https://weather.o2o.kr/today/chungnam/cheonan/dongnam +https://weather.o2o.kr/today/chungnam/cheonan/seobuk +https://weather.o2o.kr/today/gyeongbuk/pohang/nam +https://weather.o2o.kr/today/gyeongbuk/pohang/buk +https://weather.o2o.kr/today/gyeongnam/changwon/uichang +https://weather.o2o.kr/today/gyeongnam/changwon/seongsan +https://weather.o2o.kr/today/gyeongnam/changwon/masanhappo +https://weather.o2o.kr/today/gyeongnam/changwon/masanhoewon +https://weather.o2o.kr/today/gyeongnam/changwon/jinhae +https://weather.o2o.kr/today/jeonbuk/jeonju/wansan +https://weather.o2o.kr/today/jeonbuk/jeonju/deokjin + +# 2) 시·군·구 지역 페이지 (네이버 미색인) — 218개 +https://weather.o2o.kr/today/seoul/gwangjin +https://weather.o2o.kr/today/seoul/dongdaemun +https://weather.o2o.kr/today/seoul/jungnang +https://weather.o2o.kr/today/seoul/seongbuk +https://weather.o2o.kr/today/seoul/gangbuk +https://weather.o2o.kr/today/seoul/dobong +https://weather.o2o.kr/today/seoul/nowon +https://weather.o2o.kr/today/seoul/eunpyeong +https://weather.o2o.kr/today/seoul/seodaemun +https://weather.o2o.kr/today/seoul/yangcheon +https://weather.o2o.kr/today/seoul/gangseo +https://weather.o2o.kr/today/seoul/geumcheon +https://weather.o2o.kr/today/seoul/yeongdeungpo +https://weather.o2o.kr/today/seoul/dongjak +https://weather.o2o.kr/today/seoul/gwanak +https://weather.o2o.kr/today/seoul/seocho +https://weather.o2o.kr/today/seoul/gangdong +https://weather.o2o.kr/today/jeonnam/mokpo +https://weather.o2o.kr/today/jeonnam/yeosu +https://weather.o2o.kr/today/jeonnam/suncheon +https://weather.o2o.kr/today/jeonnam/naju +https://weather.o2o.kr/today/jeonnam/gwangyang +https://weather.o2o.kr/today/gwangju/dong +https://weather.o2o.kr/today/gwangju/seo +https://weather.o2o.kr/today/gwangju/nam +https://weather.o2o.kr/today/gwangju/buk +https://weather.o2o.kr/today/gwangju/gwangsan +https://weather.o2o.kr/today/jeonnam/damyang +https://weather.o2o.kr/today/jeonnam/gokseong +https://weather.o2o.kr/today/jeonnam/gurye +https://weather.o2o.kr/today/jeonnam/goheung +https://weather.o2o.kr/today/jeonnam/boseong +https://weather.o2o.kr/today/jeonnam/hwasun +https://weather.o2o.kr/today/jeonnam/jangheung +https://weather.o2o.kr/today/jeonnam/gangjin +https://weather.o2o.kr/today/jeonnam/haenam +https://weather.o2o.kr/today/jeonnam/yeongam +https://weather.o2o.kr/today/jeonnam/muan +https://weather.o2o.kr/today/jeonnam/hampyeong +https://weather.o2o.kr/today/jeonnam/yeonggwang +https://weather.o2o.kr/today/jeonnam/jangseong +https://weather.o2o.kr/today/jeonnam/wando +https://weather.o2o.kr/today/jeonnam/jindo +https://weather.o2o.kr/today/jeonnam/sinan +https://weather.o2o.kr/today/busan/jung +https://weather.o2o.kr/today/busan/seo +https://weather.o2o.kr/today/busan/dong +https://weather.o2o.kr/today/busan/yeongdo +https://weather.o2o.kr/today/busan/busanjin +https://weather.o2o.kr/today/busan/dongnae +https://weather.o2o.kr/today/busan/nam +https://weather.o2o.kr/today/busan/buk +https://weather.o2o.kr/today/busan/haeundae +https://weather.o2o.kr/today/busan/saha +https://weather.o2o.kr/today/busan/geumjeong +https://weather.o2o.kr/today/busan/gangseo +https://weather.o2o.kr/today/busan/yeonje +https://weather.o2o.kr/today/busan/suyeong +https://weather.o2o.kr/today/busan/sasang +https://weather.o2o.kr/today/busan/gijang +https://weather.o2o.kr/today/daegu/jung +https://weather.o2o.kr/today/daegu/dong +https://weather.o2o.kr/today/daegu/seo +https://weather.o2o.kr/today/daegu/nam +https://weather.o2o.kr/today/daegu/buk +https://weather.o2o.kr/today/daegu/suseong +https://weather.o2o.kr/today/daegu/dalseo +https://weather.o2o.kr/today/daegu/dalseong +https://weather.o2o.kr/today/daegu/gunwi +https://weather.o2o.kr/today/incheon/jemulpo +https://weather.o2o.kr/today/incheon/yeongjong +https://weather.o2o.kr/today/incheon/michuhol +https://weather.o2o.kr/today/incheon/namdong +https://weather.o2o.kr/today/incheon/gyeyang +https://weather.o2o.kr/today/incheon/seohae +https://weather.o2o.kr/today/incheon/geomdan +https://weather.o2o.kr/today/incheon/ganghwa +https://weather.o2o.kr/today/incheon/ongjin +https://weather.o2o.kr/today/daejeon/dong +https://weather.o2o.kr/today/daejeon/jung +https://weather.o2o.kr/today/daejeon/seo +https://weather.o2o.kr/today/daejeon/yuseong +https://weather.o2o.kr/today/daejeon/daedeok +https://weather.o2o.kr/today/ulsan/jung +https://weather.o2o.kr/today/ulsan/nam +https://weather.o2o.kr/today/ulsan/dong +https://weather.o2o.kr/today/ulsan/buk +https://weather.o2o.kr/today/ulsan/ulju +https://weather.o2o.kr/today/sejong/sejong +https://weather.o2o.kr/today/gyeonggi/uijeongbu +https://weather.o2o.kr/today/gyeonggi/anyang +https://weather.o2o.kr/today/gyeonggi/bucheon +https://weather.o2o.kr/today/gyeonggi/gwangmyeong +https://weather.o2o.kr/today/gyeonggi/pyeongtaek +https://weather.o2o.kr/today/gyeonggi/dongducheon +https://weather.o2o.kr/today/gyeonggi/ansan +https://weather.o2o.kr/today/gyeonggi/goyang +https://weather.o2o.kr/today/gyeonggi/gwacheon +https://weather.o2o.kr/today/gyeonggi/guri +https://weather.o2o.kr/today/gyeonggi/namyangju +https://weather.o2o.kr/today/gyeonggi/osan +https://weather.o2o.kr/today/gyeonggi/siheung +https://weather.o2o.kr/today/gyeonggi/gunpo +https://weather.o2o.kr/today/gyeonggi/uiwang +https://weather.o2o.kr/today/gyeonggi/hanam +https://weather.o2o.kr/today/gyeonggi/yongin +https://weather.o2o.kr/today/gyeonggi/paju +https://weather.o2o.kr/today/gyeonggi/icheon +https://weather.o2o.kr/today/gyeonggi/anseong +https://weather.o2o.kr/today/gyeonggi/gimpo +https://weather.o2o.kr/today/gyeonggi/hwaseong +https://weather.o2o.kr/today/gyeonggi/gwangju +https://weather.o2o.kr/today/gyeonggi/yangju +https://weather.o2o.kr/today/gyeonggi/pocheon +https://weather.o2o.kr/today/gyeonggi/yeoju +https://weather.o2o.kr/today/gyeonggi/yeoncheon +https://weather.o2o.kr/today/gyeonggi/gapyeong +https://weather.o2o.kr/today/gyeonggi/yangpyeong +https://weather.o2o.kr/today/chungbuk/cheongju +https://weather.o2o.kr/today/chungbuk/chungju +https://weather.o2o.kr/today/chungbuk/jecheon +https://weather.o2o.kr/today/chungbuk/boeun +https://weather.o2o.kr/today/chungbuk/okcheon +https://weather.o2o.kr/today/chungbuk/yeongdong +https://weather.o2o.kr/today/chungbuk/jeungpyeong +https://weather.o2o.kr/today/chungbuk/jincheon +https://weather.o2o.kr/today/chungbuk/goesan +https://weather.o2o.kr/today/chungbuk/eumseong +https://weather.o2o.kr/today/chungbuk/danyang +https://weather.o2o.kr/today/chungnam/cheonan +https://weather.o2o.kr/today/chungnam/gongju +https://weather.o2o.kr/today/chungnam/boryeong +https://weather.o2o.kr/today/chungnam/asan +https://weather.o2o.kr/today/chungnam/seosan +https://weather.o2o.kr/today/chungnam/nonsan +https://weather.o2o.kr/today/chungnam/gyeryong +https://weather.o2o.kr/today/chungnam/dangjin +https://weather.o2o.kr/today/chungnam/geumsan +https://weather.o2o.kr/today/chungnam/buyeo +https://weather.o2o.kr/today/chungnam/seocheon +https://weather.o2o.kr/today/chungnam/cheongyang +https://weather.o2o.kr/today/chungnam/hongseong +https://weather.o2o.kr/today/chungnam/yesan +https://weather.o2o.kr/today/chungnam/taean +https://weather.o2o.kr/today/gyeongbuk/pohang +https://weather.o2o.kr/today/gyeongbuk/gyeongju +https://weather.o2o.kr/today/gyeongbuk/gimcheon +https://weather.o2o.kr/today/gyeongbuk/andong +https://weather.o2o.kr/today/gyeongbuk/gumi +https://weather.o2o.kr/today/gyeongbuk/yeongju +https://weather.o2o.kr/today/gyeongbuk/yeongcheon +https://weather.o2o.kr/today/gyeongbuk/sangju +https://weather.o2o.kr/today/gyeongbuk/mungyeong +https://weather.o2o.kr/today/gyeongbuk/gyeongsan +https://weather.o2o.kr/today/gyeongbuk/uiseong +https://weather.o2o.kr/today/gyeongbuk/cheongsong +https://weather.o2o.kr/today/gyeongbuk/yeongyang +https://weather.o2o.kr/today/gyeongbuk/yeongdeok +https://weather.o2o.kr/today/gyeongbuk/cheongdo +https://weather.o2o.kr/today/gyeongbuk/goryeong +https://weather.o2o.kr/today/gyeongbuk/seongju +https://weather.o2o.kr/today/gyeongbuk/chilgok +https://weather.o2o.kr/today/gyeongbuk/yecheon +https://weather.o2o.kr/today/gyeongbuk/bonghwa +https://weather.o2o.kr/today/gyeongbuk/uljin +https://weather.o2o.kr/today/gyeongbuk/ulleung +https://weather.o2o.kr/today/gyeongnam/changwon +https://weather.o2o.kr/today/gyeongnam/jinju +https://weather.o2o.kr/today/gyeongnam/tongyeong +https://weather.o2o.kr/today/gyeongnam/sacheon +https://weather.o2o.kr/today/gyeongnam/gimhae +https://weather.o2o.kr/today/gyeongnam/miryang +https://weather.o2o.kr/today/gyeongnam/geoje +https://weather.o2o.kr/today/gyeongnam/yangsan +https://weather.o2o.kr/today/gyeongnam/uiryeong +https://weather.o2o.kr/today/gyeongnam/haman +https://weather.o2o.kr/today/gyeongnam/changnyeong +https://weather.o2o.kr/today/gyeongnam/goseong +https://weather.o2o.kr/today/gyeongnam/namhae +https://weather.o2o.kr/today/gyeongnam/hadong +https://weather.o2o.kr/today/gyeongnam/sancheong +https://weather.o2o.kr/today/gyeongnam/hamyang +https://weather.o2o.kr/today/gyeongnam/geochang +https://weather.o2o.kr/today/gyeongnam/hapcheon +https://weather.o2o.kr/today/jeju/jeju +https://weather.o2o.kr/today/jeju/seogwipo +https://weather.o2o.kr/today/gangwon/chuncheon +https://weather.o2o.kr/today/gangwon/wonju +https://weather.o2o.kr/today/gangwon/gangneung +https://weather.o2o.kr/today/gangwon/donghae +https://weather.o2o.kr/today/gangwon/taebaek +https://weather.o2o.kr/today/gangwon/sokcho +https://weather.o2o.kr/today/gangwon/samcheok +https://weather.o2o.kr/today/gangwon/hongcheon +https://weather.o2o.kr/today/gangwon/hoengseong +https://weather.o2o.kr/today/gangwon/yeongwol +https://weather.o2o.kr/today/gangwon/pyeongchang +https://weather.o2o.kr/today/gangwon/jeongseon +https://weather.o2o.kr/today/gangwon/cheorwon +https://weather.o2o.kr/today/gangwon/hwacheon +https://weather.o2o.kr/today/gangwon/yanggu +https://weather.o2o.kr/today/gangwon/inje +https://weather.o2o.kr/today/gangwon/goseong +https://weather.o2o.kr/today/gangwon/yangyang +https://weather.o2o.kr/today/jeonbuk/jeonju +https://weather.o2o.kr/today/jeonbuk/gunsan +https://weather.o2o.kr/today/jeonbuk/iksan +https://weather.o2o.kr/today/jeonbuk/jeongeup +https://weather.o2o.kr/today/jeonbuk/namwon +https://weather.o2o.kr/today/jeonbuk/gimje +https://weather.o2o.kr/today/jeonbuk/wanju +https://weather.o2o.kr/today/jeonbuk/jinan +https://weather.o2o.kr/today/jeonbuk/muju +https://weather.o2o.kr/today/jeonbuk/jangsu +https://weather.o2o.kr/today/jeonbuk/imsil +https://weather.o2o.kr/today/jeonbuk/sunchang +https://weather.o2o.kr/today/jeonbuk/gochang +https://weather.o2o.kr/today/jeonbuk/buan + +# 3) 기타 페이지 — 1개 +https://weather.o2o.kr/gak + +# 4) 내일 날씨 페이지 (10/23 배포) — 269개 +https://weather.o2o.kr/tomorrow/seoul/jongno +https://weather.o2o.kr/tomorrow/seoul/jung +https://weather.o2o.kr/tomorrow/seoul/yongsan +https://weather.o2o.kr/tomorrow/seoul/seongdong +https://weather.o2o.kr/tomorrow/seoul/gwangjin +https://weather.o2o.kr/tomorrow/seoul/dongdaemun +https://weather.o2o.kr/tomorrow/seoul/jungnang +https://weather.o2o.kr/tomorrow/seoul/seongbuk +https://weather.o2o.kr/tomorrow/seoul/gangbuk +https://weather.o2o.kr/tomorrow/seoul/dobong +https://weather.o2o.kr/tomorrow/seoul/nowon +https://weather.o2o.kr/tomorrow/seoul/eunpyeong +https://weather.o2o.kr/tomorrow/seoul/seodaemun +https://weather.o2o.kr/tomorrow/seoul/mapo +https://weather.o2o.kr/tomorrow/seoul/yangcheon +https://weather.o2o.kr/tomorrow/seoul/gangseo +https://weather.o2o.kr/tomorrow/seoul/guro +https://weather.o2o.kr/tomorrow/seoul/geumcheon +https://weather.o2o.kr/tomorrow/seoul/yeongdeungpo +https://weather.o2o.kr/tomorrow/seoul/dongjak +https://weather.o2o.kr/tomorrow/seoul/gwanak +https://weather.o2o.kr/tomorrow/seoul/seocho +https://weather.o2o.kr/tomorrow/seoul/gangnam +https://weather.o2o.kr/tomorrow/seoul/songpa +https://weather.o2o.kr/tomorrow/seoul/gangdong +https://weather.o2o.kr/tomorrow/jeonnam/mokpo +https://weather.o2o.kr/tomorrow/jeonnam/yeosu +https://weather.o2o.kr/tomorrow/jeonnam/suncheon +https://weather.o2o.kr/tomorrow/jeonnam/naju +https://weather.o2o.kr/tomorrow/jeonnam/gwangyang +https://weather.o2o.kr/tomorrow/gwangju/dong +https://weather.o2o.kr/tomorrow/gwangju/seo +https://weather.o2o.kr/tomorrow/gwangju/nam +https://weather.o2o.kr/tomorrow/gwangju/buk +https://weather.o2o.kr/tomorrow/gwangju/gwangsan +https://weather.o2o.kr/tomorrow/jeonnam/damyang +https://weather.o2o.kr/tomorrow/jeonnam/gokseong +https://weather.o2o.kr/tomorrow/jeonnam/gurye +https://weather.o2o.kr/tomorrow/jeonnam/goheung +https://weather.o2o.kr/tomorrow/jeonnam/boseong +https://weather.o2o.kr/tomorrow/jeonnam/hwasun +https://weather.o2o.kr/tomorrow/jeonnam/jangheung +https://weather.o2o.kr/tomorrow/jeonnam/gangjin +https://weather.o2o.kr/tomorrow/jeonnam/haenam +https://weather.o2o.kr/tomorrow/jeonnam/yeongam +https://weather.o2o.kr/tomorrow/jeonnam/muan +https://weather.o2o.kr/tomorrow/jeonnam/hampyeong +https://weather.o2o.kr/tomorrow/jeonnam/yeonggwang +https://weather.o2o.kr/tomorrow/jeonnam/jangseong +https://weather.o2o.kr/tomorrow/jeonnam/wando +https://weather.o2o.kr/tomorrow/jeonnam/jindo +https://weather.o2o.kr/tomorrow/jeonnam/sinan +https://weather.o2o.kr/tomorrow/busan/jung +https://weather.o2o.kr/tomorrow/busan/seo +https://weather.o2o.kr/tomorrow/busan/dong +https://weather.o2o.kr/tomorrow/busan/yeongdo +https://weather.o2o.kr/tomorrow/busan/busanjin +https://weather.o2o.kr/tomorrow/busan/dongnae +https://weather.o2o.kr/tomorrow/busan/nam +https://weather.o2o.kr/tomorrow/busan/buk +https://weather.o2o.kr/tomorrow/busan/haeundae +https://weather.o2o.kr/tomorrow/busan/saha +https://weather.o2o.kr/tomorrow/busan/geumjeong +https://weather.o2o.kr/tomorrow/busan/gangseo +https://weather.o2o.kr/tomorrow/busan/yeonje +https://weather.o2o.kr/tomorrow/busan/suyeong +https://weather.o2o.kr/tomorrow/busan/sasang +https://weather.o2o.kr/tomorrow/busan/gijang +https://weather.o2o.kr/tomorrow/daegu/jung +https://weather.o2o.kr/tomorrow/daegu/dong +https://weather.o2o.kr/tomorrow/daegu/seo +https://weather.o2o.kr/tomorrow/daegu/nam +https://weather.o2o.kr/tomorrow/daegu/buk +https://weather.o2o.kr/tomorrow/daegu/suseong +https://weather.o2o.kr/tomorrow/daegu/dalseo +https://weather.o2o.kr/tomorrow/daegu/dalseong +https://weather.o2o.kr/tomorrow/daegu/gunwi +https://weather.o2o.kr/tomorrow/incheon/jemulpo +https://weather.o2o.kr/tomorrow/incheon/yeongjong +https://weather.o2o.kr/tomorrow/incheon/michuhol +https://weather.o2o.kr/tomorrow/incheon/yeonsu +https://weather.o2o.kr/tomorrow/incheon/namdong +https://weather.o2o.kr/tomorrow/incheon/bupyeong +https://weather.o2o.kr/tomorrow/incheon/gyeyang +https://weather.o2o.kr/tomorrow/incheon/seohae +https://weather.o2o.kr/tomorrow/incheon/geomdan +https://weather.o2o.kr/tomorrow/incheon/ganghwa +https://weather.o2o.kr/tomorrow/incheon/ongjin +https://weather.o2o.kr/tomorrow/daejeon/dong +https://weather.o2o.kr/tomorrow/daejeon/jung +https://weather.o2o.kr/tomorrow/daejeon/seo +https://weather.o2o.kr/tomorrow/daejeon/yuseong +https://weather.o2o.kr/tomorrow/daejeon/daedeok +https://weather.o2o.kr/tomorrow/ulsan/jung +https://weather.o2o.kr/tomorrow/ulsan/nam +https://weather.o2o.kr/tomorrow/ulsan/dong +https://weather.o2o.kr/tomorrow/ulsan/buk +https://weather.o2o.kr/tomorrow/ulsan/ulju +https://weather.o2o.kr/tomorrow/sejong/sejong +https://weather.o2o.kr/tomorrow/gyeonggi/suwon +https://weather.o2o.kr/tomorrow/gyeonggi/suwon/jangan +https://weather.o2o.kr/tomorrow/gyeonggi/suwon/gwonseon +https://weather.o2o.kr/tomorrow/gyeonggi/suwon/paldal +https://weather.o2o.kr/tomorrow/gyeonggi/suwon/yeongtong +https://weather.o2o.kr/tomorrow/gyeonggi/seongnam +https://weather.o2o.kr/tomorrow/gyeonggi/seongnam/sujeong +https://weather.o2o.kr/tomorrow/gyeonggi/seongnam/jungwon +https://weather.o2o.kr/tomorrow/gyeonggi/seongnam/bundang +https://weather.o2o.kr/tomorrow/gyeonggi/uijeongbu +https://weather.o2o.kr/tomorrow/gyeonggi/anyang +https://weather.o2o.kr/tomorrow/gyeonggi/anyang/manan +https://weather.o2o.kr/tomorrow/gyeonggi/anyang/dongan +https://weather.o2o.kr/tomorrow/gyeonggi/bucheon +https://weather.o2o.kr/tomorrow/gyeonggi/bucheon/wonmi +https://weather.o2o.kr/tomorrow/gyeonggi/bucheon/sosa +https://weather.o2o.kr/tomorrow/gyeonggi/bucheon/ojeong +https://weather.o2o.kr/tomorrow/gyeonggi/gwangmyeong +https://weather.o2o.kr/tomorrow/gyeonggi/pyeongtaek +https://weather.o2o.kr/tomorrow/gyeonggi/dongducheon +https://weather.o2o.kr/tomorrow/gyeonggi/ansan +https://weather.o2o.kr/tomorrow/gyeonggi/ansan/sangnok +https://weather.o2o.kr/tomorrow/gyeonggi/ansan/danwon +https://weather.o2o.kr/tomorrow/gyeonggi/goyang +https://weather.o2o.kr/tomorrow/gyeonggi/goyang/deogyang +https://weather.o2o.kr/tomorrow/gyeonggi/goyang/ilsandong +https://weather.o2o.kr/tomorrow/gyeonggi/goyang/ilsanseo +https://weather.o2o.kr/tomorrow/gyeonggi/gwacheon +https://weather.o2o.kr/tomorrow/gyeonggi/guri +https://weather.o2o.kr/tomorrow/gyeonggi/namyangju +https://weather.o2o.kr/tomorrow/gyeonggi/osan +https://weather.o2o.kr/tomorrow/gyeonggi/siheung +https://weather.o2o.kr/tomorrow/gyeonggi/gunpo +https://weather.o2o.kr/tomorrow/gyeonggi/uiwang +https://weather.o2o.kr/tomorrow/gyeonggi/hanam +https://weather.o2o.kr/tomorrow/gyeonggi/yongin +https://weather.o2o.kr/tomorrow/gyeonggi/yongin/cheoin +https://weather.o2o.kr/tomorrow/gyeonggi/yongin/giheung +https://weather.o2o.kr/tomorrow/gyeonggi/yongin/suji +https://weather.o2o.kr/tomorrow/gyeonggi/paju +https://weather.o2o.kr/tomorrow/gyeonggi/icheon +https://weather.o2o.kr/tomorrow/gyeonggi/anseong +https://weather.o2o.kr/tomorrow/gyeonggi/gimpo +https://weather.o2o.kr/tomorrow/gyeonggi/hwaseong +https://weather.o2o.kr/tomorrow/gyeonggi/hwaseong/manse +https://weather.o2o.kr/tomorrow/gyeonggi/hwaseong/hyohaeng +https://weather.o2o.kr/tomorrow/gyeonggi/hwaseong/byeongjeom +https://weather.o2o.kr/tomorrow/gyeonggi/hwaseong/dongtan +https://weather.o2o.kr/tomorrow/gyeonggi/gwangju +https://weather.o2o.kr/tomorrow/gyeonggi/yangju +https://weather.o2o.kr/tomorrow/gyeonggi/pocheon +https://weather.o2o.kr/tomorrow/gyeonggi/yeoju +https://weather.o2o.kr/tomorrow/gyeonggi/yeoncheon +https://weather.o2o.kr/tomorrow/gyeonggi/gapyeong +https://weather.o2o.kr/tomorrow/gyeonggi/yangpyeong +https://weather.o2o.kr/tomorrow/chungbuk/cheongju +https://weather.o2o.kr/tomorrow/chungbuk/cheongju/sangdang +https://weather.o2o.kr/tomorrow/chungbuk/cheongju/seowon +https://weather.o2o.kr/tomorrow/chungbuk/cheongju/heungdeok +https://weather.o2o.kr/tomorrow/chungbuk/cheongju/cheongwon +https://weather.o2o.kr/tomorrow/chungbuk/chungju +https://weather.o2o.kr/tomorrow/chungbuk/jecheon +https://weather.o2o.kr/tomorrow/chungbuk/boeun +https://weather.o2o.kr/tomorrow/chungbuk/okcheon +https://weather.o2o.kr/tomorrow/chungbuk/yeongdong +https://weather.o2o.kr/tomorrow/chungbuk/jeungpyeong +https://weather.o2o.kr/tomorrow/chungbuk/jincheon +https://weather.o2o.kr/tomorrow/chungbuk/goesan +https://weather.o2o.kr/tomorrow/chungbuk/eumseong +https://weather.o2o.kr/tomorrow/chungbuk/danyang +https://weather.o2o.kr/tomorrow/chungnam/cheonan +https://weather.o2o.kr/tomorrow/chungnam/cheonan/dongnam +https://weather.o2o.kr/tomorrow/chungnam/cheonan/seobuk +https://weather.o2o.kr/tomorrow/chungnam/gongju +https://weather.o2o.kr/tomorrow/chungnam/boryeong +https://weather.o2o.kr/tomorrow/chungnam/asan +https://weather.o2o.kr/tomorrow/chungnam/seosan +https://weather.o2o.kr/tomorrow/chungnam/nonsan +https://weather.o2o.kr/tomorrow/chungnam/gyeryong +https://weather.o2o.kr/tomorrow/chungnam/dangjin +https://weather.o2o.kr/tomorrow/chungnam/geumsan +https://weather.o2o.kr/tomorrow/chungnam/buyeo +https://weather.o2o.kr/tomorrow/chungnam/seocheon +https://weather.o2o.kr/tomorrow/chungnam/cheongyang +https://weather.o2o.kr/tomorrow/chungnam/hongseong +https://weather.o2o.kr/tomorrow/chungnam/yesan +https://weather.o2o.kr/tomorrow/chungnam/taean +https://weather.o2o.kr/tomorrow/gyeongbuk/pohang +https://weather.o2o.kr/tomorrow/gyeongbuk/pohang/nam +https://weather.o2o.kr/tomorrow/gyeongbuk/pohang/buk +https://weather.o2o.kr/tomorrow/gyeongbuk/gyeongju +https://weather.o2o.kr/tomorrow/gyeongbuk/gimcheon +https://weather.o2o.kr/tomorrow/gyeongbuk/andong +https://weather.o2o.kr/tomorrow/gyeongbuk/gumi +https://weather.o2o.kr/tomorrow/gyeongbuk/yeongju +https://weather.o2o.kr/tomorrow/gyeongbuk/yeongcheon +https://weather.o2o.kr/tomorrow/gyeongbuk/sangju +https://weather.o2o.kr/tomorrow/gyeongbuk/mungyeong +https://weather.o2o.kr/tomorrow/gyeongbuk/gyeongsan +https://weather.o2o.kr/tomorrow/gyeongbuk/uiseong +https://weather.o2o.kr/tomorrow/gyeongbuk/cheongsong +https://weather.o2o.kr/tomorrow/gyeongbuk/yeongyang +https://weather.o2o.kr/tomorrow/gyeongbuk/yeongdeok +https://weather.o2o.kr/tomorrow/gyeongbuk/cheongdo +https://weather.o2o.kr/tomorrow/gyeongbuk/goryeong +https://weather.o2o.kr/tomorrow/gyeongbuk/seongju +https://weather.o2o.kr/tomorrow/gyeongbuk/chilgok +https://weather.o2o.kr/tomorrow/gyeongbuk/yecheon +https://weather.o2o.kr/tomorrow/gyeongbuk/bonghwa +https://weather.o2o.kr/tomorrow/gyeongbuk/uljin +https://weather.o2o.kr/tomorrow/gyeongbuk/ulleung +https://weather.o2o.kr/tomorrow/gyeongnam/changwon +https://weather.o2o.kr/tomorrow/gyeongnam/changwon/uichang +https://weather.o2o.kr/tomorrow/gyeongnam/changwon/seongsan +https://weather.o2o.kr/tomorrow/gyeongnam/changwon/masanhappo +https://weather.o2o.kr/tomorrow/gyeongnam/changwon/masanhoewon +https://weather.o2o.kr/tomorrow/gyeongnam/changwon/jinhae +https://weather.o2o.kr/tomorrow/gyeongnam/jinju +https://weather.o2o.kr/tomorrow/gyeongnam/tongyeong +https://weather.o2o.kr/tomorrow/gyeongnam/sacheon +https://weather.o2o.kr/tomorrow/gyeongnam/gimhae +https://weather.o2o.kr/tomorrow/gyeongnam/miryang +https://weather.o2o.kr/tomorrow/gyeongnam/geoje +https://weather.o2o.kr/tomorrow/gyeongnam/yangsan +https://weather.o2o.kr/tomorrow/gyeongnam/uiryeong +https://weather.o2o.kr/tomorrow/gyeongnam/haman +https://weather.o2o.kr/tomorrow/gyeongnam/changnyeong +https://weather.o2o.kr/tomorrow/gyeongnam/goseong +https://weather.o2o.kr/tomorrow/gyeongnam/namhae +https://weather.o2o.kr/tomorrow/gyeongnam/hadong +https://weather.o2o.kr/tomorrow/gyeongnam/sancheong +https://weather.o2o.kr/tomorrow/gyeongnam/hamyang +https://weather.o2o.kr/tomorrow/gyeongnam/geochang +https://weather.o2o.kr/tomorrow/gyeongnam/hapcheon +https://weather.o2o.kr/tomorrow/jeju/jeju +https://weather.o2o.kr/tomorrow/jeju/seogwipo +https://weather.o2o.kr/tomorrow/gangwon/chuncheon +https://weather.o2o.kr/tomorrow/gangwon/wonju +https://weather.o2o.kr/tomorrow/gangwon/gangneung +https://weather.o2o.kr/tomorrow/gangwon/donghae +https://weather.o2o.kr/tomorrow/gangwon/taebaek +https://weather.o2o.kr/tomorrow/gangwon/sokcho +https://weather.o2o.kr/tomorrow/gangwon/samcheok +https://weather.o2o.kr/tomorrow/gangwon/hongcheon +https://weather.o2o.kr/tomorrow/gangwon/hoengseong +https://weather.o2o.kr/tomorrow/gangwon/yeongwol +https://weather.o2o.kr/tomorrow/gangwon/pyeongchang +https://weather.o2o.kr/tomorrow/gangwon/jeongseon +https://weather.o2o.kr/tomorrow/gangwon/cheorwon +https://weather.o2o.kr/tomorrow/gangwon/hwacheon +https://weather.o2o.kr/tomorrow/gangwon/yanggu +https://weather.o2o.kr/tomorrow/gangwon/inje +https://weather.o2o.kr/tomorrow/gangwon/goseong +https://weather.o2o.kr/tomorrow/gangwon/yangyang +https://weather.o2o.kr/tomorrow/jeonbuk/jeonju +https://weather.o2o.kr/tomorrow/jeonbuk/jeonju/wansan +https://weather.o2o.kr/tomorrow/jeonbuk/jeonju/deokjin +https://weather.o2o.kr/tomorrow/jeonbuk/gunsan +https://weather.o2o.kr/tomorrow/jeonbuk/iksan +https://weather.o2o.kr/tomorrow/jeonbuk/jeongeup +https://weather.o2o.kr/tomorrow/jeonbuk/namwon +https://weather.o2o.kr/tomorrow/jeonbuk/gimje +https://weather.o2o.kr/tomorrow/jeonbuk/wanju +https://weather.o2o.kr/tomorrow/jeonbuk/jinan +https://weather.o2o.kr/tomorrow/jeonbuk/muju +https://weather.o2o.kr/tomorrow/jeonbuk/jangsu +https://weather.o2o.kr/tomorrow/jeonbuk/imsil +https://weather.o2o.kr/tomorrow/jeonbuk/sunchang +https://weather.o2o.kr/tomorrow/jeonbuk/gochang +https://weather.o2o.kr/tomorrow/jeonbuk/buan diff --git a/docs/이벤트_추적.md b/docs/이벤트_추적.md index 6d13d9b..edda4cc 100644 --- a/docs/이벤트_추적.md +++ b/docs/이벤트_추적.md @@ -55,8 +55,12 @@ GA4 태그(`gtag.js`, 측정 ID `G-D378J4X373`)를 `index.html`에 심고, 화 | `today_icon` | 오늘 탭 아이콘 줄에서 아이콘을 누름 | `icon`(`tarot`·`saju`·`game`·`foliage`·`shorts`·`myGak`·`talk`) | `todayIcons.tsx` `TodayIcons` | | `saju_input` | 날씨 사주 생년월일을 넣음 (생년월일 값은 보내지 않음) | `with_time` | `SajuPage.tsx` `BirthForm` | | `saju_view` | 날씨 사주 결과가 뜸 | `scene`(내 기운 이름), `score` | `SajuPage.tsx` `Reading` | +| `game_start` | 구름 합치기 한 판의 첫 그림을 떨어뜨림 (페이지만 열고 안 한 사람과 구분) | `again`(다시 하기로 시작), `logged_in`, `wind_ms`(오늘 우리 구 풍속) | `CloudMergePage.tsx` `onUp` | +| `game_round` | 구름 합치기 라운드를 깸 | `round`(깬 라운드), `score`(그때 총점), `logged_in`(각을 받는지) | `CloudMergePage.tsx` `onScore` | +| `game_over` | 구름 합치기가 넘쳐서 끝남 | `round`(끝난 라운드), `score`, `best`(최고 기록 갱신), `drops`(떨어뜨린 횟수) | `CloudMergePage.tsx` `onOver` | - 공유창에서 사용자가 취소하면 `share`를 보내지 않는다. +- 구름 합치기 게임 방법 창은 `sheet_open`(`sheet: 'gameHelp'`)으로 잡혀 따로 보내지 않는다. - 토스판은 로그인이 없어 `login` `toss`는 나가지 않는다. `id`·`sign_up`도 지금 화면에 아이디 가입이 없어 나가지 않는다. - 점수 근거·댓글창 열기처럼 창으로 여는 기능은 따로 이벤트를 두지 않고 `sheet_open`의 `sheet`로 나눠 본다. - `region_change`의 `location`은 처음 온 사람의 자동 위치 맞춤도 포함한다. diff --git a/docs/인스타_홍보_기획.html b/docs/인스타_홍보_기획.html index 1d7e417..9a7d361 100644 --- a/docs/인스타_홍보_기획.html +++ b/docs/인스타_홍보_기획.html @@ -109,6 +109,9 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
  • 사실 반대로 Metricool은 7억 건 분석에서 "모든 팔로워 구간에서 도달은 릴스가 1위"라고 했습니다. [3] 두 조사는 '조회수'와 '도달'을 다르게 세기 때문에 결론이 엇갈립니다. 작은 계정에서 어느 쪽이 더 멀리 가는지는 데이터로 확정되지 않습니다.
  • 사실 인스타그램 대표(Mosseri)는 추천의 핵심 신호를 시청 시간·좋아요·보내기(DM 공유)로 꼽았고, 팔로우하지 않은 사람에게 퍼질 때는 보내기가 더 중요하다고 했습니다. [4]
  • 사실 카드뉴스에 음악을 넣으면 피드뿐 아니라 릴스 탭에도 노출될 수 있습니다(Mosseri, 2026-06). [5]
  • +
  • 사실 인스타그램 공식 크리에이터 계정과 인스타그램 대표 Adam Mosseri가, 음악을 넣은 캐러셀·사진은 릴스 탭에 뜰 수 있게 된다고 했습니다(2024-10 보도). [30][31]
  • +
  • 사실 다만 Mosseri는 "음악이 있다고 밀어주지는 않는다"고도 했습니다. 노출이 느는 건 릴스 탭이라는 자리에 나갈 수 있게 돼서입니다. [32]
  • +
  • 사실 음악 없는 캐러셀은 릴스 탭에 못 나갑니다. [32] 그래서 지금 음악 없이 자동 게시하는 우리 카드가 릴스에 안 뜨는 게 맞습니다.
  • 사실 한국 인스타 월 이용자 약 2,800만 명. [6] 이용자의 53.5%가 DM을 "콘텐츠 공유"에 씁니다. [7] 숏폼 이용자 중 릴스를 주로 쓰는 사람은 49.3%(1위 유튜브 쇼츠 83.4%). [8] 10대가 자주 쓰는 동영상 플랫폼 1위는 릴스(37.2%)입니다. [9]
  • @@ -334,6 +337,9 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
  • Buffer, How often to post on Instagram (2025-08-13) https://buffer.com/library/how-often-to-post-on-instagram/
  • 매일신문, 기온별 옷차림 (2026-10) https://www.imaeil.com/page/view/2026100107292614283
  • Meta, Instagram Platform Content Publishing https://developers.facebook.com/docs/instagram-platform/content-publishing/
  • +
  • Social Media Today, IG Chief Recommends Posting Carousels To Improve Reach (2024-10-17) https://www.socialmediatoday.com/news/ig-chief-recommends-posting-carousels-improve-reach/730232/
  • +
  • @instagramcreators 틱톡, Mosseri 캐러셀 도달 영상 (게시일 확인 못 함) https://www.tiktok.com/@instagramcreators/video/7436051560481934638
  • +
  • Kontentino, Does adding music to an Instagram post increase reach? (2026-10-05, Mosseri 2026-08 Q&A 인용) https://www.kontentino.com/q-and-a/add-music-to-instagram-post-reach/
  • 찾지 못한 것: 한국만 따로 본 형식별 성과 비교, 한국 카드뉴스 저장률 조사, 인스타 '오늘의 운세' 계정 성과, 날씨 옷차림 계정 팔로워 수.

    diff --git a/frontend/apps-in-toss.config.ts b/frontend/apps-in-toss.config.ts index a1c2070..f0685e6 100644 --- a/frontend/apps-in-toss.config.ts +++ b/frontend/apps-in-toss.config.ts @@ -6,5 +6,7 @@ export default defineConfig({ brand: { primaryColor: '#ff7a45' }, permissions: [{ name: 'geolocation', access: 'access' }], navigationBar: { withBackButton: true, withHomeButton: true }, + // 기본값은 자동재생·화면 안 재생을 막아 쇼츠(유튜브)가 재생되지 않는다 + webView: { allowsInlineMediaPlayback: true, mediaPlaybackRequiresUserAction: false }, webBundleDir: 'dist-toss', }) diff --git a/frontend/src/b/BLayout.tsx b/frontend/src/b/BLayout.tsx index a2b4b1e..c115b9a 100644 --- a/frontend/src/b/BLayout.tsx +++ b/frontend/src/b/BLayout.tsx @@ -2,7 +2,6 @@ import { useCallback, useEffect, useMemo, useState, type ReactNode } from 'react import { NavLink, Outlet, useLocation, useNavigationType } from 'react-router' import { useIsFetching, useQuery, useQueryClient } from '@tanstack/react-query' import { authConfigOptions, getSeasonWeekOptions } from '@nalssigak/shared/api/client/@tanstack/react-query.gen' -import { IS_TOSS } from '../lib/platform' import { cx } from '../lib/utils' import { kindOfHour, kst, seasonOf, type TimeKind } from '@nalssigak/shared/lib' import './b.css' @@ -51,7 +50,7 @@ function TopBar() { const { me, mePending } = useAuth() const queryClient = useQueryClient() const tab = TABS.find((t) => t.to !== '/' && pathname.startsWith(t.to)) - const loggedOut = !IS_TOSS && !mePending && !me + const loggedOut = !mePending && !me // 로그인 창을 처음 열 때 버벅이지 않게 구글 로그인 준비물을 미리 받아 둔다 useEffect(() => { @@ -73,7 +72,7 @@ function TopBar() { {locateStatus === 'locating' ? : {region.name}{region.name.split(' ').at(-1)}} - {IS_TOSS ? null : mePending ? ( + {mePending ? ( ) : me ? ( - {birth && ( - - )} - - ) -} - export function SheetProvider({ children }: { children: ReactNode }) { const [state, setState] = useState(null) // 창이 열려 있는 동안 방문 기록을 하나 쌓아 두어 뒤로 가기가 창만 닫게 한다 @@ -156,14 +128,11 @@ function SheetHost({ state, onClose }: { state: SheetState; onClose: () => void const root = document.documentElement const before = root.style.overflow root.style.overflow = 'hidden' - // 창 안에서 끝까지 밀어도 뒤 페이지로 넘어가지 않게 - root.style.overscrollBehavior = 'none' // 뒤 화면 움직임 멈추기는 페이지 전체 스타일을 다시 계산하게 해서, 창이 다 올라온 뒤에 한다 const pause = setTimeout(() => root.classList.add('b-sheet-open'), SHEET_OPEN_MS) return () => { clearTimeout(pause) root.style.overflow = before - root.style.overscrollBehavior = '' root.classList.remove('b-sheet-open') } }, [isOpen]) @@ -1071,7 +1040,7 @@ function LoginSheet({ onDone, onLoggedIn, why }: { onDone: () => void; onLoggedI const fail = () => setError('서버에 닿지 못했어요. 잠시 뒤에 다시 해 주세요.') if (me) return - if (IS_TOSS) return + if (IS_TOSS) return return ( @@ -1095,13 +1064,52 @@ function LoginSheet({ onDone, onLoggedIn, why }: { onDone: () => void; onLoggedI ) } -/** 토스판은 로그인이 없다. 로그인이 필요한 곳(두 번째 내 각)에서 안내만 한다 */ -function TossNoLoginSheet({ onDone }: { onDone: () => void }) { +/** 앱인토스는 토스 로그인만 쓸 수 있다 */ +function TossLoginSheet({ onDone, onLoggedIn }: { onDone: () => void; onLoggedIn: () => void }) { + const [error, setError] = useState('') + const [opening, setOpening] = useState(false) + const toss = useMutation(tossMutation()) + const pending = opening || toss.isPending + + const start = async () => { + setError('') + setOpening(true) + let code: Awaited> + try { + code = await tossLogin() + } catch (e) { + console.error('[login] toss', e) + setError('토스 로그인을 마치지 못했어요. 한 번 더 눌러 주세요.') + return + } finally { + setOpening(false) + } + toss.mutate( + { body: { authorization_code: code.authorizationCode, referrer: code.referrer } }, + { + onSuccess: (res) => { + if (!res.result?.success || !res.access_token) return setError('토스 로그인을 마치지 못했어요. 한 번 더 눌러 주세요.') + setTokens(res.access_token, res.refresh_token ?? null) + track('login', { method: 'toss' }) + onLoggedIn() + }, + onError: () => setError('서버에 닿지 못했어요. 잠시 뒤에 다시 해 주세요.'), + }, + ) + } + return ( -

    토스에서는 내 각을 하나만 만들 수 있어요. 지금 각을 지우고 새로 만들어 주세요.

    - + ) @@ -1233,7 +1241,6 @@ function MeSheet({ onDone }: { onDone: () => void }) {

    {me.provider === AuthProvider.TOSS ? '토스로 로그인했어요' : me.provider === AuthProvider.GOOGLE ? '구글 계정으로 로그인했어요' : `${me.login_id}(으)로 로그인했어요`}

    - {installable && ( -

    } +

    ) } diff --git a/frontend/src/b/fortune.tsx b/frontend/src/b/fortune.tsx index ad46b7f..26c0da4 100644 --- a/frontend/src/b/fortune.tsx +++ b/frontend/src/b/fortune.tsx @@ -174,7 +174,7 @@ export function TarotSheet() { } return ( -
    +
    {!card ? (
    {/* 글 메뉴(⋯)는 하트 옆 오른쪽 위에: 아래 줄 끝에 두면 말줄임표처럼 읽힌다 */} - {!IS_TOSS && ( - - )} + @@ -337,7 +334,6 @@ function TalkRow({ t, onGone, compact }: { t: TalkData; onGone?: () => void; com /** 이야기 탭: 쓰기 칸과 전국 최신 글 (아래로 더 받기) */ /** 피드 위 쓰는 칸. 늘 펼쳐 두고, 오늘 쓴 내 글은 바로 아래 '오늘 내 글' 묶음에 보인다 */ export function FeedComposer() { - if (IS_TOSS) return null return (
    @@ -412,7 +408,7 @@ export function FirstTalkCard() { export function NearTalks({ talks, loaded }: { talks: TalkData[]; loaded: boolean }) { if (!loaded) return null if (talks.length) return - return IS_TOSS ? null : + return } /** 내 정보 창의 내가 쓴 글 */ diff --git a/frontend/src/lib/analytics.ts b/frontend/src/lib/analytics.ts index 9734da5..5534170 100644 --- a/frontend/src/lib/analytics.ts +++ b/frontend/src/lib/analytics.ts @@ -33,6 +33,9 @@ type Events = { today_icon: { icon: string } saju_input: { with_time: boolean } saju_view: { scene: string; score: number } + game_start: { again: boolean; logged_in: boolean; wind_ms: number } + game_round: { round: number; score: number; logged_in: boolean } + game_over: { round: number; score: number; best: boolean; drops: number } toss_intro_start: Record install_banner_close: Record }