d3ro-voice/apps/web/.next/server/app/login.rsc
yunchan8804 61a96b3e9b feat(V2-6/V2-7/V2-8): Mobile MVP + Teams + Billing 스캐폴딩
V2-6 — Mobile (Expo) MVP
- apps/mobile/ 신규, npm workspace에서 제외 (Expo deps 부담 회피)
- Expo SDK 51 + Expo Router + AsyncStorage Supabase 클라이언트
- 화면: index/login/(tabs)/{meetings,record,profile}
- expo-av로 녹음 → Edge Function stt-proxy 호출
- expo-web-browser + expo-linking으로 OAuth 콜백 처리
- README에 setup/EAS build 가이드
- 루트 package.json workspaces를 명시 나열로 변경 (apps/mobile 제외)

V2-7 — 팀 기능 (Web)
- apps/web/src/app/teams/page.tsx — 가입한 팀 카드 그리드
- apps/web/src/app/teams/[id]/page.tsx — 멤버 + 공유 회의
- components/teams/create-team-form.tsx — 팀 생성 + owner 자동 team_members
- components/teams/invite-member-form.tsx — user_id 직접 초대 (V2-7b에서 invite flow)
- Sidebar에 Teams/Billing 메뉴 + 아이콘
- ko.json에 nav.teams/nav.billing 키 추가
- V2-2 teams/team_members RLS 활용

V2-8 — 결제 스캐폴딩
- apps/web/src/app/billing/page.tsx — Free/Pro/Team 가격표 + 현재 구독
- components/billing/checkout-button.tsx — Edge Function 호출 후 redirect
- server/supabase/functions/stripe-checkout/index.ts:
  - JWT 인증 -> 기존 customer 조회/생성 -> Checkout Session 생성
  - subscriptions 테이블에 customer_id upsert
- server/supabase/functions/stripe-webhook/index.ts:
  - checkout.session.completed -> subscriptions tier=pro/team active
  - customer.subscription.updated/created -> status/period 업데이트
  - customer.subscription.deleted -> tier=free, status=canceled
  - signature 검증은 placeholder (V2-8b에서 정식)
- server/supabase/config.toml에 두 함수 등록 (webhook verify_jwt=false)

검증:
- desktop typecheck OK (회귀 없음)
- web typecheck OK
- web next build OK (11 라우트)
- mobile은 별도 install 필요 (workspace 제외)

memory/project_status.md 갱신 — V2 마스터 플랜 전 페이즈 로컬 완료
2026-04-09 16:39:54 +09:00

22 lines
4.9 KiB
Text

1:"$Sreact.fragment"
2:I[7455,["385","static/chunks/75504863-5f9267cdf03b69d1.js","77","static/chunks/77-b2ed327d60687a9b.js","988","static/chunks/988-13d51ea3bc47cedf.js","746","static/chunks/746-2c44f63089954251.js","791","static/chunks/791-5c69f2a174236cc3.js","803","static/chunks/803-0cf84cc58814c4df.js","177","static/chunks/app/layout-691283f9d4f6a1d3.js"],"ThemeProvider"]
3:I[1732,["385","static/chunks/75504863-5f9267cdf03b69d1.js","77","static/chunks/77-b2ed327d60687a9b.js","988","static/chunks/988-13d51ea3bc47cedf.js","746","static/chunks/746-2c44f63089954251.js","791","static/chunks/791-5c69f2a174236cc3.js","803","static/chunks/803-0cf84cc58814c4df.js","177","static/chunks/app/layout-691283f9d4f6a1d3.js"],"I18nProvider"]
4:I[1598,["385","static/chunks/75504863-5f9267cdf03b69d1.js","77","static/chunks/77-b2ed327d60687a9b.js","988","static/chunks/988-13d51ea3bc47cedf.js","746","static/chunks/746-2c44f63089954251.js","791","static/chunks/791-5c69f2a174236cc3.js","803","static/chunks/803-0cf84cc58814c4df.js","177","static/chunks/app/layout-691283f9d4f6a1d3.js"],"AuthProvider"]
5:I[5341,[],""]
6:I[25,[],""]
7:I[1012,[],"ClientPageRoot"]
8:I[1009,["385","static/chunks/75504863-5f9267cdf03b69d1.js","77","static/chunks/77-b2ed327d60687a9b.js","988","static/chunks/988-13d51ea3bc47cedf.js","189","static/chunks/189-12e79cb47e89ed95.js","949","static/chunks/949-25a59c4f9171c905.js","32","static/chunks/32-d268e753140982a8.js","791","static/chunks/791-5c69f2a174236cc3.js","803","static/chunks/803-0cf84cc58814c4df.js","910","static/chunks/910-c4d77d369189ddc4.js","520","static/chunks/app/login/page-b71b3729d311a739.js"],"default"]
b:I[5104,[],"OutletBoundary"]
d:I[7158,[],"AsyncMetadataOutlet"]
f:I[5104,[],"ViewportBoundary"]
11:I[5104,[],"MetadataBoundary"]
12:"$Sreact.suspense"
14:I[4431,[],""]
0:{"P":null,"b":"xPyRjwNtNDQo_6GaMCeJt","p":"","c":["","login"],"i":false,"f":[[["",{"children":["login",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[null,["$","html",null,{"lang":"ko","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]}]]}],{"children":["login",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],null],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true}
9:{}
a:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params"
10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
c:null
15:I[6505,[],"IconMark"]
e:{"metadata":[["$","title","0",{"children":"D3RO Voice"}],["$","meta","1",{"name":"description","content":"로컬+클라우드 하이브리드 AI 음성 어시스턴트"}],["$","link","2",{"rel":"icon","href":"/favicon.ico"}],["$","$L15","3",{}]],"error":null,"digest":"$undefined"}
13:"$e:metadata"