Skip to content

fix: 결정 일기 캘린더가 오늘 날짜를 선택한 상태로 시작한다 - #251

Merged
gaeunee2 merged 1 commit into
devfrom
fix/250-diary-calendar-today
Sep 19, 2026
Merged

gaeunee2 merged 1 commit into
devfrom
fix/250-diary-calendar-today

Conversation

@gaeunee2

Copy link
Copy Markdown
Contributor

📌 관련 이슈

🏷️ PR 타입

  • ✨ 기능 추가 (Feat)
  • 🐛 버그 수정 (Fix)
  • ♻️ 리팩토링 (Refactor)
  • 🎨 스타일/마크업 변경 (Style)
  • 🔧 세팅/설정 (Chore)
  • 📝 문서 수정 (Docs)

🖥 관련 화면

  • 화면 ID: SCR-08 결정 일기 (캘린더)

📝 작업 내용

  • DiaryPage 의 selectedDate 초기값을 오늘 날짜로 둔다. 기존에는 undefined 라 캘린더 탭에 들어가도 상세 영역이 비어 있었고, 날짜를 한 번 눌러야 내용이 보였다.
  • 월을 넘기면 선택이 풀리는 기존 동작(onChangeMonth 에서 setSelectedDate(undefined))은 그대로 둔다.

viewMonth 초기값이 이미 new Date() 기준이라 같은 기준을 쓰도록 toDateKey 로 맞췄고, 서버에서 이미 5개만 오므로 별도 가공은 없다.

✅ 체크리스트

공통

  • 셀프 리뷰를 완료했습니다
  • pnpm lint / pnpm typecheck 를 통과했습니다
  • 브랜치명 컨벤션을 준수했습니다 ({이슈종류}/{이슈번호}-{기능명})
  • import에 @/ alias를 사용했습니다 (상대경로 ../../ 없음)
  • 폴더 컨벤션을 지켰습니다 (components/common · domain · feature 역할 구분)

UI / 스타일 변경 시

  • 모바일 우선(max-w-md 컨테이너)으로 확인했고, 데스크탑에서도 깨지지 않습니다
  • 색상·타이포에 디자인 토큰을 사용했습니다 (임의 hex 값 없음)

📎 기타 참고사항

DiaryCalendar 는 selectedDate 가 있으면 DiaryDateDetail 을 렌더하므로, 오늘 기록이 없는 날에는 상세 영역의 빈 상태가 그대로 보입니다. 날짜를 다시 누르면 선택이 해제되는 토글 동작도 그대로입니다.

🤖 Generated with Claude Code

캘린더 탭에 들어가면 selectedDate 가 undefined 라 상세 영역이 비어 있었고,
날짜를 한 번 눌러야 내용이 보였다. 들어가자마자 오늘 기록이 보이도록
초기값을 오늘로 둔다.

월을 넘기면 선택이 풀리는 기존 동작은 그대로 둔다.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 19, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Repository: Team-BRIFO/BRIFO-front/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 44856b96-71d0-49df-8158-eaa57368d6fd


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

@vercel

vercel Bot commented Sep 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
brifo-front Ready Ready Preview Sep 19, 2026 2:36pm UTC

@gaeunee2
gaeunee2 merged commit 023a97e into dev Sep 19, 2026
4 checks passed
@gaeunee2
gaeunee2 deleted the fix/250-diary-calendar-today branch September 19, 2026 14:56

This branch was successfully deployed

1 active deployment
Preview — ea551f04 Deployed Sep 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fix] 결정 일기 캘린더에 오늘 날짜가 선택되어 있지 않다

1 participant