LC-3016 마이페이지 피드백 페이지 구현#2298
Draft
Conversation
- 네비게이션 아이템 타입을 UI와 분리 - activeStatus 조건문을 pathname 기반 비교 함수로 교체 - subItems로 중첩 메뉴 구조 확장 가능하도록 설계
- layout에 CategoryTabs 탭 추가 - 모바일: 기본, 데스크톱: full
- 더미데이터 사용 - 라이브 피드백 페이지에 배치
- LiveFeedbackPage 쿼리 파라미터 + fixed 오버레이 제거, router.push로 전환 - 상세 페이지 진입 시 모바일 NavBar, CategoryTabs 숨김 처리 - useMemo/useCallback으로 카드 리스트 불필요한 리렌더 방지
- flex-1 처리
Contributor
There was a problem hiding this comment.
Code Review
이번 PR은 미션 피드백 기능을 위해 서면/라이브 피드백 레이아웃과 페이지, FeedbackMissionCard 컴포넌트를 구현하고, NavBar에 서브 메뉴 기능을 추가했습니다. 리뷰를 통해 temp 폴더 사용 지양 및 도메인 기반 폴더 구조 준수, 매직 넘버와 매직 스트링의 상수화, 중첩 삼항 연산자 개선 등 스타일 가이드 준수 사항이 지적되었습니다. 또한 Next.js Image 컴포넌트 활용, CSS 클래스 오타 수정, 상세 페이지 판별 로직의 일관성 유지와 같은 코드 품질 개선 제안이 이루어졌습니다.
|
|
||
| import { Suspense } from 'react'; | ||
|
|
||
| import LiveFeedbackPage from '@/temp/feedback/LiveFeedbackPage'; |
Contributor
There was a problem hiding this comment.
현재 컴포넌트가 src/temp/ 폴더에서 임포트되고 있습니다. 저장소 가이드라인의 도메인 기반 폴더 구조 원칙에 따라, 해당 기능은 src/domain/challenge/feedback/ 폴더 내에 위치해야 합니다. temp 폴더 사용을 지양하고 올바른 도메인 폴더로 이동해 주세요.
References
- 도메인 기반 폴더 구조 가이드라인에 따라 모든 기능 코드는 domain/{도메인}/ 폴더 내에 배치되어야 합니다. (link)
| : pathname.endsWith('guides') | ||
| ? 'GUIDE' | ||
| : 'DASHBOARD'; | ||
| const isDetailPage = /\/feedback\/live\/[^/]+$/.test(pathname); |
Contributor
- 서면/라이브 피드백 페이지에서 추천 프로그램 섹션 노출 - 개별 미션 피드백 상세(/missions/.../feedback)는 기존대로 미노출 유지
- useSearchParams 활용
- 주 표시 바, 예약 시간표, 예약 내역 바
- 오타 수정 - 삼향연상자 지양 - 타입체크오류 수정
- 멘토 선택 Swiper 제거 - assignedMentor 추가 - Reservation mentor 필드 제거 - MentorSection, TimeSlotSection, ReservationInfoSection props 정리
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.
연관 작업