Skip to content

[Feat/#35] 만다르트 공통 컴포넌트#48

Merged
Leeyoonji23 merged 16 commits intodevelopfrom
feat/#35/common-mandal
Jul 7, 2025
Merged

[Feat/#35] 만다르트 공통 컴포넌트#48
Leeyoonji23 merged 16 commits intodevelopfrom
feat/#35/common-mandal

Conversation

@Leeyoonji23
Copy link
Copy Markdown
Contributor

@Leeyoonji23 Leeyoonji23 commented Jul 6, 2025

💡 Summary

close #35

✅ Tasks

  • 만다라트 그리드 레이아웃 구현 (3x3)
  • 메인 목표와 서브 목표 컴포넌트 구현
  • 목표 선택 기능 구현
  • 목표 주기(DAILY/WEEKLY/ONCE) 타입 추가
  • 스토리북 설정 및 예시 추가
  • 목 데이터 구현

👀 To Reviewer

  • 만다라트 컴포넌트의 재사용성을 고려하여 구현했습니다.
  • 중앙(position: 4)에는 메인 목표가 위치하고, 나머지 8칸에는 서브 목표가 위치합니다.
  • 서브 목표 클릭 시 선택 상태가 토글되며, 선택된 목표는 파란색 테두리로 표시됩니다.
  • 각 목표는 DAILY/WEEKLY/ONCE의 주기를 가질 수 있습니다. 서버 명세 확인하러 가기
  • 스토리북에서 예시를 확인할 수 있습니다!

📸 Screenshot

스크린샷 2025-07-06 오후 11 29 10

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 6, 2025

빌드 결과

빌드 성공 🎉

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 6, 2025

🎨 스토리북 배포 완료!

👉 스토리북 미리보기

변경된 컴포넌트의 디자인을 확인해주세요.

Copy link
Copy Markdown
Collaborator

@jisooooooooooo jisooooooooooo left a comment

Choose a reason for hiding this comment

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

확인했습니당 ~~
빡센 만다르트 박스들 기깔나게 만드셨네요🤩
머지할 때 테스트한 부분만 지우고 올려주심 될 거 같아욤!


const squares = Array(9)
.fill(null)
.map((_, index) => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

p3) map 로직이 살짝 길다는 생각이 들어서 함수 분리하는 것도 좋아보여요~!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

좋아요! 길어서 가독성이 떨어진다고 생각은 하고 있었는데, 해당 내용 반영해서 renderSquare 함수로 분리했습니다!
더해서, Index===4 인게 맘에 안들어서 (...) 상수로 분리 했으니 참고 부탁드려요~!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

아주 좋슴당😜

export const grid = style({
display: 'grid',
gridTemplateColumns: 'repeat(3, 1fr)',
gap: '1.9rem',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

p2) 피그마 상에서 gap이 16px인 것 같은데 제가 잘못 봤을 수도 있어서 확인 한 번 부탁드려욤

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

공통컴포넌트하고 뷰 상 gap 이 달라서 그랬나봐요! 뷰 기준으로 수정 완료했습니다~!

Copy link
Copy Markdown
Contributor

@shinjigu shinjigu left a comment

Choose a reason for hiding this comment

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

이번 만다라트 공통 컴포넌트 정말 수고하셨어요 !! 꼼꼼하게 잘 만들어주셔서 좋아요 🫶🏻

return <div className={styles.squareContainer}>{children}</div>;
};

export const Square = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

p4) Fast Refresh 경고가 Square를 객체로 export 해서 발생하는 것 같아요 각 컴포넌트를 개별 export 하고 index.ts에서 묶어서 export 하는건 어떻게 생각하시나요 !?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

굿굿 좋습니다. 반영완료했습니다~~!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 7, 2025

🎨 스토리북 배포 완료!

👉 스토리북 미리보기

변경된 컴포넌트의 디자인을 확인해주세요.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 7, 2025

빌드 결과

빌드 성공 🎉

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 7, 2025

🎨 스토리북 배포 완료!

👉 스토리북 미리보기

변경된 컴포넌트의 디자인을 확인해주세요.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 7, 2025

빌드 결과

빌드 성공 🎉

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 7, 2025

🎨 스토리북 배포 완료!

👉 스토리북 미리보기

변경된 컴포넌트의 디자인을 확인해주세요.

@Leeyoonji23 Leeyoonji23 merged commit fd6bccc into develop Jul 7, 2025
4 checks passed
@jisooooooooooo jisooooooooooo deleted the feat/#35/common-mandal branch September 11, 2025 00:45
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.

[Feature]: 만다라트 공통 컴포넌트

3 participants