Skip to content

오른쪽 레인 다듬기: 아이콘만 있는 레일, ⌘E 하나, 겹친 레인의 폭 조절, 핀은 항상 도킹 - #1120

Merged
yansfil merged 13 commits into
mainfrom
fix/rail-icons
Oct 15, 2026
Merged

yansfil merged 13 commits into
mainfrom
fix/rail-icons

Conversation

@yansfil

@yansfil yansfil commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Related: #1112

Summary

  • #1112의 오른쪽 레인을 운영자가 써 본 뒤 나온 네 가지 다듬기와, 사이드바 탭 선 하나입니다.
  • 레일은 아이콘만: 아이콘 아래 10px 이름이 창 가장자리에서 너무 크고 붐벼서 뺐습니다. 기기 레일과 같은 20px이고, 마우스를 올리면 힌트가 이름 · 범위를 보여줍니다. 아이콘은 도구가 하는 일로 바꿨습니다: 파일은 문서 두 장, 변경은 diff 문서, 세션은 말풍선 두 개, 기억은 뇌(변경의 git 가지 아이콘은 ⌘K가 체크아웃 뜻으로 써서 뺐습니다).
  • 단축키 하나: Toggle File Views(⌘⇧B)와 Toggle Tools(⌘E)가 각각 도구 하나를 열어서, 같은 키가 상황에 따라 도구를 바꾸거나 닫거나 열었습니다. Toggle right lane(⌘E) 하나로 바꿨습니다: 레인이 떠 있으면 닫고, 아니면 들고 있던 도구(없으면 파일)로 다시 엽니다. 경로 메뉴도 오른쪽 레인 표시/숨기기 하나이고, 레일 아이콘에는 단축키가 없습니다. 두 옛 명령은 Settings에서 바꿀 수 없던 명령이라 저장된 단축키 집합이 이름하지 않습니다.
  • 겹친 레인도 폭 조절: 핀을 꽂지 않은 레인은 가장자리에 손잡이가 없어 폭을 바꾸려면 핀을 꽂아야 했습니다. 도킹 때와 같은 디바이더를 겹친 레인의 왼쪽 가장자리에 달았습니다. 끌면 같은 lane_width가 저장되어 핀을 꽂아도 그 폭이고, 옆에 움직이는 것이 없으니 터미널 리사이즈는 0회입니다. 겹친 상태에서는 몸통 왼쪽 끝까지 넓힐 수 있습니다.
  • 핀은 항상 도킹: 핀을 꽂아도 "저장된 레인 폭 + 에이전트 480px"이 안 들어가면 겹친 채로 두던 규칙(D-07) 탓에, 노트북 창(몸통 1250px)에서는 트리를 켠 레인이 6px 모자라 영원히 안 붙었습니다. 이제 레인 최소폭(문서 360 + 트리 180)과 에이전트 480이 들어가는 창이면 무조건 도킹하고 레인이 먼저 줄어듭니다; 창을 넓히면 저장된 폭으로 돌아옵니다. 그보다 좁은 창(몸통 848px 미만)에서만 전처럼 겹칩니다.
  • 에이전트 하나뿐인 탭은 선 없음: 탭에 에이전트가 하나면 행 옆에 묶을 것이 없는 세로 선만 남았습니다. 이제 선은 탭 글리프와 함께 2개 이상인 탭에만 그리고, 하나인 탭은 행 하나가 그대로 한 묶음입니다; 묶음 사이 8px 간격은 그대로 탭 경계입니다.

에이전트 둘인 탭은 글리프와 선, 하나인 탭은 행만

  • Pen의 레일 버튼 컴포넌트에서 라벨을 빼고 Workspace 화면 보드의 라벨 덮어쓰기를 지웠습니다. docs/UI_BEHAVIOR.md와 docs/ARCHITECTURE.md의 레일·단축키·디바이더 문단이 따라갑니다.

왼쪽 main(아이콘+이름), 오른쪽 이 PR(아이콘만, 파일이 눌린 상태)

Review

  • 판단해 주세요: 네 아이콘이 이름 없이 읽히는지(특히 변경 = diff 문서, 기억 = 뇌). ⌘E가 닫힌 레인을 파일로 여는 것이 맞는지(마지막 도구를 따로 기억하지 않습니다). PRD right-lane B20(도구별 단축키), B6(도킹 레인만 디바이더), D-07(좁은 창의 핀은 겹침)을 이 PR이 바꿉니다.
  • 조심해서 볼 파일: web/src/sidebar.tsx TabSegmentHead - 글리프 없는 묶음은 이제 아무것도 그리지 않습니다(선 포함). web/src/actions.ts - toggleLane이 레인 상태를 읽는 자리; 떠 있음 판정은 drawnLane.mode입니다. web/src/LaneDivider.tsx - 겹친 레인의 디바이더는 edge로 레인 상자 밖에 매달리고, aria-valuemax가 모드에 따라 다릅니다. web/src/workspace.ts laneFrame·laneLanding - 도킹 판정이 저장 폭이 아니라 최소폭 기준이 됐고, 겹친 모드의 landing만 에이전트 최소 폭을 빼지 않습니다. design/hide-ui.lib.pen - 라벨 노드 제거와 아이콘 이름 변경만이어야 합니다.

