Repository navigation
refactor: draw the sidebar's and task list's controls with the parts - #1894
Merged
Merged
Conversation
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.
Related: #1893 (이 PR의 base), #1891
Summary
sidebar와 작업 목록(TaskLens)에서 직접 그리던 버튼 21개를 부품으로 바꿨습니다(raw
<button>216 → 195).행 동작 아이콘(+, 설정, ⋯, 별, 기록)은
Button row-action, 접기·더 보기는Button text, 헤더와 새 탭 줄은RowButton, 체크아웃·탭 줄 뒤의 버튼은RowOverlayButton, Projects/Tasks/PRs와 By status/By project 전환은ToggleGroup입니다.화면은 거의 그대로이고, 눈에 띄는 차이는 두 전환 버튼의 모양뿐입니다.
왼쪽 이전, 오른쪽 이후(dark, 300px). Projects/Tasks/PRs 전환이 다른 세그먼트(설정의 Layout 등)와 같은 모양이 됐습니다.
Review
Button text).web/src/TaskLens.tsx- 전환이 Radix ToggleGroup이 되면서 항목이role="radio"/aria-checked를 씁니다. e2e 두 곳(lane-last-tool,work-prs)의aria-pressed확인을aria-checked로 바꿨습니다. 선택된 항목을 다시 눌러 값이 비는 경우는 무시합니다.web/src/sidebar.tsx- 체크아웃 줄의 뒤 버튼은 비활성일 때도 포인터를 받아야 해서(disabled:pointer-events-auto) 원래 동작을 유지했습니다.Evidence
projects-sidebar,session-panel을 이주 전후로 같은 조건(dark, 300px, 첫 행 hover)에서 캡처해 비교했습니다.vitestsidebar·TaskLens 8개 파일 40개 통과,tsc --noEmit,eslint,check-design-contract(기준선 갱신 포함) 통과.aria-checked확인을 봅니다.추가 증거
작업 목록 위쪽: By status/By project 전환(xs)과 첫 행 hover의 별·⋯ 버튼.