Skip to content

Conversation

@Chiman2937
Copy link
Member

@Chiman2937 Chiman2937 commented Dec 24, 2025

📝 변경 사항

알림페이지 Header를 제작했습니다.

image

🔗 관련 이슈

Closes #


🧪 테스트 방법

  • 수동 테스트 검증(로컬 환경)
  • 유닛 테스트 검증
  • 통합 테스트 검증

📸 스크린샷 (선택)


📋 체크리스트

  • 관련 문서를 업데이트했습니다 (필요한 경우)
  • 테스트를 추가/수정했습니다 (필요한 경우)
  • Breaking change가 있다면 명시했습니다

💬 추가 코멘트


CodeRabbit Review는 자동으로 실행되지 않습니다.

Review를 실행하려면 comment에 아래와 같이 작성해주세요

@coderabbitai review

Summary by CodeRabbit

새로운 기능

  • 알림 페이지에 고정형 헤더 네비게이션이 추가되었습니다. 페이지 상단에 항상 표시되는 헤더에는 "알림"이라는 명확한 페이지 제목과 함께 이전 페이지로 돌아가는 뒤로가기 버튼이 포함되어 있습니다. 사용자는 페이지를 스크롤하면서도 언제든지 뒤로가기 버튼을 클릭하여 이전 페이지로 쉽게 이동할 수 있습니다. 이를 통해 알림 페이지의 전반적인 사용 편의성과 네비게이션 경험이 향상되었습니다.

✏️ Tip: You can customize this high-level summary in your review settings.

@Chiman2937 Chiman2937 added the Ready For Review! 리뷰 받을 준비가 되었습니다. label Dec 24, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 24, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

요약

알림 페이지에 새로운 NotificationHeader 컴포넌트를 추가했습니다. 이 컴포넌트는 뒤로가기 버튼이 있는 sticky 헤더를 렌더링하며, 알림 페이지에 통합되어 공개 API로 내보내집니다.

변경사항

응집도 / 파일 변경 요약
새로운 NotificationHeader 컴포넌트
src/components/pages/notification/notification-header/index.tsx
'use client' 지시어를 사용하는 클라이언트 컴포넌트. sticky 네비게이션 바에 chevron-left-2 아이콘(뒤로가기 버튼)과 "알림" 제목을 포함. 아이콘 클릭 시 router.back() 호출.
모듈 내보내기 확장
src/components/pages/notification/index.ts
NotificationHeader를 notification-header에서 재내보내기하여 공개 API 확대.
페이지 컴포넌트 업데이트
src/app/notification/page.tsx
NotificationHeader를 import하여 렌더링 출력에 <NotificationHeader /> 삽입. 기존 컴포넌트 변경 없음.

예상 코드 리뷰 노력

🎯 2 (Simple) | ⏱️ ~10 분

제안된 검토자

  • wooktori
  • yoorli

🐰 뒤로가기 버튼 하나, 알림 헤더 둘~
sticky한 위치에서 사용자를 맞이하고,
router.back()으로 부드럽게 돌아가게~
새로운 헤더가 탄생했어, 얍! 🎉

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed PR 제목은 주요 변경 사항인 알림 페이지 헤더 제작을 명확하고 간결하게 설명하고 있습니다.
Description check ✅ Passed PR 설명은 필수 섹션을 포함하고 있으며, 변경 사항에 대한 설명과 스크린샷을 제공하고 있습니다.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot requested a review from wooktori December 24, 2025 11:23
@github-actions
Copy link

github-actions bot commented Dec 24, 2025

🎨 Storybook Report

변경 사항이 없습니다

모든 Story가 이전 빌드와 동일합니다.

Status Storybook Build Log Updated (UTC)
✅ Unchanged View Storybook View Build 2025-12-24 23:42:29

@github-actions
Copy link

github-actions bot commented Dec 24, 2025

🎭 Playwright Report

E2E Test가 성공적으로 완료되었습니다.

Test 요약 내용을 확인해주세요.

Status Build Log Updated (UTC)
✅ Ready View Build 2025-12-24 23:42:48

📊 Test Summary

  • ✅ Passed: 3
  • ❌ Failed: 0
  • ⏱️ Duration: 25.9s

📜 Test Details

✅ Passed Tests (3)
  • profile.test.ts (3)
    • [chromium] 존재하지 않는 프로필 페이지로 접속 시 404 redirect 되는 지 테스트
    • [firefox] 존재하지 않는 프로필 페이지로 접속 시 404 redirect 되는 지 테스트
    • [webkit] 존재하지 않는 프로필 페이지로 접속 시 404 redirect 되는 지 테스트

@github-actions
Copy link

github-actions bot commented Dec 24, 2025

📊 Coverage Report

