Compare commits

...
Author SHA1 Message Date
minaChoi cc5ecd7bbf Merge remote-tracking branch 'origin/main' into feat/apps-in-toss 2026-10-27 20:03:38 +09:00
minaChoi 597017bd37 Merge remote-tracking branch 'origin/main' into feat/apps-in-toss 2026-10-27 19:56:17 +09:00
minaChoi 89221535ba Merge remote-tracking branch 'origin/main' into feat/apps-in-toss 2026-10-27 19:45:52 +09:00
minaChoi 8ccdf22882 Merge remote-tracking branch 'origin/main' into feat/apps-in-toss 2026-10-27 19:30:27 +09:00
minaChoi e962304107 chore: 쇼츠 빈 줄 정리 2026-10-27 19:30:27 +09:00
minaChoi 8191881f6a fix: 토스판 쇼츠를 웹과 같이 — 소리 없이 자동재생·재생 버튼 없음·앞뒤 미리 받기·손가락으로 넘기기·소리 켜기 버튼, 재생 신호가 안 오는 토스만 1초 뒤 영상을 보임 2026-10-27 19:27:00 +09:00
minaChoi 7ffeecbb4f fix: 토스판 쇼츠도 릴스처럼 다음 영상을 미리 받아 둠 — 다음 영상은 멈춘 채 띄워 두고 넘어오면 재생, 지난 영상은 내려 소리가 겹치지 않게 2026-10-27 19:22:26 +09:00
minaChoi 4875ea4333 Merge remote-tracking branch 'origin/main' into feat/apps-in-toss
# Conflicts:
#	frontend/src/b/BLayout.tsx
#	frontend/src/b/Shorts.tsx
#	frontend/src/b/talk.tsx
2026-10-27 19:08:51 +09:00
minaChoi 77cfb04808 feat: 토스판 첫 실행 인트로 다시 넣음 (51e0c06 되돌림) — 토스 로그인을 다시 켜서 검수 의견대로 로그인 전에 서비스 소개 2026-10-27 08:30:54 +09:00
minaChoi 9dc7a52383 feat: 토스판 토스 로그인 다시 켬 (0144a64 되돌림) — 로그인 버튼·글쓰기 칸·글 더보기, 두 번째 내 각 저장 때 로그인 창 2026-10-27 08:30:41 +09:00
minaChoi 130f14e96a fix: 토스판 쇼츠를 열거나 넘길 때 검은 플레이어가 깜빡임 — 재생 상태가 안 오므로 플레이어 문서가 뜨고 1초 뒤까지 표지로 가렸다가 서서히 띄움 2026-10-26 16:41:15 +09:00
minaChoi b240ecb180 fix: 토스판 쇼츠는 유튜브 기본 플레이어로 자동재생 — 토스 웹뷰엔 플레이어 재생 상태가 안 와서 숨기기·명령·재생 아이콘을 쓰지 않고, 소리 켠 채 재생(막히면 유튜브 재생 버튼), 넘기기는 이전·다음 버튼. 웹은 그대로 2026-10-26 16:33:50 +09:00
minaChoi 21bfa2a3ff fix: 토스판 쇼츠는 유튜브 기본 플레이어로 — 토스 웹뷰엔 재생 상태가 안 와서 자동재생·숨기기 대신 재생 버튼을 처음부터 보이고, 카드는 표지와 재생 아이콘, 쇼츠 페이지에 이전·다음 버튼 2026-10-26 16:24:45 +09:00
minaChoi 61023d090e fix: 쇼츠 재생 아이콘을 플레이어가 보낸 재생 상태로만 판단 — 늦은 자동재생과 누르기가 겹쳐도 어긋나지 않게, 카드 아이콘은 플레이어 위에, 넘기기 판은 재생 명령이 막힌 때만 치움 2026-10-26 16:18:09 +09:00
minaChoi 2fd6fcbd06 fix: 쇼츠 재생 멈춤 표시를 effect 안 setState 없이 2026-10-26 16:12:02 +09:00
minaChoi acb6c4d717 fix: 쇼츠가 저절로 재생되지 않으면(토스 웹뷰) 2초 뒤 플레이어를 보이고 재생 아이콘을 띄워 직접 눌러 재생 2026-10-26 16:11:49 +09:00
minaChoi 81b17f057f fix: 토스판 쇼츠 재생 — 웹뷰 기본값(자동재생·화면 안 재생 막음)을 풀어 줌 2026-10-26 16:03:54 +09:00
minaChoi 51e0c06f2d fix: 토스판 첫 실행 인트로 뺌 — 토스 로그인을 뺐으니 로그인 전 소개 화면이 필요 없음 2026-10-26 15:52:06 +09:00
minaChoi 0a84f34729 Merge remote-tracking branch 'origin/main' into feat/apps-in-toss 2026-10-26 15:46:15 +09:00
minaChoi 2627dd2685 Merge remote-tracking branch 'origin/main' into feat/apps-in-toss 2026-10-26 15:33:39 +09:00
5 changed files with 64 additions and 26 deletions

