fix(web): 만족도 조사 문구 교체 및 KST 기준 노출 기간 적용#478
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Walkthrough이 변경 사항은 설문 모달 컴포넌트의 시각적 재구성과 설정 로직 개선으로 이루어져 있습니다. 첫째, SurveyModal.tsx에서는 기존의 구조화된 마크업을 이미지 기반의 커스텀 UI로 교체했으며, Next.js Image 컴포넌트를 활용하여 배경 벡터, 로고, 체크박스 시각 요소를 추가했습니다. 둘째, useSurveyModalStore.ts에서는 한국 표준시(KST) 기반의 설문 기간 상수(SURVEY\_START\_AT\_KST, SURVEY\_END\_AT\_KST)를 도입하여 모달 표시 시간 범위를 관리하도록 변경했습니다. 기존의 닫기 로직과 component 인터페이스는 유지되었습니다. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 상세 변경 사항1. SurveyModal 컴포넌트 UI 재구성
2. 설문 URL 상수화
3. 설문 기간 관리 로직 도입
4. 기존 동작 보존
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
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)
apps/web/src/components/modal/SurveyModal.tsx (1)
103-103: 3) 노출 기간 문구는 기간 상수와 단일 소스로 묶는 것을 권장합니다.Line 103의 하드코딩 문구와
apps/web/src/lib/zustand/useSurveyModalStore.ts의 기간 상수가 분리되어 있어, 다음 수정 시 한쪽만 변경되면 실제 노출 조건과 안내 문구가 어긋날 수 있습니다.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/web/src/components/modal/SurveyModal.tsx` at line 103, The hardcoded display period string in SurveyModal.tsx should be replaced with the single source of truth from the survey store: import the period constant exported by apps/web/src/lib/zustand/useSurveyModalStore (e.g. the exported display period/DATE_RANGE constant) and use it in the JSX instead of the literal "2026년 3월 14일~ 3월 31일"; ensure the imported constant is formatted the same way the UI expects (apply any existing formatter or locale function used elsewhere) so the label stays consistent with the actual exposure logic in useSurveyModalStore.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@apps/web/src/components/modal/SurveyModal.tsx`:
- Line 103: The hardcoded display period string in SurveyModal.tsx should be
replaced with the single source of truth from the survey store: import the
period constant exported by apps/web/src/lib/zustand/useSurveyModalStore (e.g.
the exported display period/DATE_RANGE constant) and use it in the JSX instead
of the literal "2026년 3월 14일~ 3월 31일"; ensure the imported constant is formatted
the same way the UI expects (apply any existing formatter or locale function
used elsewhere) so the label stays consistent with the actual exposure logic in
useSurveyModalStore.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 89cd0c1d-d7ba-412f-a619-aca5b49cf719
⛔ Files ignored due to path filters (4)
apps/web/public/images/survey-modal/arrow-right.svgis excluded by!**/*.svgapps/web/public/images/survey-modal/bg-vector.svgis excluded by!**/*.svgapps/web/public/images/survey-modal/checkbox-circle.svgis excluded by!**/*.svgapps/web/public/images/survey-modal/top-logo.svgis excluded by!**/*.svg
📒 Files selected for processing (2)
apps/web/src/components/modal/SurveyModal.tsxapps/web/src/lib/zustand/useSurveyModalStore.ts
변경 사항
https://forms.gle/BtdziNrV7gRPLpDt52026-03-14 00:00:00 KST~2026-03-31 23:59:59 KST수정 파일
apps/web/src/components/modal/SurveyModal.tsxapps/web/src/lib/zustand/useSurveyModalStore.ts검증
pnpm --filter @solid-connect/web run lint:checkpnpm --filter @solid-connect/web run typecheck:cici:check + next build통과