Status Build Log Updated (UTC)
✅ Ready View Build 2025-12-24 23:41:37

📉 #251main에 병합하면 coverage가 0.13% 감소합니다.

Coverage 요약

@@             Coverage Diff             @@
##             main     #251       +/-   ##
===========================================
- Coverage   38.07%   37.94%    -0.13%     
===========================================
  Files         184      185        +1     
  Lines        7922     7948       +26     
  Branches      359      360        +1     
===========================================
  Hits         3016     3016         0     
+ Misses       4906     4932       +26     

영향받은 파일

이 PR로 영향받은 파일이 없습니다

수정된 모든 파일이 현재 coverage를 유지했습니다.

@github-actions
Copy link

github-actions bot commented Dec 24, 2025

🚀 PR Preview Report

Build가 성공적으로 완료되었습니다.

Preview에서 변경사항을 확인하세요.

Status Preview Build Log Updated (UTC)
✅ Ready Visit Preview View Logs 2025-12-24 23:42:49

@Chiman2937
Copy link
Member Author

@coderabbitai review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 24, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
src/components/pages/notification/notification-header/index.tsx (1)

14-25: 의미론적 HTML 개선을 고려하세요.

현재 구조는 작동하지만, 뒤로가기 버튼을 실제 <button> 엘리먼트로 감싸는 것이 더 나은 접근성과 의미론적 HTML을 제공합니다. 이렇게 하면 브라우저의 기본 키보드 동작을 자동으로 얻을 수 있습니다.

🔎 대안 구현
  return (
    <nav className='bg-mono-white flex-center sticky top-14 z-10 h-12 border-b-1 border-gray-200'>
-     <Icon
-       id='chevron-left-2'
-       className='absolute left-5 size-6 cursor-pointer rounded-md text-gray-500 transition-colors duration-300 hover:bg-gray-100 active:bg-gray-100'
-       aria-label='뒤로 가기'
-       role='button'
-       onClick={handleHistoryBackClick}
-     />
+     <button
+       onClick={handleHistoryBackClick}
+       className='absolute left-5 cursor-pointer rounded-md p-0 transition-colors duration-300 hover:bg-gray-100 active:bg-gray-100'
+       aria-label='뒤로 가기'
+     >
+       <Icon
+         id='chevron-left-2'
+         className='size-6 text-gray-500'
+       />
+     </button>
      <h2 className='text-text-md-bold text-gray-800'>알림</h2>
    </nav>
  );
📜 Review details

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2516ced and 08a941d.

📒 Files selected for processing (3)
  • src/app/notification/page.tsx
  • src/components/pages/notification/index.ts
  • src/components/pages/notification/notification-header/index.tsx
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-12-17T09:40:37.733Z
Learnt from: HopeFullee
Repo: WeGo-Together/WeGo_FrontEnd PR: 205
File: src/components/pages/post-meetup/fields/cap-field/index.tsx:47-47
Timestamp: 2025-12-17T09:40:37.733Z
Learning: In TanStack Form with Zod validation, when field.state.meta.isValid is false, field.state.meta.errors is guaranteed to have at least one entry. Therefore, in an isInvalid check defined as field.state.meta.isTouched && !field.state.meta.isValid, safely access field.state.meta.errors[0] without extra null/empty checks. This guideline applies to TSX form fields under src/components/pages (and similar forms using the same pattern).

Applied to files:

  • src/components/pages/notification/notification-header/index.tsx
🧬 Code graph analysis (1)
src/app/notification/page.tsx (2)
src/components/pages/notification/notification-header/index.tsx (1)
  • NotificationHeader (6-26)
src/components/pages/notification/index.ts (1)
  • NotificationHeader (2-2)
🔇 Additional comments (4)
src/components/pages/notification/index.ts (1)

2-2: LGTM! 표준 re-export 패턴입니다.

NotificationHeader를 공개 API로 노출하는 깔끔한 구현입니다.

src/app/notification/page.tsx (2)

3-3: LGTM! import가 올바르게 추가되었습니다.

NotificationHeader 컴포넌트를 올바르게 import하고 있습니다.


13-13: LGTM! 헤더 배치가 적절합니다.

NotificationHeader가 페이지 상단에 올바르게 렌더링되고 있습니다.

src/components/pages/notification/notification-header/index.tsx (1)

1-4: LGTM! import가 적절합니다.

필요한 의존성들이 올바르게 import되어 있으며, 'use client' 지시어도 적절히 사용되었습니다.

@Chiman2937 Chiman2937 merged commit 13e907e into main Dec 24, 2025
7 checks passed
@Chiman2937 Chiman2937 deleted the chiyoung-feat/notification-header branch December 24, 2025 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready For Review! 리뷰 받을 준비가 되었습니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants