Repository navigation
feat(web): 모바일 레이아웃·하단 탭바·헤더와 라우트 뼈대 추가 - #6
Merged
Merged
Conversation
- 루트 레이아웃: viewport-fit=cover, 최대 너비 480px 컨테이너, 100dvh, 안전 영역 여백 - 하단 탭바: Figma "내비게이션 페이지별 탭" 기준(내 챌린지·모집 중·채팅·마이페이지) - 헤더: JDS LocalNavigation(root·nested). 뒤로가기는 router.back()이고, 앱 안 기록이 없으면(딥링크·푸시 진입) 홈으로 보낸다 - 앱 안 기록 위치를 history.state에 저장해 뒤로갈 곳이 있는지 판단한다 - 탭 화면 4개와 상세·생성·인증·관리·알림·로그인·온보딩·초대 경로를 빈 화면으로 추가 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
API 초안에서 리소스 이름을 복수형으로 정해 프론트 라우트도 맞췄다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
관련 이슈
작업 내용
viewport-fit=cover, 최대 너비 480px 컨테이너(max-w-app),min-h-dvh. 넓은 화면에서는 바깥에surface-deep배경이 보인다.env(safe-area-inset-*)여백을 둔다. 앱 껍데기는SafeAreaView로 WebView를 감싸고 있어서, 앱 안에서는 이 값이 0이 되고 여백이 두 번 생기지 않는다.shared/layout/tab-bar.tsx): Figma "내비게이션 페이지별 탭"(112:3185)을 따른다. 순서는 내 챌린지 · 모집 중 · 채팅 · 마이페이지이고 아이콘은 JDShouse/search/message-square-more/user-round.(tabs)라우트 그룹 레이아웃에만 붙는다.shared/layout/app-header.tsx): JDSLocalNavigation을 root·nested 두 가지로 쓴다. 뒤로가기는router.back()이고, 앱 안 기록이 없으면router.replace("/")로 홈에 보낸다.shared/navigation/history.ts):history.length는 앱에 들어오기 전 기록까지 센다. WebView 첫 화면에서는 돌아갈 곳이 없어서 이 값을 쓸 수 없다. 그래서pushState/replaceState를 감싸history.state에 앱 안 이동 위치를 저장한다. Next도 같은 함수를 감싸지만 서로 이어서 호출해 충돌하지 않는다.//challenges/chats/my/login,/onboarding/notifications/invite/[code]/challenges/new/daily,/challenges/new/project/challenges/[id]?tab=intro|feed|members)/challenges/[id]/certifications/new/challenges/[id]/records,/challenges/[id]/results/challenges/[id]/chat/challenges/[id]/manage/certifications,/challenges/[id]/manage/requestsdocs/webview-app-guide.md의 딥링크 예시를/challenges/...로 수정했다.확인 사항
type(scope): 제목)을 따른다pnpm lint/pnpm typecheck/pnpm build가 통과한다리뷰어에게
stretched(자체 여백 0)로 둔다. 코드는stretched를 끄고 JDS 기본 여백(margin-lg= 20px)을 써서, 보이는 결과는 같다.feedback/positive/alphaInverse/subtlest와positive/inverse/neutral에 해당하는 JDS CSS 변수를 그대로 쓴다.🤖 Generated with Claude Code