Repository navigation
[Feat/#93] 홈 화면 뷰 구현 - #98
Merged
Merged
Conversation
|
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 |
sangrae2325
marked this pull request as ready for review
October 5, 2026 03:25
github-actions
Bot
requested review from
jjunh33,
leegain1,
tnals0924 and
xeoxxn
October 5, 2026 03:25
# Conflicts: # docs/conventions/wds-component-usage.md
# Conflicts: # docs/conventions/wds-component-usage.md # src/features/bililge/components/BililgeItemCard.tsx # src/features/home/HomeScreen.tsx
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.
#️⃣연관된 이슈
🎯 해결하려는 문제가 무엇인가요?
홈(
/)이 준비 중 문구와 챗봇 버튼뿐이다. Figma 홈 3종 — 대여·신청 행사 2건 이하(3147:146240), 3건 이상(3147:146297), empty(3562:163866) — 의 뷰를 옮긴다.❓ 왜 해결해야 하나요?
홈은 앱을 열면 처음 보는 화면이고 공지·행사·빌릴게·사물함·학생회비로 들어가는 입구다. 화면 이동은 다른 화면들이 갖춰진 뒤 별도 이슈에서 한 번에 연결하기로 하고, 이번엔 뷰를 먼저 맞춘다.
실제뷰
⭐ 어떻게 해결했나요?
목데이터 3상태 —
constants/homeMock.ts의MOCK_HOME_STATE를"few"·"many"·"empty"로 바꾸면 Figma 3종을 볼 수 있다.헤더 —
stream로고, 설정·검색·알림, 알림 있을 때 점(WDSPushBadge). FigmaTop Navigation의State=Home이라ScreenHeaderdisplay variant의title이 글자 대신 로고도 받게 넓혔다.sticky로 두고 스크롤하면 배경을 깐다.공지 배너 (화면설계서 반영)
3562:163869). 공지마다 그림을 받지 않고 종류별 그림·배경색을 쓴다(NOTICE_TEMPLATES표 하나)섹션
n건 더보기, 기한 지나면 빨간 부제목. 물품 줄은BililgeItemCard재사용(surface={false},subtitleTone="negative"추가, 기본값은 기존 그대로)n건 더보기HomeEmptyState(그림은 빌릴게·행사 폴더의 같은 도형 재사용)학생회비 납부하기+ ↗, 나머지는 상태 배지(ContentBadge)px 임의값 규칙 적용 —
component-convention.md에 "크기·위치·그림자" 규칙을 새로 넣고 홈부터 적용했다size-10.5,top-3.75,-my-15), 기준 크기·그림자는@theme토큰(h-notice-banner,shadow-spread-small,drop-shadow-chatbot-fab), 그라데이션은 이름 붙인 유틸(bg-archive-cta)🧩 이 PR의 한계 & 트레이드오프
homeMock.ts하나로 그린다⛓️ 기존 기능에 미치는 영향
ScreenHeader: display varianttitle이 문자열·토글 외에 요소도 받는다. 토글 판별을 "문자열이 아니면"에서options·activeIndex유무로 바꿨다. 빌릴게·행사·공지·피드백 헤더는 그대로다BililgeItemCard:surface·subtitleToneprop 추가, 기본값이 기존 모양이라 빌릴게 화면은 그대로다useScreenHeader)을 쓰지 않는다index.css에 크기·그림자 토큰(--spacing-notice-banner,--shadow-spread-small,--drop-shadow-chatbot-fab)과bg-archive-cta유틸을 추가했다component-convention.md에 크기·위치·그림자 규칙,coding-style.md에 홈 헤더 예외를 적었다🔀 Edge Case & 실패 시나리오
📋 검토한 대안과 선택 이유
sticky헤더로 바꿨다BililgeItemCard에 prop 2개를 더해 재사용했다💬 리뷰 포인트
[c]공지 배너 자동 슬라이드(HomeNoticeBanner.tsx) — 복제본 순간 이동, 누르는 동안 정지 처리[c]ScreenHeadertitle을 요소까지 받게 넓힌 것 — 로고 전용 prop으로 좁히는 게 나을지[a]홈만 헤더를 스크롤 영역 안에 두는 구조