Skip to content

Sidebar: put every tab line inside its guide and hang agents under their own checkout - #1128

Merged
yansfil merged 2 commits into
mainfrom
ui/tab-line-inside-guide
Oct 15, 2026
Merged

yansfil merged 2 commits into
mainfrom
ui/tab-line-inside-guide

Conversation

@yansfil

@yansfil yansfil commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 사이드바의 탭 머리(탭 아이콘과 이름)가 checkout 아이콘과 같은 열에 서 있어서, 탭이 checkout 안의 묶음이 아니라 checkout과 같은 급의 줄처럼 보였습니다.
  • 이제 에이전트가 둘 이상인 탭은 이름이 있든 없든 세로선 안쪽에 한 줄을 갖습니다: 아이콘은 상태 점 열, 이름(수동 이름, 없으면 Tab N)은 제목 열에 서고 세로선은 끊기지 않습니다.
  • 열린 checkout의 에이전트 목록은 8px 여백을 자기 checkout 쪽(위)에 두고 아래에는 없어서, 에이전트가 다음 checkout에 더 붙어 보였습니다.
  • 이제 목록은 자기 checkout 바로 아래 2px에 붙고(두 선택 배경이 붙지 않을 만큼), 끝에서 8px 띄운 뒤 다음 줄이 옵니다.

탭 머리: 왼쪽 main은 탭 아이콘이 checkout 아이콘 열에 서고 이름 없는 탭은 아이콘만, 오른쪽은 두 탭 모두 세로선 안쪽 한 줄

Review

  • 판단해 주세요: 이름 없는 탭도 Tab N 줄(22px)을 갖게 되어, 에이전트가 둘 이상인 탭이 많으면 사이드바가 탭마다 한 줄씩 길어집니다. 운영자가 고른 방향입니다.
  • 조심해서 볼 파일: web/src/sidebar.tsx - TabSegmentHead가 한 가지 모양으로 줄었고(세로선 머리 아이콘 버튼과 오프셋 계산 삭제), OpenAgentRows의 여백이 mt-sm에서 mt-xxs mb-sm으로 바뀌었습니다.
  • 조심해서 볼 파일: docs/UI_BEHAVIOR.md Sidebar hierarchy - "이름 없는 탭은 Tab N을 그리지 않는다"는 이전 규칙을 지우고 새 줄과 간격 규칙을 적었습니다.

Evidence

  • 확인한 것: sidebar-tab-groups, projects-sidebar, sidebar-root-only e2e 10개 통과(실제 Herdr 서버 + 이 worktree의 hided). 탭 줄 아이콘이 상태 점 열 가운데, 이름이 제목 열에서 시작하고, 첫 구간이 폴더 줄 아래 2px에 붙는지를 새로 잽니다.
  • 확인한 것: 갤러리 projects-sidebar(240px, dark)에서 행 위치를 재어 checkout에서 첫 에이전트까지 8px에서 2px로, 마지막 에이전트에서 다음 checkout까지 0px에서 8px로 바뀐 것을 확인했습니다.
  • 확인한 것: verify-web.sh web typecheck/lint/test(1596개 통과), check-design-contract.mjs 통과.
  • 확인하지 못한 것: 설치된 앱에서의 실제 화면, design-review.mjs review의 Pen 기준 비교(이 머신에서 기준 번들을 새로 만들지 않았습니다).
  • 생성물: design/hide-screens.pen은 scripts/pen-screens.mjs에서 다시 생성했습니다. Projects Sidebar 시트의 탭 구간이 한 단계 깊은 프레임으로 들어가며 들여쓰기 diff가 큽니다.
추가 증거

간격: 왼쪽은 이전, 오른쪽은 이후. quick/155-browser-di… 아래 에이전트가 이제 자기 checkout에 붙고, 다음 checkout과는 띄워집니다.

간격 전후

…er their own checkout

A named tab's line put its glyph on the checkout glyph's column, so the tab read
as a row beside the checkout. The line now stands inside the guide like a row:
glyph on the status-mark column, name on the title column, guide unbroken.

An opened checkout's agent list carried its 8px of air above, against its own
checkout, and none below, so a row stood nearer the next checkout than its own.
The list now hangs 2px under the checkout row (so the two fills never merge)
and ends with the 8px before the next row.
…de its guide

The unnamed tab kept its glyph on the checkout glyph's column while a named tab's
line moved inside the guide. Every tab of two or more agents now opens with the
same line, its glyph on the status-mark column and its manual name or Tab N on
the title column; the guide-head glyph button and its offset are removed.
@yansfil
yansfil merged commit f1ebbbd into main Oct 15, 2026
37 of 39 checks passed
@yansfil
yansfil deleted the ui/tab-line-inside-guide branch October 15, 2026 04:50
yansfil added a commit that referenced this pull request Oct 15, 2026
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.
yansfil added a commit that referenced this pull request Oct 15, 2026
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.
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