Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(client): 캘린더 컴포넌트 구현 #118

Open
wants to merge 18 commits into
base: develop
Choose a base branch
from

Conversation

gwagjiug
Copy link
Member

@gwagjiug gwagjiug commented Jan 18, 2025

📌 Summary

📚 Tasks

  • info버튼의 border 값 조정
  • info 버튼 클릭 이벤트 추가
  • 캘린더 컴포넌트 구현
  • 포맷팅 함수 구현

👀 To Reviewer

border 에 그라데이션 효과를 넣을 수 없어, backgroundImage 속성을 이용하여 세부 조정하였습니다.

자세한 내용은 코드리뷰로 남길게요 정말 고민 많이하긴 했는데, 불필요한 로직은 없는지 한번 검토해주시면 감사하겠습니다.

📸 Screenshot

image

@gwagjiug gwagjiug added ✨ Feature 기능 개발 지욱 🥁 지욱 labels Jan 18, 2025
@gwagjiug gwagjiug self-assigned this Jan 18, 2025
@gwagjiug gwagjiug requested a review from a team as a code owner January 18, 2025 04:34
@gwagjiug gwagjiug requested review from seueooo, m2na7, daahyunk and bongtta and removed request for a team January 18, 2025 04:34
@gwagjiug gwagjiug linked an issue Jan 18, 2025 that may be closed by this pull request
Copy link

github-actions bot commented Jan 18, 2025

🏴‍☠️ Storybook 확인: 🔗 https://677bd6bc4909f2f48f4e0f42-pluaauagzn.chromatic.com/

@gwagjiug gwagjiug marked this pull request as draft January 18, 2025 07:01
@gwagjiug gwagjiug marked this pull request as ready for review January 18, 2025 18:58
@m2na7 m2na7 changed the title Feat(Client): 캘린더 컴포넌트 구현 Feat(client): 캘린더 컴포넌트 구현 Jan 18, 2025
Copy link
Member Author

@gwagjiug gwagjiug left a comment

Choose a reason for hiding this comment

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

의논하고 싶은 부분 혹은 얘기하고 싶은 부분들 코멘트 남겼습니다!

Comment on lines +21 to +24
const dateItems = weekDays.map((day, id) => ({
...day,
...checkFestivalDateStatus(festivalDateMap, id, selectedDayNumeId),
}));
Copy link
Member Author

Choose a reason for hiding this comment

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

dateItems 배열은 기존의 날짜 정보(date, dayKo)에 **선택 여부(isSelected)**와 축제일 여부(hasFestivalDate) 같은 추가적인 정보를 포함하는 객체인데

네이밍 뭐가 적절할까요..?

Copy link
Member

Choose a reason for hiding this comment

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

dateDetails이 적절해보여요

Comment on lines +74 to +84
isClicked: {
true: {
border: '2.5px solid transparent',
backgroundImage: `
radial-gradient(circle at bottom, #ffffff 100%, rgba(255, 255, 255, 0) 100%),
linear-gradient(to top,rgb(234, 255, 175) 30%,rgb(174, 225, 32) 100%)
`,
backgroundOrigin: 'border-box',
backgroundClip: 'content-box, border-box',
transition: 'background-image 0.4s ease, border-color 0.4s ease',
},
Copy link
Member Author

Choose a reason for hiding this comment

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

InfoButton의 border 그라데이션 스타일을 위한 코드입니다 border 토큰화 해야할까요??

Copy link
Member

Choose a reason for hiding this comment

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

우선은 지금 상태로 유지하면 될 것 같아요!

ERR_MESSAGE: '',
};

const weekData = WEEKDAYS;
Copy link
Member Author

Choose a reason for hiding this comment

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

이거 @bongtta 랑 완전히 겹치는 상수 데이터를 쓰고있어서 shared 로 옮기고, 채은님이 사용하시던 페이지에서도 제가 수정완료 했습니다!

Comment on lines +16 to +18
if (!year || !month) {
return `${YEAR_MESSAGE.ERR_MESSAGE}`;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

에러 메시지 필요할까요?? 궁금합니다. 인포버튼 클릭했을 때 밑에 텍스트가 렌더링 되는 부분에서 혹시 몰라서 우선 대체로 에러 메시지를 띄울 수 있도록 설정해두어야 하나? 하는데 굳이 필요없을 것 같기도해요

Copy link
Member

Choose a reason for hiding this comment

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

에러 메세지에 대한 기준이 아직 명확하지 않으니 우선은 ' '로 구현해주신대로 유지합시다!
앱잼기간동안 에러는 ErrorBoundary로 공통으로 처리해요 !

Copy link
Member Author

Choose a reason for hiding this comment

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

이건 채은이랑 마음 잘맞음 이슈 때문에 기존 파일 새롭게 그냥 추가해서 올린겁니다~ 기존 develop 에도 존재하는 파일을 그냥 복붙해서 올린거에요~

Copy link
Member

@m2na7 m2na7 left a comment

Choose a reason for hiding this comment

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

구조에대해서 많이 고민하신게 느껴집니다 고생많으셨어요 ~! 👍👍

Comment on lines +21 to +24
const dateItems = weekDays.map((day, id) => ({
...day,
...checkFestivalDateStatus(festivalDateMap, id, selectedDayNumeId),
}));
Copy link
Member

Choose a reason for hiding this comment

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

dateDetails이 적절해보여요

Comment on lines +74 to +84
isClicked: {
true: {
border: '2.5px solid transparent',
backgroundImage: `
radial-gradient(circle at bottom, #ffffff 100%, rgba(255, 255, 255, 0) 100%),
linear-gradient(to top,rgb(234, 255, 175) 30%,rgb(174, 225, 32) 100%)
`,
backgroundOrigin: 'border-box',
backgroundClip: 'content-box, border-box',
transition: 'background-image 0.4s ease, border-color 0.4s ease',
},
Copy link
Member

Choose a reason for hiding this comment

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

우선은 지금 상태로 유지하면 될 것 같아요!

Comment on lines +16 to +18
if (!year || !month) {
return `${YEAR_MESSAGE.ERR_MESSAGE}`;
}
Copy link
Member

Choose a reason for hiding this comment

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

에러 메세지에 대한 기준이 아직 명확하지 않으니 우선은 ' '로 구현해주신대로 유지합시다!
앱잼기간동안 에러는 ErrorBoundary로 공통으로 처리해요 !

Comment on lines +74 to +76
};
// isSelected 처리 함수
export const checkFestivalDateStatus = (
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
};
// isSelected 처리 함수
export const checkFestivalDateStatus = (
};
// isSelected 처리 함수
export const checkFestivalDateStatus = (

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발 지욱 🥁 지욱
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: 타임테이블 캘린더 컴포넌트 제작
2 participants