[chore] 스토리북 import 오류 수정 및 addon-ally 추가#32
Conversation
Registers the a11y addon in storybook/main.ts so contrast and axe rules can be reviewed in the Storybook UI. Co-authored-by: Cursor <cursoragent@cursor.com>
Pin storybook, react-vite, addon-docs, addon-vitest, and addon-a11y to the same version and add an npm overrides entry so nested deps resolve one storybook build. Prevents ERR_MODULE_NOT_FOUND for stale _node-chunks (e.g. lib-*.js) after partial upgrades. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 Walkthrough전체 변경사항Storybook을 10.3.6으로 업그레이드하고 접근성 애드온( 변경 사항Storybook 구성 업그레이드
사용자 기능 경로 마이그레이션
매니저 기능 경로 마이그레이션
추정 코드 리뷰 난이도🎯 2 (Simple) | ⏱️ ~10 분 관련 PR
제안 검토자
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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.
🧹 Nitpick comments (1)
storybook/stories/StoreWorkerListItem.stories.tsx (1)
13-13: ⚡ Quick win하드코딩된 색상을 Tailwind 토큰으로 변경하세요.
bg-[#efefef]대신 프로젝트에 등록된bg-bg-dark토큰을 사용해야 합니다.♻️ 제안하는 수정
- <div className="w-[320px] bg-[`#efefef`] p-3"> + <div className="w-[320px] bg-bg-dark p-3">Based on learnings: 프로젝트에서는 TSX 파일에 색상을 하드코딩하지 않고 tailwind.config.js에 등록된 토큰을 사용합니다.
#efefef는bg-bg-dark 토큰으로 대체해야 합니다.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@storybook/stories/StoreWorkerListItem.stories.tsx` at line 13, 하드코딩된 색상 bg-[`#efefef`]이 사용되고 있으니 StoreWorkerListItem.stories.tsx의 해당 div 클래스에서 bg-[`#efefef`]을 프로젝트 토큰 bg-bg-dark로 교체하세요; 즉 JSX의 <div className="w-[320px] bg-[`#efefef`] p-3"> (찾기 기준: 클래스 문자열에 bg-[`#efefef`] 포함)에서 bg-[`#efefef`] 항목만 제거하고 bg-bg-dark를 추가해 Tailwind 토큰을 사용하도록 변경하면 됩니다.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@storybook/stories/StoreWorkerListItem.stories.tsx`:
- Line 13: 하드코딩된 색상 bg-[`#efefef`]이 사용되고 있으니 StoreWorkerListItem.stories.tsx의 해당
div 클래스에서 bg-[`#efefef`]을 프로젝트 토큰 bg-bg-dark로 교체하세요; 즉 JSX의 <div
className="w-[320px] bg-[`#efefef`] p-3"> (찾기 기준: 클래스 문자열에 bg-[`#efefef`] 포함)에서
bg-[`#efefef`] 항목만 제거하고 bg-bg-dark를 추가해 Tailwind 토큰을 사용하도록 변경하면 됩니다.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 0b9735ab-10ca-45b5-a69f-c5bc37b54db6
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (10)
package.jsonstorybook/main.tsstorybook/stories/AppliedStoreCard.stories.tsxstorybook/stories/AppliedStoreList.stories.tsxstorybook/stories/HomeScheduleCalendar.stories.tsxstorybook/stories/MonthlyDateCell.stories.tsxstorybook/stories/StoreWorkerListItem.stories.tsxstorybook/stories/TodayWorkerList.stories.tsxstorybook/stories/WorkingStoresCard.stories.tsxstorybook/stories/WorkspaceChangeList.stories.tsx
|
커버리지 빨간맛 |
limtjdghks
left a comment
There was a problem hiding this comment.
storybook import 수정하는걸 까먹었습니다. 죄송합니닷...
ID
변경 내용
구현 사항
접근성 애드온 도입
Storybook 의존성 정합성 확보
스토리 import 경로 정리
검증
참고 사항
Summary by CodeRabbit
릴리스 노트
Chores
New Features
Refactor