No files matched your search

+1
View File
@@ -241,6 +241,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` |
+2
View File
@@ -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',
})
+2 -3
View File
@@ -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'
@@ -50,7 +49,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(() => {
@@ -72,7 +71,7 @@ function TopBar() {
<PinIcon className="size-3.5 shrink-0" />
{locateStatus === 'locating' ? <Skel className="w-[72px]" /> : <span className="truncate whitespace-nowrap"><span className="max-[399px]:hidden">{region.name}</span><span className="min-[400px]:hidden">{region.name.split(' ').at(-1)}</span></span>}
</button>
{IS_TOSS ? null : mePending ? (
{mePending ? (
<Skel shape className="size-9 shrink-0 rounded-full" />
) : me ? (
<button type="button" onClick={() => open({ type: 'me' })} aria-label={`내 정보, ${me.nickname}`} className="shrink-0 cursor-pointer rounded-full shadow-[0_6px_12px_rgb(40_48_74/0.12)]">
+49 -9
View File
@@ -20,6 +20,7 @@ import {
listRegionsOptions,
meQueryKey,
reportCommentMutation,
tossMutation,
unblockMutation,
unlikeCommentMutation,
updateMeMutation,
@@ -27,7 +28,7 @@ import {
} from '@nalssigak/shared/api/client/@tanstack/react-query.gen'
import { AuthProvider, ReportReason, type CommentData, type Factor, type ResAuth, type ResCommentList, type ResIndexDetail } from '@nalssigak/shared/api/client/types.gen'
import { track } from '../lib/analytics'
import { IS_TOSS, tossShare } from '../lib/platform'
import { IS_TOSS, tossLogin, tossShare } from '../lib/platform'
import { cx } from '../lib/utils'
import { useAuth } from './authContext'
import { ago, articleMeta, AVATAR_COLORS, cardBg, CHARACTERS, dateRange, loadOf, MOODS, shortDay } from '@nalssigak/shared/lib'
@@ -993,7 +994,7 @@ function LoginSheet({ onDone, onLoggedIn }: { onDone: () => void; onLoggedIn: ()
const fail = () => setError('서버에 닿지 못했어요. 잠시 뒤에 다시 해 주세요.')
if (me) return <MeSheet onDone={onDone} />
if (IS_TOSS) return <TossNoLoginSheet onDone={onDone} />
if (IS_TOSS) return <TossLoginSheet onDone={onDone} onLoggedIn={onLoggedIn} />
return (
<Body>
@@ -1017,13 +1018,52 @@ function LoginSheet({ onDone, onLoggedIn }: { onDone: () => void; onLoggedIn: ()
)
}
/** 토스판은 로그인이 없다. 로그인이 필요한 곳(두 번째 내 각)에서 안내만 한다 */
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<ReturnType<typeof tossLogin>>
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 (
<Body className="flex flex-col gap-2.5">
<p className="m-0 text-center text-sm font-semibold text-(--ink2)">토스에서는 내 각을 하나만 만들 수 있어요. 지금 각을 지우고 새로 만들어 주세요.</p>
<button type="button" onClick={onDone} className="cursor-pointer rounded-[14px] bg-(--orange) p-[13px] font-jua text-[17px] text-white shadow-[inset_0_-5px_0_var(--orange-deep)]">
알겠어요
<h3 className="m-0 text-center font-jua text-xl font-normal">날씨각 로그인</h3>
<p className="m-0 text-center text-sm font-semibold text-(--ink2)">로그인하면 동네 이야기를 쓰고 내 각을 저장할 수 있어요</p>
<p className="min-h-5 text-center text-[13px] font-bold text-(--heart)" aria-live="polite">
{error}
</p>
<button type="button" onClick={start} disabled={pending} className="cursor-pointer rounded-[14px] bg-(--orange) p-[13px] font-jua text-[17px] text-white shadow-[inset_0_-5px_0_var(--orange-deep)] disabled:opacity-60">
<Swap labels={['토스로 로그인', '로그인 중…']} at={pending ? 1 : 0} />
</button>
<button type="button" onClick={onDone} className="cursor-pointer rounded-[14px] p-[13px] text-[15px] font-extrabold text-(--ink2)">
나중에 할게요
</button>
</Body>
)
@@ -1320,12 +1360,12 @@ function RegionSheet({ onDone }: { onDone: () => void }) {
</li>
))}
</ul>
{!IS_TOSS && <p className="mt-4 flex items-center justify-center gap-2 text-[13px] font-bold text-(--ink2)">
<p className="mt-4 flex items-center justify-center gap-2 text-[13px] font-bold text-(--ink2)">
{me ? `${me.nickname}(으)로 로그인했어요` : '로그인하면 좋아요·댓글을 쓸 수 있어요'}
<button type="button" onClick={me ? logout : () => open({ type: 'login' })} className="cursor-pointer font-extrabold text-(--rain)">
{me ? '로그아웃' : '로그인'}
</button>
</p>}
</p>
</Body>
)
}
+10 -14
View File
@@ -12,7 +12,6 @@ import {
import { uploadTalkImage } from '@nalssigak/shared/api/client/sdk.gen'
import { TalkReport, TalkTopic, type TalkData } from '@nalssigak/shared/api/client/types.gen'
import { API_BASE_URL } from '../api/setup'
import { IS_TOSS } from '../lib/platform'
import { cx } from '../lib/utils'
import { useAuth } from './authContext'
import { kst } from '@nalssigak/shared/lib'
@@ -309,17 +308,15 @@ function TalkRow({ t, onGone, compact }: { t: TalkData; onGone?: () => void; com
</div>
{/* 글 메뉴(⋯)는 하트 옆 오른쪽 위에: 아래 줄 끝에 두면 말줄임표처럼 읽힌다 */}
<span className="flex items-start gap-4 self-start">
{!IS_TOSS && (
<button
type="button"
onClick={() => setMenu(menu === 'closed' ? 'open' : 'closed')}
aria-expanded={menu !== 'closed'}
aria-label="글 메뉴"
className={cx('relative cursor-pointer pt-0.5 text-[15px] leading-none font-extrabold tracking-[1px] text-(--ink3)', TAP44)}
>
⋯
</button>
)}
<button
type="button"
onClick={() => setMenu(menu === 'closed' ? 'open' : 'closed')}
aria-expanded={menu !== 'closed'}
aria-label="글 메뉴"
className={cx('relative cursor-pointer pt-0.5 text-[15px] leading-none font-extrabold tracking-[1px] text-(--ink3)', TAP44)}
>
⋯
</button>
<button type="button" onClick={toggle} aria-pressed={liked} aria-label="좋아요" className={cx('relative cursor-pointer pt-1', TAP44)}>
<HeartIcon className={cx('size-4 stroke-2', liked ? 'fill-(--heart) stroke-(--heart)' : 'fill-none stroke-(--ink3)')} />
</button>
@@ -331,7 +328,6 @@ function TalkRow({ t, onGone, compact }: { t: TalkData; onGone?: () => void; com
/** 이야기 탭: 쓰기 칸과 전국 최신 글 (아래로 더 받기) */
/** 피드 위 쓰는 칸. 늘 펼쳐 두고, 오늘 쓴 내 글은 바로 아래 '오늘 내 글' 묶음에 보인다 */
export function FeedComposer() {
if (IS_TOSS) return null
return (
<div className="mt-3.5">
<Composer />
@@ -406,7 +402,7 @@ export function FirstTalkCard() {
export function NearTalks({ talks, loaded }: { talks: TalkData[]; loaded: boolean }) {
if (!loaded) return null
if (talks.length) return <TalkGroup title="동네 사람들" talks={talks} />
return IS_TOSS ? null : <FirstTalkCard />
return <FirstTalkCard />
}
/** 내 정보 창의 내가 쓴 글 */