Skip to content

refactor: draw the sidebar's and task list's controls with the parts - #1894

Merged
yansfil merged 3 commits into
mainfrom
ui-migrate-sidebar
Oct 30, 2026
Merged

yansfil merged 3 commits into
mainfrom
ui-migrate-sidebar

Conversation

@yansfil

@yansfil yansfil commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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입니다.
화면은 거의 그대로이고, 눈에 띄는 차이는 두 전환 버튼의 모양뿐입니다.

mig-a-projects-sidebar
왼쪽 이전, 오른쪽 이후(dark, 300px). Projects/Tasks/PRs 전환이 다른 세그먼트(설정의 Layout 등)와 같은 모양이 됐습니다.

Review

  • 판단해 주세요: 전환 버튼의 선택 표시가 "어두운 칸 위 더 어두운 알약"에서 ToggleGroup의 "밝은 알약"으로 바뀝니다. 앱의 다른 세그먼트와 맞추는 쪽을 골랐습니다.
  • 판단해 주세요: 접기·더 보기 글자가 muted에서 subtle로 한 단계 진해집니다(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

  • 확인한 것: gallery 장면 projects-sidebar, session-panel을 이주 전후로 같은 조건(dark, 300px, 첫 행 hover)에서 캡처해 비교했습니다.
  • 확인한 것: vitest sidebar·TaskLens 8개 파일 40개 통과, tsc --noEmit, eslint, check-design-contract(기준선 갱신 포함) 통과.
  • 확인하지 못한 것: Playwright e2e는 로컬에서 돌리지 않았습니다(디스크가 거의 차서 hided 빌드를 못 함). CI의 web e2e가 바뀐 aria-checked 확인을 봅니다.
  • 그대로 둔 것: sidebar의 프로젝트 이름 버튼과 PR 글리프 2개, TaskLens의 행 제목 버튼 3개. 행이 hover와 선택을 직접 그리고 버튼은 내용만 담는 꼴이라 맞는 부품이 없습니다.
추가 증거

mig-a-session-panel
작업 목록 위쪽: By status/By project 전환(xs)과 첫 행 hover의 별·⋯ 버튼.

Base automatically changed from ui-parts-variants to main October 30, 2026 13:22
@yansfil
yansfil merged commit 2b843d4 into main Oct 30, 2026
55 checks passed
@yansfil
yansfil deleted the ui-migrate-sidebar branch October 30, 2026 13:35
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.

1 participant