Repository navigation
[Feat/#110] 스플래시·로그인·온보딩 화면 구현 #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
7b9341d
5380c50
e32bcf3
13bf2ba
bb3659f
7c3d99c
724bdbd
0864cb9
d966087
596b474
a2dd124
452ddda
7e58fac
c9e411b
a3e5cbb
6283c5c
e3417a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # K-CONNECT에 등록한 앱의 client_id (K-계정 관리 페이지의 OAuth2 애플리케이션) | ||
| # 복사해서 .env로 만들고 값을 채운다 — .env는 커밋하지 않는다. | ||
| # 허가된 Redirect URI에 http://localhost:5173/oauth/kconnect(개발)와 배포 주소의 /oauth/kconnect가 등록돼 있어야 한다. | ||
| VITE_KCONNECT_CLIENT_ID= |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| @wanteddev:registry=https://npm.pkg.github.com/ | ||
| @wanteddev:registry=https://npm.pkg.github.com/ | ||
| @billilge:registry=https://npm.pkg.github.com/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # @billilge/oauth-kconnect는 Expo 앱용 의존성(expo-auth-session)을 optional peer로 선언하는데, pnpm의 | ||
| # autoInstallPeers가 그것까지 설치해서 웹에 필요 없는 Expo 의존성 수백 개가 딸려 온다. | ||
| # 이 앱은 웹용 진입점(@billilge/oauth-kconnect/react)만 쓰므로 설치에서 뺀다. | ||
| overrides: | ||
| expo-auth-session: "-" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,9 @@ import ArchivesDetailScreen from "@/features/archives/ArchivesDetailScreen"; | |
| import ArchivesListScreen from "@/features/archives/ArchivesListScreen"; | ||
| import ArchivesPhotosScreen from "@/features/archives/ArchivesPhotosScreen"; | ||
| import ArchivesPhotoViewerScreen from "@/features/archives/ArchivesPhotoViewerScreen"; | ||
| import AuthEntryGate from "@/features/auth/AuthEntryGate"; | ||
| import AuthSignupScreen from "@/features/auth/AuthSignupScreen"; | ||
| import KConnectCallbackScreen from "@/features/auth/KConnectCallbackScreen"; | ||
| import BililgeListScreen from "@/features/bililge/BililgeListScreen"; | ||
| import ChatEntryScreen from "@/features/chat/ChatEntryScreen"; | ||
| import EventsApplicationClosedScreen from "@/features/events/EventsApplicationClosedScreen"; | ||
|
|
@@ -40,7 +43,12 @@ const routes = [ | |
| { | ||
| children: [ | ||
| { | ||
| element: <HomeScreen />, | ||
| // 앱 첫 진입점 — 로그인한 기록이 없으면 스플래시(→ 로그인 화면)로 보낸다 | ||
| element: ( | ||
| <AuthEntryGate> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
main에 push되면 dev가 자동 배포되는데, 지금 상태에서는 이렇게 돼요.
결국 홈을 보려면 콘솔에서 sessionStorage를 직접 넣는 방법밖에 없어요. 그리고 |
||
| <HomeScreen /> | ||
| </AuthEntryGate> | ||
| ), | ||
| path: "/", | ||
| }, | ||
| { | ||
|
|
@@ -155,6 +163,25 @@ const routes = [ | |
| } satisfies ScreenRouteHandle, | ||
| path: "/notifications/settings", | ||
| }, | ||
| { | ||
| element: <AuthSignupScreen />, | ||
| // 로그인·온보딩 퍼널 하나가 모든 단계(로그인, 연락처, 약관 동의, 약관 상세, 가입 완료)를 그린다. | ||
| // Figma 로그인·온보딩에는 Bottom Nav가 없고 배경이 흰 면이다 | ||
| handle: { | ||
| background: "normal", | ||
| hasBottomNav: false, | ||
| } satisfies ScreenRouteHandle, | ||
| path: "/auth", | ||
| }, | ||
| { | ||
| element: <KConnectCallbackScreen />, | ||
| // K-CONNECT 인증 후 되돌아오는 redirect URI — 경로는 K-CONNECT에 등록한 값(@billilge/oauth-kconnect 규약)이다 | ||
| handle: { | ||
| background: "normal", | ||
| hasBottomNav: false, | ||
| } satisfies ScreenRouteHandle, | ||
| path: "/oauth/kconnect", | ||
| }, | ||
| { | ||
| element: <ChatEntryScreen />, | ||
| // Figma 챗봇 진입 화면에는 Bottom Nav가 없다(뒤로가기로 홈에 복귀). 흰 배경 위에 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[a]스플래시가 빠졌는데 주석에는 "스플래시(→ 로그인 화면)로 보낸다"가 남아 있어요.src/entities/auth/session.ts2번째 줄 주석도 같이 고쳐 주시면 좋을 것 같아요.