Repository navigation
refactor: draw the record, PR card, suggestions and project rows with the parts - #1896
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
세션 기록, PR 카드, Hide AI 제안, Overview 프로젝트 목록, pane 머리띠에서 직접 그리던 버튼 27개를 부품으로 바꿨습니다(raw
<button>216 → 189, 이 PR만).펼치는 행은
RowButton, 행 뒤 버튼은RowOverlayButton, 글자 동작은Button text/text-link, Projects 표 칸의 링크는Button row-action입니다.세션 기록의 펼치는 행 4개는 전에 키보드 포커스 링이 없었는데 이제 보입니다.
이주 전후로 픽셀이 달라진 두 곳(위: 세션 기록의 "끝난 PR 3개", 아래: PR 카드의 "전체 검사 보기"). muted 글자가 subtle로 한 단계 진해졌습니다.
Review
text/text-link(subtle)로 맞추면서 muted였던 몇 곳이 한 단계 진해집니다.web/src/SessionRecord.tsx- 펼칠 것이 없는 행은 비활성 버튼이라 흐려지면 안 돼서disabled:opacity-100, hover 없음으로 원래 모양을 지켰습니다.web/src/SuggestionsTab.tsx- 행 뒤 버튼과 행 안의 링크가 겹치는 구조라 링크마다pointer-events-auto를 유지했습니다.Evidence
hide-ai,session-record,pr-card,overview,pane-header를 이주 전후 같은 조건(dark)에서 캡처하고 픽셀 diff를 냈습니다. 세 장면은 같고, 두 장면은 위 이미지의 글자 색만 다릅니다. Overviewprojects상태(첫 행 hover)는 전후가 픽셀까지 같습니다.tsc --noEmit,eslint,check-design-contract(기준선 갱신 포함) 통과.