feat: 요일별 스트릭 표시용 CheckMarkGroup 컴포넌트 추가 - #24
Merged
Merged
Conversation
읽기 전용으로 체크 여부를 나열하는 UI(요일별 스트릭 등)가 필요해서 shared/ui/check-mark에 CheckMarkGroup 컴파운드 컴포넌트를 추가했다. 클릭 불가능한 순수 표시 컴포넌트라 실제 폼 컨트롤을 연상시키는 "Checkbox"라는 이름 대신 CheckMarkGroup으로 명명했다. Item이 isChecked를 Context로 하위 Indicator/Label에 전달해서 각 조각을 독립적으로 조합할 수 있게 했고, label은 선택 사항으로 뒀다. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
3 tasks
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
CheckMarkGroup 데모용으로 HomePage.tsx를 바꿔뒀는데, 이슈 #22 범위 밖이라 develop 상태로 되돌린다. 사용법은 PR 설명에 코드 스니펫으로 남겨둔다. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
sohxxny
approved these changes
Aug 11, 2026
sohxxny
left a comment
Member
There was a problem hiding this comment.
고생하셨습니다! 이거 타이포 결정되면 그때 수정하고 머지할까요?
| ); | ||
| } | ||
|
|
||
| type CheckMarkGroupIndicatorProps = HTMLAttributes<HTMLDivElement>; |
Member
There was a problem hiding this comment.
읽기 전용인 컴포넌트임을 코드만으로는 파악하기 어려울 같아요!
주석 추가 or HTMLAttributes에서 이벤트 핸들러를 omit or pick 해서 타입을 좁히는게 좋을 듯 합니당
label쪽도 동일합니닷
sohxxny
reviewed
Aug 11, 2026
Indicator/Label props에서 이벤트 핸들러를 Omit해 읽기 전용 컴포넌트임을 타입으로 드러냈다. 라벨 폰트를 typo-caption-2-emphasized로 확정하고 unchecked 텍스트 색상을 gray-70으로 조정했다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
읽기 전용으로 체크 여부를 나열하는 UI(요일별 스트릭 등)가 필요해서
shared/ui/check-mark에CheckMarkGroup컴파운드 컴포넌트를 추가했다.CheckIcon도 함께 추가했다.Related Issues
PR Point (To Reviewer)
Checkbox라는 이름으로 시작했는데, 클릭 불가능한 순수 표시 컴포넌트(폼 컨트롤 아님,onClick/role=checkbox없음)라<input type="checkbox">를 연상시키는 이름을 피하려고CheckMarkGroup으로 바꿨다.Item이isChecked/label을 직접 받는 단일 컴포넌트 형태였지만, 구현 중에Item/Indicator/Label세 조각으로 분리했다.Item이isChecked를 Context로 하위Indicator/Label에 전달하는 방식이라,label없이 인디케이터만 쓰거나Label의 텍스트 색을isChecked에 따라 다르게 하는 것도 자연스럽게 지원된다. 아래 사용법 참고.CHECK_MARK_BASE.LABEL_BASE(라벨 타이포 클래스)는 아직 Figma 타이포 토큰이 확정되지 않아 빈 문자열로 남아있다 — 후속 확인 필요.사용법
Screenshot
ETC
없음