[FIX] 5차 QA 수정사항 반영#358
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthrough홈페이지 및 채용 앱의 타입 선언 추가와 함께 드래이트피커 포탈 구현, 세션 카드 및 폼 링크의 레이아웃 조정 변경사항입니다. 주로 DOM 포탈 위치 지정과 폼 요소의 최소 너비 제약 추가가 포함됩니다. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
apps/recruit/global.d.ts (1)
1-2: 선택사항: 중복 타입 선언 통합 고려
apps/homepage/global.d.ts에 동일한 선언이 존재합니다. 모노레포 구조에서 공통 타입 선언은 다음 방식으로 통합할 수 있습니다:옵션 1: 루트 레벨에
types/global.d.ts생성 후 각 앱의tsconfig.json에서 참조
옵션 2:packages/typescript-config패키지에 공통 타입 정의 추가이렇게 하면 향후 추가 asset 타입(
.svg,.png등) 선언 시 한 곳에서만 관리할 수 있습니다.📦 통합 예시: 루트 레벨 타입 선언
루트에
types/global.d.ts생성:declare module '*.css'; declare module '*.scss'; declare module '*.svg'; declare module '*.png'; declare module '*.jpg';각 앱의
tsconfig.json에서 참조:{ "extends": "../../packages/typescript-config/base.json", + "include": ["../../types/global.d.ts", "**/*.ts", "**/*.tsx"], "exclude": ["node_modules"] }참고: TypeScript Handbook - Modules
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/recruit/global.d.ts` around lines 1 - 2, The duplicate ambient module declarations (declare module '*.css'; declare module '*.scss';) should be centralized: create a single shared type file (e.g., types/global.d.ts) or add them to the packages/typescript-config common definitions, then remove the per-app duplicates; update each app's tsconfig to include or reference the shared declarations (via "typeRoots" or "include"/"references") so the unique symbols (declare module '*.css' and declare module '*.scss') are provided from one location and no longer re-declared in the app-level global.d.ts files.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@apps/homepage/src/app/`(with-header)/mypage/attendance/_components/SessionCard.tsx:
- Line 158: Replace the invalid Tailwind class "wrap-break-words" used in the
SessionCard component (instances in the paragraph elements around the body text)
with the correct Tailwind utility for overflow-wrap as suggested (use
"wrap-break-word"); update both occurrences (the class on the <p> in
SessionCard.tsx and the other occurrence nearby) so the text properly wraps and
long strings do not overflow.
---
Nitpick comments:
In `@apps/recruit/global.d.ts`:
- Around line 1-2: The duplicate ambient module declarations (declare module
'*.css'; declare module '*.scss';) should be centralized: create a single shared
type file (e.g., types/global.d.ts) or add them to the
packages/typescript-config common definitions, then remove the per-app
duplicates; update each app's tsconfig to include or reference the shared
declarations (via "typeRoots" or "include"/"references") so the unique symbols
(declare module '*.css' and declare module '*.scss') are provided from one
location and no longer re-declared in the app-level global.d.ts files.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: bcd6753a-379c-4144-be0d-b69545f0a589
📒 Files selected for processing (6)
apps/homepage/global.d.tsapps/homepage/src/app/(with-header)/(with-footer)/project/add-project/_components/PeriodField.tsxapps/homepage/src/app/(with-header)/mypage/attendance/_components/SessionCard.tsxapps/homepage/src/app/layout.tsxapps/recruit/global.d.tspackages/ui/src/components/form/FormLink.tsx
DandelionQZ
left a comment
There was a problem hiding this comment.
확인했습니다 ~~ good good
ISSUE 🔗
close #357
What is this PR? 🔍
(root) css import 오류 수정
모든 css import문에 빨간줄로 가져오기 오류가 뜨던 문제를 해결했습니다.
homepage, recruit 두 app에 모두 발생하던 문제라서 homepage, recruit 내부 루트에 전역 타입 선언 파일인
global.d.ts파일을 생성하고 그 안에 css, scss를 명시적으로 선언해두었어요!(root) FormLink 컴포넌트 width 밖으로 텍스트가 넘어가는 문제 수정
5차 QA 프로젝트 페이지 확인 중 발견한 FormLink 컴포넌트의 텍스트가 컴포넌트 자체 width를 넘어가는 문제를 해결했습니다.
min-w-0을 추가해서 부모 컨테이너 내부에서만 텍스트가 표시되도록 수정했습니다.
프로젝트 추가/수정 페이지 datepicker portal 추가
프로젝트 추가/수정 페이지에서 사용되는 PeriodField 컴포넌트 내 datepicker에 datepicker-portal를 추가해서 기존에 HeroMainBanner 컴포넌트 하단으로 datepicker가 잘려보이는 문제를 수정했습니다.
기존에 z-index를 datepicker용으로 더 높게 설정해두어도 자꾸
HeroMainBanner아래로 잘려보이는 문제가 발생했는데 그 이유를 알아보니HeroMainBanner에overflow:hidden속성이 설정되어있어서 그렇다고합니다.overflow: hidden이 해당 요소의 경계를 벗어나는 모든 자식 요소를 숨기는데, 그 속성 때문에 기존처럼 datepicker가 배너의 하단 경계선에 걸치게 되면 z-index와 상관없이 물리적으로 잘려 보이게 된다고하네요그렇다고 HeroMainBanner의
overflow: hidden속성을 없앨 수 없었기 때문에... 결론적으로 z-index만으로는 해결할 수 없는 문제였기에 최후의 방법으로 portal를 사용하게되었습니다. RootLayout와 PeriodField 내 datepicker에 portalId 설정해두었습니다.출석하기 SessionCard 속 세션설명, 세션장소 스타일 수정
기기 너비에 따라 세션설명, 세션 장소 스타일이 깨져보여서 이를 수정했습니다. 세션 설명, 세션 장소를 묶어주는 div의 전체적인 구조를 반응형에 따라 50:50으로 조절되도록 수정하고 사이 gap은 디자인에 맞춰 11px로 설정했어요
Screenshot 📷
css문 import 오류 수정
FormLink 컴포넌트 수정
datepicker HeroMainBanner 위로 올라오도록 수정
SessionCard 스타일 수정
Test Checklist ✔