Evidence

  • 확인한 것: 로컬 e2e: right-lane(5, 겹친 레인 드래그로 +120px 안에서 1px, 터미널 리사이즈 0회 포함), s3·s4·s6·s7(좁은 창 핀 포함)·close-policy·new-tab·session-panel·sidebar-tab-groups(하나인 탭에 선 0개, 둘인 탭의 선 위치 유지) 통과(⌘E와 경로 메뉴를 쓰는 모든 spec). tsc(web·desktop), eslint, 단위 테스트 통과(laneFrame 도킹 경계 1255/1036/1035/848/847과 laneLanding 겹침 사례 추가). check-design-contract.mjs 통과. 위 이미지는 격리 Herdr 위에서 e2e가 찍은 실제 렌더입니다.
  • 확인하지 못한 것: desktop e2e(right-lane, new-tab의 View 메뉴 경로)는 CI에만 맡겼습니다. Windows·Linux 렌더도 CI입니다. 설치 앱에서는 보지 않았습니다.
  • 생성물: design/hide-screens.pen은 pen-screens.mjs가 다시 썼고, Screen / Workspace 보드의 라벨 덮어쓰기 72개가 빠졌습니다.

The rail drew a 10px name under each icon, which read too big and too busy
at the window's edge. It now draws the icon alone, 20px like the device
rail's, and the hint on hover carries the name, its scope and the chord,
which the button already had as its accessible name. The icons say what
each tool is: files for Files, a file diff for Changes, two speech bubbles
for Sessions and a brain for Memory; the git branch icon left Changes
because the search palette uses it for a checkout. The Pen rail button
loses its label and the Workspace screens stop overriding it; the B23 test
checks the hint instead of the label's fit.
Toggle File Views (⌘⇧B) and Toggle Tools (⌘E) each opened the lane on one
tool, so a key could switch the tool, close the lane or open it depending
on what showed, and the path's menu carried two items for the same lane.
Toggle right lane (⌘E) replaces both: the lane closes while it shows and
otherwise comes back on the tool it holds, Files when it holds none; the
rail icons carry no chords, the path's menu offers Show or Hide right lane,
and the desktop View menu names the one command. Neither old command was
bindable in Settings, so no stored shortcut set names them.
…s spec

The rail draws no text now, so the spec that asserted the four names as the
rail's text reads each button's accessible name instead.
A lane over the agents had no divider, so its width could only be set after
pinning it. The docked lane's divider now hangs outside the overlay's left
edge too: a drag moves the guide and lands once as the same stored width the
pin docks at, and nothing beside the lane moves, so no terminal resizes.
Over the agents the lane may reach the body's left edge, since nothing
beside it keeps a minimum; docked, Agent Views keep theirs as before.
@yansfil yansfil changed the title 오른쪽 레일을 아이콘만으로 그리고 이름은 힌트에 둔다 오른쪽 레인 다듬기: 아이콘만 있는 레일, ⌘E 하나, 겹친 레인의 폭 조절 Oct 15, 2026
A pinned lane docked only where its stored width and 480px of Agent Views
fit side by side, so on a laptop window a lane with its tree never docked
and the pin read as doing nothing. It now docks wherever the lane's minimums
(360px of documents, 180px of tree) fit beside Agent Views' 480px, narrowing
itself first and taking its stored width back as the window widens; only a
body too narrow for even those draws it over the agents, as before.
@yansfil yansfil changed the title 오른쪽 레인 다듬기: 아이콘만 있는 레일, ⌘E 하나, 겹친 레인의 폭 조절 오른쪽 레인 다듬기: 아이콘만 있는 레일, ⌘E 하나, 겹친 레인의 폭 조절, 핀은 항상 도킹 Oct 15, 2026
The rail-name assertion grew the spec to 124 lines against a budget of 120;
one poll over the four accessible names reads the same contract.
The lane toggle moved from ⌘⇧B to ⌘E; the spec still pressed the old chord and read overlay instead of closed.
A tab of one agent drew the hairline guide under the checkout glyph beside its lone row, which read as a line with nothing to group. The guide now belongs to the tab glyph: a tab of two or more agents draws it, a single-agent tab is its row alone, and the 8px gap stays the tab boundary. Doc, Pen screen generator and the sidebar tab e2e follow.
Resolves against #1128's tab line inside the guide: a tab of two or more agents keeps its guide and line, a single-agent tab draws neither.
Reapplies the single-agent rule on #1128's segment head: the guide and the quiet line belong to a tab of two or more agents, and a single-agent tab is its row alone.
…w-tab spec

The lane was open and pinned at that step, so the lane toggle closes it; the spec read the old Toggle Tools order and looked for Files on the first press.
@yansfil
yansfil merged commit d20119b into main Oct 15, 2026
20 checks passed
@yansfil
yansfil deleted the fix/rail-icons branch October 15, 2026 07:25
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