-
Notifications
You must be signed in to change notification settings - Fork 2
[FIX][UHYU-432] 마이페이지 및 관리자 페이지 하단 여백 추가 #232
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Walkthrough전체 변경 사항은 일부 컴포넌트와 페이지의 CSS 클래스(특히 padding과 background color)를 수정하여 레이아웃의 여백과 색상을 조정한 것입니다. 코드의 로직, 상태, 핸들러, 렌더링 흐름에는 변화가 없으며, 오직 스타일 관련 코드만 변경되었습니다. Changes
Sequence Diagram(s)(해당 변경 사항은 스타일 및 레이아웃 조정에 한정되어 있어 시퀀스 다이어그램 생략) Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2분 Assessment against linked issues
Assessment against linked issues: Out-of-scope changes(요구사항과 무관한 기능적 코드 변경 없음) Possibly related PRs
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
src/pages/mypage/MyPageActivity.tsx (1)
48-49: 패딩 값 상수화 고려
pb-[10rem]과 같은 임의 값이 여러 페이지에 반복되고 있습니다. 디자인 시스템 또는 Tailwind preset 값(pb-40등)으로 통일하면 유지보수가 쉬워집니다.src/pages/mypage/MyPage.tsx (1)
55-56: 반복되는 패딩 값 Tailwind 프리셋으로 치환 제안다른 페이지에서도 동일한
pb-[10rem]값을 사용 중입니다. 커스텀 값 대신 Tailwind 스케일(pb-40등) 또는 테마 토큰으로 추출하면 코드 일관성과 가독성이 향상됩니다.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
src/features/mypage/components/ActivityBenefit.tsx(2 hunks)src/features/user/store/userStore.ts(1 hunks)src/pages/admin/AdminPage.tsx(1 hunks)src/pages/mypage/MyPage.tsx(1 hunks)src/pages/mypage/MyPageActivity.tsx(1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
src/**/*.{ts,tsx,js,jsx}
📄 CodeRabbit Inference Engine (.github/code_rabbit_rule.md)
src/**/*.{ts,tsx,js,jsx}: Event handler function names must start withhandle(e.g.,handleLoginClick)
General function names must start with a verb (e.g.,calculateAverage,validateEmail)
Boolean variable names must start withis,has, orcan(e.g.,isModalOpen,hasPermission)
Array or list variable names must be plural or end withList(e.g.,users,userList)
Constant variable names must use UPPER_SNAKE_CASE (e.g.,API_BASE_URL,MAX_RETRY_COUNT)
Conditional or loop nesting must not exceed 2 levels
Unnecessaryelseafterreturnshould be avoided
Nested ternary operators are prohibited
If JSDoc is present for a function/component/hook, it must be correct and complete
Files:
src/pages/admin/AdminPage.tsxsrc/features/mypage/components/ActivityBenefit.tsxsrc/features/user/store/userStore.tssrc/pages/mypage/MyPageActivity.tsxsrc/pages/mypage/MyPage.tsx
src/**/*.{tsx,jsx}
📄 CodeRabbit Inference Engine (.github/code_rabbit_rule.md)
Component internal order must be: 1) React hooks, 2) variable declarations, 3) useEffect, 4) function declarations, 5) return (with blank line before return)
Files:
src/pages/admin/AdminPage.tsxsrc/features/mypage/components/ActivityBenefit.tsxsrc/pages/mypage/MyPageActivity.tsxsrc/pages/mypage/MyPage.tsx
src/**/*.{ts,tsx}
📄 CodeRabbit Inference Engine (.github/code_rabbit_rule.md)
TypeScript types must be properly defined
Files:
src/pages/admin/AdminPage.tsxsrc/features/mypage/components/ActivityBenefit.tsxsrc/features/user/store/userStore.tssrc/pages/mypage/MyPageActivity.tsxsrc/pages/mypage/MyPage.tsx
src/{features,shared}/**/components/**/*.{tsx,jsx}
📄 CodeRabbit Inference Engine (.github/code_rabbit_rule.md)
Component and page file names must use PascalCase (e.g.,
LoginPage.tsx,UserCard.tsx)
Files:
src/features/mypage/components/ActivityBenefit.tsx
🧠 Learnings (4)
📓 Common learnings
Learnt from: pillow12360
PR: U-Final/U-Hyu-fe#0
File: :0-0
Timestamp: 2025-07-24T00:36:55.626Z
Learning: PR #71에서 PersistentBottomSheet를 MapDragBottomSheet로 교체하면서 BottomSheetContainer의 구조가 steps 배열에서 getCurrentStepContent() 함수 기반으로 변경됨. 각 스텝의 헤더 UI가 컴포넌트 내부로 이동하고, 3단계 드래그 시스템(collapsed/middle/expanded)이 도입됨.
📚 Learning: api 명세 변경 후 타입 개선 작업 시 고려사항: brandgrid 컴포넌트의 selectedbrands 타입을 number[] | string[]에서 number[]로 단순화 ...
Learnt from: pillow12360
PR: U-Final/U-Hyu-fe#0
File: :0-0
Timestamp: 2025-07-24T00:31:53.032Z
Learning: API 명세 변경 후 타입 개선 작업 시 고려사항: BrandGrid 컴포넌트의 selectedBrands 타입을 number[] | string[]에서 number[]로 단순화 가능하며, UserInfo 타입을 src/features/user/api/types.ts와 src/features/mypage/api/types.ts에서 통합 가능함
Applied to files:
src/features/mypage/components/ActivityBenefit.tsx
📚 Learning: applies to src/shared/store/**/*.{ts,tsx} : zustand state should only be used for global ui control ...
Learnt from: CR
PR: U-Final/U-Hyu-fe#0
File: .github/code_rabbit_rule.md:0-0
Timestamp: 2025-07-20T05:18:28.760Z
Learning: Applies to src/shared/store/**/*.{ts,tsx} : Zustand state should only be used for global UI control in `src/shared/store/`
Applied to files:
src/features/user/store/userStore.ts
📚 Learning: applies to src/{features,shared}/**/{hooks,api}/**/*.{ts,tsx} : hook, utility, and api file names mu...
Learnt from: CR
PR: U-Final/U-Hyu-fe#0
File: .github/code_rabbit_rule.md:0-0
Timestamp: 2025-07-20T05:18:28.760Z
Learning: Applies to src/{features,shared}/**/{hooks,api}/**/*.{ts,tsx} : Hook, utility, and API file names must use camelCase (e.g., `useUserQuery.ts`, `formatDate.ts`)
Applied to files:
src/features/user/store/userStore.ts
🔇 Additional comments (3)
src/features/user/store/userStore.ts (1)
195-195: 의미 있는 변경 없음마지막 줄 개행만 제거되어 기능적 차이가 없습니다.
src/pages/admin/AdminPage.tsx (1)
166-167: 페이지별 패딩 값 불일치 확인 필요AdminPage는
pb-28(≈7rem), MyPage 계열은pb-[10rem](10rem)을 사용하고 있습니다. 의도된 차이라면 주석으로 명시하고, 아니라면 동일 값으로 맞춰주세요.-<div className="space-y-6 pb-28"> +<div className="space-y-6 pb-[10rem]">src/features/mypage/components/ActivityBenefit.tsx (1)
39-41: 브랜드 컬러 적용 확인 완료
bg-purple-star를bg-primary로 교체하여 브랜드 메인 컬러로 일관성을 맞춘 점 👍
접근성 대비(명도 차)만 디자이너와 최종 확인하면 될 것 같습니다.Also applies to: 88-90
주요 작업 내용 (전체 요약)
관리자 페이지 하단 여백 추가
마이페이지 하단 여백 추가
마이페이지 혜택 아이콘 추가
현재 UI 캡처
체크리스트
npm run fix를 실행했나요?npm run test:coverage를 실행했나요?Summary by CodeRabbit