Feat(client): ParentTagList 컴포넌트 구현 - #292
Open
twossu wants to merge 3 commits into
Open
Conversation
twossu
requested review from
jm8468,
jogpfls and
jyeon03
and removed request for
a team
August 19, 2026 14:40
🎨 Storybook 배포 완료PR 작성자: @twossu |
twossu
marked this pull request as draft
August 19, 2026 14:45
twossu
changed the base branch from
develop
to
feat/tag-tree-select-component/#286
August 20, 2026 07:17
twossu
marked this pull request as ready for review
August 20, 2026 07:26
twossu
marked this pull request as draft
August 21, 2026 23:17
twossu
marked this pull request as ready for review
August 21, 2026 23:17
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
부모 태그를 선택할 수 있는
ParentTagList컴포넌트를 구현했습니다.📚 Tasks
SidebarItem→NavItem으로 네이밍 변경 및 공용 컴포넌트로 위치 이동ParentTagList컴포넌트 및 스타일 구현🔍 Describe
SidebarItem->NavItemParentTagList도 "아이콘 + 텍스트 + 선택 상태"를 가진 클릭 가능한 아이템이 필요했는데 기존SidebarItem은 사이드바 폴더 안에 있어서 재사용하기엔 위치도 이름도 맞지 않았습니다. 단순히 import 경로만 끌어오기보다 사이드바 전용이라는 이름 자체가 재사용을 가로막는 요소라고 판단해shared/components로 옮기고NavItem이라는 더 일반적인 이름으로 바꿨습니다. 더 아름답고 직관적인 이름이 있다면 추천해주시라요🧎TagNode[]같은 태그 데이터를 다루는
SidebarTagItem은TreeNode<TagNode>를 받아children을 재귀적으로 순회하며 트리 전체를 그립니다. 반면ParentTagList는 자식 태그를 다루지 않고 부모 태그만 한 줄로 나열하는 게 목적이라 트리 순회가 필요 없는 만큼 평면 배열인TagNode[]를 그대로 사용했습니다.전역 스크롤바 스타일을 분리한 이유
기존에는
scrollbarWidth/scrollbarColor/scrollBehavior가globalStyle('html, body', …)안에 묶여 있어서 사실상 최상위 스크롤에만 얇은 스크롤바가 적용되고 있었습니다.ParentTagList는 컴포넌트 내부에overflow-y: auto를 가진 자체 스크롤 영역이 있는데 이 규칙이html, body에만 걸려 있다 보니 내부 스크롤에는 적용되지 않고 브라우저 기본 스크롤바가 그대로 노출됐습니다.이 컴포넌트 하나만을 위해 로컬 스타일로 스크롤바를 다시 정의하면 당장은 해결되지만 앞으로 추가될 다른 스크롤 영역마다 같은 코드를 반복하게 됩니다. 스크롤바 스타일은 컴포넌트 단위가 아니라 디자인 시스템 레벨의 규칙이라고 보는 게 맞다고 판단해
*셀렉터로 옮겨 모든 요소에 일관되게 적용되도록 분리했습니다.📸 Screenshot
parent-tag-recording.mp4